SV-268453r1034299_rule
V-268453
SRG-OS-000032-GPOS-00013
APPL-15-001002
CAT II
10
Configure the macOS system to audit all login and logout events with the following command:
/usr/bin/grep -qE "^flags.*[^-]lo" /etc/security/audit_control || /usr/bin/sed -i.bak '/^flags/ s/$/,lo/' /etc/security/audit_control; /usr/sbin/audit -s
A text editor may also be used to implement the required updates to the "/etc/security/audit_control" file.
Verify the macOS system is configured to audit all login and logout events with the following command:
/usr/bin/awk -F':' '/^flags/ { print $NF }' /etc/security/audit_control | /usr/bin/tr ',' '\n' | /usr/bin/grep -Ec '^lo'
If the result is not "1", this is a finding.
V-268453
False
APPL-15-001002
Verify the macOS system is configured to audit all login and logout events with the following command:
/usr/bin/awk -F':' '/^flags/ { print $NF }' /etc/security/audit_control | /usr/bin/tr ',' '\n' | /usr/bin/grep -Ec '^lo'
If the result is not "1", this is a finding.
M
5661