Check: ESXI-67-000042
VMware vSphere 6.7 ESXi STIG:
ESXI-67-000042
(in versions v1 r3 through v1 r1)
Title
The ESXi host must terminate shell services after 10 minutes. (Cat II impact)
Discussion
When the ESXi Shell or SSH services are enabled on a host, they will run indefinitely. To avoid having these services left running, set the "ESXiShellTimeOut". The "ESXiShellTimeOut" defines a window of time after which the ESXi Shell and SSH services will be stopped automatically. Satisfies: SRG-OS-000163-VMM-000700, SRG-OS-000279-VMM-001010
Check Content
From the vSphere Client, select the ESXi Host and go to Configure >> System >> Advanced System Settings. Select the "UserVars.ESXiShellTimeOut" value and verify it is set to "600" (10 Minutes). or From a PowerCLI command prompt while connected to the ESXi host, run the following command: Get-VMHost | Get-AdvancedSetting -Name UserVars.ESXiShellTimeOut If the "UserVars.ESXiShellTimeOut" setting is not set to "600", this is a finding.
Fix Text
From the vSphere Client, select the ESXi host and go to Configure >> System >> Advanced System Settings. Click "Edit", select the "UserVars.ESXiShellTimeOut" value, and configure it to "600". or From a PowerCLI command prompt while connected to the ESXi host, run the following commands: Get-VMHost | Get-AdvancedSetting -Name UserVars.ESXiShellTimeOut | Set-AdvancedSetting -Value 600
Additional Identifiers
Rule ID: SV-239297r878140_rule
Vulnerability ID: V-239297
Group Title: SRG-OS-000163-VMM-000700
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001133 |
The information system terminates the network connection associated with a communications session at the end of the session or after an organization-defined time period of inactivity. |
CCI-002361 |
The information system automatically terminates a user session after organization-defined conditions or trigger events requiring session disconnect. |