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