AlmaLinux OS 9 must allocate audit record storage capacity to store at least one week's worth of audit records.

STIG ID: ALMA-09-052050  |  SRG: SRG-OS-000341-GPOS-00132 |  Severity: medium |  CCI: CCI-001849 |  Vulnerability Id: V-269508

Vulnerability Discussion

To ensure AlmaLinux OS 9 systems have a sufficient storage capacity in which to write the audit logs, AlmaLinux OS 9 needs to be able to allocate audit record storage capacity.

The task of allocating audit record storage capacity is usually performed during initial installation of AlmaLinux OS 9.

Check

Verify AlmaLinux OS 9 allocates audit record storage capacity to store at least one week of audit records when audit records are not immediately sent to a central audit record storage facility.

Note: The partition size needed to capture a week of audit records is based on the activity level of the system and the total storage capacity available. Typically 10GB of storage space for audit records should be sufficient.

Determine which partition the audit records are being written to with the following command:

$ grep -w log_file /etc/audit/auditd.conf

log_file = /var/log/audit/audit.log

Check the size of the partition that audit records are written to with the following command and verify whether it is sufficiently large:

$ df -h /var/log/audit/

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/luks-29b74747-2f82-4472-82f5-0b8eb763effc 1002M 77M 926M 8% /var/log/audit

If the audit record partition is not allocated for sufficient storage capacity, this is a finding.

Fix

Allocate enough storage capacity for at least one week of audit records when audit records are not immediately sent to a central audit record storage facility.

If audit records are stored on a partition made specifically for audit records, resize the partition with sufficient space to contain one week of audit records.

If audit records are not stored on a partition made specifically for audit records, a new partition with sufficient space will need be to be created.