APPL-14-001029 - The macOS system must configure audit retention to seven days.

Information

The audit service must be configured to require records be kept for an organizational defined value before deletion, unless the system uses a central audit record storage facility.

When "expire-after" is set to "7d", the audit service will not delete audit logs until the log data criteria is met.

Solution

Configure the macOS system to set audit retention to seven days with the following command:

/usr/bin/sed -i.bak 's/^expire-after.*/expire-after:7d/' /etc/security/audit_control; /usr/sbin/audit -s

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_14_V2R2_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-4, CAT|III, CCI|CCI-001849, Rule-ID|SV-259467r958752_rule, STIG-ID|APPL-14-001029, Vuln-ID|V-259467

Plugin: Unix

Control ID: ceaf789e69d013ab314a64dd9a9179a0e3a65a4553393b3a15442e5516d3cda3