Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Installs process.stdout
and process.stderr
and redirects console
.
Repository: https://github.com/mantoni/brout.js
npm install brout
Assume my-script.js
contains this:
process.stdout.write('Hello stdout!\n');
console.log('Hello %s!', 'console');
Use with browserify and phantomic:
$ browserify -t brout my-script.js | phantomic
Hello stdout!
Hello console!
Headless testing with Mocha requires mocaccino:
$ browserify -t brout my-test.js | mocaccino -b -r spec | phantomic
var brout = require('brout');
brout.on('out', function (str)) {
// ...
});
brout.on('err', function (str)) {
// ...
});
brout.on('exit', function (code)) {
// ...
});
Event listeners are tiggered by these calls:
process.stdout.write(string)
process.stderr.write(string)
process.exit(code)
The console functions log
, info
, warn
and error
get replaced and the
original implementation is exposed:
console.log.original
console.info.original
console.warn.original
console.error.original
The console override behaves like node's implementation and writes to
process.stdout
and process.sterr
.
If an out
or err
listener is installed, then the corresponding console
message is no longer forwarded to the original console implementation.
MIT
0.1.5
log
, info
, warn
and
error
if console is not there.FAQs
stdout and stderr for browsers
The npm package brout receives a total of 513 weekly downloads. As such, brout popularity was classified as not popular.
We found that brout 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.