threatmodel

threatmodel is a command for Claude Code from Security-Phoenix-demo/security-skills-claude-code. It costs 19 tokens per session (313 once invoked), scanned A, original, MIT.

A read-only threat model for a repository, feature, or component. It uses STRIDE, a framework for classifying security threats, and DREAD, a method for rating their risk.

In plain words
What is it for?
Use it to map a system, analyze threats, rank risks, describe attack paths, and prioritize preventive, detective, and corrective safeguards.
Why use it?
It helps identify how an attacker might abuse a design before implementation or release. The output connects system boundaries and data flows to attack scenarios and mitigations.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the phoenix-security-review plugin — 6 skills, 4 commands, 1 agent shipped together

Good fit Use it to map a system, analyze threats, rank risks, describe attack paths, and prioritize preventive, detective, and corrective safeguards.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Security-Phoenix-demo/security-skills-claude-code
Claude Code
/plugin install phoenix-security-review

Made for: Claude Code.

Or install phoenix-security-review, the plugin that ships this one along with the rest of its 6 skills, 4 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threatmodel

README.md
[![agentmods](https://agentmods.dev/badge/commands/security-phoenix-demo/security-skills-claude-code/threatmodel/github.svg)](https://agentmods.dev/commands/security-phoenix-demo/security-skills-claude-code/threatmodel)
Your own site
<a href="https://agentmods.dev/commands/security-phoenix-demo/security-skills-claude-code/threatmodel"><img src="https://agentmods.dev/badge/commands/security-phoenix-demo/security-skills-claude-code/threatmodel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threatmodel

Your own site · 80×15
<a href="https://agentmods.dev/commands/security-phoenix-demo/security-skills-claude-code/threatmodel"><img src="https://agentmods.dev/badge/commands/security-phoenix-demo/security-skills-claude-code/threatmodel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00313
Opus 5.5 $0.00008 $0.00125
Sonnet 5.5 $0.00004 $0.00063
Haiku 4.5 $0.00002 $0.00031

Measured 1mo ago against content hash c3543694ff49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

threatmodel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/phoenix-security-review/commands/threatmodel.md · 26 lines

What it actually says

You are running the Threat Modeling skill.

Instructions

  1. Load the skill at ${CLAUDE_PLUGIN_ROOT}/skills/threat-modeling/SKILL.md.
  2. Determine scope from $ARGUMENTS: full repo / feature / component / architecture description.
  3. Follow the skill's 10-step workflow: scope → architecture extraction → STRIDE analysis → DREAD scoring → attack scenarios → attack tree → mitigations → report.
  4. Output sections (in order):
    • System overview (components, trust boundaries, data flows)
    • STRIDE threats (grouped by category, each with affected components and attack vectors)
    • DREAD risk scores (table, sorted by risk)
    • Attack scenarios (top 3-5 chained attacks)
    • Attack tree (Mermaid diagram)
    • Mitigations (preventive / detective / corrective, prioritized by risk)
  5. If knowledge graph or CVE intelligence is unavailable, proceed with code-only analysis and note the limitation.

Scope guard

  • Read-only. No code changes.
  • This is a design-time activity. For diff-level vuln checks use /security-0day; for full code sweep use /security-audit.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed c3543694ff49
  2. 2mo ago First seen · 26 lines · 19 tokens per session scan A 7ca01495ad06

Subscribe to this mod's changes

threatmodel is a command published in the GitHub repository Security-Phoenix-demo/security-skills-claude-code (81 stars, last pushed 5d ago), licensed MIT. It adds 19 tokens to every session and 313 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

threatmodel compared with commands from other repositories

threatmodel next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threatmodelSecurity-Phoenix-demo/security-skills-claude-codeCommand815d agoMITA19Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code