Skip to main content

VMware ESXi

The CIS Benchmarks for VMware ESXi define secure configuration requirements for ESXi hosts and the virtual machines they run. Chef Premium Content provides Chef InSpec audit profiles and remediation content for these benchmarks. Coverage varies by benchmark and version. See the coverage tables on this page for details. Audit content for ESXi works differently from most Chef Premium Content, because it ships as scan cookbooks that you run from a Chef Infra Client node.

What the benchmarks check

The requirements cover the following areas in the ESXi 8.0 benchmark at v1.1.0:

  • Host hardware: Firmware, TPM 2.0, and the hardware management controller
  • Host software: Supported software, image profile acceptance level, and time synchronization
  • Host access: SSH, DCUI session timeouts, account lockout, and the exception users list
  • Host logging: Persistent log locations and event detail
  • Host networking: Forged transmits, promiscuous mode, and Virtual Guest Tagging
  • Host services: CIM access, iSCSI authentication, and SSH daemon settings
  • Virtual machines: Secure Boot, device passthrough, and unneeded virtual devices
  • VMware Tools: Supported versions and optional features

The exact requirements differ by benchmark and version.

Supported versions

BenchmarkAudit versionsRemediation versionsCoverage
CIS VMware ESXi 6.5—v1.0.0Remediation Only
CIS VMware ESXi 7.0v1.3.0—Audit Only
CIS VMware ESXi 8.0v1.1.0—Audit Only

Audit and remediation coverage are tracked separately. See how to read the coverage tables for what each coverage term means.

Available scan cookbooks

Each audit version ships as one cookbook that contains its own Chef InSpec profiles. The cookbooks don’t have level variants, and what they scan depends on the benchmark:

BenchmarkCookbookScans
CIS VMware ESXi 7.0cis_vmware_esxi_7_0_scan_v1.3.0ESXi hosts, VMs, and distributed networks
CIS VMware ESXi 8.0cis_vmware_esxi_8_0_scan_v1.1.0ESXi hosts and VMs

The cookbooks have the following requirements:

  • The ESXi 7.0 cookbook requires Chef Infra Client 15.0 or later.
  • The ESXi 8.0 cookbook requires Chef Infra Client 18.0 or later.
  • Both cookbooks require rbvmomi version 2.2.0.

What you can do with this content

Audit

The cookbook runs on a Chef Infra Client node, which acts as the scanner. It connects to each vCenter Server you configure, finds the ESXi hosts and VMs, and scans them in batches.

To configure the scan, create a vmware_scan_config.yaml file in your Chef configuration directory, which is usually /etc/chef on Linux and c:\chef on Windows. The file uses the following settings:

SettingPurpose
credentialsNamed sets of vCenter Server usernames and passwords
serversThe vCenter Server systems to scan, and the credential set for each
minimum_rescan_secondsHow long to wait before scanning the same object again
vm_batch_size, host_batch_size, network_batch_sizeHow many objects of each type to scan in a Chef Infra Client run
waiverfilesOptional paths to Chef InSpec waiver files for VMs, hosts, and networks

The file holds credentials, so restrict who can read it.

Report results

The cookbook sends each report through Chef Infra Server to the data collector, so the node needs a Chef Infra Server connection. See Chef Automate data collection to set up data collection, and compliance reporting in Chef Automate to view the results.

Detect drift

An ESXi host or VM that passed an audit doesn’t stay compliant on its own. Upgrades and manual changes in vCenter Server can all move it away from its approved state. Each Chef Infra Client run scans the next batch, so scheduled runs repeat the assessment across your environment and show how results change over time.

Remediation

ESXi 7.0 and ESXi 8.0 are audit only. You can assess those systems and act on the findings, but matching remediation content isn’t available.

Access this content

Chef Premium Content is part of the Chef Enterprise entitlement. See Progress Chef Enterprise Edition for what the entitlement includes, and contact your Chef account representative to confirm your access.

Thank you for your feedback!

×