Check: RHEL-07-910055
RHEL 7 STIG:
RHEL-07-910055
(in versions v3 r15 through v3 r1)
Title
The Red Hat Enterprise Linux operating system must protect audit information from unauthorized read, modification, or deletion. (Cat II impact)
Discussion
If audit information were to become compromised, then forensic analysis and discovery of the true source of potentially malicious system activity is impossible to achieve. To ensure the veracity of audit information, the operating system must protect audit information from unauthorized modification. Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit information system activity. Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000058-GPOS-00028, SRG-OS-000059-GPOS-00029, SRG-OS-000206-GPOS-00084
Check Content
Verify the operating system audit records have proper permissions and ownership. List the full permissions and ownership of the audit log files with the following command. # ls -la /var/log/audit total 4512 drwx------. 2 root root 23 Apr 25 16:53 . drwxr-xr-x. 17 root root 4096 Aug 9 13:09 .. -rw-------. 1 root root 8675309 Aug 9 12:54 audit.log Audit logs must be mode 0600 or less permissive. If any are more permissive, this is a finding. The owner and group owner of all audit log files must both be "root". If any other owner or group owner is listed, this is a finding.
Fix Text
Change the mode of the audit log files with the following command: # chmod 0600 [audit_file] Change the owner and group owner of the audit log files with the following command: # chown root:root [audit_file]
Additional Identifiers
Rule ID: SV-228564r958434_rule
Vulnerability ID: V-228564
Group Title: SRG-OS-000057-GPOS-00027
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000162 |
Protect audit information from unauthorized access. |
CCI-000163 |
Protect audit information from unauthorized modification. |
CCI-000164 |
Protect audit information from unauthorized deletion. |
CCI-001314 |
Reveal error messages only to organization-defined personnel or roles. |