
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.
A bunch of wrappers for various utilites. Ideal for writing shell scripts in node.
It's best to look at the code to see what all is available, but here is an example of using it:
const qq = require('qqjs')
// qq.run(fn) is just fn().catch(qq.handleError)
// this helps skip a couple of steps when running async functions in scripts
qq.run(async () => {
// turn silent mode to log all commands
// can also see output with DEBUG=qq
// qq.config.silent = false
// run a command with qq.x this runs synchronously using execa
// by default it will echo out to the screen the commmand, stdout/stderr and connect to stdin
// can send either a string
await qq.x('git --version')
// or specify the arguments
await qq.x('git' ['--version'])
await qq.cd('newdir')
await qq.cp('from', 'to')
const pjson = await qq.readJSON('package.json')
await qq.writeJSON('package.json', {})
// for almost any command, if it takes a string you can also pass an array and it will automatically path.join()
await qq.writeJSON(['mydir', 'package.json'], {})
})
FAQs
useful functions for writing node scripts
The npm package qqjs receives a total of 42,526 weekly downloads. As such, qqjs popularity was classified as popular.
We found that qqjs 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.