Rule version AZLX-23-002240 · STIG v1 · 2026-08-20
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.
Verify Amazon Linux 2023 is configured so that the files in the directory /etc/audit/rules.d/ have a mode of 0600 or less permissive with the following command:
$ sudo find /etc/audit/rules.d/ -type f -name "*.rules" -exec stat -c "%a %n" {} \; 600 /etc/audit/rules.d/audit.rules
Verify that the files /etc/audit/audit.rules and /etc/audit/auditd.conf have a mode of 0600 or less permissive with the following command:
$sudo stat -c "%a %n" /etc/audit/audit.rules /etc/audit/auditd.conf 600 /etc/audit/audit.rules 600 /etc/audit/auditd.conf
If any of the audit configuration files have a mode more permissive than "0600", this is a finding.
Configure Amazon Linux 2023 so that the rules files in the directory /etc/audit/rules.d/, the /etc/audit/audit.rules file, and the /etc/audit/auditd.conf file to have a mode of 0600 with the following commands:
$ sudo find /etc/audit/rules.d/ -type f -name "*.rules" -exec chmod 0600 {} +$ sudo chmod 0600 /etc/audit/audit.rules
$ sudo chmod 0600 /etc/audit/auditd.conf