Monterey - Configure Audit Log Files to Mode 440 or Less Permissive

Information

The audit service _MUST_ be configured to create log files that are readable only by the root user and group wheel. To achieve this, audit log files _MUST_ be configured to mode 440 or less permissive; thereby preventing normal users from reading, modifying or deleting audit logs.

Solution

[source,bash]
----
/bin/chmod 440 $(/usr/bin/grep '^dir' /etc/security/audit_control | /usr/bin/awk -F: '{print $2}')/*
----

See Also

https://github.com/usnistgov/macos_security

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-9, CCE|CCE-90859-0, CCI|CCI-000162

Plugin: Unix

Control ID: 2a46e5129f1cf49cdc24c0edb097048a95822f164c775642b88fb254adbf69d5