macOS
TMA-MACOS-3.1
Ensure Security Auditing Is Enabled
高等級 1自動化macos
說明
macOS's audit facility, auditd, receives notifications from the kernel when certain system calls, such as open, fork, and exit, are made. These notifications are captured and written to an audit log. Apple has deprecated auditd as of macOS 11.0 Big Sur. In macOS 14.0 Sonoma it is no longer enabled by default and it is suggested to use an application that integrates with the EndpointSecurity API.
檢查方式
稽核方法: Shell 指令
shell
out=$(/bin/launchctl list 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -qi com.apple.auditd && echo compliant- 預期輸出
compliant
修補方式
修補方法: 操作指南或基礎設施修補檔
Terminal: sudo /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.auditd.plist ; sudo /bin/cp /etc/security/audit_control.example /etc/security/audit_control.
屬性
- 作業系統
- macos-26
- 標籤
- macoslogging-auditing
- 參考資料
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 3.1 Ensure Security Auditing Is Enabled
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos