VMware ESXi
TMA-ESXI9-5.8
Host should reject promiscuous mode requests on standard virtual switches and port groups
설명
Enabling promiscuous mode allows all virtual machines in a port group to read all packets transmitted across it, regardless of the intended recipient. Rejecting promiscuous mode requests on standard virtual switches and port groups prevents unauthorized packet inspection, enhancing network isolation and data privacy. The audit runs esxcli network vswitch standard (portgroup) policy security get for every standard vSwitch and port group and requires "Allow Promiscuous: false". Runs in the ESXi Shell (busybox sh) as root.
점검 방법
감사 방식: 셸 명령
command -v esxcli >/dev/null 2>&1 || exit 1
vs=$(esxcli network vswitch standard list 2>/dev/null | sed -n 's/^ *Name: *//p') || exit 1
pgs=$(esxcli --formatter=csv network vswitch standard portgroup list 2>/dev/null | awk -F, 'NR==1 {for (i = 1; i <= NF; i++) if ($i == "Name") c = i; next} c {print $c}') || exit 1
out=$(for v in $vs; do
x=$(esxcli network vswitch standard policy security get -v "$v" 2>/dev/null | sed -n 's/^ *Allow Promiscuous: *//p' | head -n 1)
[ "$x" = false ] || echo "vSwitch $v: Allow Promiscuous=${x:-unknown}"
done
printf '%s\n' "$pgs" | while IFS= read -r p; do [ -n "$p" ] || continue
x=$(esxcli network vswitch standard portgroup policy security get -p "$p" 2>/dev/null | sed -n 's/^ *Allow Promiscuous: *//p' | head -n 1)
[ "$x" = false ] || echo "portgroup $p: Allow Promiscuous=${x:-unknown}"
done)
[ -z "$out" ] && echo compliant || printf '%s\n' "$out"- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
To set the policy to reject, perform the following: 1. From the vSphere Web Client, select the host. 2. Click Configure then expand Networking. 3. Select Virtual switches then click Edit. 4. Click on Security. 5. Set Promiscuous mode to Reject in the dropdown. 6. Click on OK. Alternately, perform the following via the ESXi shell: # esxcli network vswitch standard policy security set -v vSwitch2 -p false
속성
- 운영 체제
- 모두
- 태그
- vmwareesxinetwork
- 참고 자료
- CIS VMware ESXi 9.0 Benchmark v1.0.0 - 5.8 Host should reject promiscuous mode requests on standard virtual switches and port groups
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
tmaegis scan --target vmware