Support is added for scanning ESXi hosts using ESXi or vCenter credentials. For such scans, the authenticator sends a request to the ESXi host and then scans it using the vCenter credentials. This involves authenticating with vCenter, identifying specific ESXi hosts, and performing a compliance scan against this particular host. For an indirect scan, the privileges required by the user performing the scan are different from those required for a direct scan of the ESXi host.
To successfully authenticate and audit each ESXi host, a vCenter credential with read-only access to the ESXi host is required. However, there are some special Controls such as CID 9393, 9394, and 9012, that need extra privileges. These extra privileges are required to read VIBs and Kernel modules.
To create the scan user account that can cover all ESXi CIDs in PC library:
Version |
Privilege Needed |
Navigation |
ESXi 8.0 |
Global.Settings Host.Config.Change settings |
Global > Settings |
ESXi 7.0 | Global.Settings Host.Config.Change settings Host.Config.Image configuration Certificates.Manage Certificates Authorization.ModifyPermissions |
Global > Settings Host > Configuration > Change Settings Host > Configuration > Image Configuration Certificates > Manage Certificates Permissions > Modify Permission |
ESXi 6.5 | Global.Settings Host.Config.Change settings Certificates.Manage Certificates Authorization.ModifyPermissions |
Global > Settings Host > Configuration > Change Settings Certificates > Manage Certificates Permissions > Modify Permission |
ESXi 6.0 | Global.Settings Host.Config.Change settings Certificates.Manage Certificates Authorization.ModifyPermissions |
Global > Settings Host > Configuration > Change Settings Certificates > Manage Certificates Permissions > Modify Permission |
ESXi 5.5 | Global.Settings Host.Config.Change settings |
Global > Settings Host > Configuration > Change Settings |
ESXi 5.0 | Global.Settings Host.Config.Change settings |
Global > Settings Host > Configuration > Change Settings |
All versions | Global.Settings Host.Config.Change settings Authorization.ModifyPermissions |
Global > Settings Host > Configuration > Change Settings Permissions > Modify Permission |
Specific privileges required for scanning user accounts are as follows:
CID |
STMT |
DPID |
Permission (8.0) | Permission (7.0) | Permission (6.5) | Permission (6.0) | Permission (5.x) |
1129 | Status of Simple Network Management Protocol (SNMP) services (Linux/Unix/ESXi) | 805040 | Global > Settings | Global > Settings | Global > Settings | Global > Settings | Global > Settings |
6094 | Status of SNMP Trap settings for the ESXi host | 805039 | Global > Settings | Global > Settings | Global > Settings | Global > Settings | Global > Settings |
6097 | Status of readCommunities SNMP community string on the ESXi host | 805046 | Global > Settings | Global > Settings | Global > Settings | Global > Settings | Global > Settings |
9394 | Status of Acceptance Level of each VIB on the ESXi host | 808077 | Not Applicable | Not Applicable | Global > Settings | Global > Settings | Global > Settings |
9393 | Status of vSphere Installation Bundle (VIB) versions installed on the host | 808078 | Not Applicable | Not Applicable | Global > Settings | Global > Settings | Global > Settings |
9012 | Status of kernel modules loaded in memory | 807342 | Host > Config > Settings | Host > Configuration > Change Settings | Host > Configuration > Change Settings | Host > Configuration > Change Settings | Host > Config > Change Settings |
8972 | Status of users with shell access on the host | 807339 | Authorization > ModifyPermissions | Permissions > Modify permission | Permissions > Modify permission | Permissions > Modify permission | Read-only |
17320 | List of Lockdown Exception Users | 817444 | Global > Settings | Global > Settings | Global > Settings | Global > Settings | Global > Settings |
22343 | Status of certificate present on the ESXi host | 822943 | Certificates > Manage Certificates | Certificates > Manage Certificates | Certificates > Manage Certificates | Certificates > Manage Certificates | Not Applicable |
23394 | Status of software package versions and Acceptance Level of each package on the host |
823956 |
Host > Config > Image | Host > Config > Image | Not Applicable | Not Applicable | Not Applicable |
Testing specific privileges using commands:
CID |
STMT |
DPID | Example |
1129 | Status of Simple Network Management Protocol (SNMP) services (Linux/Unix/ESXi) | 805040 | esxcfg-snmp --server 10.10.35.107 --username ahu --password 12345abc --show |
6094 | Status of SNMP Trap settings for the ESXi host | 805039 | esxcfg-snmp --server 10.10.35.107 --username ahu --password 12345abc --show |
6097 | Status of readCommunities SNMP community string on the ESXi host | 805046 | esxcfg-snmp --server 10.10.35.107 --username ahu --password 12345abc --show |
9394 | Status of Acceptance Level of each VIB on the ESXi host | 808077 | esxcli -s 10.10.35.107 -u ahu -p 12345abc software vib list |
9393 | Status of vSphere Installation Bundle (VIB) versions installed on the host | 808078 | esxcli -s 10.10.35.107 -u ahu -p 12345abc software vib list |
9012 | Status of kernel modules loaded in memory | 807342 | esxcfg-module --server 10.10.35.107 --username ahu --password 12345abc --list |
8972 | Status of users with shell access on the host | 807339 | esxcfg-user --server 10.10.35.107 --username ahu --password 12345abc -e user -o list |
To successfully authenticate and audit each ESXi host, a vCenter credential with read-only access to the ESXi host is required. However, there are some special Controls such as CID 9393, 9394, and 9012, that need extra privileges. These extra privileges are required to read VIBs and Kernel modules.
To create the scan user account that could cover all ESXi CIDs in PC library:
CID |
STMT |
DPID | Extra Privileges |
9394 | Status of the Acceptance Level of each VIB on the ESXi host | 808077 | Global.Settings (Global > Settings) |
9393 | Status of the vSphere Installation Bundle (VIB) versions installed on the host | 808078 | Global.Settings (Global > Settings) |
9012 | Status of the kernel modules loaded in memory | 807342 | Host.Config.Change settings (Host > Configuration > Change settings) |
17320 | List of the Lockdown Exception Users | 817444 | Global.Settings (Global > Settings) |
23394 | Status of the software package versions and Acceptance Level of each package on the host | 822943 | Certificates.Manage Certificates (Certificates > Manage Certificates) |
Note: For CID 8972, the status of the users with shell access on the host 807339 (ML-11758) is not supported by VMware indirect scan.