SV-268470r1034350_rule
V-268470
SRG-OS-000365-GPOS-00152
APPL-15-001044
CAT II
10
Configure the macOS system to audit login events with the following command:
/usr/bin/grep -qE "^flags.*[^-]aa" /etc/security/audit_control || /usr/bin/sed -i.bak '/^flags/ s/$/,aa/' /etc/security/audit_control; /usr/sbin/audit -s
Verify the macOS system is configured to audit login events with the following command:
/usr/bin/awk -F':' '/^flags/ { print $NF }' /etc/security/audit_control | /usr/bin/tr ',' '\n' | /usr/bin/grep -Ec 'aa'
If the result is not "1", this is a finding.
V-268470
False
APPL-15-001044
Verify the macOS system is configured to audit login events with the following command:
/usr/bin/awk -F':' '/^flags/ { print $NF }' /etc/security/audit_control | /usr/bin/tr ',' '\n' | /usr/bin/grep -Ec 'aa'
If the result is not "1", this is a finding.
M
5661