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.
node-pledge
Advanced tools
Bindings for for OpenBSD's pledge(2)
pledge(2)
allows a process to ratchet down the privileges it requires to run, if it attempts to access
a privilege it has pledged to not use, it will be killed by the kernel.
Install via npm:
npm install --save node-pledge
var http = require('http');
var pledge = require('node-pledge');
pledge.init("stdio rpath wpath ioctl");
console.log("stuff");
// try to do something with http (will cause the kernel to kill node)
http.get("http://www.google.com/", function(res) {
console.log(res);
}).on('error', function(e) {
console.log(e);
});
Output:
node stuff.js
stuff
Abort trap (core dumped)
Line from dmesg(8)
:
node(24353): sysctl 6: 4 17 0 0 3 0
node(24353): syscall 202 ""
Use at your own risk! It will ONLY work on OpenBSD!
FAQs
OpenBSD's pledge(2) extension for node.js
The npm package node-pledge receives a total of 3 weekly downloads. As such, node-pledge popularity was classified as not popular.
We found that node-pledge 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.