用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-tomcat7-v100-1-1命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-tomcat7-v100-1.1 |
| description | Remove extraneous files and directories |
| category | cis-tomcat |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","tomcat","tomcat-7","hardening","extraneous-resources"] |
| cis_id | 1.1 |
| cis_benchmark | CIS Apache Tomcat 7 Benchmark v1.0.0 |
| tech_stack | ["tomcat","java"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
The installation may provide example applications, documentation, and other directories which may not serve a production use.
Removing sample resources is a defense in depth measure that reduces potential exposures introduced by these resources.
Removal of example applications and documentation reduces available attack surface.
Perform the following to determine the existence of extraneous resources:
$ ls -l $CATALINA_HOME/webapps/js-examples \
$CATALINA_HOME/webapps/servlet-example \
$CATALINA_HOME/webapps/webdav \
$CATALINA_HOME/webapps/tomcat-docs \
$CATALINA_HOME/webapps/balancer \
$CATALINA_HOME/webapps/ROOT/admin \
$CATALINA_HOME/webapps/examples \
$CATALINA_HOME/server/webapps/host-manager \
$CATALINA_HOME/server/webapps/manager \
$CATALINA_HOME/conf/Catalina/localhost/host-manager.xml \
$CATALINA_HOME/conf/Catalina/localhost/manager.xml
Perform the following to remove extraneous resources:
$ rm -rf $CATALINA_HOME/webapps/js-examples \
$CATALINA_HOME/webapps/servlet-example \
$CATALINA_HOME/webapps/webdav \
$CATALINA_HOME/webapps/tomcat-docs \
$CATALINA_HOME/webapps/balancer \
$CATALINA_HOME/bin/webapps/ROOT/admin \$CATALINA_HOME/webapps/examples
If the Manager application is not utilized, also remove the following resources:
$ rm -rf /server/webapps/host-manager \
/server/webapps/manager \
/conf/Catalina/localhost/host-manager.xml \
/conf/Catalina/localhost/manager.xml
Depending on your install method, default extraneous resources will vary.
Version 7: