
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.
knock-knock
Advanced tools
basic information about the current project and environment
npm install knock-knock
KnockKnock([commands], callback)
Object
(Optional)stdout
or stderr
will be yieldedFunction
(err, result) => {}
key | value |
---|---|
name | derived from package.json |
version | derived from package.json |
env | process.env.NODE_ENV |
node | node -v |
npm | npm -v |
const KnockKnock = require('knock-knock')
KnockKnock((err, results) => {
if (err) throw err
console.log(results)
/** {
name: 'some-name',
version: '1.2.3',
env: 'production',
node: 'v6.10.1',
npm: '4.5.0'
} **/
})
const KnockKnock = require('knock-knock')
KnockKnock({ docker: 'docker -v' }, (err, results) => {
if (err) throw err
console.log(results)
// { docker: 'Docker version 17.03.1-ce, build c6d412e', ... }
})
const Hapi = require('hapi')
const KnockKnock = require('knock-knock')
const server = new Hapi.Server()
const ping = (request, reply) => KnockKnock(reply)
server.route([
{ method: 'GET', path: '/ping', handler: ping }
])
const Express = require('express')
const KnockKnock = require('knock-knock')
const app = Express()
const ping = (req, res) => KnockKnock((err, output) => res.send(err || output))
app.get('/ping', ping)
PRs welcome! Please read the contributing guidelines and the code of conduct.
FAQs
basic information about the current project and environment
The npm package knock-knock receives a total of 0 weekly downloads. As such, knock-knock popularity was classified as not popular.
We found that knock-knock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.