macOS
TMA-MACOS-3.4
Ensure Security Auditing Logs Are Retained for 30 Days
보통레벨 1자동macos
설명
The macOS audit capability contains important information to investigate security or operational issues. This resource is only completely useful if it is retained long enough to allow technical staff to find the root cause of anomalies in the records. Retention can be set to respect both size and longevity. Audit: Requires a day-based expire-after value of at least 30d.
점검 방법
감사 방식: 셸 명령
shell
l=$(/usr/bin/grep -e "^expire-after" /etc/security/audit_control 2>/dev/null) || exit 1
d=$(printf '%s' "$l" | /usr/bin/grep -oE '[0-9]+d' | /usr/bin/head -1 | /usr/bin/tr -d d)
if [ -n "$d" ] && [ "$d" -ge 30 ]; then echo compliant; else echo "$l"; fi- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Terminal: Edit the /etc/security/audit_control file so that expire-after: is at least 30d
속성
- 운영 체제
- macos-26
- 태그
- macoslogging-auditing
- 참고 자료
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 3.4 Ensure Security Auditing Logs Are Retained for 30 Days
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target macos