1. Home
  2. Security Hardening
  3. NIST MacOS Monterey V1.0.0 800 53R5 Moderate
  4. Monterey – Configure Audit Retention to a Minimum of Seven Days

Monterey – Configure Audit Retention to a Minimum of Seven Days

Details

The audit service _MUST_ be configured to require records be kept for seven days or longer 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 is at least seven days old.

Solution

Run the following bash code

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

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Audit and Accountability.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles