用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-apache24-2-7命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-apache24-2.7 |
| description | Ensure the User Directories Module Is Disabled |
| category | cis-apache |
| version | 2.3.0 |
| author | cyberstrike-official |
| tags | ["cis","apache","linux","modules","userdir"] |
| cis_id | 2.7 |
| cis_benchmark | CIS Apache HTTP Server 2.4 Benchmark v2.3.0 |
| tech_stack | ["linux","apache"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
The UserDir directive must be disabled so that user home directories are not accessed via the web site with a tilde (~) preceding the username. The directive also sets the path name of the directory that will be accessed. For example:
http://example.com/~ralph/ might access a public_html sub-directory of ralph user's home directoryUserDir ./ might map ~root to the root directory (/).The user directories should not be globally enabled since it allows anonymous access to anything users may want to share with other users on the network. Also consider that every time a new account is created on the system, there is potentially new content available via the web site.
Perform the following to determine if the modules are enabled.
Run the httpd server with the -M option to list enabled modules:
# httpd -M | grep userdir
Note: If the modules are correctly disabled, there will be no output when executing the above command.
Perform either one of the following to disable the user directories module:
./configure script with the --disable-userdir configure script options.
$ cd $DOWNLOAD_HTTPD$ ./configure --disable-userdirmod_userdir module from the httpd.conf file.
##LoadModule userdir_module modules/mod_userdir.soThe mod_userdir module is not enabled with a default source build.