AlmaLinux OS 9 audit logs must have 0600 permissions to prevent unauthorized read access.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-269540ALMA-09-056120SV-269540r1050423_ruleCCI-000162medium
Description
Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality. Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit operating system activity. Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000059-GPOS-00029
STIGDate
CloudLinux AlmaLinux OS 9 Security Technical Implementation Guide2025-05-22

Details

Check Text (C-269540r1050423_chk)

Verify the audit log files have 0600 (u=rw-) permissions. First determine where the audit logs are stored with the following command: $ grep -w log_file /etc/audit/auditd.conf log_file = /var/log/audit/audit.log Then using the location of the audit log file, determine if the audit logs have 0600 permissions using the following command: $ stat -c "%U:%G %#a %n" /var/log/audit/* root:root 0600 /var/log/audit/audit.log If the audit log files do not have 0600 permissions, this is a finding.

Fix Text (F-73472r1048997_fix)

Change the audit logs to have 0600 permissions: $ chmod 0600 /var/log/audit/*