ESXi hosts are a favorite ransomware target because one foothold on the hypervisor hits many virtual machines at once, and security tooling often has little visibility there. Typical entry points are unpatched, reachable management services, stolen credentials and Active Directory permissions. After an attack: isolate the host, do not reinstall or reformat anything, preserve evidence, and only then decide on a recovery path.
Key takeaways
- Never expose ESXi and vCenter management interfaces to the internet, and run them in a dedicated, tightly controlled network segment.
- Keep ESXi and vCenter on current, supported versions and disable services you do not need, such as SLP.
- Protect vCenter, VPN and admin access with MFA, and separate privileged accounts from everyday work accounts.
- On domain-joined hosts, review the AD group ESX Admins and keep ESXi Shell and SSH disabled except for troubleshooting.
- After an attack, check on copies which files were encrypted and how before using recovery scripts or repair tools.
Why ESXi is such an attractive target
The hypervisor is the foundation of most server estates. A single ESXi host often runs domain controllers, file servers, databases and line-of-business applications side by side. For attackers that is a shortcut: instead of encrypting dozens of Windows servers one by one, they encrypt the virtual machine files directly on the datastore.
CISA warns that ransomware actors have started targeting VMware ESXi servers, hypervisors and other centralized tools.
Several well-known groups ship dedicated ESXi encryptors. CISA describes, for example, an Akira variant called Akira_v2, written in Rust, which can target virtual machines exclusively via a vmonly option and halt running VMs with stopvm.
Typical attack paths to ESXi and vCenter
Ransomware on the hypervisor is almost never the first step of an attack but the end of a longer chain. VMware puts it this way: ransomware is the end stage of a breach that can unfold over months and may also involve data exfiltration and extortion.
1. Unpatched, reachable management services
The best-known example is the ESXiArgs campaign in early 2023. VMware found that the main victims were organizations running unpatched ESXi versions whose management interfaces were directly reachable by attackers. In VMware's assessment this was not a new vulnerability but flaws that had already been fixed; according to VMware, the specific CVE used was unknown at the time.
2. Stolen or weakly protected credentials
Attackers often first gain a foothold in the corporate network and then move toward management systems. For Akira, the FBI and security researchers observed initial access through VPN services without multifactor authentication.
3. Active Directory as a lever
When ESXi is joined to a Windows domain, Active Directory has a say in hypervisor permissions. In 2024 Microsoft described CVE-2024-37085: domain-joined ESXi hosts treated members of an AD group named "ESX Admins" as full administrators by default – even if that group was created only later. Several threat actors abused this before deploying Akira or Black Basta.
4. Shell and SSH access
If the ESXi Shell or SSH is enabled, attackers with valid credentials can run commands directly on the host. According to VMware documentation, the ESXi Shell – both local and SSH access – is deactivated by default and should only be activated for troubleshooting.
First response when the hypervisor is hit
In an emergency, a calm, clear sequence matters. The steps below do not replace professional incident response, but they help avoid closing off options in the first phase.
- Isolate the management network: Disconnect ESXi hosts and vCenter from the rest of the network, especially from the internet and user networks. CISA recommends removing connectivity for affected servers.
[2] - Power off only after weighing it up: If a system cannot be disconnected, CISA advises powering it down to prevent further spread.
[1] Powering off, however, destroys volatile evidence in memory. This call belongs with the incident responders. - Do not reinstall or reformat: No ESXi reinstall on the same disks, no new datastores, no deleting of encrypted files.
- Document the current state: Screenshots from the vSphere Client and Host Client, a list of affected VMs, file extensions and ransom notes, the time of the first anomaly.
- Preserve logs: Export ESXi and vCenter logs and any SIEM data before they rotate or get overwritten.
- Treat credentials as compromised: root passwords, vCenter administrators and service accounts get reset – but only once the attacker no longer has active access, and from a clean system.
- Communicate outside the affected infrastructure: CISA recommends out-of-band communication such as phone calls so attackers cannot listen in.
[1] - Protect backups: Disconnect backup servers and repositories from the production network immediately and check whether they are affected themselves.
Recovery paths after an ESXi attack
Which route leads back to operations depends on what was encrypted and which clean copies exist. Make that decision only once the attack path and scope are roughly understood.
| Starting point | Possible recovery path | Prerequisites and limits |
|---|---|---|
| Clean, unreachable backups available | Rebuild hosts, restore VMs from backup into a verified environment | Backups must predate the compromise and be integrity-checked; the attack path must be closed |
| Only configuration files encrypted (ESXiArgs-style pattern) | Regenerate VM configuration based on unencrypted flat files | Only works if the disk data really is unencrypted |
| VMDK files partially encrypted | Reconstruct unencrypted regions and guest file systems | Depends on family, variant and encryption pattern; work on copies only |
| VMDK files fully encrypted, no backup | Check for available decryptors; analyze snapshots, older states and the storage layer | Severely limited without the key; no guaranteed outcome |
| Datastore deleted or reformatted | Reconstruct VMFS metadata from images of the LUN or disks | Every further write reduces the chances |
The ESXiArgs example: why the damage pattern matters
According to CISA, ESXiArgs encrypted configuration files such as .vmx, .vmxf, .vmsd, .nvram and the VMDK descriptor files, but not the large flat files containing the actual disk contents. Building on this, CISA released a script that does not delete the encrypted files but creates new configuration files through which the VMs become accessible again.
The example illustrates a basic principle: before deciding on recovery, verify on copies which files were encrypted and how. A tool that fits one damage pattern can be useless or even harmful for another. Whether a decryptor exists for a specific family can be checked in the ransomware database and on the ransomware decryption page.
When there are no clean backups
Without usable backups, technical reconstruction remains. It starts from images of the affected disks or LUNs and works its way up from VMFS through the VMDK files to guest file systems and databases. The details and limits are covered in Ransomware on servers, NAS, RAID or VMware and Decryption vs. data recovery.
Hardening ESXi and vCenter against ransomware
After the restart – and ideally long before – the goal is to shrink the hypervisor's attack surface. VMware stresses that no single change stops ransomware and that only a layered, defense-in-depth approach works.
Patch and run supported versions
VMware recommends running supported versions only and applying updates promptly.
Segment the management network
ESXi and vCenter management interfaces belong in a dedicated, tightly controlled network segment – not on the internet and not in user networks. VMware advises tightly controlling access to IT infrastructure management interfaces.
MFA and permissions
VMware lists multifactor authentication and good authorization practices as baseline recommendations.
Lockdown mode, shell and SSH
VMware documentation lists lockdown mode and restricting the ESXi Shell as measures for a more secure environment.
Review AD integration critically
If you join ESXi to the domain, define and monitor the hypervisor administrator group deliberately. Among other things, Microsoft recommends validating and hardening the "ESX Admins" group, changing the admin group in the ESXi settings where appropriate and forwarding ESXi logs to a SIEM.
Hardening checklist
| Measure | Goal |
|---|---|
| Current, supported ESXi and vCenter versions | Close known vulnerabilities |
| Disable unneeded services such as SLP | Reduce attack surface |
| Dedicated management network, no internet exposure | Limit what attackers can reach |
| MFA for vCenter, VPN and admin access | Make stolen passwords worthless |
| Lockdown mode on, shell and SSH disabled | Restrict direct host access |
| Separate admin accounts, monitored AD groups | Make domain-based takeover harder |
| ESXi and vCenter logs in the SIEM | Detect attacks earlier |
| Backups separated from vCenter credentials | Protect backups from deletion and encryption |
Backup fundamentals and restore testing are covered in Ransomware backup recovery; the strategic view is on the cyber resilience page.
Whether management networks are really separated and access is secured can be checked by an internal penetration test focused on vCenter and ESXi.
Incident response and data recovery in ESXi incidents
When the hypervisor is attacked, two workstreams run in parallel. Incident response establishes how the attackers reached the host, whether Active Directory, vCenter or backup systems are compromised and whether data was exfiltrated. Data recovery deals with encrypted VMDK files, datastores and the underlying storage. Other hypervisors have their own rules: see Hyper-V after ransomware and Proxmox VE after ransomware; if the backups were hit as well, Veeam backup after ransomware.
Both benefit from coordination: images created for data recovery can also serve forensics, and containment measures should be chosen so they do not destroy recoverable data. The overall process is described in The ransomware incident response process.
Which route fits your situation?
Conclusion
For ransomware groups, ESXi is a high-impact lever: one compromised hypervisor takes many systems down at once. The main entry points are well known – unpatched, reachable management services, stolen credentials without MFA and takeover via Active Directory. Separating management networks, patching consistently, keeping the shell and SSH disabled and protecting admin access with MFA make the attack considerably harder.
If it happens anyway, the first phase determines your options: isolate, document, overwrite nothing. Only once it is clear which files were encrypted and how the attackers got in should you choose the way back to normal operations.
Data recovery by system
- NAS Encrypted by Ransomware: Data Recovery for NAS Systems
- QNAP NAS Encrypted by Ransomware: Data Recovery and First Steps
- Synology NAS Encrypted by Ransomware: Data Recovery and First Steps
- Veeam Backups Encrypted or Deleted by Ransomware: What Can Still Be Recovered
- Hyper-V After Ransomware: Recovering Encrypted VHDX Files and VMs
- Proxmox VE after Ransomware: Recovering VMs, ZFS and Backups
- Recovering SQL Server, Exchange & Databases After Ransomware
- DATEV Data Encrypted by Ransomware: Recovery and First Steps
- Ransomware on Servers, NAS, RAID or VMware: What Can Be Recovered?
Frequently asked questions
Why do ransomware groups deliberately target ESXi hosts?
Whoever controls the hypervisor can encrypt or stop every virtual machine running on it in one move. Many security products also have limited visibility on ESXi. Microsoft therefore describes encrypting the hypervisor file system as one-click mass encryption.
Should I power off a compromised ESXi host?
It depends on the situation. If encryption is still running and the host cannot be disconnected from the network, powering off can prevent further damage. However, it destroys information in memory that may matter for forensics. Where possible, isolate first and coordinate the decision with incident responders.
Can I just reinstall ESXi and restore the VMs from backup?
Not on the same disks while it is still unclear whether data needs to be recovered from them. Reinstalling or recreating datastores can overwrite VMFS metadata and recoverable areas. You also need to understand how the attackers got in before restarting, otherwise you risk being encrypted again.
Does the CISA ESXiArgs script help with other ransomware families?
Not reliably. The script was built for the ESXiArgs damage pattern, in which configuration files were encrypted but the large flat files holding the disk contents were not. Other families behave differently. VMware recommends involving your incident response team before running any recovery step.
Is disabling SSH on ESXi enough?
No. Keeping the shell and SSH disabled reduces the attack surface, but it does not replace current patches, a protected management network, MFA for administrative access or clean permission management. VMware stresses that no single control reliably stops ransomware attacks.
What does Active Directory have to do with ESXi security?
When ESXi is joined to a domain, administrator rights on the hypervisor depend on AD groups. In 2024 Microsoft described attackers exploiting a vulnerability in which members of an AD group named ESX Admins received full rights on domain-joined hosts. Compromising AD can therefore mean taking over virtualization as well.
Are encrypted VMDK files lost for good?
Not necessarily. Depending on the family and configuration, only configuration files or only parts of large files are encrypted. Virtual disks or guest file systems can then be partially reconstructed. How much is possible only becomes clear after analyzing copies of the affected files.
Related ransomware profiles
- Akira
.akira - BlackBasta
.basta - Lockbit
.lockbit
Read next
Sources and further reading
- [1]CISA – #StopRansomware Guide cisa.gov
- [2]CISA – AA23-039A: ESXiArgs Ransomware Virtual Machine Recovery Guidance cisa.gov
- [3]VMware – ESXiArgs: Questions & Answers vmware.com
- [4]Microsoft Security Blog – Ransomware operators exploit ESXi hypervisor vulnerability for mass encryption microsoft.com
- [5]CISA – AA24-109A: #StopRansomware: Akira Ransomware cisa.gov
- [6]Broadcom TechDocs – vSphere Security: Securing ESXi Hosts techdocs.broadcom.com
- [7]Broadcom TechDocs – vSphere Security: Using the ESXi Shell techdocs.broadcom.com