mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
id: audit_failure_halt
|
|
title: "Configure System to Shut Down Upon Audit Failure"
|
|
discussion: |
|
|
The audit service _MUST_ be configured to shut down the computer if it is unable to audit system events.
|
|
|
|
Once audit failure occurs, user and system activity are no longer recorded, and malicious activity could go undetected. Audit processing failures can occur due to software/hardware errors, failures in the audit capturing mechanisms, and audit storage capacity being reached or exceeded.
|
|
check: |
|
|
/usr/bin/awk -F':' '/^policy/ {print $NF}' /etc/security/audit_control | /usr/bin/tr ',' '\n' | /usr/bin/grep -Ec 'ahlt'
|
|
result:
|
|
integer: 1
|
|
fix: |
|
|
[source,bash]
|
|
----
|
|
/usr/bin/sed -i.bak 's/^policy.*/policy: ahlt,argv/' /etc/security/audit_control; /usr/sbin/audit -s
|
|
----
|
|
references:
|
|
cce:
|
|
- CCE-92711-1
|
|
cci:
|
|
- CCI-000140
|
|
800-53r5:
|
|
- AU-5
|
|
800-53r4:
|
|
- AU-5
|
|
srg:
|
|
- SRG-OS-000047-GPOS-00023
|
|
disa_stig:
|
|
- N/A
|
|
800-171r2:
|
|
- 3.3.4
|
|
cmmc:
|
|
- AU.L2-3.3.4
|
|
macOS:
|
|
- "14.0"
|
|
tags:
|
|
- 800-53r5_low
|
|
- 800-53r5_moderate
|
|
- 800-53r5_high
|
|
- 800-53r4_low
|
|
- 800-53r4_moderate
|
|
- 800-53r4_high
|
|
- 800-171
|
|
- cnssi-1253_moderate
|
|
- cnssi-1253_low
|
|
- cnssi-1253_high
|
|
- cmmc_lvl2
|
|
severity: "medium"
|
|
mobileconfig: false
|
|
mobileconfig_info: |