Changes to $CATALINA_HOME/lib/ folder must be logged.
An XCCDF Rule
Description
<VulnDiscussion>The $CATALINA_HOME/lib folder contains library files for the Tomcat Catalina server. These are in the form of java archive (jar) files. To provide forensic evidence in the event of file tampering, changes to contents in this folder must be logged. For Linux OS flavors other than Ubuntu, use the relevant OS commands. This can be done on the Ubuntu OS via the auditctl command. Using the -p wa flag set the permissions flag for a file system watch and logs file attribute and content change events into syslog.</VulnDiscussion><FalsePositives></FalsePositives><FalseNegatives></FalseNegatives><Documentable>false</Documentable><Mitigations></Mitigations><SeverityOverrideGuidance></SeverityOverrideGuidance><PotentialImpacts></PotentialImpacts><ThirdPartyTools></ThirdPartyTools><MitigationControl></MitigationControl><Responsibility></Responsibility><IAControls></IAControls>
- ID
- SV-223000r879875_rule
- Severity
- Medium
- References
- Updated
Remediation - Manual Procedure
From the Tomcat server as a privileged user, use the auditctl command.
sudo auditctl -w $CATALINA_HOME/lib -p wa -k tomcat
Validate the audit watch was created.
sudo auditctl -l