An attacker with administrator access to vCenter or root on an ESXi host can stop and encrypt every virtual machine in a cluster, and most ESXi estates still run with default service, logging and authentication settings. ESXi has become a standard ransomware target, vCenter flaws have been exploited by espionage groups, and in 2025 Broadcom confirmed in-the-wild exploitation of a guest-to-host escape chain. This guide turns Broadcom's own Security Configuration and Hardening Guide into a prioritised programme: which settings matter most, how to separate vSphere administration from the corporate directory, how to patch, log and detect, and how to roll changes out safely. It is for vSphere administrators, infrastructure security engineers and incident responders. For the vendor-neutral view of the virtualisation layer, see the Hypervisor and Virtualisation Security Guide.
Key takeaways
- Use the current Broadcom baseline. VMware is now part of Broadcom, and the Security Configuration and Hardening Guide (SCG) is published on GitHub: the vSphere 8 kit was built on 8.0 Update 3, and from 9.0 vSphere guidance is part of the VMware Cloud Foundation SCG. Broadcom says to prefer its guidance where the CIS ESX 8.0 Benchmark conflicts.
- Three settings stop most hands-on-keyboard attacks. Normal lockdown mode, SSH and ESXi Shell stopped with a timeout, and
VMkernel.Boot.execInstalledOnlyset to true remove the direct-access and custom-binary paths ransomware operators rely on. - Do not let Active Directory own vSphere. CVE-2024-37085 gave full ESXi admin to anyone who could create an "ESX Admins" group, and help desk social engineering has handed vCenter to Scattered Spider. Use local SSO groups for authorisation and MFA on vCenter.
- Patch vCenter first, then hosts, as emergency changes. VMSA-2025-0004 (CVE-2025-22224, CVE-2025-22225, CVE-2025-22226) was exploited in the wild with no workaround, and several vCenter CVEs are in CISA's KEV catalogue.
- Logs must leave the host. Set
Syslog.global.logHost, enableSyslog.global.auditRecord.remoteEnableand keep vCenter events flowing to the SIEM, because EDR agents do not run on ESXi itself.
The threat picture for ESXi and vCenter
| Campaign or flaw | What happened | Hardening lesson |
|---|---|---|
| ESXiArgs (February 2023) | Mass encryption of unpatched ESXi hosts with directly reachable management interfaces; Broadcom said existing, already-patched vulnerabilities were used | Never expose management interfaces; stay on supported, current builds; stop unused services such as SLP |
| CVE-2024-37085 (VMSA-2024-0013, June 2024) | Domain-joined ESXi trusted any AD group named "ESX Admins" by name, not SID; Microsoft saw it used before Akira and Black Basta deployments | Patch (fixed in ESXi 8.0 U3; no fix planned for 7.0), or change the admin group and disable auto-add |
| Scattered Spider vSphere campaign (reported July 2025) | Help desk password resets, vCenter root reset, SSH enabled, domain controller disk swapped to extract the AD database, backups deleted, VMs encrypted over SSH | Separate identity, lockdown mode, execInstalledOnly, isolated backups, alert on SSH and disk attach |
| VMSA-2025-0004 (March 2025) | VMCI TOCTOU (CVSS 9.3), arbitrary kernel write and HGFS leak, chained for VM escape; exploited in the wild | Emergency patching; restrict who is administrator inside guests |
| BRICKSTORM (PRC state-sponsored, 2025 to 2026) | Backdoors and a hypervisor implant in vCenter and ESX environments via stolen credentials or patched vCenter CVEs (CVE-2021-22005, CVE-2023-34048, CVE-2024-37079, CVE-2024-38812, CVE-2024-38813) | Patch vCenter promptly, monitor VM lifecycle events, retain logs for two years or more |
The ATT&CK techniques most specific to this platform are T1059.012 Hypervisor CLI (abuse of esxcli and vim-cmd) and T1675 ESXi Administration Command (running commands in guests through the VMware Tools service and APIs such as StartProgramInGuest). Impact usually combines T1489 Service Stop, T1490 Inhibit System Recovery and T1486 Data Encrypted for Impact.
Priority ESXi host settings
The SCG assigns each control a priority (P0 is the most important, then P1 and P2). The table lists the controls that address the attacks above, with the parameter, default and the SCG baseline value for vSphere 8.
| SCG ID | Priority | Setting | Default | Baseline |
|---|---|---|---|---|
| esxi-8.lockdown-mode | P0 | Lockdown mode (Security Profile) | lockdownDisabled | lockdownNormal |
| esxi-8.lockdown-exception-users | P2 | Lockdown Exception Users list | Empty | Empty or tightly justified |
| esxi-8.deactivate-ssh / deactivate-shell | P2 | SSH and ESXi Shell services | Stopped, start manually | Stopped, start manually |
| esxi-8.shell-timeout | P0 | UserVars.ESXiShellTimeOut | 0 (no limit) | 600 seconds |
| esxi-8.vib-trusted-binaries | P0 | VMkernel.Boot.execInstalledOnly | False | True |
| esxi-8.vib-acceptance-level-supported | P2 | Image profile acceptance level | PartnerSupported | PartnerSupported or higher |
| esxi-8.secureboot-enforcement | P0 | TPM-based Secure Boot enforcement | False | True |
| esxi-8.deactivate-slp / deactivate-cim | P2 / P0 | SLP and CIM services | Stopped (CIM starts with host) | Stopped, start manually |
| esxi-8.deactivate-mob | P2 | Config.HostAgent.plugins.solo.enableMob | False | False |
| esxi-8.firewall-restrict-access | P1 | Host firewall allowed IPs per service | Any IP | Authorised infrastructure networks only |
| esxi-8.account-lockout | P2 | Security.AccountLockFailures | 5 | 5 |
| esxi-8.account-vpxuser / account-dcui | Advanced / P0 | Shell access for vpxuser and dcui accounts | Allowed | Denied |
| esxi-8.logs-remote | P0 | Syslog.global.logHost | Undefined | Site log server |
| esxi-8.logs-audit-remote | P0 | Syslog.global.auditRecord.remoteEnable | False | True |
| esxi-8.logs-persistent | P0 | Persistent log location (scratch not /tmp/scratch) | Depends on boot device | Persistent storage |
| esxi-8.tls-protocols | P2 | UserVars.ESXiVPsDisabledProtocols | sslv3, tlsv1, tlsv1.1 disabled | Same (TLS 1.2 only) |
| esxi-8.memeagerzero | P0 | Mem.MemEagerZero (volatile key destruction) | 0 | 1 |
- Lockdown modes: normal lockdown forces management through vCenter so its roles and audit always apply; strict lockdown also removes DCUI access, so if the host loses contact with vCenter it cannot be managed until the connection returns. Users on the Exception Users list keep their privileges in lockdown and can defeat it, so keep that list empty or minimal. Only users on
DCUI.Access(root by default) keep console access in normal mode. - execInstalledOnly: tells ESXi to run only binaries delivered in a valid, signed VIB, which Broadcom says makes prebuilt attacker toolkits harder to use. With Secure Boot on, the CommunitySupported acceptance level is blocked, so unsigned VIBs cannot be installed even with
--force. - Management VMkernel ports: only VMkernel adapters meant for management should carry management services (esxi-8.vmk-management), otherwise vMotion or storage networks become management paths.
Hardening vCenter Server
vCenter holds the keys to every host: it creates the privileged vpxuser account on each host and rotates its password, by default every 30 days (VirtualCenter.VimPasswordExpirationInDays). Treat it as Tier 0.
- Separate authentication from authorisation (vcenter-8.administration-sso-groups, P0): Broadcom warns that combining both in Active Directory risks infrastructure breaches if AD is compromised, and suggests local SSO groups for authorisation.
- MFA: vCenter supports multifactor sign-in through smart cards, LDAP proxies from identity services, or vSphere Identity Federation.
- Appliance SSH off (vcenter-8.vami-access-ssh): keep VCSA SSH deactivated except where vCenter Server High Availability requires it; Scattered Spider enabled it after resetting root.
- File-based backup (vcenter-8.vami-backup, P0): configure it to a secure location; Broadcom notes the backup contains privileged access information for the cluster, so protect it like a credential store.
- Event logging: keep
vpxd.event.syslog.enabledtrue and forward to the SIEM; local task and event retention defaults to 30 days, which is far too short for investigations. - Distributed switches: reject promiscuous mode, MAC changes and forged transmits on port groups, restrict port mirroring and NetFlow, and block port-level overrides.
- Authentication Proxy: if hosts join AD, use the vSphere Authentication Proxy so AD credentials are not stored on hosts (esxi-8.ad-auth-proxy).
Where identity fits
Most ESXi compromises are identity attacks. Three machine and admin identities need specific treatment:
- "ESX Admins" and directory groups: on unpatched or AD-joined hosts, Microsoft recommends disabling
Config.HostAgent.plugins.hostsvc.esxAdminsGroupAutoAdd, changing the ESXi admin group to a different, protected group, and alerting when a group with the configured name is created. Broadcom's workaround is KB369707. See the Active Directory and Entra ID Hardening Guide. - Integration service accounts: backup, monitoring and automation tools connect with vCenter roles. Give each a custom role scoped to what it needs, never Administrator, vault the secret and alert on interactive logins. See the Service Account Security Guide.
- Root and break-glass: unique root password per host, stored in a vault, rotated after any use. See the Break-Glass Account Guide.
Virtual machine and guest settings
- vMotion encryption: set VM vMotion encryption to required rather than the default opportunistic (vm-8.vmotion-encrypted, P1).
- Host information: keep
tools.guestlib.enableHostInfofalse so guests cannot learn host details. - Remove unnecessary devices: floppy, serial, parallel, USB and CD devices are attack surface for escape flaws; also disable console copy and paste and drag-and-drop.
- Guest operations: the VMware Tools guest operations channel underpins T1675; where workloads do not need it, set
guestoperations disabledto true (not on templates). Broadcom notes these channels still require guest OS credentials, so keep guest admin accounts out of the infrastructure identity source. - Tier 0 VMs: encrypt domain controllers, PKI and vault VMs with VM encryption or vTPM, and restrict who can snapshot, clone or reconfigure them.
Patching and lifecycle
- Stay supported: the SCG's first P0 controls are esxi-8.supported and esxi-8.updates. Broadcom's ESXiArgs answers stress that versions past End of General Support (vSphere 6.x then) no longer receive fixes.
- Order matters: update vCenter Server first, then ESXi hosts, as the SCG recommends.
- Classify security patches correctly: Broadcom suggests treating routine updates as standard changes and Important or Critical security fixes as emergency changes, noting that with AD-backed authentication an attacker may already be authenticated.
- Patch without downtime: use vMotion and vSphere Lifecycle Manager images; an unauthorised VIB makes a host non-compliant with its image, which is itself a detection signal.
- Subscribe to VMSAs: Broadcom offers an email alert list and states there is no automated RSS feed, so pair it with daily checks of the CISA KEV catalogue. See the Patch Management Guide.
Rolling out the baseline safely
- Assess: run the SCG kit's PowerCLI audit scripts (the controls spreadsheet includes assessment and remediation examples) against every cluster and record the starting state.
- Isolate management first: place ESXi, vCenter, NSX Manager and hardware controllers on a dedicated management segment reachable only from privileged access workstations, then restrict the host firewall to those addresses.
- Pilot: apply P0 controls to one non-production cluster. Confirm backup, monitoring and automation tools still connect after lockdown, because tools that connect directly to hosts will break.
- Add exceptions deliberately: if a tool must reach hosts directly, prefer its vCenter integration; only then add a named service account to Exception Users, with a ticket and an owner.
- Roll out by cluster: remediate one cluster at a time using the remediation examples, and re-run the audit to confirm.
- Roll back: exit lockdown from the vSphere Client, or from the DCUI using an account on
DCUI.Access; revert advanced settings to the values recorded in step 1. Test this path before strict lockdown is used anywhere. - Keep it enforced: rerun the audit on a schedule and alert on drift.
Choosing between options
| Decision | Choose | When |
|---|---|---|
| Normal or strict lockdown | Normal by default; strict for high-security clusters | Strict only where vCenter is highly available and you have tested out-of-band recovery |
| AD-joined hosts or vCenter-only access | vCenter-only access with lockdown | Join hosts to AD only if a tool needs it, then use the Authentication Proxy and protect the admin group |
| Broadcom SCG or DISA STIG | SCG as the baseline | Use the STIG where contracts require it; Broadcom points VCF 5.2 users to the STIG for that release |
| SSH for support | Off, enabled per ticket with the shell timeout | Never left running; alert whenever it starts |
Smaller estates (a few standalone hosts, no vCenter) cannot use lockdown in the same way, so the priorities become patch currency, an isolated management VLAN, SSH off, execInstalledOnly, unique vaulted root passwords and remote syslog. Large estates should automate the SCG audit, run a separate infrastructure identity domain and feed vSphere events into detection engineering.
Detection and measurement
| Signal | Source | Why it matters |
|---|---|---|
SSH or ESXi Shell service started; commands in /var/log/shell.log | ESXi syslog | Precedes almost every hands-on ESXi attack |
Changes to Syslog.global.logHost, firewall rulesets or execInstalledOnly | ESXi audit records, hostd.log | Defence impairment before impact (T1685, T1686) |
vm.storage.add of a domain controller disk to another VM; vm.create then vm.delete | ESXi audit log (Broadcom BRICKSTORM reference) | Disk swap credential theft |
Many vm.power.off events within minutes; snapshot removal | ESXi audit log, vCenter events | Encryption preparation |
| New AD group matching the ESXi admin group; new vCenter role assignment; root password change | Directory logs, vCenter events | Privilege takeover |
| Unsigned or unexpected VIBs; host image non-compliance | vSphere Lifecycle Manager, Broadcom KB89619 script | Persistence implants |
Broadcom's BRICKSTORM guidance recommends retaining these logs for two years or more and correlating them with VPN and identity logs. Metrics:
- Percentage of hosts compliant with all P0 SCG controls (target 100%).
- Days from VMSA publication to patched for Critical advisories and KEV-listed vSphere CVEs.
- Hours per month SSH is running across the estate, and number of starts without a ticket.
- Percentage of hosts forwarding audit records, and log retention in days.
- Number of AD accounts with vCenter or host administrator rights.
- Last successful restore test of vCenter and a full cluster from isolated backup.
Common failure patterns
- Directory admins are vSphere admins: in the MGM Resorts breach, an attack that started with a help desk call ended, according to ALPHV's own unconfirmed claim, with ransomware on more than 100 ESXi hypervisors.
- Lockdown enabled with a long exception list: every exception user bypasses vCenter controls, so lockdown becomes cosmetic.
- SSH left running after support work: the default shell timeout is 0, so a service started for a ticket stays open indefinitely.
- Logs only on the host: hosts booting from media without persistent scratch keep about a day of logs, reset on reboot.
- Backups in the same AD: attackers delete jobs, snapshots and repositories before encrypting; see the Backup Security and Immutable Backup Guide.
- vCenter patched on the quarterly cycle: espionage groups have used vCenter CVEs that already had patches available.
Framework mapping
| ESXi control | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 | MITRE D3FEND |
|---|---|---|---|
| SCG baseline, services off, lockdown | CM-6, CM-7 | PR.PS-01 | D3-PH Platform Hardening |
| execInstalledOnly, acceptance level | CM-7 | PR.PS-01 | D3-EAL Executable Allowlisting |
| Secure Boot and TPM enforcement | CM-7, SC-3 | PR.PS-01 | D3-TBI TPM Boot Integrity; D3-BA Bootloader Authentication |
| Management network and host firewall | SC-7, AC-17 | PR.IR-01 | D3-NI Network Isolation |
| SSO groups, MFA, least privilege roles | AC-6, IA-2 | PR.AA-05 | D3-MFA Multi-factor Authentication |
| VMSA patching | SI-2 | PR.PS-02 | D3-PH Platform Hardening |
| Remote syslog and audit records | AU-2, AU-6, SI-4 | DE.CM-09 | D3-PM Platform Monitoring |
| vCenter file-based backup, isolated VM backups | CP-9 | PR.DS-11 | n/a |
The SCG spreadsheet itself maps each control to DISA STIG and PCI DSS 4.0 requirements. In CIS Controls v8.1 the work sits under Controls 4, 7 and 8; in ISO/IEC 27001:2022 Annex A under 8.9, 8.8 and 8.15. See the CIS Controls Guide.
Practitioner checklist
- Download the SCG for your exact version and run its audit scripts against every cluster.
- Confirm every host and vCenter is on a supported build with all Critical VMSAs and KEV-listed CVEs patched.
- Put ESXi, vCenter and hardware controllers on an isolated management network and restrict the host firewall.
- Enable normal lockdown, empty the Exception Users list, stop SSH and ESXi Shell, set the shell timeout to 600.
- Set execInstalledOnly to true and enable TPM-based Secure Boot enforcement.
- Move vCenter authorisation to local SSO groups, enforce MFA and disable ESX Admins auto-add on AD-joined hosts.
- Forward host logs and audit records over TLS and keep vCenter events in the SIEM for two years or more.
- Require vMotion encryption and encrypt Tier 0 VMs; restrict snapshot and disk attach rights.
- Back up vCenter and VMs to a system outside production AD, with immutable copies, and test the restore.
Standards and references
- Broadcom: VMware Security Configuration and Hardening Guide (vSphere and VCF)
- Broadcom: VMSA-2025-0004, VMware ESXi, Workstation and Fusion updates
- Broadcom: VMSA-2024-0013, VMware ESXi and vCenter Server updates
- Broadcom: BRICKSTORM Resources and Defense
- Broadcom: Protecting vSphere From Specialized Malware
- NIST: SP 800-125A Rev. 1, Security Recommendations for Server-based Hypervisor Platforms
- Microsoft Security: Ransomware operators exploit ESXi hypervisor vulnerability for mass encryption
- SecurityWeek: Scattered Spider targeting VMware vSphere environments
Related NHI Mgmt Group resources: Hypervisor and Virtualisation Security Guide · Ransomware Prevention Guide · Ransomware Response and Recovery Guide · Endpoint Security Guide · Virtual Desktop (VDI) and DaaS Security Guide