SAWFLY
- Type
- Webshell
- Capabilities
- Post exploitationPersistenceDefense evasion
- Platforms
- LinuxNetwork device
SAWFLY is a lightweight, obfuscated PHP webshell used by ARMORY CASTLE, a suspected China-linked cyberespionage actor formerly tracked as UNC5221 and also known as Warp Panda. It was deployed on BeyondTrust Remote Support appliances following zero-day exploitation of CVE-2026-102764 in late August 2026. Attackers placed the webshell in the appliance’s Laravel web root and used it as their primary interactive post-exploitation foothold, initially operating with the privileges of the web-service account.
SAWFLY accepts instructions through HTTP POST requests containing a designated command parameter. It decodes a custom Base32 transport format, decrypts instructions using RC4, executes the resulting PHP code through eval, and encrypts and encodes the results before returning them. This provides bidirectional encrypted command-and-control communications and interactive code execution. Requests lacking the expected parameter receive an HTTP 404 response, helping conceal the webshell’s presence.
In observed intrusions, operators used SAWFLY to interact with compromised appliances and establish a separate root-level backdoor through a root-owned, SUID-enabled shell. The broader operation included startup-based persistence, attempted extraction of appliance-managed credentials, deletion of logs, deployment of the BARECLAW tunneler, and abuse of native Remote Support functionality to access internal endpoints and collect documents. These additional activities involved operator actions and separate tools rather than dedicated SAWFLY modules.
Associated vulnerabilities
1 CVE 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.
“ARMORY CASTLE ... exploited CVE-2026-102764 ... After exploitation, the actor staged the SAWFLY webshell (mangoapi.php) in the Laravel web root.”
Mandiant also attributed the hacking crew to the zero-day exploitation of a critical improper origin validation in BeyondTrust Remote Support (CVE-2026-102764, CVSS score: 9.3) to deliver malware families like SAWFLY and BARECLAW.
Mandiant also attributed the hacking crew to the zero-day exploitation of a critical improper origin validation in BeyondTrust Remote Support (CVE-2026-102764, CVSS score: 9.3) to deliver malware families like SAWFLY and BARECLAW.
Mandiant also attributed the hacking crew to the zero-day exploitation of a critical improper origin validation in BeyondTrust Remote Support (CVE-2026-102764, CVSS score: 9.3) to deliver malware families like SAWFLY and BARECLAW.
The SAWFLY PHP-based web shell and BARECLAW SOCKS5 proxy tunneler are novel strains of malware observed during post-exploitation activity.
Techniques & procedures
1 distinct technique documented for this family, organized by ATT&CK tactic.
Persistence
1 technique
Persistence
Dépôt du webshell SAWFLY ( mangoapi.php ) dans le répertoire web de l’appliance
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.