Threat Modeling Mindmap logo

Threat Modeling Mindmap

Community
SubhiSec
threat-modeling-mindmap

Build a mental and visual map of the target application before hunting — entry points, trust boundaries, data flows, and high-value functionality. Use when user has scope parsed and wants to plan WHERE to hunt rather than diving into recon.

Overview

PublisherSubhiSec
Repositoryclaude-ai-cyber-security-skills
Skill namethreat-modeling-mindmap
Stars
45
Forks
5
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by SubhiSec on GitHub. Read the source before you install it.

Installation

Install the Threat Modeling Mindmap AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/SubhiSec/claude-ai-cyber-security-skills/tree/main/skills/03-threat-modeling-mindmap
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SubhiSec/claude-ai-cyber-security-skills.git /tmp/claude-ai-cyber-security-skills
mkdir -p .claude/skills
cp -r /tmp/claude-ai-cyber-security-skills/skills/03-threat-modeling-mindmap .claude/skills/threat-modeling-mindmap
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Threat Modeling Mindmap in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Threat Modeling Mindmap on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Threat Modeling Mindmap is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Threat Modeling & Mind-Mapping

The hunters who win don't scan more — they scan smarter. Map first, attack the right node.

When to invoke

Trigger phrases:

  • "threat model this app"
  • "mind map this target"
  • "where should I focus"
  • "what's the attack surface"
  • "plan my hunt on X"

Output: A mind map (Markmap / Markdown / plain text) + a prioritized hunt list.

Why this matters

A target like app.target.com has dozens of features. 80% of bounties come from 20% of features — typically:

  • Authentication and account management
  • Payment / billing flows
  • File uploads
  • Admin / role-based endpoints
  • API endpoints exposed via JS
  • Third-party integrations
  • Webhook handlers
  • Search / report builders

Mapping these first prevents wasted hours on static marketing pages.

The 6-layer Mind Map

TARGET
├── 1. AUTHENTICATION
│   ├── Login (creds, SSO, OAuth)
│   ├── Registration
│   ├── Password reset
│   ├── 2FA / MFA
│   ├── Session management (cookies, JWT)
│   ├── Logout
│   └── Account recovery
│
├── 2. AUTHORIZATION
│   ├── Roles (user, admin, support)
│   ├── Multi-tenancy (org/team scoping)
│   ├── Permission inheritance
│   ├── Impersonation / "view as"
│   └── API key scoping
│
├── 3. USER DATA
│   ├── Profile read/update
│   ├── PII fields (email, phone, SSN, address)
│   ├── Settings (notifications, integrations)
│   ├── Avatar / profile image upload
│   └── Account deletion
│
├── 4. CORE FUNCTIONALITY (varies per target)
│   ├── Main business logic (orders, posts, projects)
│   ├── File handling (upload, download, sharing)
│   ├── Search
│   ├── Comments / messaging
│   ├── Notifications
│   └── Webhooks
│
├── 5. PAYMENTS / BILLING (if applicable)
│   ├── Add payment method
│   ├── Subscription create/cancel
│   ├── Refunds
│   ├── Coupons / discount codes
│   └── Invoices
│
└── 6. TECHNICAL SURFACE
    ├── API (REST / GraphQL / gRPC)
    ├── Webhooks
    ├── OAuth / SSO endpoints
    ├── File CDN
    ├── WebSocket / SSE
    ├── Public buckets (S3, GCS)
    └── Source maps / exposed JS

Step-by-Step Workflow

1. Manual exploration (30-60 min)

Sign up for the target. Click EVERY feature. Note:

  • What HTTP methods are used (GET/POST/PUT/DELETE/PATCH)
  • What identifiers are in URLs (UUID? sequential int? slug?)
  • Where files are uploaded
  • Where roles are mentioned
  • Where money / payments are involved
  • Where third-party integrations exist

2. Run passive crawl

bash
# Capture all URLs the app uses
katana -u https://app.target.com -d 3 -jc -o app-urls.txt

# Add Wayback / GAU for historical paths
echo "app.target.com" | gau --providers wayback,otx,commoncrawl > historical-urls.txt
echo "app.target.com" | waybackurls >> historical-urls.txt

# Combine and dedupe
cat app-urls.txt historical-urls.txt | sort -u > all-urls.txt

3. Mine JS for endpoints

bash
# See [[js-analysis]] for full workflow
# Quick version:
katana -u https://app.target.com -d 2 -jc -kf all -o crawl.txt
cat crawl.txt | grep -E '\.js(\?|$)' | sort -u > js-files.txt

# Extract endpoints from each JS
while read js; do
  python3 ~/tools/LinkFinder/linkfinder.py -i "$js" -o cli
done < js-files.txt | sort -u > js-endpoints.txt

4. Identify trust boundaries

Where does data cross from one trust zone to another? These are bug magnets:

  • Unauthenticated → Authenticated: login, password reset
  • Low-priv user → High-priv user: role escalation paths
  • User → System: webhooks, callbacks
  • System → User: notification handlers, email templates
  • Internal → External: SSRF candidates (URL fetchers, image proxies)
  • Tenant A → Tenant B: multi-tenant data access

5. Build the mind map

Use Markmap for visual, or plain markdown:

markdown
# Target: app.target.com (mind map)

## Auth
- /login (POST, email+password)
- /sso/google (OAuth)
- /reset (POST, email-based token)
  - **HUNT:** token entropy? predictable?
- /2fa/verify (POST, TOTP)
  - **HUNT:** rate limit? backup codes?

## Multi-tenancy
- /api/v3/org/{org_id}/users
  - **HUNT:** IDOR — can org_A see org_B's users?
- /api/v3/org/{org_id}/billing
  - **HUNT:** IDOR — billing access cross-org?

## File handling
- /upload (POST, multipart)
  - Allowed types: jpg, png, pdf?
  - **HUNT:** polyglot? SVG XSS? content-type bypass?
- /api/v3/files/{file_id}/download
  - **HUNT:** path traversal? IDOR?

## Payments
- /billing/payment-method (POST)
- /billing/refund (POST, admin-only)
  - **HUNT:** can user trigger? race condition?

6. Prioritize hunt order

Rank by (impact × ease):

FeatureClass to tryEffortLikely bounty if found
Multi-tenant APIIDORLow$$$$
Password resetToken / raceMed$$$
File uploadRCE / XSSMed-High$$$$
OAuth flowredirect_uriLow$$$
Admin endpointsForced browseLow$$$
SearchSQLi / RCEHigh$$$$$
WebhookSSRFMed$$$$

Output template

markdown
# Threat Model: app.target.com

**Scope:** in-scope (per scope-analysis)
**Date:** YYYY-MM-DD

## Surface summary
- 47 routes discovered
- 3 user roles identified: guest, user, admin
- 2 tenant levels: org, team
- File upload: yes (avatar + project attachments)
- Payments: Stripe-based, custom backend
- OAuth: Google, Microsoft
- Webhooks: yes (Slack, Zapier integrations)

## High-priority hunt targets

### 1. Cross-tenant IDOR (priority: P0)
Endpoints:
- `GET /api/v3/org/{org_id}/projects`
- `GET /api/v3/org/{org_id}/users`
- `GET /api/v3/org/{org_id}/billing/invoices`
Test plan: Create 2 accounts in different orgs; cross-fetch.

### 2. Password reset token analysis (priority: P0)
- 32-char token; check entropy & expiry
- Race-condition on reset endpoint

### 3. File upload (priority: P1)
- Endpoint: POST /api/v3/files
- Test SVG XSS, polyglot, content-type spoofing

### 4. OAuth redirect_uri (priority: P1)
- /oauth/authorize?redirect_uri=...
- Test open redirect → token theft

### 5. Webhook SSRF (priority: P2)
- /integrations/webhook/test endpoint
- Test internal IP / metadata access

## De-prioritized (later or skip)
- Static marketing pages
- Public blog
- Status page (out of scope anyway)

## Time budget: 10 days
- Days 1-2: IDOR + password reset
- Days 3-4: File upload + OAuth
- Days 5-7: Webhook SSRF + business logic
- Days 8-10: Edge cases + report writing

Cross-references

  • [[scope-analysis]] — runs before this
  • [[subdomain-enum]] — for the asset list
  • [[js-analysis]] — for endpoint extraction
  • All Phase 3 skills — apply mind map to specific vuln classes

Common pitfalls

  1. Diving into scanning before manual exploration. You miss the workflow.
  2. Treating all features equally. Marketing pages rarely pay. Auth/payment always do.
  3. Not signing up for the app. Authenticated surface is 10x bigger than unauthenticated.
  4. Ignoring mobile / API. They're often less-tested than the web UI.
  5. No prioritization. Without ranking, you hunt randomly.

Pro tips

  • "View source" + Ctrl+F for api/fetch/axios — fast endpoint discovery.
  • Burp's site map after a manual walk is a poor man's mind map. Group by host.
  • Save the mind map per target in ~/loot/<target>/mindmap.md. Update as you learn.
  • A good mind map is reusable across re-tests when scope updates.

Frequently asked questions

What does the Threat Modeling Mindmap AI skill do?

Build a mental and visual map of the target application before hunting — entry points, trust boundaries, data flows, and high-value functionality. Use when user has scope parsed and wants to plan WHERE to hunt rather than diving into recon.

Why use Threat Modeling Mindmap on TypingMind?

Because you install it once and use it with any model. Threat Modeling Mindmap is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Threat Modeling Mindmap in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/SubhiSec/claude-ai-cyber-security-skills/tree/main/skills/03-threat-modeling-mindmap. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Threat Modeling Mindmap?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Threat Modeling Mindmap?

As many as you like. As long as a model supports skills, you can use Threat Modeling Mindmap with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Threat Modeling Mindmap AI skill free?

It is published on GitHub by SubhiSec. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇