SV-268452r1131210_rule
V-268452
SRG-OS-000004-GPOS-00004
APPL-15-001001
CAT II
10
Configure the macOS system to audit privileged access with the following command:
/usr/bin/grep -qE "^flags.*[^-]ad" /etc/security/audit_control || /usr/bin/sed -i.bak '/^flags/ s/$/,ad/' /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 privileged access with the following command:
/usr/bin/awk -F':' '/^flags/ { print $NF }' /etc/security/audit_control | /usr/bin/tr ',' '\n' | /usr/bin/grep -Ec 'ad'
If the result is not "1", this is a finding.
V-268452
False
APPL-15-001001
Verify the macOS system is configured to audit privileged access with the following command:
/usr/bin/awk -F':' '/^flags/ { print $NF }' /etc/security/audit_control | /usr/bin/tr ',' '\n' | /usr/bin/grep -Ec 'ad'
If the result is not "1", this is a finding.
M
5661