Rule ID
SV-288883r1316146_rule
Version
V1R1
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 be readable and writable only by system administrators, the risk is mitigated. Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000058-GPOS-00028, SRG-OS-000037-GPOS-00015, SRG-OS-000038-GPOS-00016, SRG-OS-000163-GPOS-00072
Verify the macOS system is configured with audit log files owned by root with the following command:
/bin/ls -n $(/usr/bin/grep '^dir' /etc/security/audit_control | /usr/bin/awk -F: '{print $2}') | /usr/bin/awk '{s+=$3} END {print s}'
If the result is not "0", this is a finding.Configure the macOS system with audit log files owned by root with the following command: /usr/sbin/chown -R root /var/audit/*