skills/pentest-report/SKILL.md
按照标准格式生成渗透测试报告,包含项目信息表、漏洞发现清单、漏洞详情(含属性表、描述、复现步骤、证据截图、修复建议)、附录(风险等级定义、CVSS说明、词汇表)。当用户要求生成渗透测试报告、安全测试报告、漏洞报告时使用此技能。严格遵循项目模板目录中的标准格式。
npx skillsauth add 0X6C7879/aegissec pentest-reportInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本 Skill 仅用于生成授权渗透测试的报告。使用前请确保:
未经授权的渗透测试是非法行为。
在以下情况下使用此技能:
所有报告必须包含以下章节,按顺序排列:
标题和项目信息表
# 渗透测试报告:[目标系统名称/项目名称]漏洞发现清单 (Vulnerability Summary)
漏洞详情 (Detailed Findings)
### [VL-XXX] 漏洞标题#### 2.1 漏洞描述#### 2.2 复现步骤 (Proof of Concept)#### 2.3 证据截图#### 2.4 修复建议附录 (Appendix)
### 3.1 风险等级定义 - 风险等级表格### 3.2 CVSS 评分说明 - CVSS v3.1 说明### 3.3 泄露凭证列表(如有)### 3.4 测试工具参考 - 工具表格### 3.5 词汇表### 3.6 参考文档报告签署
每个漏洞章节必须以属性表格开始:
| 属性 | 详情 |
| :--- | :--- |
| **风险等级** | 🔴 **严重 (Critical)** / 🟠 **高危 (High)** / 🟡 **中危 (Medium)** / 🔵 **低危 (Low)** |
| **CVSS 评分** | 0.0 - 10.0 |
| **漏洞类型** | [漏洞类型] |
| **受影响URL** | `[完整URL]` |
| **参数** | `[参数名]`(如有)|
http 语言标识POST /api/login HTTP/1.1
Host: example.com
Content-Type: application/json
{"username":"admin","password":"123456"}
bash 语言标识sqlmap -u "http://target.com" --dbs
php 语言标识$stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?");
$stmt->execute([$id]);
生成渗透测试报告时遵循以下步骤:
从用户获取以下信息:
为每个漏洞分配 ID:
根据 CVSS 评分确定风险等级:
| CVSS 范围 | 风险等级 | 图标 | |----------|----------|------| | 9.0 - 10.0 | 严重 (Critical) | 🔴 | | 7.0 - 8.9 | 高危 (High) | 🟠 | | 4.0 - 6.9 | 中危 (Medium) | 🟡 | | 0.1 - 3.9 | 低危 (Low) | 🔵 | | 0.0 | 信息 (Info) | ⚪ |
按以下顺序生成:
项目信息表 - 填充 4 个必需字段
漏洞发现清单 - 创建表格,包含所有漏洞的摘要信息
漏洞详情 - 为每个漏洞创建独立章节:
附录 - 按模板包含所有必需子章节
生成报告后检查:
将生成的报告保存到用户的 reports 目录:
/Users/huimingliao/Documents/code/pentest-skills/reports/
文件命名格式:
pentest_report_[目标系统]_[日期].md
| :--- | :--- |❌ 不要省略附录章节 ❌ 不要混合使用不同的风险等级表示方式 ❌ 不要在属性表中缺少必需字段 ❌ 不要在复现步骤中省略 HTTP 请求示例 ❌ 不要在修复建议中只提供文字说明(必须包含代码示例)
✅ 每个漏洞必须包含完整的 4 个子章节 ✅ 修复建议必须包含代码对比(错误 vs 正确) ✅ 所有表格必须有正确的 Markdown 格式 ✅ 必须包含免责声明
/Users/huimingliao/Documents/code/pentest-skills/templates/pentest_report_template.md/Users/huimingliao/Documents/code/pentest-skills/reports/pentest_report_localhost_9999_v2.md/Users/huimingliao/Documents/code/pentest-skills/reports/development
WooYun-derived business-logic testing methodology for web apps and APIs. Use when the request involves 支付、退款、订单、越权、认证、授权、价格篡改或业务流程绕过 review, especially black-box probing for price tampering, account takeover, and process bypass flaws.
tools
Escalate privileges on Windows systems using service misconfigurations, DLL hijacking, token manipulation, UAC bypasses, registry exploits, and credential dumping. Use when performing Windows post-exploitation or privilege escalation.
development
Use when performing AD pentest tunneling and pivoting, especially with Ligolo-ng, Chisel, frp, proxychains, SSH forwarding, SOCKS relays, reverse tunnels, or when internal reachability is the main blocker.
development
Threat model, security audit, find vulnerabilities, check security of my app, risk assessment, penetration test prep, analyze attack surface, what could an attacker exploit. Use this skill whenever a user wants holistic security analysis of a codebase, application, or project. MUST be invoked instead of analyzing security yourself — it runs a specialized 8-phase STRIDE workflow producing professional deliverables you cannot generate alone: risk assessment reports, DFD diagrams, threat inventories, attack path validation, mitigation plans, and pentest plans. Trigger on: 威胁建模, 安全评估, 渗透测试, 安全分析, 安全审计, 安全检查, 风险评估. NOT for: fixing one specific bug, adding one security feature (rate limiting, CORS), writing tests, CI/CD setup, or debugging errors.