← RegistryDossier · 6 steps · 5 edges
ESXiArgs — OpenSLP unauth RCE → ransomware
Internet-facing ESXi with SLP service on TCP/427 unpatched for CVE-2021-21974. Single ROP gadget chain yields root, then a small bash script encrypts every .vmdk on local datastores.
Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll
§ Context
Assumed environment: target left ESXi management ports reachable from the public internet. CVE-2021-21974 not patched (very common on legacy / unmanaged ESXi).
§ Steps
- 01Drop encryptor bash scriptImpactT1486— Data Encrypted for Impact
- 02Ransom note in vSphere login screenImpactT1490— Inhibit System Recovery
- 03Root shell on ESXiExecutionT1059— Command and Scripting Interpreter
- 04Shodan: port:427 vmware:esxiReconnaissanceW-RECON-API-DISCO— API Endpoint Discovery
- 05OpenSLP heap overflowInitial AccessHV-ESXI-SLP— ESXi OpenSLP Unauth RCE (CVE-2021-21974)
- 06Mass-encrypt .vmdk in /vmfs/volumesImpactHV-ESXI-RANSOM— ESXi Mass-Encrypt Ransomware
§ References
§ Frequently asked
- What is the "ESXiArgs — OpenSLP unauth RCE → ransomware" attack path?
- Internet-facing ESXi with SLP service on TCP/427 unpatched for CVE-2021-21974. Single ROP gadget chain yields root, then a small bash script encrypts every .vmdk on local datastores. It chains 6 steps drawn from real-world offensive-security techniques.
- What starting position does this attack require?
- The first step is Drop encryptor bash script (T1486) — a impact primitive. Assumed environment: target left ESXi management ports reachable from the public internet.
- What is the final impact of this kill-chain?
- The final step lands on Mass-encrypt .vmdk in /vmfs/volumes (HV-ESXI-RANSOM), which falls under Impact. From here, an operator typically pivots into post-exploitation or maintains persistence.
- How can defenders detect or prevent this attack?
- Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.
§ Related dossiers
- Shared techniques2
vCenter pre-auth RCE → root on every ESXi → mass encrypt
Pre-auth RCE on vCenter Server (DCERPC or vSphere Client class CVE). Deploy SSH key via vCenter to every managed ESXi, then mass-encrypt every .vmdk — the ESXiArgs / Black Basta playbook.
- Shared techniques2
Open MongoDB → dump every collection
Shodan-indexed MongoDB on 27017 with no auth. Connect, list databases, dump every collection. Often the second stage is a ransom note in a new 'README' collection.