threatmodel

threatmodel is a command for Claude Code from Security-Phoenix-demo/security-skills-claude-code. It costs 19 tokens per session (310 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.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/security-phoenix-demo/security-skills-claude-code/threatmodel
Clone the repo
git clone --depth 1 https://github.com/Security-Phoenix-demo/security-skills-claude-code

Made for: Claude Code.

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.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.svg" alt="Measured on agentmods" 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 310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00310
Opus 5 $0.00010 $0.00155
Sonnet 5 $0.00004 $0.00062
Haiku 4.5 $0.00002 $0.00031

Measured 6d ago against content hash 7ca01495ad06, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

skills/Security Assessment/install/commands/threatmodel.md · 26 lines

What it actually says

You are running the Threat Modeling skill.

Instructions

  1. Load the skill at skills/Security Assessment/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-assessment.
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. 6d 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 (69 stars, last pushed 4mo ago), licensed MIT. It adds 19 tokens to every session and 310 once invoked, about $0.0001 per session on Opus 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.