TMAegisBeta
Thêm quy tắc cho vmware

VMware ESXi

TMA-ESXI9-4.6

Host must enable audit record logging

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

Mô tả

Enabling audit record logging on ESXi hosts ensures the local storage of audit records, providing a trail of activities performed on the host. This measure is pivotal for accountability, troubleshooting, and security investigations. The parameter governing this behavior is Syslog.global.auditRecord.storageEnable with a recommended setting of TRUE. The audit reads Syslog.global.auditRecord.storageEnable with esxcli and requires true (1). 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/auditRecord/storageEnable 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | awk '$1=="Int" && $2=="Value:" {print $3; exit}')
case "$v" in ''|*[!0-9-]*) echo '/Syslog/global/auditRecord/storageEnable: no integer value'; exit 1 ;; esac
if [ "$v" -eq 1 ]; then echo compliant; else echo "/Syslog/global/auditRecord/storageEnable = $v (expected true/1)"; 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

To enable local audit-record logging: 1. Execute command: esxcli system auditrecords local enable 2. Verify remediation with: esxcli system auditrecords get 3. passing results: Audit Record Storage Active: true

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
vmwareesxilogging
Tham chiếu
CIS VMware ESXi 9.0 Benchmark v1.0.0 - 4.6 Host must enable audit record logging

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