TCAT-AS-001592 - Changes to $CATALINA_HOME/lib/ folder must be logged.

Information

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.

Solution

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

The user should see:
-w $CATALINA_HOME/ -p wa -k tomcat

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Tomcat_Application_Server_9_V3R1_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12c., CAT|II, CCI|CCI-000172, Rule-ID|SV-223000r961827_rule, STIG-ID|TCAT-AS-001592, STIG-Legacy|SV-111523, STIG-Legacy|V-102583, Vuln-ID|V-223000

Plugin: Unix

Control ID: a1dccf642ed1ac710a636e924ea2c4776dbf2bb84c64b3d4e4711fec436f7540