AlmaLinux OS 9 must label all offloaded audit logs before sending them to the central log server.

STIG ID: ALMA-09-052270  |  SRG: SRG-OS-000479-GPOS-00224 |  Severity: medium |  CCI: CCI-001851 |  Vulnerability Id: V-269510

Vulnerability Discussion

When audit logs are not labelled before they are sent to a central log server, the audit data will not be able to be analyzed and tied back to the correct system.

Check

Verify that AlmaLinux OS 9 Audit Daemon is configured to label all offloaded audit logs, with the following command:

$ grep name_format /etc/audit/auditd.conf

name_format = HOSTNAME

If the "name_format" option is not "HOSTNAME", "fqd", or "numeric", or the line is commented out, this is a finding.

Fix

Edit the /etc/audit/auditd.conf file and add or update the "name_format" option:

name_format = HOSTNAME

The audit daemon must be restarted for changes to take effect.