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.
This is a small HTTP CONNECT proxy, with a target host whitelist.
Implemented in Python on top of trio and h11, it is written for ease of comprehension and auditing. (This makes it easy to adopt in situations where you'd want such a proxy.)
A secondary goal is to be flexible. It can be used in two ways:
As a stand-alone proxy. Just run the module:
python -m tunnelproxy --address localhost --port 8080 --config example-config.json
As a library.
The proxy (TunnelProxy
) always runs in Trio's event loop, but a
wrapper (SynchronousTunnelProxy
) lets you run it from normal code.
Make it your own!
For example of (2), see tunnelproxy/__main__.py
.
The proxy is single-threaded. On an Intel i7-7700HQ @ 2.80GHz, it handles ~560 connections per second. Not much, but enough for many use cases.
This project is MIT licensed. TrioHTTPConnection
from adapter.py
is
based on h11's example server, by Nathaniel J. Smith. The rest is written
by Antun Maldini.
FAQs
A small whitelisting HTTP CONNECT proxy
We found that tunnelproxy demonstrated a healthy version release cadence and project activity because the last version was released less than 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.