Ubuntu 22.04 LTS must permit only authorized groups ownership of the audit log files.

STIG ID: UBTU-22-653055  |  SRG: SRG-OS-000057-GPOS-00027 | Severity: medium |  CCI: CCI-000162,CCI-000163,CCI-000164

Vulnerability Discussion

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

Check

Verify the group owner of newly created audit logs is "root" by using the following command:

$ sudo grep -iw log_group /etc/audit/auditd.conf
log_group = root

If "log_group" is not set to "root", this is a finding.

Fix

Configure the group owner of newly created audit logs to be "root".

Add or modify the following lines in the "/etc/audit/auditd.conf " file:

log_group = root

Reload the configuration file of the audit service to update the group ownership of existing files:

$ sudo systemctl kill auditd -s SIGHUP