
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
express-chaos-middleware
Advanced tools
Put some chaos in your express application.
The aim of this library is to provide simple chaos testing cases for express applications.
npm add express-chaos-middleware
Chaos features have a 10 percent "chance" of being called by default. The percentage can be changed in the configuration object.
const {chaos} = require('express-chaos-middleware');
app.use(chaos())
The random seed can be configured in the input object param.
const {chaos} = require('express-chaos-middleware');
app.use(chaos({
// this seed throw an exception on the first call
seed: 'uJaK8BUr2084pph',
}))
The probability of chaos can be configured in the input object param.
This parameter is a number value between 0 and 100.
const {chaos} = require('express-chaos-middleware');
app.use(chaos({
probability: 50,
}))
The max slowdown delay can be configured in the input object param.
const {chaos} = require('express-chaos-middleware');
app.use(chaos({
maxDelay: 1000,
}))
The http error codes array can be overridden in the input object param.
const {chaos} = require('express-chaos-middleware');
app.use(chaos({
errCodes: [400, 500],
}))
The chaos feature list can be overridden in the input object param.
You can for example only use delay and http error codes with the following configuration
All rules are exported in the Rules
object.
const {chaos} = require('express-chaos-middleware');
app.use(chaos({
rules: [Rules.DELAY, Rules.HTTPERROR],
}))
FAQs
Put some chaos in your express application
The npm package express-chaos-middleware receives a total of 121 weekly downloads. As such, express-chaos-middleware popularity was classified as not popular.
We found that express-chaos-middleware 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.