Big Sur - Configure Audit Log Folders to Mode 700 or Less Permissive

Information

The audit log folder _MUST_ be configured to mode 700 or less permissive so that only the root user is able to read, write, and execute changes to folders.

Because audit logs contain sensitive data about the system and users, the audit service _MUST_ be configured to mode 700 or less permissive; thereby preventing normal users from reading, modifying or deleting audit logs.

Solution

[source,bash]
----
/bin/chmod 700 $(/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-85270-7, CCI|CCI-000162, CCI|CCI-000163, CCI|CCI-000164, STIG-ID|APPL-11-001017

Plugin: Unix

Control ID: 6210437e84d074852cbf4e1a8921fafbaa52536e04c7c96a1e1f8f24c00e8432