VMware ESXi
TMA-ESXI9-5.2
Host must block network traffic by default
Mô tả
By default, the host is configured to block all incoming and outgoing network traffic, except for the traffic pertaining to services enabled in the host security profile. This configuration is pivotal in reducing the attack surface and averting unauthorized access to the host. The audit runs esxcli network firewall get and requires "Enabled: true" and "Default Action: DROP"; review enabled rulesets as well. Runs in the ESXi Shell (busybox sh) as root.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
out=$(esxcli network firewall get 2>/dev/null) || exit 1
a=$(printf '%s\n' "$out" | sed -n 's/^ *Default Action: *//p' | head -n 1)
e=$(printf '%s\n' "$out" | sed -n 's/^ *Enabled: *//p' | head -n 1)
[ "$a" = DROP ] && [ "$e" = true ] && echo compliant || echo "firewall enabled=$e default action=$a"- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
1. Enable the ESXi firewall if disabled and disable unnecessary rulesets. 2. Use: esxcli network firewall set --enabled true 3. Configure only the required rulesets for documented services.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- vmwareesxinetwork
- Tham chiếu
- CIS VMware ESXi 9.0 Benchmark v1.0.0 - 5.2 Host must block network traffic by default
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
tmaegis scan --target vmware