VMware ESXi
TMA-ESXI9-3.10
Host must not suppress warnings that the shell is enabled
보통레벨 1자동vmware
설명
Having warnings for enabled SSH or ESXi Shell provides insight into potential security risks. Disabling such warnings can mask ongoing attacks. The parameter governing this behavior is UserVars.SuppressShellWarning with a recommended value of 0. The audit reads UserVars.SuppressShellWarning with esxcli and requires 0. Runs in the ESXi Shell (busybox sh) as root.
점검 방법
감사 방식: 셸 명령
shell
out=$(esxcli system settings advanced list -o /UserVars/SuppressShellWarning 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | awk '$1=="Int" && $2=="Value:" {print $3; exit}')
case "$v" in ''|*[!0-9-]*) echo '/UserVars/SuppressShellWarning: no integer value'; exit 1 ;; esac
if [ "$v" -eq 0 ]; then echo compliant; else echo "/UserVars/SuppressShellWarning = $v (expected 0)"; fi- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
From an administrative PowerCLI session. 1. Execute Get-VMHost | Get-AdvancedSetting -Name UserVars.SuppressShellWarning | Set-AdvancedSetting -Value 0 -Confirm:$false 2. Shell access should normally remain disabled; do not suppress the warning when it is enabled.
속성
- 운영 체제
- 모두
- 태그
- vmwareesximanagement
- 참고 자료
- CIS VMware ESXi 9.0 Benchmark v1.0.0 - 3.10 Host must not suppress warnings that the shell is enabled
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target vmware