Agent Skills
› H-mmer/pentest-agents
› mindmap
mindmap
GitHub基于目标技术栈、侦察及情报数据,生成文本格式的攻击面思维导图。按信任边界分组节点,标记漏洞优先级与测试状态,揭示盲点并推荐高价值测试路径,辅助渗透决策。
Trigger Scenarios
用户发起攻击面分析请求
需要可视化展示技术栈与漏洞的关联关系
规划下一步渗透测试重点
Install
npx skills add H-mmer/pentest-agents --skill mindmap -g -y
SKILL.md
Frontmatter
{
"name": "mindmap",
"description": "Generate a text-based attack surface mindmap. Shows tech stack → vuln class → endpoint relationships. Usage: \/mindmap <target>"
}
Generate attack surface mindmap for: $ARGUMENTS
Process
- Read brain data:
uv run python3 ../../tools/brain.py brief $ARGUMENTS - Read recon data from recon/ directory
- Read intel data:
uv run python3 ../../tools/intel_engine.py suggest <tech-stack> - Generate a tree-format mindmap:
target.com
├── Tech Stack
│ ├── Next.js 14 → SSRF (Server Actions), Open Redirect
│ ├── GraphQL → Introspection, IDOR via node(), Mutation Auth
│ └── PostgreSQL → SQL Injection
├── Auth
│ ├── Okta SSO → SAML bypass, OAuth redirect_uri
│ └── JWT → Secret brute-force, Algorithm confusion
├── API Surface
│ ├── /api/v2/users/{id}/* → IDOR (P1)
│ │ ├── /orders — TESTED: exhausted
│ │ ├── /export — UNTESTED
│ │ └── /settings — UNTESTED
│ ├── /api/v2/payments/* → Race conditions, price manipulation (P1)
│ └── /graphql → Auth bypass on mutations (P1)
├── File Handling
│ └── /upload → Extension bypass, SVG XSS (P2)
└── Findings
├── [CONFIRMED] IDOR on /api/v2/users/{id}/orders
└── [EXHAUSTED] XSS on /search — CloudFront blocks all payloads
- Mark each endpoint as TESTED, UNTESTED, CONFIRMED, or EXHAUSTED from brain data
- Suggest: "Start with UNTESTED P1 endpoints. Run /hunt $ARGUMENTS --vuln-class
"
Top-Tier Mindmap Standard
The mindmap should expose attack decisions at a glance.
- Group by trust boundary first: unauth, user, tenant, admin, integration, internal, CI/CD, AI/tool.
- Mark every node with one of:
P1,P2,Kill,Confirmed,Partial,Exhausted,Chain. - Draw capability edges, not just URL hierarchy: export reads data, webhook sends server-side request, template renders attacker input, OAuth callback grants token.
- Surface blind spots explicitly: "no second-account test", "no browser verification", "no sibling replay", "no chain attempt".
- End with the top three routes where one more test could change severity or reportability.
Version History
- 41d49b6 Current 2026-07-24 11:58


