SV-258811r958434_rule
V-258811
SRG-OS-000057-GPOS-00027
PHTN-40-000026
CAT II
10
At the command line, run the following commands:
# chmod 0600 <audit log file>
# chown root:root <audit log file>
Replace <audit log file> with the target log file.
Note: If "log_group" is configured in the auditd.conf file and set to something other than "root", the permissions changes will not be persistent.
At the command line, run the following command to find the current auditd log location:
# grep -iw log_file /etc/audit/auditd.conf
Example result:
log_file = /var/log/audit/audit.log
At the command line, run the following command using the file found in the previous step to verify auditd logs are protected from authorized access:
# stat -c "%n %U:%G %a" /var/log/audit/audit.log
Example result:
/var/log/audit/audit.log root:root 600
If the audit log file does not have permissions set to "0600", this is a finding.
If the audit log file is not owned by root, this is a finding.
If the audit log file is not group owned by root, this is a finding.
V-258811
False
PHTN-40-000026
At the command line, run the following command to find the current auditd log location:
# grep -iw log_file /etc/audit/auditd.conf
Example result:
log_file = /var/log/audit/audit.log
At the command line, run the following command using the file found in the previous step to verify auditd logs are protected from authorized access:
# stat -c "%n %U:%G %a" /var/log/audit/audit.log
Example result:
/var/log/audit/audit.log root:root 600
If the audit log file does not have permissions set to "0600", this is a finding.
If the audit log file is not owned by root, this is a finding.
If the audit log file is not group owned by root, this is a finding.
M
5569