Information
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-000058-GPOS-00028, SRG-OS-000059-GPOS-00029, SRG-OS-000206-GPOS-00084
Solution
Configure Amazon Linux 2023 so that audit logs are group-owned by "root" or a restricted logging group.
Change the group of the directory of "/var/log/audit" to be owned by a correct group.
Identify the group that is configured to own audit log:
$ sudo grep -P '^[ ]*log_group[ ]+=.*$' /etc/audit/auditd.conf
Change the ownership to that group:
$ sudo chgrp ${GROUP} /var/log/audit
Item Details
Category: AUDIT AND ACCOUNTABILITY, SYSTEM AND INFORMATION INTEGRITY
References: 800-53|AU-9, 800-53|SI-11b., CAT|II, CCI|CCI-000162, CCI|CCI-000163, CCI|CCI-000164, CCI|CCI-001314, Rule-ID|SV-274108r1120312_rule, STIG-ID|AZLX-23-002225, Vuln-ID|V-274108
Control ID: 4e7fa129e9405e685a3fe25c58542829f70bfaf9d77e4e161a74b34eaae22232