
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.
deskfy-connect-busboy
Advanced tools
Connect middleware for busboy.
npm install connect-busboy
var busboy = require('connect-busboy');
// default options, no immediate parsing
app.use(busboy());
// ...
app.use(function(req, res) {
if (req.busboy) {
req.busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
// ...
});
req.busboy.on('field', function(key, value, keyTruncated, valueTruncated) {
// ...
});
req.pipe(req.busboy);
}
// etc ...
});
// default options, immediately start reading from the request stream and
// parsing
app.use(busboy({ immediate: true }));
// ...
app.use(function(req, res) {
if (req.busboy) {
req.busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
// ...
});
req.busboy.on('field', function(key, value, keyTruncated, valueTruncated) {
// ...
});
}
// etc ...
});
// any valid Busboy options can be passed in also
app.use(busboy({
highWaterMark: 2 * 1024 * 1024,
limits: {
fileSize: 10 * 1024 * 1024
}
}));
If you find that req.busboy
is not defined in your code when you expect it to be, check that the following conditions are met. If they are not, req.busboy
won't be defined:
FAQs
Connect middleware for busboy
We found that deskfy-connect-busboy 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.