# Ransomware at the hypervisor layer: how attackers use ESXi and vCenter features for malicious purposes

BlackNevas abused vCenter Host Profiles to enable TSM-SSH on ESXi hosts, then SFTP-staged an ESXi wiper that destroyed VMs and backups.

- Payout: Real-world hack
- Severity: critical
- Program: VMware
- Analysis by: Elsayed Elrefaei, Mohamed Ghobashy
- Disclosed: 2026-11-13
- Write-up quality: 8/10
- Original: https://securelist.com/esxi-ransomware/121959/
- Library page: https://bugbountylibrary.com/r/blog%3Asecurelist-com-esxi-ransomware-121959
- Tags: area:cloud domain:infra impact:data-leak impact:dos impact:funds-loss kind:incident platform:threat-intel sev:critical tech:linux technique:chained vuln:misconfiguration vuln:privilege-escalation vuln:secrets-leak

**Target:** vCenter Server Appliance and ESXi hosts
**Root cause:** Every action taken against ESXi was executed through legitimate VMware management interfaces; compromised vCenter authority let attackers reconfigure host security state via Host Profiles and SSH in from a trusted management IP.
**Steps:**
1. Compromise vCenter appliance via SSH as root using credentials harvested from non-virtualization systems; deploy MeshAgent; roughly four hours later install a Ligolo-ng systemd unit (`/etc/systemd/system/vmware-vdma.service`) for persistence.
2. Use vCenter Host Profile workflow to read host configuration (`vpxa.log`).
3. Push Host Profile change setting TSM-SSH service state to enabled; TSM-SSH reaches RUNNING ~33s after the push (T+10m51s).
4. SSH directly to ESXi hosts from the vCenter appliance IP.
5. SFTP-stage payload to `/tmp/esx64`; run `chmod +x /tmp/esx64`.
6. Run `./tmp/esx64 /selftest` (~16s) roughly three hours before detonation.
7. Detonate: `./tmp/esx64 /p /vmfs/ /depth 5 /wipe /allsys /detach /-showvolumes`.
8. Prior to detonation, disable AV on backup infrastructure days before, then stop backup services and encrypt recovery infrastructure.
**How found:** Incident response reconstruction from ESXi and vCenter telemetry: correlating vpxa.log Host Profile reads/pushes with vobd.log TSM-SSH RUNNING state, auth.log FlowSsh client identifier, shell.log command sequence, and vmksummary.log VM count dropping to zero within 23 seconds.
**Exploitation:** After ten days of dwell time, attackers used harvested credentials to root the vCenter appliance, established MeshAgent and Ligolo-ng persistence, then leveraged vCenter's Host Profile authority to flip TSM-SSH to RUNNING on four ESXi hosts and SSH in from the trusted vCenter IP. They staged an ESXi wiper over SFTP, self-tested it, then ran it against /vmfs with /wipe /allsys /detach, overwriting the first ~2KB of VMDKs and dropping ._wipe artifacts across datastores. Backup infrastructure was neutralized first (AV disabled, services stopped, recovery encrypted) to block restoration.
**Escalation:** Compromised backup infrastructure credentials bridged to vCenter; vCenter control converted a compliance mechanism into host access, scaling impact from one appliance to four hosts, all their VMs, both VCSAs, and backup systems.
**Insight:** Centrally administered hardening (Host Profiles) is not an independent control once the management plane is compromised: hunt for Host Profile remediation that flips TSM/TSM-SSH to RUNNING outside change windows, followed within minutes by SSH from the vCenter IP. Also fingerprint automated SSH tooling via repeated `true`-only channel probes preceding chmod/exec.

## Proof of concept (copied exactly from the original report)

**ESXi detonation command with wipe parameters**

```
./tmp/esx64 /p /vmfs/ /depth 5 /wipe /allsys /detach /-showvolumes
```

**Malicious systemd unit for Ligolo-ng persistence**

```
Unit file /etc/systemd/system/vmware-vdma.service
Service vmware-vdma
Description "DNS, time, VM settings sync (v2.03.24766)"
ExecStart /opt/vmware/bin/agent
Restart always

Strings in /opt/vmware/bin/agent:
 Ligolo-ng v0.8.2
 api.cloudvflare[.]com:443
```

**Correlation logic for Host Profile abuse detection**

```
IF host_profile_remediation changes service in {TSM, TSM-SSH}
AND service_state becomes <code>RUNNING</code> within 5 minutes
AND no approved change window exists
THEN raise HIGH severity;

IF SSH session to same ESXi host originates from vCenter or management appliance
within 15 minutes of the remediation
THEN escalate to CRITICAL and preserve auth.log, vpxa.log, vobd.log,
vCenter Events/Tasks and Host Profile state.
```

