threat-modeling
Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE. Use when assessing…
от hardw00t★ 109 звёзд на GitHub
Установить threat-modeling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Threat Modeling
Adversarial design-time analysis: enumerate threats against a system and specify mitigations. This skill routes to methodology files, workflow runbooks, example libraries, and control-catalog references. Extended adversarial reasoning is the core value — spend thinking budget on threat enumeration.
When to Use
- New system or major architecture change needs security review.
- An OpenAPI / AsyncAPI spec exists and you want automatic STRIDE-per-interaction.
- Architecture docs or diagrams need threat analysis.
- A specific high-impact threat requires attack-tree deep dive.
- Privacy / personal-data handling needs threat analysis (LINDDUN).
- Mitigations need mapping to NIST CSF / NIST 800-53 / CIS / OWASP ASVS.
- Producing a threat model report for stakeholders / auditors.
- Prioritizing existing threat lists by risk score.
Trigger Phrases
- "threat model this application / service / API"
- "identify threats using STRIDE / PASTA / LINDDUN"
- "create a data flow diagram / DFD"
- "analyze the attack surface"
- "build an attack tree for X"
- "map these threats to NIST / ASVS / CIS controls"
When NOT to Use This Skill
- Runtime API testing / exploitation of a live endpoint → use
api-security(this skill identifies threats;api-securityconfirms exploitability). - Code-level vulnerability discovery in a repo (SAST/DAST/SCA) → use
sast-orchestration. - Container image CVE scanning → use
container-security. - Cloud posture misconfigurations → use
iac-security/ cloud-security skill. - Incident response on an active intrusion → this is design-time; use IR playbooks instead.
- Compliance gap analysis only (no threat enumeration) → use a compliance skill; thread results back here for design changes.
Decision Tree
1. Have an OpenAPI / AsyncAPI spec?
→ workflows/stride_from_openapi.md (highest-leverage entry point)
2. Have architecture docs or diagrams (or diagram images)?
→ workflows/stride_from_arch_docs.md
(if diagrams only, first workflows/dfd_creation.md)
3. Need a DFD from scratch?
→ workflows/dfd_creation.md (emit Mermaid)
4. Already have a high-level threat; need deep path analysis?
→ workflows/attack_tree_from_threat.md
5. Have threats; need mitigations + catalog mappings?
→ workflows/threat_to_mitigation.md
6. Privacy-specific modeling?
→ methodology/linddun.md
7. Enterprise-wide risk?
→ methodology/octave.md
8. Unsure which methodology?
→ references/framework_comparison.md
Parallelism Hints
Parallelizable:
- STRIDE-per-element: one sub-agent per element across an entire DFD.
- STRIDE-per-category: one sub-agent per STRIDE letter (S, T, R, I, D, E) across the whole system.
- Attack-tree sub-branches: each first-level OR branch is independent.
- Trust-boundary deep dives: one sub-agent per boundary.
- OpenAPI operation analysis: batch operations across sub-agents (e.g., by tag).
- Control-catalog mapping: per finding.
Sequential (do not parallelize):
- DFD construction → threat enumeration (you need the DFD first).
- Threat enumeration → prioritization (need the full list to rank).
- Mitigation design → residual-risk assessment.
- Top-threat selection → attack-tree construction.
Sub-Agent Delegation
Recommended patterns:
| Pattern | Sub-agents | When |
|---|---|---|
| Per STRIDE category | 6 (S, T, R, I, D, E) | Comprehensive enumeration on a whole system — each sub-agent focuses adversarial reasoning on one category across all elements. |
| Per trust boundary | 1 per boundary | Deep dive on multi-zone systems; each sub-agent owns cross-boundary threats for their boundary. |
| Per subsystem | 1 per service / component | Microservice architectures — each sub-agent threat-models its service, then a merge step deduplicates. |
| Per attack-tree branch | 1 per first-level OR child | Parallel tree expansion. |
| Per OpenAPI tag group | 1 per tag | Large specs — shard operations by tag. |
Always define a merger agent that deduplicates findings (same threat surfaced by multiple sub-agents) and reconciles inconsistent risk scores.
Reasoning Budget
Extended thinking is the whole point of this skill. Threat identification is an adversarial creativity task — models consistently miss threats when run without extended thinking.
Extended thinking ON for:
- Initial threat enumeration (per-element and per-interaction)
- Trust-boundary crossing analysis
- Attack-tree branch generation (step 2 of
workflows/attack_tree_from_threat.md) - Leaf annotation — accurate probability/cost estimation
- Finding novel abuse cases the documentation doesn't mention
- Deciding when the architecture is ambiguous vs attestable
Extended thinking OFF for:
- Formatting findings into
schemas/finding.json - Emitting Mermaid from a known DFD structure
- Looking up control IDs (
references/control_catalogs.mdis deterministic) - Report assembly from template
Budget gui
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- examples/attack_tree_banking.md
- examples/bounty_patterns_2024_2026.md
- examples/mermaid_dfd_templates.md
- examples/stride_threat_library.md
- methodology/attack_trees.md
- methodology/dread.md
- methodology/linddun.md
- methodology/octave.md
- methodology/pasta.md
- methodology/stride.md
- references/control_catalogs.md
- references/framework_comparison.md
- references/trust_boundary_patterns.md
- schemas/finding.json
- templates/stride_table.md
- templates/threat_model_report.md
- workflows/attack_tree_from_threat.md
- workflows/dfd_creation.md
- workflows/stride_from_arch_docs.md
- workflows/stride_from_openapi.md
- workflows/threat_to_mitigation.md
FAQ
Что делает скилл threat-modeling?
Systematic threat modeling skill for applications, APIs, and systems using STRIDE, PASTA, Attack Trees, DREAD, LINDDUN, and OCTAVE. Use when assessing security architecture, creating data flow diagrams (Mermaid), enumerating threats from OpenAPI specs or architecture docs, building attack trees, mapping threats to NIST/CIS/OWASP ASVS controls, or producing a threat model report. Triggers on requests to threat model, analyze attack surface, create a DFD, apply STRIDE, or design security mitigations.
Как установить скилл threat-modeling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл threat-modeling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…