AntSword
- Type
- Webshell
- Capabilities
- PersistencePost exploitationDefense evasionReconnaissanceLateral movementExfiltration
- Platforms
- WindowsLinux
AntSword is an open-source, Chinese-developed web shell management framework used to control compromised web servers through compatible server-side payloads. Although it has legitimate security-testing applications, threat actors widely abuse it for remote command execution, persistent backdoor access, reconnaissance, lateral movement, and additional malware deployment. Its implementations support PHP, ASP, ASP.NET, C#, and JSP environments, with command-execution interfaces for Windows and Linux.
AntSword provides a virtual terminal for issuing commands and retrieving their output. Its communications support HTTP form submissions, multipart requests, raw request bodies, and WebSockets. Configurable encoders and decoders transform requests and responses, while extensions add encrypted communications. Evasion features include randomized parameter names and User-Agent headers, junk-parameter injection, and variable-length request chunking that splits recognizable execution strings. PHP templates attempt to circumvent filesystem restrictions and select among available command-execution functions. The extension ecosystem adds host reconnaissance, security-product identification, reverse shells, and in-memory payload-loading functionality.
Attackers typically deploy AntSword-compatible web shells after exploiting or abusing exposed web applications and management interfaces. Observed environments include IIS, Apache Tomcat, vulnerable Cityworks installations, and servers accessed through unauthenticated phpMyAdmin interfaces. In one intrusion, MariaDB query-log poisoning created a PHP web shell subsequently operated through AntSword. Web shell command output has also been used to exfiltrate Base64-encoded archives.
Documented users include APT41, APT15, UAT-6382, and CL-UNK-1068. Associated operations have targeted U.S. local governments, Asian media and entertainment organizations, Latin American foreign affairs ministries, and critical-infrastructure organizations across Asia. AntSword has supported deployment of additional tooling such as DUSTPAN and Nezha. Its public availability and use by multiple actors mean its presence alone does not establish 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
5 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Rapidly deploys web shells, such as AntSword and chinatso, followed by Cobalt Strike and VShell malware.
In recent campaigns, ANTSWORD and BLUEBEAM web shells were seen on exposed Tomcat Apache Manager server to execute certutil.exe and download the DUSTPAN dropper.
"One of these webshells is the open source AntSword webshell freely available on Github, which is remarkably similar to the infamous China Chopper webshell."
Web shells – AntSword, Behinder, China Chopper, Godzilla , giving the hackers backdoor access to the breached systems.
We observed the attackers deploying the GodZilla web shell, and a variation of AntSword
Techniques & procedures
7 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
ANTSWORD and BLUEBEAM web shells were seen on exposed Tomcat Apache Manager server.
Execution
1 technique
Execution
In the above screenshot, an alert was raised, which shows that the Apache web server process (httpd.exe) had run a specific child process... the command run is identical to what would be seen when using the virtual terminal capability of AntSword.
Persistence
1 technique
Persistence
"ANTSWORD and BLUEBEAM web shells were seen on exposed Tomcat Apache Manager server."
Discovery
1 technique
Discovery
The access afforded by the ANTSWORD web shell is then used to run the "whoami" command to determine the privileges of the web server
Command and Control
3 techniques
Command and Control
« Couche protocole : support de Godzilla (AES-128), Behinder (AES-128), AntSword (Base64) »
Web shells were used to execute certutil.exe and download the DUSTPAN dropper; DUSTTRAP may download additional plugins.
The access afforded by the ANTSWORD web shell is then used to run the "whoami" command to determine the privileges of the web server and deliver the open-source Nezha agent, which can be used to remotely commandeer an infected host by connecting to an external server
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
26 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.