The ESXi host must enforce the limit of three consecutive invalid logon attempts by a user.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
|---|---|---|---|---|---|---|
| medium | V-256379 | SRG-OS-000021-VMM-000050 | ESXI-70-000005 | SV-256379r958388_rule | 2025-02-11 | 1 |
Description
By limiting the number of failed logon attempts, the risk of unauthorized access via user password guessing, otherwise known as brute forcing, is reduced. Once the configured number of attempts is reached, the account is locked by the ESXi host.
ℹ️ Check
From the vSphere Client, go to Hosts and Clusters.
Select the ESXi Host >> Configure >> System >> Advanced System Settings.
Select the "Security.AccountLockFailures" value and verify it is set to "3".
or
From a PowerCLI command prompt while connected to the ESXi host, run the following command:
Get-VMHost | Get-AdvancedSetting -Name Security.AccountLockFailures
If the "Security.AccountLockFailures" setting is set to a value other than "3", this is a finding.
✔️ Fix
From the vSphere Client, go to Hosts and Clusters.
Select the ESXi Host >> Configure >> System >> Advanced System Settings.
Click "Edit". Select the "Security.AccountLockFailures" value and configure it to "3".
or
From a PowerCLI command prompt while connected to the ESXi host, run the following command:
Get-VMHost | Get-AdvancedSetting -Name Security.AccountLockFailures | Set-AdvancedSetting -Value 3