AlmaLinux OS 9 audit log directory must have 0700 permissions to prevent unauthorized read access.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
---|---|---|---|---|---|---|
medium | V-269537 | SRG-OS-000057-GPOS-00027 | ALMA-09-055790 | SV-269537r1050420_rule | 2025-02-20 | 1 |
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 |
ℹ️ Check |
---|
Verify the audit log directory has 0700 (u=rwx) 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 log directory has 0700 permissions using the following command: $ stat -c "%U:%G %#a %n" /var/log/audit root:root 0700 /var/log/audit If the audit log directory does not have 0700 permissions, this is a finding. |
✔️ Fix |
---|
Change the audit directory to have 0700 permissions: $ chmod 0700 /var/log/audit |