Rule ID
SV-256494r958436_rule
Version
V1R4
CCIs
CCI-000163
Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit operating system activity. Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality.
At the command line, run the following command:
# (audit_log_file=$(grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//) && if [ -f "${audit_log_file}" ] ; then printf "Log(s) found in "${audit_log_file%/*}":\n"; stat -c "%n is owned by %U" ${audit_log_file%}*; else printf "audit log file(s) not found\n"; fi)
If any audit log file is not owned by root, this is a finding.At the command line, run the following command: # chown root:root <audit log file> Replace <audit log file> with the log files not owned by root.