AOSX-14-001029 - The macOS system must allocate audit record storage capacity to store at least one weeks worth of audit records when audit records are not immediately sent to a central audit record storage facility.

Information

The audit service must be configured to require that records are kept for seven days or longer before deletion when there is no central audit record storage facility. When 'expire-after' is set to '7d', the audit service will not delete audit logs until the log data is at least seven days old.

Solution

Edit the '/etc/security/audit_control' file and change the value for 'expire-after' to the amount of time audit logs should be kept for the system. Use the following command to set the 'expire-after' value to '7d':

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

A text editor may also be used to implement the required updates to the '/etc/security/audit_control' file.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_OS_X_10-14_V2R6_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-4, CAT|II, CCI|CCI-001849, Rule-ID|SV-209560r610285_rule, STIG-ID|AOSX-14-001029, STIG-Legacy|SV-104719, STIG-Legacy|V-95437, Vuln-ID|V-209560

Plugin: Unix

Control ID: 65edd6a6557550c2624dc4f295ec213b70afb9fe9f29f07fbc3c8533b4fc7cc5