Skip to content
← 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

  1. 01
    Drop encryptor bash scriptImpact
    T1486Data Encrypted for Impact
  2. 02
    Ransom note in vSphere login screenImpact
    T1490Inhibit System Recovery
  3. 03
    Root shell on ESXiExecution
    T1059Command and Scripting Interpreter
  4. 04
    Shodan: port:427 vmware:esxiReconnaissance
    W-RECON-API-DISCOAPI Endpoint Discovery
  5. 05
    OpenSLP heap overflowInitial Access
    HV-ESXI-SLPESXi OpenSLP Unauth RCE (CVE-2021-21974)
  6. 06
    Mass-encrypt .vmdk in /vmfs/volumesImpact
    HV-ESXI-RANSOMESXi 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