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.
SSL Tunnel Tool is a Python-based utility for creating secure SSL tunnels. It can be used to set up SSL servers and clients for secure communication over untrusted networks. The tool supports both Layer 2 (Ethernet frames) and Layer 3 (IP packets) operation modes.
Copy and paste the following command:
pip install ssl-tunnel
ssl_tunnel server init [--overwrite]
ssl_tunnel server create-client --name [CLIENT_NAME] [--days [DAYS]] [--server-address [ADDRESS]] [--server-port [PORT]] [--overwrite] [--output-dir [DIR]]
ssl_tunnel server start [OPTIONS]
ssl_tunnel client init [--overwrite]
.gz
file:
ssl_tunnel client load --file [FILE_PATH] [--overwrite]
ssl_tunnel client start [OPTIONS]
ssl_tunnel certificate --cert-name [NAME] --cert-out-file [OUT_FILE] --key-out-file [KEY_FILE] [--days [DAYS]] [--key-size [SIZE]] --common-name [COMMON_NAME] [OTHER_OPTIONS]
[OPTIONS]
includes various flags and parameters that you can pass to customize the server or client. Refer to the script's help for more details:
ssl_tunnel --help
Logs are stored in /var/log/ssl-tunnel.log
. Make sure the script has the necessary permissions to create and write to this file.
Ensure that all certificates and keys are securely stored and backed up. Proper access control should be maintained for sensitive files.
Initialize the server and generate default certificates and configurations:
sudo ssl_tunnel server init
Output:
📜 Generated certificate: /etc/ssl-tunnel/server.pem
🔑 Generated private key: /etc/ssl-tunnel/server.key
👌 Created default configuration file: /etc/ssl-tunnel/config.json
Create a client profile with a certificate and configuration:
sudo ssl_tunnel server create-client --name client1 --output-dir ./
Output:
🖥️ Server address: "ec2-3-138-125-203.us-east-2.compute.amazonaws.com:443" has been included in the client profile.
👌 Client profile for "client1" has been created and archived into "client1_setup.tar.gz".
👏 The new client certificate has been copied to the server's trust store.
Start the SSL Tunnel Server:
sudo ssl_tunnel server start
Output:
******************************
The SSL Tunnel Server starts
******************************
📌 Running on the auth mode in l3 operation
🚀 SSL server is running on 0.0.0.0:443... Press CTRL+C to exit.
Load the client configuration and certificates from a provided .gz
file:
sudo ssl_tunnel client load --file ./client1_setup.tar.gz
Output:
👌 Client configuration and certificates have been successfully extracted and set up.
FAQs
SSL Tunnel Tool for secure and flexible network tunneling
We found that ssl-tunnel 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.