用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-nginx-v300-2-3-3命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-nginx-v300-2-3-3 |
| description | Ensure the NGINX process ID (PID) file is secured (Manual) |
| category | cis-nginx |
| version | 3.0 |
| author | cyberstrike-official |
| tags | ["cis","nginx","web-server","reverse-proxy","permissions-ownership","basic-configuration"] |
| cis_id | 2.3.3 |
| cis_benchmark | CIS NGINX Benchmark v3.0.0 |
| tech_stack | ["nginx","linux","web-server"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
The PID file stores the main process ID of the nginx process. This file should be protected from unauthorized modification.
The PID file should be owned by root and the group root. It should also be readable to everyone, but only writable by root (permissions 644). This will prevent unauthorized modification of the PID file, which could cause a denial of service.
None. The PID file is managed by the master process (root). Restricting write access prevents other users from tampering with the file, but read access is generally safe and required for monitoring.
1. Identify PID File Location:
Run nginx -V and look for the --pid-path argument to confirm the location (e.g., /run/nginx.pid or /var/run/nginx.pid).
2. Verify Ownership and Permissions:
Run the following command (substituting the identified path):
stat -Lc "%U:%G %a" /run/nginx.pid
Evaluation:
root:root.644 (rw-r--r--) or more restrictive.Set the correct ownership and permissions for the PID file (replace path as needed):
chown root:root /run/nginx.pid
chmod 644 /run/nginx.pid
The PID file is owned by root and has permissions 644 by default when building using dnf or apt.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.3 Configure Data Access Control Lists | Y | Y | Y |
| v7 | 14.6 Protect Information through Access Control Lists | Y | Y | Y |
| Tactic | Technique |
|---|---|
| Impact | T1499 - Endpoint Denial of Service |