Hackers Exploit BeyondTrust Zero-Day to Establish Persistent Root Access and Target Credentials

Hackers linked to a suspected Chinese espionage group exploited a BeyondTrust Remote Support zero-day to gain persistent root access and target stored credentials.

Mandiant identified attacks beginning in late August 2026, weeks before BeyondTrust disclosed CVE-2026-102764 on October 15. The vulnerability affects supported Remote Support versions through 26.2.3 and allows unauthenticated attackers to upload files.

Remote Support, formerly Bomgar, helps IT teams troubleshoot endpoints. Compromising this trusted platform can expose credentials and provide routes into connected systems.

Google Threat Intelligence Group attributed the activity to ARMORY CASTLE, previously tracked as UNC5221. Researchers warned that public disclosure could trigger wider exploitation, based on the group’s history of targeting vulnerable edge appliances.

Hackers Exploit BeyondTrust Zero-Day

Following exploitation, attackers sent POST requests to /app_84304470%2Ephp. Mandiant could not recover the associated file. Around 11 minutes later, the SAWFLY webshell appeared in the appliance’s web directory as mangoapi.php.

SAWFLY uses custom Base32 encoding and RC4 encryption to exchange commands and results. It checks requests for the _c94mfe parameter and returns HTTP 404 when that parameter is missing, helping conceal its presence from scanners. Valid requests deliver encrypted PHP code for execution.

The attackers also created /usr/bin/dbus-authd from the system shell, assigned root ownership, and enabled SUID permissions. This provided a reusable route to root privileges.

For longer persistence, they deployed a startup script named zz-root-persist that modified /ns/config/sudoers.template, granting the service account passwordless administrative access.

ARMORY CASTLE BeyondTrust compromise sequence of events (Source: google cloud)
ARMORY CASTLE BeyondTrust compromise sequence of events (Source: google cloud)

Rebuilding the active configuration allowed those permissions to survive reboots and configuration resets. Mandiant observed attempts to extract passwords, API keys, and endpoint credentials using BeyondTrust’s native bt-secrets utility.

The attackers tried several vault queries before deleting related logs. Researchers described attempted credential harvesting, rather than confirming that every stored secret was successfully stolen.

Using compromised administrator credentials, the attackers raised Jump Item and Team permissions to Administrator.

They then opened remote support sessions and used file transfers to steal internal documents, including software inventories useful for reconnaissance.

ARMORY CASTLE deployed BARECLAW, a custom C-based SOCKS5 tunneler carried over WebSocket connections.

The observed deployment used port 19800 and the /uidchanarge endpoint, with token authentication, XOR-based traffic obfuscation, and logging disabled. TLS was not enabled in that instance.

Modified HAProxy rules routed matching internet requests to the tunneler. BeyondTrust patched SaaS tenants on October 9.

Self-hosted customers running version 24.3.1 or later should apply BT26-05-RS, while older installations require an upgrade followed by patching. Patching does not remove existing attacker persistence.

Mandiant advises treating exposed vulnerable appliances as potentially compromised. Organizations should preserve forensic evidence before changes or reboots, isolate suspected systems, and rebuild compromised appliances from clean, patched images, google cloud said.

Indicators of Compromise

CategoryIndicatorDescription
File / request pathapp_84304470%2EphpSuspected staging webshell requested after exploitation; file not recovered.
Filenamemangoapi.phpSAWFLY PHP

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

Varshini
Varshini
Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies..

Trending News

Related Stories