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.
minimal ajax library.
var ajaxapi = require('ajaxapi');
var API = ajaxapi('https://api.github.com');
API.get('/repo/iojs/io.js')
.then(function (data) {
alert("Stars: " + data.stargazers_count);
})
API.put('/user', { name: 'John Constantine' })
.then(function (data) {
alert("User data was saved");
});
Hooks before its sent
var API = ajaxapi('https://api.github.com');
API.before(function (ctx) {
ctx.headers['X-Access-Token'] = '...';
ctx.headers //=> {}
ctx.method //=> "GET"
ctx.url //=> "https://api.github.com/foo/bar"
ctx.data //=> {}
});
Promise stuff -- to be appended to the chain via .then()
after the body is
parsed.
These hooks will be chaining each other.
var API = ajaxapi('https://api.github.com');
API.after(function (data) {
// do stuff
API.response.headers
API.response.statusCode
return data;
});
FAQs
minimal ajax library.
The npm package ajaxapi receives a total of 1 weekly downloads. As such, ajaxapi popularity was classified as not popular.
We found that ajaxapi 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.