Big Sur - Configure Audit Log Files to be Owned by Root

Information

Audit log files _MUST_ be owned by root.

The audit service _MUST_ be configured to create log files with the correct ownership to prevent normal users from reading audit logs.

Audit logs contain sensitive data about the system and users. If log files are set to only be readable and writable by system administrators, the risk is mitigated.

Solution

[source,bash]
----
/usr/sbin/chown -R root $(/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-85260-8, CCI|CCI-000162, STIG-ID|APPL-11-001012

Plugin: Unix

Control ID: 86717c48a6dcb44ca5a2848e7dde350064f9471f867f93e08b23d242dc821a20