
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.
```js const random = require('randoming'); // 随机手机号码 console.log(random.randomMobile()) // 随机手机号码(只生成159,189前缀号码) console.log(random.randomMobile(['159','189'])) // 随机guid console.log(random.guid()) // 随机字符串 len长度 console.log(random.randomString(len)) //
const random = require('randoming');
// 随机手机号码
console.log(random.randomMobile())
// 随机手机号码(只生成159,189前缀号码)
console.log(random.randomMobile(['159','189']))
// 随机guid
console.log(random.guid())
// 随机字符串 len长度
console.log(random.randomString(len))
// 随机姓名 min最小,max最大长度
console.log(random.randomName(min =2,max =4))
// 随机数字
console.log(random.randomNumber(min = 0,max = 1000,round = true))
// 随机偶数
console.log(random.randomEvenNumber(min = 0,max = 1000))
// 随机奇数
console.log(random.randomOddNumber(min = 0,max = 1000))
// 随机银行卡号
console.log(random.randomBankAccount(bankNo))
type randomIdNoOpt = {
// 最小年龄
minAge: number
// 最大年龄
maxAge: number
// 性别
gender: 'F' | 'M' | ''
// 地区编码
areaCode: string
}
// 随机身份证
console.log(random.randomIdNo(randomIdNoOpt))
// 随机uuid
console.log(random.uuid())
FAQs
```js const random = require('randoming'); // 随机手机号码 console.log(random.randomMobile()) // 随机手机号码(只生成159,189前缀号码) console.log(random.randomMobile(['159','189'])) // 随机guid console.log(random.guid()) // 随机字符串 len长度 console.log(random.randomString(len)) //
We found that randoming 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.