Threat reportVulnerabilityTL-2026-3668
ARMORY CASTLE Zero-Day Exploitation of BeyondTrust Remote Support (CVE-2026-102764) with SAWFLY Webshell and BARECLAW Tunneler
Google Threat Intelligence Group and Mandiant report that ARMORY CASTLE (formerly UNC5221), a suspected PRC-nexus espionage actor, exploited an unauthenticated arbitrary file upload flaw (CVE-2026-102764) in BeyondTrust Remote Support appliances as a zero-day in late August 2026. Post-exploitation used the custom SAWFLY PHP webshell and BARECLAW SOCKS5-over-WebSocket tunneler to extract Vault credentials, persist as root and move laterally through Jump Items.
Key facts for ARMORY CASTLE BeyondTrust zero-day
| Identifiers | TL-2026-3668, CVE-2026-102764, CVE-2023-46805, CVE-2024-21887, CVE-2025-0282, CVE-2023-4966, CVE-2026-22769 |
|---|---|
| Also known as | UNC5221 BeyondTrust zero-day campaign, BT26-05 |
| Severity | CRITICAL |
| CVSS | 9.3 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) |
| First disclosed | |
| Exploitation status | Exploited in the wild; Listed in CISA KEV: CVE-2026-102764 (added ), CVE-2023-46805 (added ), CVE-2024-21887 (added ), CVE-2025-0282 (added ), CVE-2023-4966 (added ), CVE-2026-22769 (added ) |
| EPSS | CVE-2024-21887: 99.9% (99.9th percentile); CVE-2023-4966: 99.9% (99.9th percentile); CVE-2023-46805: 99.9% (99.9th percentile) |
| Affected products | BeyondTrust Remote Support (formerly Bomgar) |
| Weaknesses (CWE) | CWE-290, CWE-346, CWE-434, CWE-287 |
| Attribution | ARMORY CASTLE (high confidence) |
| Nation-state nexus | China |
| Malware | BARECLAW, SAWFLY |
| Tools | BeyondTrust |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1021 Remote Services, T1027 Obfuscated Files or Information, T1036.005 Masquerading: Match Legitimate Resource Name or Location, T1037 Boot or Logon Initialization Scripts, T1041 Exfiltration Over C2 Channel, T1059.004 Command and Scripting Interpreter: Unix Shell, T1070.002 Indicator Removal, T1070.004 Indicator Removal: File Deletion, T1071.001 Application Layer Protocol, T1078 Valid Accounts, T1090 Proxy and 16 more in the attack flow |
| Motivation | ESPIONAGE |
| Target sectors | multiple verticals, enterprise it and remote support users |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage for ARMORY CASTLE BeyondTrust zero-day
As of 2026-11-02, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3668 across Splunk SPL, Microsoft KQL and Sigma, covering 37 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: BARECLAW ingredi_ws SOCKS5-over-WebSocket Tunneler Execution (port 19800, /uidchanarge)
Detects execution of the BARECLAW (ingredi_ws) tunneler, launched from /tmp as 'ingredi_ws --listen 19800 --token ... --obfs -q --ws-path /uidchanarge'. BARECLAW embeds CivetWeb and OpenSSL, provides SOCKS5 over WebSocket with XOR (--obfs) stream obfuscation, and is the ARMORY CASTLE C2/pivot channel after CVE-2026-102764 exploitation.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1572, T1573.001, T1132, T1027
- Data sources: linux_auditd, mde_linux_process_events, sysmon_for_linux
- Severity: critical
- Confidence: high
Splunk SPL
```BARECLAW launch via auditd EXECVE: binary name or characteristic flag combination```
index=linux sourcetype=linux_audit type=EXECVE earliest=-24h
(a0="*/ingredi_ws" OR a0="ingredi_ws" OR ("--ws-path" "--listen") OR ("--obfs" "--ws-path") OR ("/uidchanarge" "19800"))
| fillnull value="n/a" auid
| stats count, values(a0) AS binary, min(_time) AS first_seen, max(_time) AS last_seen BY host, auid
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ "ingredi_ws"
or ProcessCommandLine has_all ("--listen", "--ws-path")
or ProcessCommandLine has_all ("--obfs", "--ws-path")
or (FolderPath startswith "/tmp/" and ProcessCommandLine has "19800")
| project Timestamp, DeviceName, AccountName, FolderPath, FileName, ProcessCommandLine, InitiatingProcessFileNameSigma
title: BARECLAW ingredi_ws WebSocket SOCKS5 Tunneler Launch
id: 8b5c3a71-2d49-4f06-9e1a-7c0d4b6e2a07
status: experimental
description: Detects launch of the BARECLAW tunneler (ingredi_ws) or its characteristic --listen/--ws-path/--obfs arguments, used by ARMORY CASTLE for SOCKS5-over-WebSocket tunneling from BeyondTrust appliances.
references:
- https://cloud.google.com/blog/topics/threat-intelligence/armory-castle-exploits-beyondtrust/
- https://www.beyondtrust.com/trust-center/security-advisories/bt26-05
author: AII-Detector — ThreadLinqs Intelligence
date: 2026-10-15
tags:
- attack.command-and-control
- attack.t1572
- attack.t1573.001
- attack.t1132
- attack.defense-evasion
- attack.t1027
- cve.2026.102764
logsource:
product: linux
category: process_creation
detection:
selection_img:
Image|endswith: '/ingredi_ws'
selection_cli_ws:
CommandLine|contains|all:
- '--listen'
- '--ws-path'
selection_cli_obfs:
CommandLine|contains|all:
- '--obfs'
- '--ws-path'
condition: 1 of selection_*
falsepositives:
- Legitimate WebSocket proxy tools using the same flag names (rare)
level: critical
Known false positives:
- Internal tooling using a binary named ingredi_ws (unlikely outside BeyondTrust intrusions)
- Developers running generic WebSocket proxies with --listen and --ws-path flags
Tuning notes: Binary name and argument pairs can be changed by the actor; also alert on any process started from /tmp that listens on TCP 19800 or any unexpected listener on the appliance. Flag combinations rely on command-line capture (auditd execve argv or EDR).
- SAWFLY PHP Webshell Dropped in Laravel Public Directory ([indicator]) · unlock with TL Creds
- BeyondTrust bt-secrets Vault Extraction and Log Deletion · unlock with TL Creds
- BARECLAW Exposure - [indicator] WebSocket Path and HAProxy haproxy.conf Tampering · unlock with TL Creds
- ARMORY CASTLE SAWFLY and BARECLAW Known File Hash Observed · unlock with TL Creds
- BeyondTrust Root Persistence - [indicator] and NOPASSWD sudoers Template Change · unlock with TL Creds
- BeyondTrust Jump Item Role Elevation to Administrator (user_changed) with File Transfer · unlock with TL Creds
- BeyondTrust CVE-2026-102764 Exploitation - SAWFLY Staging Webshell POSTs ([indicator], [indicator]) · unlock with TL Creds
- Masqueraded SUID Root Shell [indicator] (cp /bin/sh + chmod 4755) · unlock with TL Creds
Indicators of compromise for ARMORY CASTLE BeyondTrust zero-day
As of 2026-11-02, Threadlinqs Intelligence tracks 37 indicators of compromise for TL-2026-3668.
Sample indicators (2 of 37)
- File hash:
dc14e215269a93fdbc4c1a80b984c23faf7af0911c6dbb85309796a6f2ae95fb - File hash:
1f19b9a27d79c11bda00a1e8faf74a7fdd683d38ccef1b60df2fd0307e3aa462
Defanged, TLP:CLEAR. Full set of 37 indicators: unlock with TL Creds.
How ARMORY CASTLE BeyondTrust zero-day works
Patch BT26-05 is available.
Google Threat Intelligence Group (GTIG) and Mandiant disclosed on 2026-10-15 that ARMORY CASTLE, a suspected PRC-nexus espionage actor formerly tracked as UNC5221 and active since at least October 2023, exploited CVE-2026-102764 in BeyondTrust Remote Support (formerly Bomgar) as a zero-day in late August 2026. The flaw is described as an unauthenticated arbitrary file upload (NVD describes internal components that did not adequately validate the origin of messages they received, permitting file operations on the appliance; CWE-290) and affects all supported versions through 26.2.3. Evidence of exploitation resides in access, syslog, messages, thin_scc, brain and SSL logs on the appliance's LUKS-encrypted /home partition.
About 11 minutes after exploitation, the actor sent POST requests to a staging webshell at /app_84304470%2Ephp and dropped the SAWFLY PHP webshell (mangoapi.php) into the site service account's Laravel public directory (/%SITE_SERVICE_ACCOUNT%/ingredi/app/laravel/public/). SAWFLY is a small obfuscated webshell running as an unprivileged service account: it returns HTTP 404 unless the POST parameter _c94mfe is present, then Base32-decodes the payload, RC4-decrypts it with a hardcoded 32-byte key, passes it to @eval(), and returns the result RC4-encrypted and Base32-encoded.
For privilege escalation the actor copied /bin/sh to /usr/bin/dbus-authd, chowned it to root and set mode 4755, creating a masqueraded SUID root shell. With root, the actor used the appliance's /ns/sbin/bt-secrets CLI to pull Vault secrets (passwords, API keys, endpoint and service-account credentials, Password Safe credentials) with three fallback invocations, then removed bt-secrets logs. Persistence was established via /home/bomgar/sbin/post_boot.d/zz-root-persist, which appends a NOPASSWD sudoers line for the site service account to /ns/config/sudoers.template and runs bt-sysconfig, surviving reboots and configuration resets.
BARECLAW (ingredi_ws) is a C SOCKS5-over-WebSocket tunneler embedding CivetWeb and OpenSSL, with optional token auth, XOR stream obfuscation (--obfs), CIDR allow-lists, upstream proxy chaining and quiet mode. It was launched from /tmp listening on TCP 19800 with WebSocket path /uidchanarge and exposed externally by editing /ns/config/haproxy.conf with an ACL (wswsws) routing path /uidchanarge to backend webskd3 at 127.0.0.1:19800 with a 5h tunnel timeout. The actor then deleted numerous appliance logs (auth, ssl, http, php-fpm, messages, etc.).
For lateral movement the actor logged into the /login interface with a password, changed a user's Jump Item and Team roles from No Access to Administrator (user_changed event), launched remote support sessions to internal endpoints and used the built-in file transfer service to download sensitive documents and software inventories. GTIG assesses with high confidence that, as with the actor's earlier Ivanti campaigns (CVE-2023-46805, CVE-2024-21887), widespread opportunistic exploitation will follow disclosure. BeyondTrust patched SaaS tenants on 2026-10-09; self-hosted customers on v24.3.1+ apply BT26-05-RS, and rebuilding from a clean image is recommended for potentially compromised appliances because persistence survives reboot and reset.
MITRE ATT&CK techniques by tactic:
Collection
Lateral Movement
Defense Evasion
T1027 Obfuscated Files or Information; T1036.005 Masquerading: Match Legitimate Resource Name or Location; T1070.002 Indicator Removal; T1070.004 Indicator Removal: File Deletion
Persistence
T1037 Boot or Logon Initialization Scripts; T1098 Account Manipulation; T1505.003 Server Software Component: Web Shell
Exfiltration
T1041 Exfiltration Over C2 Channel
Execution
T1059.004 Command and Scripting Interpreter: Unix Shell
Command and Control
T1071.001 Application Layer Protocol; T1090 Proxy; T1090.001 Proxy: Internal Proxy; T1105 Ingress Tool Transfer; T1132 Data Encoding; T1132.002 Data Encoding; T1219 Remote Access Tools; T1571 Non-Standard Port; T1572 Protocol Tunneling; T1573.001 Encrypted Channel: Symmetric Cryptography
Initial Access
T1078 Valid Accounts; T1190 Exploit Public-Facing Application
Privilege Escalation
T1548.001 Abuse Elevation Control Mechanism: Setuid and Setgid; T1548.003 Abuse Elevation Control Mechanism: Sudo and Sudo Caching
Credential Access
T1552 Unsecured Credentials; T1555 Credentials from Password Stores
Resource Development
Remediation for ARMORY CASTLE BeyondTrust zero-day
Patches
- BeyondTrust BT26-05 / BT26-05-RS (self-hosted v24.3.1 and later; upgrade older versions first)
Immediate actions
- Apply BT26-05 / BT26-05-RS on self-hosted Remote Support via /appliance (SaaS tenants were patched 2026-10-09)
- Preserve evidence first: snapshot virtual appliances with memory, request forensic preservation for B Series/SaaS, collect syslog, reverse-proxy/WAF and perimeter firewall logs
- Block inbound traffic to potentially compromised appliances at the perimeter firewall and deny egress except to BeyondTrust endpoints
- End active support sessions; disable (do not delete) Jump Clients, Jumpoints and API accounts
- Hunt for requests to /app_84304470%2Ephp and /uidchanarge, mangoapi.php, ingredi_ws, /usr/bin/dbus-authd SUID, zz-root-persist and haproxy.conf backend webskd3
Workarounds
- Restrict /login and /appliance interfaces by IP/network segment; allow only representative console, customer portal and Jump Client traffic
- Deploy a WAF/reverse proxy and alert on unknown .php paths and WebSocket upgrades from non-endpoint ranges
Longer-term hardening
- Rebuild potentially compromised appliances from a clean fully patched image and redeploy Jump Clients, Jumpoints and consoles
- Rotate credentials only after patching/rebuild: /appliance admin, /login users, API secrets, security-provider bind accounts, SAML signing keys, Vault, Password Safe/PRA, integration credentials, and anything typed into sessions during the exposure window
- Require SAML SSO with phishing-resistant MFA; keep one vaulted break-glass local account with alerting
- Set default Jump Item role to No Access and grant roles by policy; scope API accounts to minimum permissions
- Forward appliance syslog to a SIEM over TLS and alert on forwarding gaps bounded by a single session
- Default-deny outbound filtering from the appliance; place a reverse proxy/WAF with full URI logging in front
Affected and fixed versions
- BeyondTrust — Remote Support (formerly Bomgar)
Vulnerable versions: All supported versions through 26.2.3
Fixed in: Patch BT26-05-RS (self-hosted v24.3.1+); SaaS patched 2026-10-09
Timeline of ARMORY CASTLE BeyondTrust zero-day
Last updated · 10 updates · revalidated 10× · latest source
- locked-ioc-28 (formerly UNC5221) activity begins as early as October 2023, later including Ivanti zero-days CVE-2023-46805 and CVE-2024-21887 (day of month approximate; source states month only).
- Approximately 11 minutes after exploitation, POSTs to locked-ioc-21 stage the locked-ioc-36 webshell locked-ioc-29; actor then escalates to root via SUID locked-ioc-22, extracts Vault secrets with bt-secrets and installs locked-ioc-27 (date approximate).
- locked-ioc-28 exploits CVE-2026-102764 in BeyondTrust Remote Support as a zero-day in late August 2026 (exact day not stated in source; date approximate).
- Post-exploitation phase: locked-ioc-33 (locked-ioc-31) tunneler exposed via HAProxy path locked-ioc-30, appliance logs deleted, Jump Item roles elevated and remote sessions/file transfers used against internal endpoints (sequence per report; date approximate).
- Secondary reporting dates the observed zero-day exploitation of a self-hosted appliance (Mandiant engagement) to 2026-08-29; the primary GTIG source gives only 'late August'.
- A similar vulnerability is disclosed in another vendor's security device, prompting BeyondTrust to investigate its own product (per The Hacker News).
- BeyondTrust identifies the security defect in Remote Support, one day after related exploitation against a security device provider became public (per the newer report).
- Threat hunt identifies further locked-ioc-28 activity on a hosted Remote Support instance; containment reported 27 minutes after detection (per secondary reporting).
- Mandiant shares findings from the compromised self-hosted customer with BeyondTrust.
- BeyondTrust produces a patch for CVE-2026-102764; the fix (BT26-05-RS) is released to self-hosted customers on 2026-10-08.
- BeyondTrust releases advisory BT26-05 and patch BT26-05-RS for Remote Support, plus a precautionary patch for Privileged Remote Access (per secondary reporting).
- BeyondTrust patches Remote Support SaaS tenants for CVE-2026-102764.
- GTIG/Mandiant publish analysis; BeyondTrust advisory BT26-05 and NVD entry for CVE-2026-102764 published; patch BT26-05-RS available for self-hosted v24.3.1+.
- CISA adds CVE-2026-102764 to the Known Exploited Vulnerabilities Catalog (alert cites BOD 26-04; the alert itself names no actor and lists no IOCs). The Canadian Cyber Centre issues advisory AL26-025.
- BleepingComputer reports Shadowserver tracks more than 1,400 exposed BeyondTrust Remote Support instances; the number compromised is unknown.
- CISA KEV remediation deadline for U.S. federal agencies for CVE-2026-102764.
- HKCERT publishes a bulletin confirming in-the-wild exploitation and urging upgrade past 26.2.3.
- Rapid7 publishes root-cause analysis and the Metasploit module locked-ioc-12 (PHP and Unix command targets), creating a public PoC.
- Previdian-sourced reporting (Cyber Security News) describes POST locked-ioc-24 probes from a Hong Kong IP against two decoy appliances (US and Europe); traffic resembled but did not exactly match a Metasploit module and no successful exploitation was observed.
Update history
- 2026-11-02 — Critical BeyondTrust Remote Support Authentication Bypass (CVE-2026-102764) Exploited as Zero-Day by locked-ioc-28 (UNC5221); Fresh Exploitation Probes Observed: What changed No field escalation: severity (CRITICAL), exploitability (ACTIVE) and status (ACTIVE) already at the maximum values. Added fresh-probing activity reported 2026-11-02. New indicators (1) Indicator values are withheld at this acc
- 2026-10-30 — CVE-2026-102764: Unauthenticated File Upload to RCE in BeyondTrust Remote Support (Exploited as Zero-Day by locked-ioc-28): What changed No whitelisted field escalation: severity (CRITICAL), exploitability (ACTIVE) and status (ACTIVE) are already at their maximum. The material change is that a public proof of concept now exists (Rapid7 analysis and Metasploit mo
- 2026-10-17 — locked-ioc-28 (UNC5221) exploits BeyondTrust Remote Support zero-day CVE-2026-102764 (origin validation / authentication bypass) to deploy locked-ioc-36 web shell and locked-ioc-33 tunneler: What changed No field escalations. Severity (CRITICAL), exploitability (ACTIVE), status (ACTIVE) and CVSS 9.3 are unchanged. The report's MEDIUM attribution confidence is lower than the existing HIGH and is not applied, since downgrades are
- 2026-10-16 — CISA KEV Adds Fortinet Path Traversal (CVE-2025-61624) and BeyondTrust Remote Support Authentication Bypass (CVE-2026-102764) — locked-ioc-28 Zero-Day Exploitation: What changed No field escalation. Severity (CRITICAL) and exploitability (ACTIVE) are already at maximum. CISA KEV listing is added as a new authoritative confirmation of in-the-wild exploitation. New timeline 2026-10-16 CISA KEV addition o
- 2026-10-16 — CVE-2026-102764: BeyondTrust Remote Support Zero-Day Exploited by China-Linked locked-ioc-28: What changed No severity, exploitability, status or CVSS change. CRITICAL / ACTIVE / 9.3 already match the existing record. New indicators (3) Indicator values are withheld at this access level. New CVEs (1) CVE-2023-4966 (Citrix NetScaler)
- 2026-10-16 — BeyondTrust Remote Support Zero-Day (CVE-2026-102764) Exploited by locked-ioc-28 (UNC5221) with locked-ioc-36 Web Shell, locked-ioc-33 Tunneler and Security Log Erasure: What changed No field escalations. The newer report restates the existing facts and adds supplementary detail. New indicators (3) Indicator values are withheld at this access level. New MITRE (2) T1090.001 (Internal Proxy) and T1584.008 (Co
- 2026-10-16 — Chinese APT locked-ioc-28 (UNC5221 / Warp Panda) Exploited BeyondTrust Remote Support Zero-Day CVE-2026-102764 to Deploy locked-ioc-36 Webshell and locked-ioc-33 Tunneler: What changed No change to severity (CRITICAL), exploitability (ACTIVE), status or CVSS (9.3). Record is enriched with vendor-side timeline detail, command-level IOCs and ATT&CK coverage. New indicators (3) Indicator values are withheld at t
- 2026-10-16 — BeyondTrust Remote Support 0-Day (CVE-2026-102764) Exploited Since August 2026 by locked-ioc-28 (UNC5221 / WARP PANDA) for Root Access: What changed No severity, exploitability, status or CVSS change; existing values (CRITICAL / ACTIVE / 9.3) already match the newer report. New indicators (1) Indicator values are withheld at this access level. New CVEs (1) CVE-2025-0282 (Iv
- 2026-10-16 — China-Linked locked-ioc-28 (UNC5221) Exploited BeyondTrust Remote Support Zero-Day (CVE-2026-102764) to Deploy locked-ioc-36 Web Shell and locked-ioc-33 Tunneler: What changed No severity, exploitability, status, CVSS or attribution change; both records already show CRITICAL / ACTIVE / HIGH confidence. New indicators (3) Indicator values are withheld at this access level. New timeline Exploitation st
- 2026-10-16 — BeyondTrust Remote Support authentication bypass / file-upload zero-day (CVE-2026-102764) exploited since late August 2026 by locked-ioc-28 (locked-ioc-36 web shell, locked-ioc-33 tunneler): What changed No field escalations. Existing severity (CRITICAL), exploitability (ACTIVE), status (ACTIVE) already match or exceed the newer report. New indicators (4) Indicator values are withheld at this access level. New MITRE (2) T1090 P
Sources cited for ARMORY CASTLE BeyondTrust zero-day
- BeyondTrust Security Advisory BT26-05 beyondtrust.com · Advisory · 2026-10-15
- NVD: CVE-2026-102764 NVD (NIST) · Advisory · 2026-10-15
- ARMORY CASTLE Exploits BeyondTrust (Google Threat Intelligence Group / Mandiant) Google Cloud · Research · 2026-10-15
- BeyondTrust Blog: BT26-05 beyondtrust.com · Vendor report · 2026-10-15
- GTI VirusTotal Collection for ARMORY CASTLE BeyondTrust activity virustotal.com · Research · 2026-10-15
- BeyondTrust Remote Support Two-Factor Authentication documentation docs.beyondtrust.com · Vendor report
- Mandiant: China-nexus exploiting critical Ivanti vulnerability (prior ARMORY CASTLE/UNC5221 activity) Google Cloud · Research
- Mandiant: Ivanti Connect Secure VPN zero-day (CVE-2023-46805, CVE-2024-21887) Google Cloud · Research
Other reports on CVE-2023-46805
- Operation Escaneo: MexicanMafia (PanchoVilla) Intrusion Campaign Against Mexican Government Agencies and Latin American Financial Institutions
- ClingSTUN Linux Backdoor Turns Unpatched IoT Devices Into Proxy Nodes via Public STUN Infrastructure
- Cling IoT botnet masquerades as Google STUN traffic for C2, exploiting Realtek Jungle SDK CVE-2021-35394
- Nation-State Intrusions into Telecom Infrastructure via SS7, BGP Hijacking, and Router Compromise (Salt Typhoon)
- DragonForce Ransomware Attack on RubberMill, Inc. — ~340GB Data Exfiltration Including PII, Credentials, CAD Files with Defense Mil-Spec References
- Sen. Wyden Urges Binding Federal Mandate to Purge Internet-Facing Legacy VPNs for Zero-Trust Remote Access
Previous and next in vulnerability
Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated .