Storage & Virtualization

Ransomware on VMware ESXi: Attack Paths, First Response and Recovery

Ransomware Reverse Editorial TeamLast technical review: 10 min read

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.[1] Microsoft describes encrypting the hypervisor file system as "one-click mass encryption", because every hosted VM is affected at once. On top of that, many security products have limited visibility and protection on ESXi.[4] According to Microsoft, the number of Microsoft Incident Response engagements involving the targeting and impact of ESXi hypervisors more than doubled over three years.[4]

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.[5]

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.[3] The most common routes to the hypervisor fall into four groups.

How attackers reach ESXi – and what gets encryptedWays in: Exposed, unpatched management services, e.g. ESXiArgs 2023; Stolen admin credentials, e.g. after VPN access without MFA; AD group "ESX Admins", CVE-2024-37085 on domain-joined hosts; ESXi Shell or SSH enabled, disabled by default. Target in the data centre: vCenter / ESXi host, manages all VMs → Datastore (VMFS), stores the VM files → VM files, .vmx (configuration), .vmdk and -flat.vmdk (virtual disks). Many VMs go down at once. Controls: Patch, isolate the management network; MFA, dedicated admin accounts; Review AD integration; Keep Shell and SSH disabled. Ways inTarget in the data centreControlsExposed, unpatched management servicese.g. ESXiArgs 2023Patch, isolate the managementnetworkStolen admin credentialse.g. after VPN access without MFAMFA, dedicated admin accountsAD group "ESX Admins"CVE-2024-37085 on domain-joined hostsReview AD integrationESXi Shell or SSH enableddisabled by defaultKeep Shell and SSH disabledvCenter / ESXi hostmanages all VMsDatastore (VMFS)stores the VM filesVM files.vmx (configuration), .vmdkand -flat.vmdk (virtualdisks)Many VMs go down at once © 2026 ransomware-reverse.de
How attackers reach ESXi – and what gets encryptedWays in: Exposed, unpatched management services, e.g. ESXiArgs 2023; Stolen admin credentials, e.g. after VPN access without MFA; AD group "ESX Admins", CVE-2024-37085 on domain-joined hosts; ESXi Shell or SSH enabled, disabled by default. Target in the data centre: vCenter / ESXi host, manages all VMs → Datastore (VMFS), stores the VM files → VM files, .vmx (configuration), .vmdk and -flat.vmdk (virtual disks). Many VMs go down at once. Controls: Patch, isolate the management network; MFA, dedicated admin accounts; Review AD integration; Keep Shell and SSH disabled. Ways inExposed, unpatched management servicese.g. ESXiArgs 2023Stolen admin credentialse.g. after VPN access without MFAAD group "ESX Admins"CVE-2024-37085 on domain-joined hostsESXi Shell or SSH enableddisabled by defaultvCenter / ESXi hostmanages all VMsDatastore (VMFS)stores the VM filesVM files.vmx (configuration), .vmdk and -flat.vmdk(virtual disks)Many VMs go down at onceControlsPatch, isolate the management networkMFA, dedicated admin accountsReview AD integrationKeep Shell and SSH disabled © 2026 ransomware-reverse.de
How attackers reach ESXi – and what gets encrypted. Ransomware on the hypervisor is usually the end of a longer attack chain. One compromised host can take down many virtual machines at once.

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.[3] CISA's recommendations included upgrading ESXi to the latest version, disabling the Service Location Protocol (SLP) service and making sure hypervisors are not exposed to the public internet.[2]

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.[5] Anyone who then obtains administrator credentials for vCenter or ESXi no longer needs a vulnerability at all.

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] How attackers take over Active Directory and how to win it back is covered in Ransomware and Active Directory.

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.[7]

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 pointPossible recovery pathPrerequisites and limits
Clean, unreachable backups availableRebuild hosts, restore VMs from backup into a verified environmentBackups 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 filesOnly works if the disk data really is unencrypted[2]
VMDK files partially encryptedReconstruct unencrypted regions and guest file systemsDepends on family, variant and encryption pattern; work on copies only
VMDK files fully encrypted, no backupCheck for available decryptors; analyze snapshots, older states and the storage layerSeverely limited without the key; no guaranteed outcome
Datastore deleted or reformattedReconstruct VMFS metadata from images of the LUN or disksEvery 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.[2] According to VMware, the script was developed in conjunction with VMware but is not directly supported by VMware.[3]

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.[3]

Patch and run supported versions

VMware recommends running supported versions only and applying updates promptly.[3] CISA advises keeping all hypervisors and associated network and storage components up to date.[1] Following the CVE-2024-37085 attacks, Microsoft likewise recommends installing VMware's security updates.[4]

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.[3] CISA recommends network segmentation to limit the spread of ransomware and restrict lateral movement.[5]

MFA and permissions

VMware lists multifactor authentication and good authorization practices as baseline recommendations.[3] CISA calls for MFA particularly for VPNs, webmail and accounts that access critical systems.[5] Microsoft recommends isolating privileged accounts from productivity accounts and identifying and protecting ESXi hosts and vCenter as critical assets.[4]

Lockdown mode, shell and SSH

VMware documentation lists lockdown mode and restricting the ESXi Shell as measures for a more secure environment.[6] Lockdown mode restricts direct access to the host, so management normally runs through vCenter. One important caveat: according to VMware, the ESXi Shell is independent of lockdown mode – if it is enabled, you can still log in even with lockdown mode active. Keep the shell and SSH disabled and, when they are needed, enable them with availability and idle timeouts.[7]

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.[4]

Hardening checklist

MeasureGoal
Current, supported ESXi and vCenter versionsClose known vulnerabilities
Disable unneeded services such as SLPReduce attack surface[2]
Dedicated management network, no internet exposureLimit what attackers can reach
MFA for vCenter, VPN and admin accessMake stolen passwords worthless
Lockdown mode on, shell and SSH disabledRestrict direct host access
Separate admin accounts, monitored AD groupsMake domain-based takeover harder
ESXi and vCenter logs in the SIEMDetect attacks earlier
Backups separated from vCenter credentialsProtect 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

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

Read next

Sources and further reading

  1. [1]CISA – #StopRansomware Guide cisa.gov
  2. [2]CISA – AA23-039A: ESXiArgs Ransomware Virtual Machine Recovery Guidance cisa.gov
  3. [3]VMware – ESXiArgs: Questions & Answers vmware.com
  4. [4]Microsoft Security Blog – Ransomware operators exploit ESXi hypervisor vulnerability for mass encryption microsoft.com
  5. [5]CISA – AA24-109A: #StopRansomware: Akira Ransomware cisa.gov
  6. [6]Broadcom TechDocs – vSphere Security: Securing ESXi Hosts techdocs.broadcom.com
  7. [7]Broadcom TechDocs – vSphere Security: Using the ESXi Shell techdocs.broadcom.com