Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
An augmentation module for Stream, adds support for map, filter and reduce, The passed functions are applied to the data and their return values writen into the stream again. Internally uses a secondary stream that will be piped to the target one. Please note the following:
An angry echo server:
var net = require('net');
var Stream = require('..');
net.createServer(function(stream){
stream.map(function(buff){
return 'NO, '+buff.toString('utf8').toUpperCase();
}).pipe(stream);
}).listen('47641');
> echo "are you angry?" | nc localhost 47641
> NO, ARE YOU ANGRY?
An http server that performs byte sums:
var http = require('http');
var Stream = require('..');
http.createServer(function(req, res){
req.reduce(function(acc, buff){
acc = parseInt(acc) + buff.length;
return acc.toString();
}, 0).pipe(res);
}).listen('21934');
> curl -XPOST -d @index.js http://localhost:21934
> 2213
FAQs
Augments Stream's prototype with map, filter and reduce
We found that stream-map 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.