Catalina - 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-84702-0, CCI|CCI-000162, STIG-ID|AOSX-15-001016

Plugin: Unix

Control ID: e2a4bccd49bebd0693fab93dc1e6926fe021876be707d19f7ec49cbebb4ae64e