Big Sur - 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.

Solution

[source,bash]
----
/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://github.com/usnistgov/macos_security

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-11, 800-53|SI-11b., CCE|CCE-85465-3, CCI|CCI-001314, STIG-ID|APPL-11-004002

Plugin: Unix

Control ID: 28ad684b4d48274f76e883f762e255d50136b08513ae912955f63bd71ce154d4