audit_retention_configure Configure Audit Retention to $ODV
NIST macOS Security Compliance Project Sequoia Guidance, Revision 4.0 (be5491f)
All changes in this version
All changes in this version
Title
Configure Audit Retention to $ODV
Control
/usr/bin/awk -F: '/expire-after/{print $2}' /etc/security/audit_control
Discussion
The audit service _MUST_ be configured to require records be kept for a organizational defined value before deletion, unless the system uses a central audit record storage facility.
When "expire-after" is set to "$ODV", the audit service will not delete audit logs until the log data criteria is met.
Related controls
au-11, au-4
Fix
[source,bash]
----
/usr/bin/sed -i.bak 's/^expire-after.*/expire-after:$ODV/' /etc/security/audit_control; /usr/sbin/audit -s
----