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.
websock-lowfat-promise is a zero-dependencies low-fat-promisified ws-websocket library.
It runs inside any webbrowser or node environment that supports promises.
It can be used with most existing websocket libraries.
The following sample code should speak for itself:
const WebSocket = require("ws");
const wspromise = require("websocket-lowfat-promise");
async function runme() {
const wsp = new wsppromise(new WebSocket("wsp://foo.com/bar"));
await wsp.open();
await wsp.send("Hello world! Send me a response please.");
var response = await wsp.recv();
console.log(response);
await wsp.close();
console.log("Socket has been closed");
}
runme();
Specified parameters:
websocket
ws
.Exposed API-list:
new wspromise(websocket)
this.open()
this.send(data, options)
this.recv()
this.ping()
this.close()
Card-carrying member of the zerodeps
movement.
FAQs
minimal mutex library for asynchronous locking
The npm package mutexlight receives a total of 2 weekly downloads. As such, mutexlight popularity was classified as not popular.
We found that mutexlight 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.