Check: TOMCAT-000096-AS-000059
Apache Tomcat Application Server STIG - Xylok Custom:
TOMCAT-000096-AS-000059
(in version v1 r1.1)
Title
The Tomcat server must produce log records containing sufficient information to establish when (date and time) the events occurred. (Cat II impact)
Discussion
Application server logging capability is critical for accurate forensic analysis. Without sufficient and accurate information, a correct replay of the events cannot be determined. Ascertaining the correct order of the events that occurred is important during forensic analysis. Events that appear harmless by themselves might be flagged as a potential threat when properly viewed in sequence. By also establishing the event date and time, an event can be properly viewed with an enterprise tool to fully see a possible threat in its entirety. Without sufficient information establishing when the log event occurred, investigation into the cause of event is severely hindered. Log record content that may be necessary to satisfy the requirement of this control includes, but is not limited to, time stamps, source and destination IP addresses, user/process identifiers, event descriptions, application-specific events, success/fail indications, file names involved, access control, or flow control rules invoked. In addition to logging event information, application servers must also log the corresponding dates and times of these events. Examples of event data include, but are not limited to, Java Virtual Machine (JVM) activity, HTTPD activity, and application server-related system process activity.
Check Content
Review the server.xml configuration file for an entry for the AccessLogValve. An example looks like: <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b"/> If the %t is not included in the pattern, this is a finding. If the AccessLogValve line does not exist in the server.xml, this is a finding.
Fix Text
Configure the application server logging system to log date and time with the event.
Additional Identifiers
Rule ID: SV-46452r3_rule
Vulnerability ID: V-35165
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000131 |
The information system generates audit records containing information that establishes when an event occurred. |
Controls
Number | Title |
---|---|
AU-3 |
Content Of Audit Records |