APPL-14-004040 - The macOS system must configure system log files to mode 640 or less permissive.

Information

The system logs must be configured to be writable by root and readable only by the root user and group wheel. To achieve this, system log files must be configured to mode 640 permissive or less; thereby preventing normal users from reading, modifying, or deleting audit logs. System logs frequently contain sensitive information that could be used by an attacker. Setting the correct permissions mitigates this risk.

Satisfies: SRG-OS-000205-GPOS-00083,SRG-OS-000206-GPOS-00084

Solution

Configure the macOS system with system log files set to mode 640 or less permissive with the following command:

/bin/chmod 640 $(/usr/bin/stat -f '%A:%N' $(/usr/bin/grep -v '^#' /etc/newsyslog.conf | /usr/bin/awk '{ print $1 }') 2> /dev/null | /usr/bin/awk '!/640/{print $1}' | awk -F':' '!/640/{print $2}')

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_14_V2R1_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-11a., 800-53|SI-11b., CAT|II, CCI|CCI-001312, CCI|CCI-001314, Rule-ID|SV-259557r958564_rule, STIG-ID|APPL-14-004040, Vuln-ID|V-259557

Plugin: Unix

Control ID: b3acaf2d9b9960830e450525ecef8a0c35f82b8b0e986eab1acbfc1be2798824