Check: RHEL-06-000173
Red Hat Enterprise Linux 6 STIG:
RHEL-06-000173
(in versions v2 r2 through v1 r14)
Title
The audit system must be configured to audit all attempts to alter system time through /etc/localtime. (Cat III impact)
Discussion
Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited.
Check Content
To determine if the system is configured to audit attempts to alter time via the /etc/localtime file, run the following command: $ sudo grep -w "/etc/localtime" /etc/audit/audit.rules If the system is configured to audit this activity, it will return a line. If the system is not configured to audit time changes, this is a finding.
Fix Text
Add the following to "/etc/audit/audit.rules": -w /etc/localtime -p wa -k audit_time_rules The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport and should always be used.
Additional Identifiers
Rule ID: SV-217955r603264_rule
Vulnerability ID: V-217955
Group Title: SRG-OS-000062
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000169 |
Provide audit record generation capability for the event types the system is capable of auditing as defined in AU-2 a on organization-defined information system components. |
Controls
Number | Title |
---|---|
AU-12 |
Audit Generation |