CVE-2026-102764: BeyondTrust Remote Support Zero-Day Exploited by Armory Castle to Deploy SAWFLY & BARECLAW

CVE-2026-102764 BeyondTrust Remote Support Zero-Day Armory Castle SAWFLY BARECLAW
📌
Security Roundup Series: Weekend of October 19, 2026 • 6 min read deep dive
🚨
Vulnerability Intelligence: CVE ID: CVE-2026-102764 (CWE-346 / CWE-290 (Origin Validation Error / Authentication Bypass by Spoofing)) Severity: CRITICAL (CVSS 9.3) Threat Actor: Armory Castle (UNC5221 / Warp Panda - China-Nexus Espionage) Status: Actively Exploited Zero-Day since Aug 29, 2026; Added to CISA KEV Oct 16, 2026 Affected Systems: BeyondTrust Remote Support (RS) versions <= 26.2.3 (Self-Hosted & Cloud Appliances) Fixed In: BeyondTrust Remote Support 26.2.4+ (Advisory BT26-05)

Enterprise remote access appliances remain the premier initial access vector for state-sponsored cyberespionage. Over the weekend, BeyondTrust (via Security Advisory BT26-05), in coordination with Mandiant and the Google Threat Intelligence Group (GTIG), disclosed CVE-2026-102764—a critical CVSS 9.3 authentication bypass and message origin-validation flaw in BeyondTrust Remote Support (formerly Bomgar). Threat intelligence investigators revealed that a sophisticated China-nexus threat group tracked as Armory Castle (formerly UNC5221) has actively exploited this vulnerability as a zero-day since at least August 29, 2026, compromising edge appliances to deploy the custom SAWFLY web shell and BARECLAW network tunneler. Recognizing the severity of active exploitation, CISA added CVE-2026-102764 to the Known Exploited Vulnerabilities (KEV) catalog on October 16, 2026.

Architectural Root Cause: IPC Origin Spoofing in Remote Support

BeyondTrust Remote Support appliances broker privileged support sessions across enterprise firewalls using an internal multi-daemon architecture. External client and representative connections terminate on the front-end reverse proxy and TLS multiplexer before being routed to internal management and session broker daemons over local domain sockets and internal message queues.

The root cause of CVE-2026-102764 (classified under CWE-346, Origin Validation Error, and CWE-290, Authentication Bypass by Spoofing) lies in how an internal request dispatcher validates the origin of inter-component control messages. Under specific protocol framing conditions on the public web interface, an unauthenticated remote attacker can craft a multiplexed WebSocket or HTTP upgrade request containing forged internal origin headers and serialized IPC routing metadata.

POST /get_portal_info HTTP/1.1
Host: support.target-enterprise.com
Upgrade: ns-ipc-relay
Connection: Upgrade
X-Bt-Internal-Origin: 127.0.0.1:4432
X-Bt-Component-Auth: IPC_TRUSTED_STORAGE_DAEMON
Content-Type: application/octet-stream
Content-Length: 412

[ Crafted Protobuf / Serialized File-Operation IPC Frame ]
  -> op_code: OP_FILE_WRITE_SYNC (0x14)
  -> target_path: "/var/bomgar/www/ns-api-health.php"
  -> file_mode: 0755

Because the backend file-operation worker trusted the spoofed origin state without verifying a cryptographic HMAC signature or enforcing strict peer socket credential checks (SO_PEERCRED), the unauthenticated external payload is treated as an authorized internal appliance maintenance command. This grants the attacker arbitrary file read, write, and move primitives on the underlying appliance filesystem.

Post-Exploitation Kill Chain: Root Escalation, SAWFLY, and BARECLAW

According to Mandiant and GTIG forensic telemetry, Armory Castle executed a disciplined, multi-stage post-exploitation playbook immediately following initial exploitation:

[1. Initial Access]  ---> Spoofed IPC Frame via CVE-2026-102764 (Unauthenticated)
        |
[2. Web Shell Drop]  ---> Writes "SAWFLY" in-memory/PHP web shell into appliance webroot
        |
[3. Root Escalation] ---> Abuses local sudoers / setuid appliance helper binary for UID 0 (root)
        |
[4. Anti-Forensics]  ---> Truncates /var/log/messages, wtmp, and appliance audit SQLite tables
        |
[5. Lateral Pivot]   ---> Deploys "BARECLAW" ELF tunneler & dumps Jump Client credentials

Inside the SAWFLY Web Shell & BARECLAW Tunneler

  • SAWFLY (Stealth Persistence Web Shell): Blended directly into legitimate BeyondTrust PHP/CGI portal scripts, SAWFLY only activates when an incoming HTTP request contains a specific RC4-encrypted cookie header and matching User-Agent string. It executes commands in memory via anonymous pipes, avoiding creation of temporary shell artifacts on disk.
  • BARECLAW (Multiplexed SOCKS5 / Port-Forwarding Tunneler): A lightweight C/C++ ELF binary masquerading as an internal appliance worker daemon (e.g., /usr/local/bomgar/bin/bg-syncd). BARECLAW hooks into existing outbound HTTPS port 443 traffic or piggybacks on legitimate Remote Support session channels to provide Armory Castle operators with a transparent SOCKS5 proxy directly into the victim’s internal Active Directory and Jump Client subnets.
  • Jump Client Credential Harvesting: Because BeyondTrust Remote Support stores unattended "Jump Client" certificates and vaulted administrative credentials for internal servers, gaining root on the appliance allowed Armory Castle to extract encrypted credential blobs and pivot silently onto domain controllers without triggering endpoint exploit alerts.

Detection Telemetry & Threat Hunting

🔍
YARA & Forensic Hunting Rules for SAWFLY, BARECLAW & Log Tampering rule APT_ArmoryCastle_BARECLAW_Tunneler_Oct2026 { meta: description = "Detects BARECLAW ELF tunneler deployed on BeyondTrust appliances via CVE-2026-102764" author = "ColibriSec Threat Intelligence" cve = "CVE-2026-102764" date = "2026-10-19" strings: $elf = { 7f 45 4c 46 } $s1 = "bg_ipc_tunnel_mux_init" ascii $s2 = "/dev/shm/.bt_sock_lock" ascii $s3 = " socks5_relay_frame_err" ascii $rc4_init = { 48 89 ?? 31 c0 88 04 07 48 ff c0 48 3d 00 01 00 00 75 f2 } condition: $elf at 0 and (2 of ($s*) or (1 of ($s*) and $rc4_init)) }

Defenders should also run the following live forensic verification commands on self-hosted BeyondTrust Linux appliances (or forensic disk images) to detect unauthorized webroot modifications and log truncation:

# 1. Hunt for modified or newly created scripts in BeyondTrust web directories over the past 60 days
find /var/bomgar /usr/local/bomgar -type f \( -name "*.php" -o -name "*.cgi" -o -name "*.pl" \) -mtime -60 -ls

# 2. Identify masquerading BARECLAW ELF binaries running from unlinked file descriptors or /dev/shm
ls -la /proc/*/exe 2>/dev/null | grep -E "deleted|/dev/shm|/tmp"

# 3. Check for suspicious zero-byte or abruptly truncated audit and syslog files
find /var/log -type f -size 0 -ls

Remediation & Hardening Directives

  1. Immediate Appliance Patching: While BeyondTrust automatically patched cloud/SaaS instances by October 8, 2026, all organizations running self-hosted physical or virtual BeyondTrust Remote Support appliances must apply the 26.2.4 (or BT26-05 patch) update immediately.
  2. Assume Breach if Unpatched Since August 29: Because Armory Castle systematically deleted local logs post-exploitation, absence of log evidence does not equal absence of compromise. Rebuild exposed appliances from clean golden images if any anomalous netflow from the appliance to internal Tier-0 assets occurred after August 29, 2026.
  3. Rotate Vaulted Credentials & Jump Client Keys: Revoke and rotate all Active Directory service accounts, SSH keys, and Jump Client enrollment tokens stored on the BeyondTrust appliance.

Read more

Guía de Defensa para CISOs del 9 de Noviembre de 2026 SonicWall KEV OpenSSH sshhole Linux TCP APT Keycloak Sandboxes de IA y Cadena de Frío OT

Guía de Defensa para CISOs del 9 de Noviembre de 2026: Blindaje de SonicOS SAML SSL-VPN, OpenSSH 10.6p2, Kernel Linux/APT, Keycloak/ForgeRock, IA y OT

📌Security Roundup Series: Fin de Semana del 9 de Noviembre de 2026 • 7 min de lectura deep dive🛡️Vulnerability Intelligence: CVE ID: CVE-2026-19868, CVE-2026-123158, CVE-2026-98432, CVE-2026-98276, CVE-2026-109518, CVE-2026-117691 y CVE-2026-123614 (Defensa Multicapa en Firewalls, OpenSSH Alpine, Kernel Linux/APT, SSO, Sandboxes de IA y Cadena de Frío OT) Severity: MANUAL

By James Luther
Reclamo de Extorsión de N0N contra Expedia, Investigación de 10M en el BIR de Filipinas, Iris Ohyama 7.7M, UChicago CS y Antonio Tajani

Extorsión Global, Fisco y Universidades: Reclamo de "N0N" contra Expedia, Investigación de 10M en el BIR de Filipinas, Iris Ohyama, UChicago CS y Canciller Tajani

📌Security Roundup Series: Fin de Semana del 9 de Noviembre de 2026 • 7 min de lectura deep dive🏛️RASTREADOR GLOBAL DE BRECHAS Y EXTORSIÓN (6 AL 9 DE NOVIEMBRE DE 2026) Análisis de cinco incidentes del fin de semana en el sector turístico, administración tributaria nacional, comercio electrónico en la

By James Luther