AlmaLinux OS 9 must allow only the information system security manager (ISSM) (or individuals or roles appointed by the ISSM) to select which auditable events are to be audited.

STIG ID: ALMA-09-045890  |  SRG: SRG-OS-000063-GPOS-00032 |  Severity: medium |  CCI: CCI-000171 |  Vulnerability Id: V-269460

Vulnerability Discussion

Without the capability to restrict which roles and individuals can select which events are audited, unauthorized personnel may be able to prevent the auditing of critical events. Misconfigured audits may degrade the system's performance by overwhelming the audit log. Misconfigured audits may also make it more difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.

Check

Verify that the following files have a mode of "0640" or less permissive with the following command:

$ stat -c "%U:%G %#a %n" /etc/audit/rules.d/*.rules /etc/audit/audit.rules /etc/audit/auditd.conf

root:root 0600 /etc/audit/rules.d/audit.rules
root:root 0640 /etc/audit/audit.rules
root:root 0640 /etc/audit/auditd.conf

If the files file have a mode more permissive than "0640", this is a finding.

Fix

Configure the "/etc/audit/rules.d/*.rules", "/etc/audit/audit.rules" and "/etc/audit/auditd.conf" files to have a mode of "0640" with the following command:

$ chmod 0640 /etc/audit/rules.d/*.rules /etc/audit/auditd.conf /etc/audit/audit.rules