
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
connect-chaos
Advanced tools
This is loosely inspired by chaos monkey. The basic idea is that you can drop it into your connect / express app and see how your clients get on when things go wrong. You might want to have it enabled by an environment variable so you can switch it on and off easily.
$ npm install connect-chaos
var chaos = require('connect-chaos');
// anything can happen
app.use(chaos());
// requests might be delayed by 2000ms (default)
app.use(chaos({
delay: true
});
// requests might be delayed by specified value
app.use(chaos({
delay: 300
});
// requests might return an error code
// Client error codes: 400, 401, 402, 403, 404, 405, 406, 407, 407, 409, 410, 411, 412, 413, 414, 415, 416, 417
// Server Error codes: 500, 501, 502, 503, 504, 505
app.use(chaos({
error: true
});
// requests might return specified code
app.use(chaos({
error: 401
});
// requests might return a code in the array
app.use(chaos({
error: [404, 500]
}));
// requests might return a code that matches the regex
app.use(chaos(){
error: /^40/
});
// requests might return an erro code or be delayed by 6000ms
app.use(chaos({
error: true,
delay: 6000
});
FAQs
connect / express middleware that causes chaos
The npm package connect-chaos receives a total of 0 weekly downloads. As such, connect-chaos popularity was classified as not popular.
We found that connect-chaos 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.