Monterey - 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-90871-5, CCI|CCI-000162, CCI|CCI-000163, CCI|CCI-000164

Plugin: Unix

Control ID: 93239f0b625ef83dfb9eaf235b1af6a57e86cd960ce13536e392e0a6249b49eb