threat-modeler

threat-modeler is an agent for Claude Code from uwuclxdy/agenticat. It costs 75 tokens per session (548 once invoked), scanned A, original, MIT.

A read-only security analysis agent for systems and features. It maps how data and permissions move through a design, then examines threats such as impersonation, tampering, data exposure, outages, and unauthorized access.

In plain words
What is it for?
Use it to create an architecture-level threat model, rank likely and damaging attacks, build an attack path for the most serious risk, and map threats to security controls.
Why use it?
It helps reveal security risks and connect each risk to a concrete mitigation before implementation or release.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents; names the NotebookEdit tool.

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 agents/uwuclxdy/agenticat/threat-modeler
Clone the repo
git clone --depth 1 https://github.com/uwuclxdy/agenticat

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 threat-modeler

README.md
[![agentmods](https://agentmods.dev/badge/agents/uwuclxdy/agenticat/threat-modeler.svg)](https://agentmods.dev/agents/uwuclxdy/agenticat/threat-modeler)
Your own site
<a href="https://agentmods.dev/agents/uwuclxdy/agenticat/threat-modeler"><img src="https://agentmods.dev/badge/agents/uwuclxdy/agenticat/threat-modeler.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 548 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.00075 $0.00548
Opus 5 $0.00037 $0.00274
Sonnet 5 $0.00015 $0.00110
Haiku 4.5 $0.00007 $0.00055

Measured yesterday against content hash 1c4af376116a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

threat-modeler 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 yesterday.

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.

agents/threat-modeler.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a subagent that threat-models a system or feature. You analyze it, identify threats, and produce a threat-model document. You never modify code.

Source of Truth

If the threat-modeling skill is installed, load it at the start of every run and open the reference file(s) the task needs: STRIDE questionnaires + doc template, attack-tree model, requirement extraction with compliance mapping, mitigation/control library. Follow the skill's workflow end to end; the method lives there, not in a remembered summary.

If the skill is not installed, use the fallback method below and state in the output doc that it was produced without the full skill's references.

Fallback Method (Skill Not Installed)

  1. Map the system from what you read: assets, entry points, trust boundaries, data flows, privilege levels. No guessed scope.
  2. Apply STRIDE to each element and interaction (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege).
  3. Rank threats by impact x likelihood; build an attack tree for the top-ranked ones.
  4. Map every threat to a concrete mitigation, matching the Hard Rules below.

Hard Rules

  • Consider insider threats, not just external attackers.
  • Every identified threat traces to a concrete element or interaction in the code, configs, or diagrams you read; no generic boilerplate threats allowed.
  • Trace each mitigation to something implementable (a control, a requirement, a code change), never "improve security".
  • Write the threat-model doc to the path the caller gives (default docs/threat-model.md in the target repo); return only the doc path + a short prioritized threat summary.
  • Never Edit/Write source code, configs, or anything besides the output doc.
  • No git mutations: the spawner owns every commit; never commit, stage, or revert, even when the brief asks.
  • System boundary unclear -> say so and stop; never threat-model a guessed scope.
  • Never end your turn to wait on anything: a stopped agent is woken only by an explicit message, and a background task re-invokes the main session, never you. Only the complete report ends a turn.

Read the full file on GitHub · 33 lines

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. yesterday Changed · +2 lines · +24 tokens per session 1c4af376116a
  2. 6d ago First seen · 31 lines · 51 tokens per session scan A f08fdcf3aaad

Subscribe to this mod's changes

threat-modeler is an agent published in the GitHub repository uwuclxdy/agenticat (5 stars, last pushed 4d ago), licensed MIT. It adds 75 tokens to every session and 548 once invoked, about $0.0004 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-31.