Skip to main content
Mallory
Malware5 associated actors1 associated CVE

SAWFLY

Tracked since Oct 16, 2026 · Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns1Associated
Actors5Associated
ATT&CK1Technique
IOCs2Tracked
Type
Webshell
Capabilities
Post exploitationPersistenceDefense evasion
Platforms
LinuxNetwork device

SAWFLY is a lightweight PHP webshell used by ARMORY CASTLE, a suspected China-linked cyberespionage actor formerly tracked as UNC5221 and also known as Warp Panda. It provides an interactive foothold on compromised BeyondTrust Remote Support appliances. Observed deployments followed exploitation of CVE-2026-102764, an improper message-origin validation vulnerability permitting unauthenticated remote file operations, during zero-day attacks in late August 2026. Attackers placed the webshell in the appliance’s Laravel web root.

SAWFLY receives instructions through HTTP POST requests, using custom Base32 encoding and RC4 encryption for bidirectional command-and-control communications. It decodes and decrypts submitted instructions, executes PHP code, and encrypts and encodes the results before returning them. Requests lacking its designated command parameter receive an HTTP 404 response, helping conceal its presence.

The webshell initially executes with the privileges of the web-service account. ARMORY CASTLE used this foothold to conduct subsequent operations, including establishing a separate SUID-enabled root backdoor. Associated intrusions also involved startup-based persistence, attempted appliance credential-vault extraction, log deletion, abuse of legitimate remote-support sessions to access internal endpoints and collect documents, and deployment of the BARECLAW tunneler. These additional activities are distinct from SAWFLY’s core webshell functionality.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

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.

CVE-2026-102764via securonix blogExploited in the wildAuthentication Bypass by Spoofing in BeyondTrust Remote SupportIn late August 2026, the suspected China-linked espionage group ARMORY CASTLE [[URL_b5244c54_90]] (formerly UNC5221) exploited CVE-2026-102764, a zero-day vulnerability in BeyondTrust Remote Support appliances that was publicly disclosed on October 15. | The attackers initially deployed SAWFLY (mangoapi.php), a PHP webshell that processes encrypted commands through HTTP POST requests using Base32 encoding and RC4 encryption.View vulnerability →Source ↗
Threat actors

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.

View more details →
ARMORY CASTLE

The attackers initially deployed SAWFLY (mangoapi.php), a PHP webshell that processes encrypted commands through HTTP POST requests using Base32 encoding and RC4 encryption.

via securonix blogsecuronix.com
WARP PANDA

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.

via the hacker newsthehackernews.com
Storm-2416

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.

via the hacker newsthehackernews.com
VerdantBamboo

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.

via the hacker newsthehackernews.com
ARMORY CASTLE (formerly UNC5221)

The SAWFLY PHP-based web shell and BARECLAW SOCKS5 proxy tunneler are novel strains of malware observed during post-exploitation activity.

via greenbonegreenbone.net
MITRE ATT&CK

Techniques & procedures

1 distinct technique documented for this family, organized by ATT&CK tactic.

Persistence

1 technique
T1505.003Web ShellEvidence2

Dépôt du webshell SAWFLY ( mangoapi.php ) dans le répertoire web de l’appliance

Indicators of compromise

Observables

2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
cryptika blogNews · Nov 2, 2026Critical BeyondTrust Vulnerability Faces Fresh Exploitation Probes as Hackers Prepare for Mass Scanning | Cryptika CybersecurityPHP web shell deployed during earlier successful exploitation of BeyondTrust Remote Support. The article links those intrusions to ARMORY CASTLE and describes arbitrary file uploads, root privilege escalation, and attempts to access stored credentials and managed systems. SAWFLY deployment is not confirmed in the newly reported probes.Read more ↗the hacker newsNews · Oct 29, 2026China-Linked Hackers Exploited VMware ESX Zero-Day to Reduce Audit Trail VisibilityMalware delivered through Warp Panda's exploitation of BeyondTrust Remote Support. The content does not describe its capabilities.Read more ↗loginsoft researchNews · Oct 23, 2026Patched Months Ago, Exploited Today: This Week’s KEV Listings and the Malware Behind Them | Weekly Reports | LoginsoftObfuscated PHP webshell deployed on compromised BeyondTrust Remote Support appliances. It uses a custom Base32 transport layer and RC4 encryption for command-and-control communications, and executes attacker-supplied PHP through @eval(). The deployed filename was mangoapi.php.Read more ↗linuxsecurityNews · Oct 19, 2026BeyondTrust Remote Support Zero-Day Leaves Root BackdoorsPHP webshell deployed during an intrusion into BeyondTrust Remote Support attributed to ARMORY CASTLE. It decoded encrypted instructions and executed the resulting code on the Linux host, initially with the limited privileges of the web-service account.Read more ↗
+19 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching2Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors5Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities1CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping1Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.