APPL-14-004002 - The macOS system must configure Apple System Log files to mode 640 or less permissive.

Information

The Apple System Logs (ASL) must be configured to be writable by root and readable only by the root user and group wheel. To achieve this, ASL 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 Apple System Log files to mode 640 with the following command:

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_14_V2R2_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-259554r958564_rule, STIG-ID|APPL-14-004002, Vuln-ID|V-259554

Plugin: Unix

Control ID: 7653e0ea551fba6b566b5dff8b762725c0c54d422687cce7ce3865500a57cf7e