Example applications must be removed.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
lowV-222958SRG-APP-000141-AS-000095TCAT-AS-000560SV-222958r960963_rule2025-02-113
Description
Tomcat provides example applications, documentation, and other directories in the default installation which do not serve a production use. These files must be deleted.
ℹ️ Check
From the Tomcat server OS type the following command: sudo ls -l $CATALINA_BASE/webapps/examples. If the examples folder exists or contains any content, this is a finding.
✔️ Fix
From the Tomcat server OS type the following command: sudo rm -rf $CATALINA_BASE/webapps/examples