/application-security:threat-model-analystfrom application-security
Produces full or incremental STRIDE-A threat models for repositories and systems, including architecture overviews, DFD diagrams, findings, STRIDE heatmaps, and executive assessment.
Ships in application-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze a repository, system, commit range, or previous report; transform code and architecture evidence into a STRIDE-A security model; output a standalone threat-model folder with diagrams, inventory, findings, and verification artifacts.
/threat-model-analyst behavior.threat-model-* folder with threat-inventory.json or an explicitly supplied baseline report plus target commit or HEAD.| User request or evidence | Mode | Required resource | Result |
|---|---|---|---|
"update", "refresh", "re-run", "incremental", "what changed", "since last analysis" plus a threat-model-* baseline | Incremental mode | references/incremental-orchestrator.md | Reuse the old report skeleton, verify every old item against current code, discover new items, and emit status annotations for new, resolved, and still-present threats. |
| Explicit baseline folder plus target commit or HEAD | Incremental mode | references/incremental-orchestrator.md | Compare baseline evidence with the target revision and produce an updated report with embedded HTML comparison. |
| Compare two commits or two reports | Incremental mode | references/incremental-orchestrator.md | Treat the older report or commit as baseline and the newer state as target. |
| Analyze a repo, generate a DFD, perform STRIDE-A, validate controls, identify trust boundaries | Single analysis mode | references/orchestrator.md | Execute the complete 10-step workflow and create architecture, DFD, STRIDE-A, prioritized findings, and executive assessment outputs. |
| Area | Inspect | Evidence standard |
|---|---|---|
| Spoofing | Authentication entry points, session creation, identity propagation, service-to-service credentials | Show the live owner path and the exact boundary where identity is asserted or trusted. |
| Tampering | Request validation, persistence writes, queues, deserialization, infrastructure mutation | Prove whether integrity controls exist before flagging a write path. |
| Repudiation | Audit logs, actor attribution, request IDs, immutable event trails | Distinguish absent evidence from weak evidence; do not infer auditability from generic logging. |
| Information disclosure | Secrets, tokens, PII, debug output, storage policies, cross-tenant data flows | Verify the data class, exposure route, and trust boundary. |
| Denial of service | Rate limits, pagination, expensive queries, fan-out, retries, queue backpressure | Tie the risk to an externally triggerable path or operational limit. |
| Elevation of privilege | Authorization checks, admin paths, object-level access, role transitions | Require code or configuration evidence for both the caller role and protected action. |
| Abuse | Business-logic misuse, workflow bypass, fraud paths, unsafe automation | Model the malicious but protocol-valid user, not only broken inputs. |
| Artifact | Use | Required content |
|---|---|---|
0.1-architecture.md | Architecture overview | Components, trust boundaries, entry points, data stores, assumptions, and Mermaid architecture diagrams. |
1-threatmodel.md | Threat inventory | DFD elements, data flows, STRIDE-A threats, mitigations, and open questions. |
2-stride-analysis.md | STRIDE heatmap | Component-by-component and flow-by-flow STRIDE-A coverage with severity rationale. |
3-findings.md | Prioritized findings | Exploit path, affected assets, evidence, likelihood, impact, CVSS 4.0, CWE, OWASP, and remediation. |
0-assessment.md | Executive assessment | Security posture, critical decisions, residual risk, and recommended next steps. |
threat-inventory.json | Incremental baseline | Stable identifiers, current status, evidence anchors, and comparison-ready metadata. |
Read only the resource needed for the current phase, then follow it exactly.
| Resource | Read when | Contains |
|---|---|---|
references/orchestrator.md | Starting any single analysis | Complete 10-step workflow, 34 mandatory rules, tool usage, sub-agent governance, and verification process. |
references/incremental-orchestrator.md | Updating, refreshing, re-running, or comparing reports or commits | Baseline loading, old skeleton inheritance, change detection, status annotations, HTML comparison, STRIDE heatmap diff, and findings diff. |
references/analysis-principles.md | Judging security issues | Verify-before-flagging rules, security infrastructure inventory, OWASP Top 10:2025, platform defaults, exploitability tiers, and severity standards. |
references/diagram-conventions.md | Creating any Mermaid diagram | Color palette, shapes, sidecar co-location rules, DFD style, architecture style, sequence diagram style, and pre-render checklist. |
references/output-formats.md | Writing report files | Templates and common mistakes checklist for 0.1-architecture.md, 1-threatmodel.md, 2-stride-analysis.md, 3-findings.md, and 0-assessment.md. |
references/skeletons/ | Before writing each output file | Verbatim skeleton-*.md fill-in structures; copy the relevant skeleton and replace [FILL] placeholders. |
references/verification-checklist.md | Inline checks and final pass | Per-file structure, diagram rendering, cross-file consistency, evidence quality, JSON schema, and delegated verification checklist. |
references/tmt-element-taxonomy.md | Identifying DFD elements from code | TMT-compatible element type taxonomy, trust boundary detection, data flow patterns, and code analysis checklist. |
orchestrator.md and incremental-orchestrator.md are the executable source of truth.Preserve trigger examples and report mechanics from previous versions: FIRST choose mode, read the relevant orchestrator before writing EACH output file, copy skeletons VERBATIM, use threat-model-20260309-174425 as a representative baseline folder name, allow a baseline to be auto-detected, accept commit/HEAD targets, support Incremental/update and follow-up requests, track threats/findings, use on-demand resource loading, and run per-file quick-checks. Apply Zero Trust, STRIDE-A, and defense-in-depth analysis throughout.
## Threat model result — <system or repository>
**Mode:** single analysis | incremental analysis | comparison
**Baseline:** <none | threat-model-* folder | commit/report>
**Target:** <HEAD | commit | report>
**Status:** complete | partial | blocked
### Artifacts
| File | Purpose | Status |
| --- | --- | --- |
| `0.1-architecture.md` | Architecture overview and diagrams | created | updated | blocked |
| `1-threatmodel.md` | Threat inventory and DFD | created | updated | blocked |
| `2-stride-analysis.md` | STRIDE-A heatmap and analysis | created | updated | blocked |
| `3-findings.md` | Prioritized findings | created | updated | blocked |
| `0-assessment.md` | Executive assessment | created | updated | blocked |
| `threat-inventory.json` | Machine-readable inventory | created | updated | blocked |
### Findings summary
| Severity | New | Still present | Resolved | Notes |
| --- | ---: | ---: | ---: | --- |
| Critical | <n> | <n> | <n> | <summary> |
| High | <n> | <n> | <n> | <summary> |
| Medium | <n> | <n> | <n> | <summary> |
| Low | <n> | <n> | <n> | <summary> |
### Verification
- Orchestrator followed: pass | fail
- Skeletons used verbatim before fill-in: pass | fail
- Diagrams pre-render checked: pass | fail
- Evidence anchors present for every finding: pass | fail
/threat-model-analyst trigger.references/orchestrator.md; incremental analysis read references/incremental-orchestrator.md.references/skeletons/skeleton-*.md file before [FILL] replacement.references/diagram-conventions.md and passed the pre-render checklist.threat-inventory.json exists for report folders that can serve as future baselines.references/analysis-principles.md (opens in a new tab)references/diagram-conventions.md (opens in a new tab)references/incremental-orchestrator.md (opens in a new tab)references/orchestrator.md (opens in a new tab)references/output-formats.md (opens in a new tab)references/skeletons/skeleton-architecture.md (opens in a new tab)references/skeletons/skeleton-assessment.md (opens in a new tab)references/skeletons/skeleton-dfd.md (opens in a new tab)references/skeletons/skeleton-findings.md (opens in a new tab)references/skeletons/skeleton-incremental-html.md (opens in a new tab)references/skeletons/skeleton-inventory.md (opens in a new tab)references/skeletons/skeleton-stride-analysis.md (opens in a new tab)references/skeletons/skeleton-summary-dfd.md (opens in a new tab)references/skeletons/skeleton-threatmodel.md (opens in a new tab)references/tmt-element-taxonomy.md (opens in a new tab)references/verification-checklist.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
threat-modeling, stride, security-analysis, dfd, risk-assessment
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin application-security7 skills in this plugin
/codeqlConfigure and run CodeQL code scanning with GitHub Actions workflows, default or advanced setup, CodeQL CLI databases, SARIF uploads, custom query packs, monorepo categories, build modes, and alert triage. Use this skill when the user asks to create or customize codeql.yml, choose CodeQL setup, configure a language matrix, run codeql database create or database analyze, upload SARIF, troubleshoot CodeQL builds, or interpret code scanning alerts./data-breach-blast-radiusPre-breach impact analysis: inventories sensitive data (PII, PHI, PCI-DSS, credentials), traces data flows, scores exposure vectors, and produces a regulatory blast radius report with fine ranges sourced verbatim from GDPR Art. 83, CCPA § 1798.155(a), and HIPAA 45 CFR § 160.404. Cost benchmarks from IBM Cost of a Data Breach Report (annually updated). All citations in references/SOURCES.md for verification. Use when asked: "assess breach impact", "what data could be exposed", "calculate blast radius", "data exposure analysis", "how bad would a breach be", "quantify data risk", "sensitive data inventory", "data flow security audit", "pre-breach assessment", "worst-case breach scenario", "breach readiness", "data risk report", "/data-breach-blast-radius". For any stack handling user data, health records, or financial information. Output labels law-sourced figures (exact) vs heuristic estimates (planning only). Does not replace legal counsel.Other plugins' skills for the same job