5.2.4.2 Ensure only authorized users own audit log files

Information

Audit log files contain information about the system and system activity.

Rationale:

Access to audit records can reveal system and configuration data to attackers, potentially compromising its confidentiality.

Solution

Run the following command to configure the audit log files to be owned by the root user:

# [ -f /etc/audit/auditd.conf ] && find '$(dirname $(awk -F '=' '/^s*log_file/ {print $2}' /etc/audit/auditd.conf | xargs))' -type f ! -user root -exec chown root {} +

See Also

https://workbench.cisecurity.org/benchmarks/13007

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: d86ca22d0fc225bfc72281500c5e92def04787c8dac657b531fe52f77f15ecd7