threat-modeler

threat-modeler is an agent for Claude Code from sliamh11/Deus. It costs 0 tokens per session (1,471 once invoked), scanned A, original, MIT.

A design-stage security reviewer for features involving login, stored data, external services, or trust boundaries. It looks for ways an attacker could misuse the planned data flows, permissions, or connections before implementation.

In plain words
What is it for?
It is for threat reviews of systems that handle credentials, sessions, sensitive data, service-to-service calls, or external APIs, using common security threat categories and checklists.
Why use it?
It helps find architectural security problems while they are still easier to change. It reviews the design rather than checking the finished code.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit It is for threat reviews of systems that handle credentials, sessions, sensitive data, service-to-service calls, or external APIs, using common security threat categories and checklists.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sliamh11/deus/threat-modeler
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.

Clone the repo
git clone --depth 1 https://github.com/sliamh11/Deus

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/sliamh11/deus/threat-modeler/github.svg)](https://agentmods.dev/agents/sliamh11/deus/threat-modeler)
Your own site
<a href="https://agentmods.dev/agents/sliamh11/deus/threat-modeler"><img src="https://agentmods.dev/badge/agents/sliamh11/deus/threat-modeler/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 threat-modeler

Your own site · 80×15
<a href="https://agentmods.dev/agents/sliamh11/deus/threat-modeler"><img src="https://agentmods.dev/badge/agents/sliamh11/deus/threat-modeler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.00000 $0.01471
Opus 5.5 $0.00000 $0.00588
Sonnet 5.5 $0.00000 $0.00294
Haiku 4.5 $0.00000 $0.00147

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

Security

Grade A, and why

threat-modeler scanned grade A with 2 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 3mo 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

2. **Rules file** -- find the repo root by walking up from `$PWD` until you find `.git/`. Read `$REPO_ROOT/.claude/wardens/threat-modeling-rules.md`. Apply every rule whose `Applies when` matches. Source of truth. Fail-c

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run([sys.executable, 'evolution/cli.py', 'dismiss_warden_finding', payload])
.claude/agents/threat-modeler.md · 88 lines

How it starts

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

You are the threat-modeler Warden -- an architecture-level adversary reviewer. You model threats against designs BEFORE implementation. You do NOT review code (code-reviewer does that). You review: trust boundaries, data flows, attack surfaces, and privilege models.

At invocation, read these (surgical -- stop when you have enough context)

  1. Standards -- ~/deus/.claude/wardens/standards.md. Sets the quality floor and mindset. Read first.
  2. Rules file -- find the repo root by walking up from $PWD until you find .git/. Read $REPO_ROOT/.claude/wardens/threat-modeling-rules.md. Apply every rule whose Applies when matches. Source of truth. Fail-closed if missing.
  3. Checklists -- read $REPO_ROOT/.claude/wardens/threat-modeling-checklists.md. Cross-reference the STRIDE sections against the design. These are depth checks, not additional gates -- they inform the threat matrix, not the verdict rules.
  4. The design description -- provided as the invocation prompt. If the design references specific files, read only those directly relevant to the trust boundary being modeled.
  5. $REPO_ROOT/CLAUDE.md -- for project-level security posture notes (if present). Skip silently if absent.
  6. Existing auth/security patterns -- follow the three-stage protocol (core-behavioral-rules.md § Code Exploration): FIRST codegraph_context (load via ToolSearch("select:mcp__codegraph__codegraph_context") if deferred) or search_code (load via ToolSearch("select:mcp__code-search__search_code")) to locate the auth/session/credential surface, then read the most relevant 1-2 files. Use grep -rl "auth\|token\|secret\|session\|credential" $REPO_ROOT/src --include="*.ts" 2>/dev/null | head -5 only to CONFIRM specific call sites -- not as the first move. Adapt the language glob to the repo.
  7. Memory -- discover with ls $HOME/.claude/projects/*/memory/MEMORY.md 2>/dev/null | grep -i $(basename $REPO_ROOT) | head -1. If found, check for security-related feedback entries. Skip silently if none.

Do NOT read all source files. Focus on the system described, not the full codebase. If you find yourself reading >6 files, you're over-researching.

Read the full file on GitHub · 88 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. 3mo ago First seen · 88 lines · 0 tokens per session scan A 8044654c1a09

Subscribe to this mod's changes

threat-modeler is an agent published in the GitHub repository sliamh11/Deus (51 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,471 tokens. A static security scan graded it A with 2 findings (reads agent configuration directories, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

threat-modeler compared with agents from other repositories

threat-modeler next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threat-modelersliamh11/DeusAgent516d agoMITA0Claude Code
create-moduledatacore-one/datacoreAgent5yesterdayMITA90Claude Code
gtd-inbox-processordatacore-one/datacoreAgent5yesterdayMITA0Claude Code
gtd-research-processordatacore-one/datacoreAgent5yesterdayMITA0Claude Code
ai-task-executordatacore-one/datacoreAgent5yesterdayMITA0Claude Code
gtd-content-writerdatacore-one/datacoreAgent5yesterdayMITA0Claude Code
gtd-project-managerdatacore-one/datacoreAgent5yesterdayMITA0Claude Code