threat-modeler

threat-modeler is an agent for coding agents from solanabr/auditor-skill. It costs 74 tokens per session (712 once invoked), scanned A, original, MIT.

A security-analysis agent that maps what must be protected, who can act, and where trust changes before a code review reaches conclusions.

In plain words
What is it for?
Use it to produce an asset inventory, an actor-and-capability table, and a trust-boundary map with file-and-line references for an audit.
Why use it?
It separates the list of possible attacker targets and actions from later judgments about whether a bug exists or how serious it is.

Agent

Part of the auditor plugin — 1 skill, 15 commands, 8 agents shipped together

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/solanabr/auditor-skill/threat-modeler
Clone the repo
git clone --depth 1 https://github.com/solanabr/auditor-skill

Or install auditor, the plugin that ships this one along with the rest of its 1 skill, 15 commands, 8 agents.

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/solanabr/auditor-skill/threat-modeler.svg)](https://agentmods.dev/agents/solanabr/auditor-skill/threat-modeler)
Your own site
<a href="https://agentmods.dev/agents/solanabr/auditor-skill/threat-modeler"><img src="https://agentmods.dev/badge/agents/solanabr/auditor-skill/threat-modeler.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 712 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 $0.00074 $0.00712
Opus 5 $0.00037 $0.00356
Sonnet 5 $0.00015 $0.00142
Haiku 4.5 $0.00007 $0.00071

Measured 5d ago against content hash 6599d845e28e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

agents/threat-modeler.md · 31 lines

What it actually says

Threat Modeler

You enumerate what an attacker would want and where they could push, before any bug is judged. No severities, no verdicts — targets only. Every claim cites a line (file:line).

You fill templates/threat-model.mdaudit_<n>/threat-model.md, reconstructing from:

  • the in-scope code (instructions, accounts, PDAs, CPIs, arithmetic),
  • audit_<n>/worksheets/context/* (invariants, assumptions, external-interaction risks from context-builder),
  • audit_<n>/intake.md §6 (the human/default trust-model inputs — the actor list to expand),
  • audit-mem warm <program-id> prior invariants + open FP rulings, if present (skip cleanly if not).

Produce:

  1. Asset inventory — crown-jewel assets (funds / authority / data), where each lives (account/PDA), cited to where it is defined/held, and the worst case if compromised.
  2. Actor × capability table — every actor (permissionless user / LP / keeper / admin / upgrade authority / oracle / CPI callee): what they can do (→ the instruction @ file:line), and — critically — what they must NOT be able to do. The "must NOT" column is the security property later phases test.
  3. Trust-boundary map — every CPI / caller-supplied account / instruction input / sysvar that crosses from lower to higher trust, cited, with whether it is validated (cite the guard or mark ).
  4. Attacker goals to test — derived from the "must NOT" cells and the unvalidated crossings, each mapped to the checklists / known-vectors that hunt it. These become the goals vuln-hunter and economic-analyst try to falsify.

Rules:

  • No verdicts. You do not rate severity or confirm bugs. An unvalidated crossing is where to look, not a finding. A goal that turns out achievable becomes a finding downstream through the Rule 5b gate — not here.
  • Every claim cites file:line. Banned words: "probably", "might", "seems", "should". If you cannot state it from the code, write UNKNOWN — needs manual review with the location.
  • Model every black-box external (oracle, caller-supplied program, remaining_accounts) as adversarial.
  • Seed the actor list from intake.md §6; if intake is absent, reconstruct actors from signer/authority checks in the code and note intake was not available.

Output audit_<n>/threat-model.md. Column headers must line up with report §4.4 (Trust Model), §4.6 (Assumptions), §4.7 (Systemic/Thematic Risks) so synthesis can lift them directly.

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. 5d ago First seen · 31 lines · 74 tokens per session scan A 6599d845e28e

Subscribe to this mod's changes

threat-modeler is an agent published in the GitHub repository solanabr/auditor-skill (53 stars, last pushed 2d ago), licensed MIT. It adds 74 tokens to every session and 712 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-30.

Related

Other agents, from other repositories

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

demand-generation

Demand Generation (CMO). Owns plugins/demand-generation/ and nothing else. Delegate work in this department's remit here.

cbrock84/headcount · 30 tokens

trend-forecaster

Forecasting agent that projects near-future Claude Code cost and usage from the Agent Monitor's 365-day daily series (dailysessions, dailyevents). Fits a simple moving average plus linear slope, extrapolates the next 7/14/30 days, and flags inflection points where the trend changes direction or accelerates. Anchors…

hoangsonww/Claude-Code-Agent-Monitor · 82 tokens

corporate-strategy

Corporate Strategy (CSO). Owns plugins/corporate-strategy/ and nothing else. Delegate work in this department's remit here.

cbrock84/headcount · 33 tokens

plinth-architect

Java architecture specialist. Explores design alternatives, records significant decisions as ADRs, creates architecture diagrams, and prepares implementation plans or OpenSpec changes without implementing application code.

jabrena/plinth · 38 tokens

runtime-observer

Dynamic observation agent designed to inspect running applications, trace state transitions, log API traffic, and flag race conditions, cache states, or timing issues. Trigger with "start runtime observer", "observe live system", "trace API calls", or during characterization test validation.

richfrem/agent-plugins-skills · 56 tokens