用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-nginx-v300-2-5-4命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-nginx-v300-2-5-4 |
| description | Ensure the NGINX reverse proxy does not enable information disclosure (Manual) |
| category | cis-nginx |
| version | 3.0 |
| author | cyberstrike-official |
| tags | ["cis","nginx","web-server","reverse-proxy","information-disclosure","basic-configuration"] |
| cis_id | 2.5.4 |
| cis_benchmark | CIS NGINX Benchmark v3.0.0 |
| tech_stack | ["nginx","linux","web-server"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
When NGINX acts as a reverse proxy, it forwards headers sent by the upstream application (e.g., "X-Powered-By: Custom_APP" or "Server: Apache/2.4"). These headers should be stripped before the response reaches the client to prevent information disclosure about the backend infrastructure.
Attackers conduct reconnaissance by inspecting response headers to identify the technologies used in the backend (e.g., specific versions of PHP, Java/Tomcat, or Python frameworks). Knowing the exact version allows attackers to target specific CVEs associated with that software stack. Removing these headers reduces the information available for targeted attacks.
Removing upstream headers may affect debugging or monitoring tools that rely on these headers. Ensure that any required headers are logged internally before being stripped.
1. Configuration Check:
Search the loaded configuration for header hiding directives:
nginx -T 2>/dev/null | grep -Ei "(proxy|fastcgi)_hide_header"
Evaluation:
X-Powered-By and Server.2. Functional Check (Recommended):
Send a request to a proxied endpoint and inspect the response headers:
curl -k -I https://127.0.0.1 | grep -Ei "^(Server|X-Powered-By)"
Evaluation:
X-Powered-By: PHP/8.2). If Server is present, it should only be Server: nginx (controlled by Control 2.5.1).Configure NGINX to strip the sensitive headers. The directive depends on the upstream protocol (HTTP Proxy vs. FastCGI).
For Standard Reverse Proxy (proxy_pass):
Add the following directives to your http, server, or location block:
proxy_hide_header X-Powered-By;
proxy_hide_header Server;
For PHP/FastCGI (fastcgi_pass):
If you are using FastCGI (e.g., for PHP-FPM), use the fastcgi_hide_header directive instead:
fastcgi_hide_header X-Powered-By;
By default, NGINX passes all headers received from the upstream server to the client unchanged.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 16.1 Establish and Maintain a Secure Application Development Process | N | Y | Y |
| v7 | 18.1 Establish Secure Coding Practices | N | Y | Y |
| Tactic | Technique |
|---|---|
| Reconnaissance | T1592 - Gather Victim Host Information |