TMAegis베타
vmware 관련 규칙 더 보기

VMware ESXi

TMA-ESXI9-4.7

Host must configure a persistent log location for all locally stored audit records

보통레벨 1자동vmware

설명

Configuring a persistent log location for locally stored audit records on ESXi hosts is critical to ensure audit continuity. When the "/scratch" directory is linked to "/tmp/scratch", only a day's worth of records are retained, and they are reinitialized upon each reboot, creating a security risk. The audit reads Syslog.global.auditRecord.storageDirectory with esxcli and requires a datastore path (/vmfs/volumes/... or [datastore] ...); the default /scratch location fails. Do not use a vSAN datastore. Runs in the ESXi Shell (busybox sh) as root.

점검 방법

감사 방식: 셸 명령

shell
out=$(esxcli system settings advanced list -o /Syslog/global/auditRecord/storageDirectory 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | sed -n 's/^ *String Value: *//p' | head -n 1)
if case "$v" in /vmfs/volumes/?*|\[*\]*) true ;; *) false ;; esac; then echo compliant; else echo "/Syslog/global/auditRecord/storageDirectory = '$v' (expected a persistent datastore path)"; fi
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

Configure a persistent datastore location with: esxcli system auditrecords local set \ -- directory=/vmfs/volumes/<Datastore-UUID>/audit/<hostname> then esxcli system auditrecords local enable verify compliance with: esxcli system auditrecords get compliant results = Audit Record Storage Active: true Audit Record Storage Directory: /vmfs/volumes/<Datastore-UUID>/audit/<hostname>

속성

운영 체제
모두
태그
vmwareesxilogging
참고 자료
CIS VMware ESXi 9.0 Benchmark v1.0.0 - 4.7 Host must configure a persistent log location for all locally stored audit records

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target vmware