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.
Put some nice SOCKS on your HTTP only program
Driven by my burning desire to tunnel npm install
requests through a SOCKSv5 proxy (eg. shadowsocks). Since npm
only support HTTP proxy, I wrote this simple command line module to fire up a HTTP Proxy server, then use it to tunnel requests to my SOCKS proxy.
npm install kneesocks --production -g
kneesocks port1 port2
, eg. kneesocks 10001 10002
port1
is the port your HTTP proxy server listen to on localhost.port2
is the port of your existing SOCKS proxy, also on localhost.Then you can set your npm config:
npm config set http http://127.0.0.1:10001
npm config set https-proxy http://127.0.0.1:10001
To revert proxy config, use npm config delete http
and npm config delete https-proxy
.
To debug, use DEBUG=proxy kneesocks port1 port2
MIT
FAQs
Put some nice SOCKS on your HTTP only program
We found that kneesocks 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.