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 tool allows to forward TCP or HTTP ports to a server and make them available through the server. TCP ports will be mapped to ports of the server. HTTP forwarding is done with a simple reverse proxy using sub-domains. It consists of a client and server part. The server is listening for incoming connections from clients and creates additional listeners upon connection. These can be used to directly contact the TCP port set up as destination in the connecting client.
With this tool you can publish local service which might cause security issues for non-hardened ports. You should consider further security measurements to harden critical systems if used. The HTTP implementation is very basic. It's recommended to use a reverse proxy like nginx with SSL and a wildcard certificate if HTTPS is required.
Generate CA and certificates to be used on the server and client (e.g. using certs.sh of the package, easy-rsa, or openssl directly)
Start a tunnel server using a certificate and matching private key
$ socket_proxy server --cert certificate.pem --key certificate.key
$ socket_proxy client --ca ca.pem -c SERVER -d TARGET:PORT
GET /
returns the state of the server as JSON dictionary. Use the path to get only specific information.
E.g. /clients
only returns the sub-dictionary clients
and /clients/edcb13dc0c7c6c64
returns only
information about the client edcb13dc0c7c6c64
.
DELETE /<client>
disconnects the client <client>
.
The client side API doesn't support SSL!
GET /
returns the state of the server as JSON dictionary. Use the path to get only specific information.
E.g. /tunnels
only returns the sub-dictionary tunnels
and /tunnels/edcb13dc0c7c6c64
returns only
information about the tunnel edcb13dc0c7c6c64
.
GET /api/token
returns a new authentication token as JSON string.
DELETE /<tunnel>/<client>
disconnects the client <client>
of the tunnel <tunnel>
.
DELETE /<tunnel>
disconnects the tunnel <tunnel>
.
FAQs
Proxy TCP ports of local systems
We found that socket-proxy 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.