CVE-2026-102764 (CVSS 9.3): ARMORY CASTLE Exploits BeyondTrust Remote Support Zero-Day — China-Linked Hackers Deploy SAWFLY Webshell and BARECLAW Tunneler
When attackers want to own every system inside your organisation simultaneously, they don’t target a single server — they target the tool that holds the keys to every server. On 15 October 2026, BeyondTrust disclosed that a China-nexus espionage group had been silently exploiting a critical zero-day in BeyondTrust Remote Support since 29 August 2026 — a full 47 days before any patch reached customers. If your team uses BeyondTrust for privileged remote access, credential brokering, or IT helpdesk sessions, this is the most urgent alert you will read this week.
- CVE-2026-102764 (CVSS 9.3) is a critical improper-origin-validation flaw in BeyondTrust Remote Support, affecting all self-hosted versions up to and including 26.2.3.
- China-linked threat actor ARMORY CASTLE (also tracked as UNC5221 and WARP PANDA by Google Threat Intelligence Group and Mandiant) exploited the flaw as a zero-day starting 29 August 2026.
- Attackers deployed two custom implants: the SAWFLY PHP webshell and the BARECLAW tunneler — then harvested credentials from BeyondTrust’s own secrets store and moved laterally to downstream systems.
- CISA has added CVE-2026-102764 to its Known Exploited Vulnerabilities (KEV) catalog. SaaS customers were silently patched by 9 October; self-hosted customers must manually apply patch BT26-05-RS immediately.
- A successful compromise of a Remote Support appliance typically exposes every managed endpoint in the environment — treat any unpatched instance as already breached.
Why Privileged Access Tools Are the Ultimate Crown Jewels
BeyondTrust Remote Support is not just another application. It is the nerve centre through which IT teams broker sessions to servers, workstations, POS terminals, network equipment, and OT systems — often with domain-admin or root-level credentials pre-populated. In many enterprise deployments, the appliance holds thousands of saved credentials via the bt-secrets utility, meaning a single compromised appliance can hand an attacker direct, authenticated access to the entire estate without triggering a single password-spray alert.
This is why threat actors from nation-state programmes — particularly China-affiliated groups such as ARMORY CASTLE — methodically hunt privileged access management (PAM) platforms. Their previous campaigns leveraged zero-days in Ivanti Connect Secure and Citrix NetScaler following the same pattern: quietly stage on a single gateway, harvest every credential within reach, delete the logs, and ghost out before anyone notices. CVE-2026-102764 follows that playbook almost verbatim — only faster, deeper, and with purpose-built tooling.
Technical Breakdown: The Flaw, the Implants, and the Kill Chain
The Vulnerability (CWE-290)
CVE-2026-102764 is classified as CWE-290: Improper Origin Validation in an internal messaging component of BeyondTrust Remote Support. The flaw allows an unauthenticated attacker to submit specially crafted requests that the appliance’s messaging subsystem accepts as legitimate internal traffic. This grants the ability to perform arbitrary file operations — including writing attacker-controlled files — on the appliance without any credential.
All self-hosted BeyondTrust Remote Support versions up to and including 26.2.3 are affected. BeyondTrust Privileged Remote Access (PRA) shares code with the vulnerable component; while no exploitation path has been confirmed for PRA, BeyondTrust recommends a precautionary patch for all self-hosted PRA deployments as well.
SAWFLY — The PHP Webshell
Once inside, ARMORY CASTLE deployed SAWFLY, a custom PHP webshell written to survive detection and analyst scrutiny. Key characteristics reported by Mandiant include:
- Stored on disk as
mangoapi.phpin a legitimate-looking API path - Uses a custom Base32 encoding layer combined with RC4 encryption for all command-and-control traffic
- Only responds to HTTP requests that include a specific keyed parameter — normal scanner traffic and blue-team HTTP probes receive blank responses, making detection extremely difficult without full traffic inspection
- Supports full filesystem access, command execution, and credential retrieval
BARECLAW — The Tunneler
To maintain a reliable, low-profile channel into the compromised appliance, the attackers also modified the HAProxy configuration on the BeyondTrust host. They added a routing rule that transparently redirected external requests hitting a specially chosen WebSocket path to BARECLAW, a custom tunneler process listening on localhost. This technique:
- Abuses BeyondTrust’s own legitimate HTTPS listener — no new ports, no anomalous firewall rules
- Blends into normal appliance traffic visible to network monitoring tools
- Provides persistent access even if the SAWFLY webshell is later discovered and removed
Credential Harvesting and Lateral Movement
With file-write access and SAWFLY operational, ARMORY CASTLE used BeyondTrust’s own bt-secrets utility to pull credentials stored in the appliance’s secrets store, then escalated account permissions and moved laterally to downstream managed systems. The attackers systematically deleted logs to cover their tracks — a signature behaviour of China-nexus espionage groups focused on long-term, undetected access rather than immediate monetisation.
As with earlier Chinese APT campaigns targeting enterprise infrastructure, the goal appears to be persistent, broad-access intelligence gathering rather than ransomware or data extortion.
Dwell Time: The 47-Day Window That Changes Everything
| Date | Event |
|---|---|
| 29 August 2026 | First confirmed exploitation of CVE-2026-102764 by ARMORY CASTLE (zero-day) |
| 28 September 2026 | BeyondTrust discovers incident during proactive threat hunting; reproduces entry vector same day |
| 8 October 2026 | BeyondTrust releases patch BT26-05-RS for self-hosted versions 24.3.1–26.2.3 |
| 9 October 2026 | All BeyondTrust SaaS/hosted customers automatically patched |
| 15 October 2026 | BeyondTrust publicly discloses CVE-2026-102764 (advisory BT26-05) |
| 16 October 2026 | CISA adds CVE-2026-102764 to KEV catalog; federal agencies ordered to patch by 19 October 2026 |
The 47-day dwell time before BeyondTrust’s own detection — and the further week before the patch shipped — means that any organisation running a vulnerable self-hosted instance between August and October should assume the attackers had ample opportunity to stage persistence. Patching alone is not enough if the attacker is already inside.
Who Is ARMORY CASTLE?
ARMORY CASTLE is a suspected People’s Republic of China (PRC)-nexus espionage group, attributed with moderate-to-high confidence by both Google Threat Intelligence Group and Mandiant. The same cluster is also tracked as UNC5221 (Mandiant’s pre-attribution label) and WARP PANDA. The group is prolific and technically capable:
- Prior campaigns exploited zero-days in Citrix NetScaler, Ivanti Connect Secure, and VPN gateways from multiple vendors
- Historically targets legal services firms, SaaS providers, business-process outsourcers (BPOs), technology companies, and government entities
- Operational focus is long-term persistent access and intelligence collection — not financially motivated ransomware
- Consistently develops custom implants (rather than commodity malware) to reduce detection surface
For Indian enterprises — particularly BPOs, IT services companies, and government contractors that handle sensitive foreign-client data — the BPO targeting history is especially relevant. India’s large outsourcing sector makes it a high-value intelligence target for nation-state actors seeking third-party pathways into Western clients.
What You Should Do Right Now
This is Sanjay Seth’s recommended immediate response plan:
1. Patch or Isolate Within Hours, Not Days
If you run BeyondTrust Remote Support self-hosted, apply patch BT26-05-RS immediately via your appliance’s /appliance update interface. The patch covers versions 24.3.1 through 26.2.3. If your deployment is older than 24.3.1, upgrade to a supported release before applying the patch. Until patched, block all inbound access to the appliance from the internet — this is a critical compensating control. CISA’s KEV deadline for federal agencies is 19 October; treat that as your deadline too.
2. Assume Breach: Forensic Triage Before You Trust It Again
A patched appliance is not necessarily a clean appliance. If your instance was internet-accessible between 29 August and 8 October 2026, treat it as potentially compromised. Actions to take:
- Search for
mangoapi.phpor other unexpected PHP files in the BeyondTrust web root - Review
/etc/haproxy/haproxy.cfg(or equivalent) for unexpected WebSocket routing rules pointing to localhost - Audit recent changes to the HAProxy configuration — look for rules that redirect specific URL paths to 127.0.0.1 on a non-standard port
- Check for evidence of
bt-secretsutility execution in process logs - Review authentication logs for all systems for which BeyondTrust stored credentials — watch for off-hours logins, new admin accounts, or service account activity from unexpected source IPs
3. Rotate Every Credential the Appliance Knew About
This step is non-negotiable. If ARMORY CASTLE reached your secrets store, rotate all credentials brokered or stored through BeyondTrust: domain admin passwords, local admin passwords, service accounts, API tokens, and any SSH keys. Use this as a forcing function to enrol those accounts in your privileged access management (PAM) vault with proper session recording going forward.
4. Apply Zero-Trust Segmentation to Future PAM Deployments
BeyondTrust appliances — like Ivanti gateways and Citrix NetScalers — are high-value targets precisely because they are trusted to reach everything. A zero-trust architecture limits the blast radius: micro-segmentation means a compromised PAM appliance can reach only the segments it legitimately needs, and every session is logged, time-limited, and terminates on anomaly. This is not a theoretical improvement — it is the concrete difference between “one server compromised” and “the entire enterprise exposed”.
Frequently Asked Questions
Are BeyondTrust SaaS / cloud-hosted customers affected?
SaaS customers were automatically patched by 9 October 2026 and no action is required. However, if your SaaS instance was in scope between 29 August and 9 October, the same assume-breach guidance applies: review credential logs, look for suspicious downstream access, and rotate any secrets stored on the appliance.
Does BeyondTrust Privileged Remote Access (PRA) need patching too?
BeyondTrust has confirmed that no exploitation path for PRA has been demonstrated. However, because PRA shares code with the vulnerable component, BeyondTrust recommends applying the BT26-05 patch to all self-hosted PRA deployments as a precautionary measure. Do not skip this step.
How do I know if my BeyondTrust appliance was already compromised?
ARMORY CASTLE deleted logs on compromised appliances, so absence of log evidence is not reassurance. The most reliable indicators are: presence of mangoapi.php in the web root, unexpected HAProxy routing rules to localhost, unexplained new admin accounts or service accounts in your Active Directory, and anomalous off-hours access to systems whose credentials were stored in BeyondTrust. Engage your incident response team or an external partner for a full forensic review if your appliance was internet-facing during the exploitation window.
Is there a public exploit or PoC available for CVE-2026-102764?
BeyondTrust has deliberately withheld technical details of the vulnerability to limit the time window before wide-scale exploitation. As of the disclosure date (15 October 2026), no public proof-of-concept has been released. Google Threat Intelligence Group has warned that broader exploitation is likely now that the vulnerability is publicly known. Patch before that window closes.
The Bigger Picture: PAM Is the New Perimeter
The pattern here is unmistakable. In 2024 and 2025, nation-state actors targeted VPN gateways. In 2026, the target has shifted to the layer above the gateway: privileged access management tools, remote support platforms, and identity brokers. These systems are the new perimeter. When they fall, network segmentation and endpoint controls matter far less — the attacker is the privileged user.
For CISOs and IT leaders in India — where regulatory scrutiny under DPDPA 2023 is intensifying and enterprise IT estates are growing rapidly — this campaign is a wake-up call to inventory every tool that holds privileged credentials and treat each one as a potential crown jewel target. The question is not whether your PAM platform has vulnerabilities. Every platform does. The question is how quickly you detect, patch, and contain — and whether your zero-trust architecture limits what an attacker can do in the time between first exploitation and first detection.
If your organisation uses BeyondTrust Remote Support or any similar privileged access tool and you want an independent assessment of your exposure, detection gaps, and zero-trust readiness, reach out to Sanjay Seth for a security assessment. With 30 years on enterprise networks across India, the experience to move from audit to action quickly is there when you need it most.