Join our Newsletter — 33% off our NHI Course
Home› Guides› VMware ESXi Hardening Guide: Securing Hosts and vCenter
Guide Endpoint Security

VMware ESXi Hardening Guide: Securing Hosts and vCenter

PDF for newsletter subscribers · free to read online

← All guides
By Lalit Choda, NHI Mgmt Group Updated 24 October 2026 14 min read
On this page

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.execInstalledOnly set 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, enable Syslog.global.auditRecord.remoteEnable and 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 flawWhat happenedHardening lesson
ESXiArgs (February 2023)Mass encryption of unpatched ESXi hosts with directly reachable management interfaces; Broadcom said existing, already-patched vulnerabilities were usedNever 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 deploymentsPatch (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 SSHSeparate 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 wildEmergency 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 IDPrioritySettingDefaultBaseline
esxi-8.lockdown-modeP0Lockdown mode (Security Profile)lockdownDisabledlockdownNormal
esxi-8.lockdown-exception-usersP2Lockdown Exception Users listEmptyEmpty or tightly justified
esxi-8.deactivate-ssh / deactivate-shellP2SSH and ESXi Shell servicesStopped, start manuallyStopped, start manually
esxi-8.shell-timeoutP0UserVars.ESXiShellTimeOut0 (no limit)600 seconds
esxi-8.vib-trusted-binariesP0VMkernel.Boot.execInstalledOnlyFalseTrue
esxi-8.vib-acceptance-level-supportedP2Image profile acceptance levelPartnerSupportedPartnerSupported or higher
esxi-8.secureboot-enforcementP0TPM-based Secure Boot enforcementFalseTrue
esxi-8.deactivate-slp / deactivate-cimP2 / P0SLP and CIM servicesStopped (CIM starts with host)Stopped, start manually
esxi-8.deactivate-mobP2Config.HostAgent.plugins.solo.enableMobFalseFalse
esxi-8.firewall-restrict-accessP1Host firewall allowed IPs per serviceAny IPAuthorised infrastructure networks only
esxi-8.account-lockoutP2Security.AccountLockFailures55
esxi-8.account-vpxuser / account-dcuiAdvanced / P0Shell access for vpxuser and dcui accountsAllowedDenied
esxi-8.logs-remoteP0Syslog.global.logHostUndefinedSite log server
esxi-8.logs-audit-remoteP0Syslog.global.auditRecord.remoteEnableFalseTrue
esxi-8.logs-persistentP0Persistent log location (scratch not /tmp/scratch)Depends on boot devicePersistent storage
esxi-8.tls-protocolsP2UserVars.ESXiVPsDisabledProtocolssslv3, tlsv1, tlsv1.1 disabledSame (TLS 1.2 only)
esxi-8.memeagerzeroP0Mem.MemEagerZero (volatile key destruction)01
  • 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.enabled true 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.enableHostInfo false 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 disabled to 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

  1. 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.
  2. Order matters: update vCenter Server first, then ESXi hosts, as the SCG recommends.
  3. 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.
  4. 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.
  5. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Roll out by cluster: remediate one cluster at a time using the remediation examples, and re-run the audit to confirm.
  6. 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.
  7. Keep it enforced: rerun the audit on a schedule and alert on drift.

Choosing between options

DecisionChooseWhen
Normal or strict lockdownNormal by default; strict for high-security clustersStrict only where vCenter is highly available and you have tested out-of-band recovery
AD-joined hosts or vCenter-only accessvCenter-only access with lockdownJoin hosts to AD only if a tool needs it, then use the Authentication Proxy and protect the admin group
Broadcom SCG or DISA STIGSCG as the baselineUse the STIG where contracts require it; Broadcom points VCF 5.2 users to the STIG for that release
SSH for supportOff, enabled per ticket with the shell timeoutNever 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

SignalSourceWhy it matters
SSH or ESXi Shell service started; commands in /var/log/shell.logESXi syslogPrecedes almost every hands-on ESXi attack
Changes to Syslog.global.logHost, firewall rulesets or execInstalledOnlyESXi audit records, hostd.logDefence impairment before impact (T1685, T1686)
vm.storage.add of a domain controller disk to another VM; vm.create then vm.deleteESXi audit log (Broadcom BRICKSTORM reference)Disk swap credential theft
Many vm.power.off events within minutes; snapshot removalESXi audit log, vCenter eventsEncryption preparation
New AD group matching the ESXi admin group; new vCenter role assignment; root password changeDirectory logs, vCenter eventsPrivilege takeover
Unsigned or unexpected VIBs; host image non-compliancevSphere Lifecycle Manager, Broadcom KB89619 scriptPersistence 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 controlNIST SP 800-53 Rev. 5NIST CSF 2.0MITRE D3FEND
SCG baseline, services off, lockdownCM-6, CM-7PR.PS-01D3-PH Platform Hardening
execInstalledOnly, acceptance levelCM-7PR.PS-01D3-EAL Executable Allowlisting
Secure Boot and TPM enforcementCM-7, SC-3PR.PS-01D3-TBI TPM Boot Integrity; D3-BA Bootloader Authentication
Management network and host firewallSC-7, AC-17PR.IR-01D3-NI Network Isolation
SSO groups, MFA, least privilege rolesAC-6, IA-2PR.AA-05D3-MFA Multi-factor Authentication
VMSA patchingSI-2PR.PS-02D3-PH Platform Hardening
Remote syslog and audit recordsAU-2, AU-6, SI-4DE.CM-09D3-PM Platform Monitoring
vCenter file-based backup, isolated VM backupsCP-9PR.DS-11n/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

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

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Written and reviewed by Lalit Choda, NHI Mgmt Group. Last updated 24 October 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.