Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This Node package makes working with the Buffer API a breeze! A little present for the awesome Buffer team & the happy community :)
The package was design with simplicity and extendability in mind. In other words, it's object oriented! It's so simple that I thought writing test code would be an overkill!
To get started, just...
npm install buffer-js
You'll need an access token to start using the Buffer API, you can either use the single-time access token provided by Buffer when you created the application for your own usage only, or you can request access tokens using OAUTH 2.0, which is beyond the scope of this package.
NOTE: the params object literal that you may need to pass varries by method. Check the Buffer API docs for more info.
var Buffer = require('buffer-js');
var callback = function(body) {
console.log(body);
};
// Check the Buffer API docs to pass the right parameters
// based on the method you're calling
var params = {
...
...
}
var opts = {
access_token: 'ACCESS_TOKEN'
};
var User = new Buffer.User(opts);
User.get(callback);
var Links = new Buffer.Links(opts);
Links.get(params, callback);
var Info = new Buffer.Info(opts);
Info.get(callback);
var opts = {
access_token: 'ACCESS_TOKEN',
profile_id: 'PROFILE_ID'
};
Profiles = new Buffer.Profiles(opts);
Profiles.all(callback); // doesn't need profile_id
Profiles.get(callback);
Profiles.schedules(callback);
Profiles.updateSchedules(params, callback);
Profiles.pendingUpdates(params, callback);
Profiles.sentUpdates(params, callback);
Profiles.reorderUpdates(params, callback);
Profiles.shuffleUpdates(params, callback);
var opts = {
access_token: 'ACCESS_TOKEN',
update_id: 'UPDATE_ID'
};
Updates = new Buffer.Updates(opts);
Updates.create(params, callback); // doesn't need update_id
Updates.get(callback);
Updates.interactions(params, callback);
Updates.update(params, callback);
Updates.share(callback);
Updates.destroy(callback);
Updates.moveTop(callback);
FAQs
Node.js Wrapper for the Buffer API
The npm package buffer-js receives a total of 3 weekly downloads. As such, buffer-js popularity was classified as not popular.
We found that buffer-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.