cve
它能做什么
这项技能帮助智能体找出目标运行的是哪种软件,查询该版本已知的安全漏洞,并调整公开的测试代码。适合在获得授权的目标上工作的安全测试人员。
适用场景
- ✓当扫描显示某个特定的 CMS 或框架版本,而你想知道它的已知漏洞时。
- ✓当挑战提示了 WordPress 或 Log4j 等知名软件时。
- ✓当你需要一份与某个版本号相匹配的已公开漏洞清单时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/cve/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的网站运行的是 WordPress 5.7.1。请帮我检查它是否存在任何已知的公开安全漏洞?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体首先根据响应头和页面线索识别软件及其版本,然后在漏洞数据库中查找匹配的记录,并针对目标检查公开的示例。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
CVE / Known-Exploit Methodology
Exploits known, version-specific vulnerabilities by fingerprinting the target's software stack, looking up the matching CVE record, retrieving a public PoC, and adapting it to the live target. The exploit agent has two dedicated tools registered for this skill — cve_lookup and cve_poc_lookup — and this skill is the only place that calls them. If you load this skill, you MUST invoke both tools.
When to load
Load this skill (in addition to or instead of an attack-class skill) when ANY of the following hold:
- The challenge
Tags:line containscve. - Recon
SUMMARY.mdfingerprinted a CMS, framework, or service with a concrete version (e.g.WordPress 5.7.1,Apache Struts 2.5.16,Drupal 7.58,Spring Framework 5.3.17,Log4j 2.14.0). - The challenge name or description hints at specific software (
WordPress,Joomla,phpMyAdmin,Spring4Shell,Log4Shell,Shellshock,ProxyShell,GhostCat, etc.). - Recon returned a
RECON_HANDOFF:line that names a software product with a version string.
If none of the above hold, do NOT load this skill — fall back to the attack-class skill matching the symptom (sqli/ssti/lfi/command-injection/etc.).
Step 1 — Fingerprinting procedure
Concrete probes. Save every output to a file; do NOT inline curl bodies.
# Generic banner / header / generator-meta fingerprinting
curl -sI "http://$TARGET/" -o /tmp/cve_headers.txt
grep -iE 'server|x-powered-by|x-aspnet-version|x-version|x-generator' /tmp/cve_headers.txt
curl -s "http://$TARGET/" -o /tmp/cve_home.html
grep -iE 'generator|powered by|x-version|wp-includes/js/wp-emoji|joomla|drupal|wp-content' /tmp/cve_home.html | head -20
# nmap service/version detection (when a non-HTTP port is exposed)
nmap -sV -On -p- --version-intensity 7 "$TARGET_HOST" -oN /tmp/cve_nmap.txt
# whatweb — broad CMS/framework signature scan
whatweb -a 3 "http://$TARGET/" --no-errors > /tmp/cve_whatweb.txt 2>&1
# WordPress-specific
curl -sI "http://$TARGET/wp-login.php" -o /tmp/cve_wp_login.txt
curl -s "http://$TARGET/readme.html" -o /tmp/cve_wp_readme.html
grep -iE 'version' /tmp/cve_wp_readme.html | head -5
# WordPress plugin enumeration (preferred: wpscan)
wpscan --url "http://$TARGET/" --enumerate p,t,u --no-banner --random-user-agent \
-o /tmp/cve_wpscan.txt 2>&1
# Manual plugin readme sweep (fallback when wpscan is unavailable)
for plugin in contact-form-7 woocommerce elementor yoast-seo akismet jetpack \
wp-super-cache w3-total-cache wordfence all-in-one-seo-pack \
wpforms-lite duplicator updraftplus classic-editor really-simple-ssl \
wp-mail-smtp redirection wp-statistics polylang loginizer \
simple-membership easy-wp-smtp mainwp-child seo-by-rank-math \
wp-fastest-cache litespeed-cache autoptimize wp-optimize \
advanced-custom-fields better-wp-security; do
code=$(curl -s -o /dev/null -w '%{http_code}' \
"http://$TARGET/wp-content/plugins/${plugin}/readme.txt")
if [ "$code" = "200" ]; then
ver=$(curl -s "http://$TARGET/wp-content/plugins/${plugin}/readme.txt" \
| grep -iE 'stable tag|^version' | head -1)
echo "plugin=$plugin version=$ver"
fi
done | tee /tmp/cve_wp_plugins.txt
# Joomla / Drupal
curl -s "http://$TARGET/administrator/manifests/files/joomla.xml" -o /tmp/cve_joomla.xml
curl -s "http://$TARGET/CHANGELOG.txt" -o /tmp/cve_drupal_changelog.txt
Output discipline: at the end of Step 1 you MUST have at least one <software>@<version> pair (e.g. wordpress@5.7.1, contact-form-7@5.1.6, apache-struts@2.5.16). If you don't, fingerprinting failed — see the Decision Tree below.
Step 2 — CVE identification: MANDATORY tool sequence
The exploit agent has two registered tools you MUST call in this order. Do NOT skip to manual web searches; the tools are pre-wired to fast CVE databases.
# Pattern 1: single product fingerprint
cve_lookup("wordpress 5.7.1")
# → returns: list of CVE IDs ranked by relevance/severity
# Pattern 2: plugin / library fingerprint
cve_lookup("contact-form-7 5.1.6")
# → returns: plugin-specific CVE IDs
# Pattern 3: framework + version
cve_lookup("apache struts 2.5.16")
# → returns: e.g. CVE-2018-11776, CVE-2017-5638
For EACH candidate CVE returned, immediately call cve_poc_lookup to retrieve PoC URLs (github.com/trickest/cve, exploit-db, packetstorm, etc.):
cve_poc_lookup("CVE-
常见问题
漏洞信息来自哪里?
该技能使用两个查询工具,一个用于漏洞记录,一个用于公开的概念验证代码。
该技能需要精确的版本号吗?
它适用于有明确版本号的软件,因此在版本未知时不会使用。
智能体会立即运行公开代码吗?
不会。该技能指出,在调整任何公开代码之前,应先对目标进行指纹识别,并保存每一项输出。
详情
作者的原始描述
Known CVE exploitation — fingerprint CMS/framework/plugin version, look up CVE candidates via cve_lookup, retrieve PoCs via cve_poc_lookup, adapt the public exploit to the target, and confirm RCE. Use whenever the challenge tag is `cve`, recon fingerprinted a versioned service, or the challenge name hints at known vulnerable software (WordPress, Joomla, Apache Struts, Spring4Shell, Log4j, etc.).
热度
- GitHub 星标
- 6.5k
- 排名
- #14058
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …