
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.
mongoose + chance = this thing
// of course first make sure to `npm install mongoose mchance`
var mongoose = require('mongoose');
var db = mongoose.connect('mongodb://localhost:27017/insert-db-name-here').connection;
var mchance = require('mchance')(db);
db.model('User', new mongoose.Schema({
email: {
type: String,
seed: mchance.email
}
}));
db.model('Comment', new mongoose.Schema({
user: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User'
},
text: {
type: String,
seed: mchance.paragraph
}
}));
db.seed({
User: 1, // generate 1 user
Comment: 2 // generate 2 comments
})
.then(function (dbCache) {
// dbCache contains ref names and *saved* documents
console.log('---seeded users---');
console.log(dbCache.User);
console.log('---seeded comments---');
console.log(dbCache.Comment);
});
FAQs
Seeding library for node where mongoose meets chance
The npm package mchance receives a total of 1 weekly downloads. As such, mchance popularity was classified as not popular.
We found that mchance 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.