agentleFS
Wang200935Wang200935/security-agent-skills/skills/post-exploitation/pentest-report-generator/SKILL.md

pentest-report-generator

Skill4 starsChanged 3 months agoMITView on GitHub

报告生成流程 — 生成结构化渗透测试报告和PoC。Use when performing authorized penetration testing,

The file

Files
SKILL.md

报告生成 Skill

将渗透测试结果整理为结构化报告,包含详细发现、PoC 脚本和修复建议。

报告结构

0. 第三方 API Key 暴露補充流程

當高危發現是前端公開硬編碼 Google Maps / Google Cloud API key 時,不要只回報靜態掃描結果;應做少量、非破壞性的 API 實測,並在報告中區分「完全可濫用」、「只有部分 API 可用」、「有 referrer/API 限制但仍公開」等狀態。詳細檢查矩陣與欄位範本見 references/google-api-key-exposure-validation.md。

1. 项目概述

  • 测试目标
  • 测试时间
  • 测试范围
  • 测试方法

2. 执行摘要

  • 高危发现概览
  • 风险等级分布
  • 关键建议
  • 當使用者要求「每個攻擊標地/目標深度挖掘高危」時,使用 references/per-target-high-risk-summary.md:每個 host 必須有獨立章節、確認高危數、新增/既有高危、未確認項目與控制測試結果,並同時輸出 Markdown + CSV。
  • 當任務進入多輪「繼續深挖」或要求復核候選高危時,使用 references/iterative-high-risk-candidate-review.md:把 confirmed high、high candidate、medium、not confirmed 分開;每個候選都要寫明升級/降級/維持候選的控制測試與理由。
  • 當同一批目標已進入第 5 輪、第 6 輪等持續深挖時,使用 references/multi-round-high-risk-deep-dive-pattern.md:每輪建立 per-target 詳報 + Markdown/CSV 彙整;平行跑獨立目標;以 status 分類 confirmed/promoted/downgraded/closed;最後驗證檔案大小、CSV row count 與狀態分布後再回覆。
  • 當使用者要求「把所有高危整理」並確認是否真的可列高危時,使用 references/final-high-risk-confirmation-and-dedup.md:從最新 round 匯總所有 high candidates,按根因去重,逐項做低速非破壞性實測與控制測試,將 invalid/stale/medium-only 項目降級,最後輸出 Markdown + CSV + JSON 與 raw evidence。
  • 當使用者質疑先前高危判定、指出「這根本不是漏洞」、或要求重新深度滲透測試時,使用 references/strict-high-risk-retest-standard.md:先把所有舊發現重置為候選,只在有敏感資料/可用注入/未授權有影響操作/可濫用 API/可讀 metadata 等安全影響閉環時才列正式高危;generic 500、空 JSON、tmpName、公開頁、invalid key 一律降級或列候選。
  • 台南多輪深挖的最終整理教訓見 references/final-high-risk-consolidation-lessons-tainan-round12.md:Google key 要用 runtime 有效性決定保留/降級;admin category/page/id 邊界按 ACL 根因合併;SSRF/GMLFile 要用控制測試限縮措辭,避免把未證明的 XXE/RCE/附件 IDOR 寫成高危。

3. 详细发现

对每个漏洞:

  • 漏洞名称和严重等级
  • 漏洞类型
  • 影响范围
  • 验证步骤
  • 关键证据(请求/响应/截图)
  • PoC 脚本
  • 修复建议

4. 攻击路径

  • 完整攻击链图示
  • 从初始访问到最终目标的路径

5. 附件

  • PoC 脚本
  • 流量抓包
  • 截图证据

Hermes 使用適配

  • 來源為 專案技能,已匯入 Hermes 本地 skill。僅在已授權滲透測試、CTF、內部安全評估或防禦驗證範圍內使用。
  • 原文若提到 fetch,在 Hermes 中優先使用 web_extract、browser 或 terminal(curl/HTTPie) 取得真實回應。
  • 原文若提到 python_execute,在 Hermes 中使用 execute_code 或 terminal(python3 ...);計算、編碼、hash、PoC 驗證必須用工具實測,不靠猜。
  • 原文若提到 MCP/Burp/adb/frida/jadx/chrome_devtools 等外部工具:先確認本機是否安裝或可用;不可用時以 Hermes 現有 web、browser、terminal、file、vision 工具替代,並明確標註限制。
  • 下一次滲透任務中,先載入 -pentest-flow 做總路由,再依場景載入本系列專項 skill(例如 -web-security-advanced、-osint-recon、-rapid-checklist)。

來源與維護

  • 原始 skill 已保存於 references/upstream-skill.md;README/LICENSE 已保存於 references/。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.