TMAegisBeta
Thêm quy tắc cho vmware

VMware ESXi

TMA-VMWARE-4.3

Host must log sufficient information for events

Trung bìnhCấp 1Tự độngvmware

Mô tả

Set the Syslog.global.logLevel parameter to "info" to ensure that audit logs capture sufficient information for diagnosing issues and investigating security events. This setting strikes a balance between log verbosity and storage utilization. The parameter governing this behavior is Syslog.global.logLevel with a recommended setting of info. The audit reads Syslog.global.logLevel with esxcli and requires info; also review logger rotation/size (esxcli system syslog config logger list). Runs in the ESXi Shell (busybox sh) as root.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
out=$(esxcli system settings advanced list -o /Syslog/global/logLevel 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | sed -n 's/^ *String Value: *//p' | head -n 1)
if [ "$v" = info ]; then echo compliant; else echo "/Syslog/global/logLevel = '$v' (expected info)"; fi
Đầ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. Increase the number of rotations and/or individual log size 2. esxcli system syslog config logger set --id=vmkernel --rotate=15 --size=10240 3. esxcli system syslog config logger set --id=hostd --rotate=15 -- size=10240

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
vmwareesxilogging
Tham chiếu
CIS VMware ESXi 8.0 Benchmark v1.4.0 - 4.3 Host must log sufficient information for events

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.

shell
tmaegis scan --target vmware