← Browse

@cyberstrikeus/cis-tomcat10-v110-1-1

B

Remove extraneous files and directories (Manual)

skillclaude

Install

agr install @cyberstrikeus/cis-tomcat10-v110-1-1 --target claude

Writes 1 file into .claude/skills/, pinned to git-a64961e8.

  • .claude/skills/cis-tomcat10-v110-1-1/SKILL.md

Document


name: cis-tomcat10-v110-1.1 description: "Remove extraneous files and directories (Manual)" category: cis-tomcat version: "1.1.0" author: cyberstrike-official tags: [cis, tomcat, linux, java, cleanup] cis_id: "1.1" cis_benchmark: "CIS Apache Tomcat 10 Benchmark v1.1.0" tech_stack: [linux, tomcat, java] cwe_ids: [] chains_with: [] prerequisites: [] severity_boost: {}

Remove extraneous files and directories (Manual)

Description

The installation may provide example applications, documentation, and other directories which may not serve a production use.

Rationale

Removing sample resources is a defense in depth measure that reduces potential exposures introduced by these resources.

Audit Procedure

Perform the following to determine the existence of extraneous resources:

$ ls -l $CATALINA_HOME/webapps/examples \
    $CATALINA_HOME/webapps/docs \
    $CATALINA_HOME/webapps/ROOT \
    $CATALINA_HOME/webapps/host-manager \
    $CATALINA_HOME/webapps/manager

No output implies no sample resources are present.

Remediation

Perform the following to remove extraneous resources:

$ rm -rf $CATALINA_HOME/webapps/docs \
    $CATALINA_HOME/webapps/examples \
    $CATALINA_HOME/webapps/ROOT

If the Manager and HOST-Manager application are not utilized, also remove the following resources:

$ rm -rf $CATALINA_HOME/webapps/host-manager \
    $CATALINA_HOME/webapps/manager

Default Value

docs, examples, ROOT, manager and host-manager are default web applications shipped with Tomcat.

References

  1. https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html#Default_web_applications/General

CIS Controls

v8:

  • 4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software
    • Uninstall or disable unnecessary services on enterprise assets and software, such as an unused file sharing service, web application module, or service function.

v7:

  • 2.6 Address unapproved software
    • Ensure that unauthorized software is either removed or the inventory is updated in a timely manner

Profile Applicability

  • Level 2

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicensecopyleft/unknown — index-and-link only

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-a64961e83c5c2026-07-31