Monterey - Configure Audit Log Folder to Not Contain Access Control Lists

Information

The audit log folder _MUST_ not contain access control lists (ACLs).

Audit logs contain sensitive data about the system and users. This rule ensures that the audit service is configured to create log folders that are readable and writable only by system administrators in order to prevent normal users from reading audit logs.

Solution

[source,bash]
----
/bin/chmod -N $(/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-90852-5, CCI|CCI-000162

Plugin: Unix

Control ID: b25a169e6b1b870aa5b50c4aad05ba7853e80ca7a119425105f52775d2c7cb04