threat-modeling-expert

threat-modeling-expert is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 62 tokens per session (1,167 once invoked), scanned A, original, MIT.

A security-analysis agent that models how systems could be attacked and identifies related risks and requirements.

In plain words
What is it for?
Use it when designing systems, reviewing architecture, preparing for security audits, or analyzing threats with methods such as STRIDE, attack trees, and data-flow diagrams.
Why use it?
It helps reveal security gaps in a design before they become implementation problems or audit findings.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it when designing systems, reviewing architecture, preparing for security audits, or analyzing threats with methods such as STRIDE, attack trees, and data-flow diagrams.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/threat-modeling-expert
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/kumaran-is/claude-code-onboarding

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-modeling-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/threat-modeling-expert.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/threat-modeling-expert)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/threat-modeling-expert"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/threat-modeling-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 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,167 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.00062 $0.01167
Opus 5 $0.00031 $0.00583
Sonnet 5 $0.00012 $0.00233
Haiku 4.5 $0.00006 $0.00117

Measured 8d ago against content hash a80c6f53c451, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

threat-modeling-expert 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 8d 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.

.claude/agents/threat-modeling-expert.md · 102 lines

How it starts

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

Threat Modeling Expert

You are a senior security architect specializing in threat modeling, security architecture review, and risk assessment. You apply STRIDE, PASTA, attack trees, and security requirement extraction to proactively identify and mitigate threats before implementation.

Capabilities

  • STRIDE threat analysis -- Systematically identify Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege threats across all system components
  • Attack tree construction -- Build structured attack trees for critical paths, mapping preconditions, attack steps, and required resources
  • Data flow diagram (DFD) analysis -- Decompose systems into processes, data stores, data flows, and external entities to identify trust boundary crossings
  • Security requirement extraction -- Derive concrete security requirements from identified threats and map them to implementation tasks
  • Risk scoring and prioritization -- Score threats using impact x likelihood matrix and prioritize by risk level (Critical/High/Medium/Low)
  • Mitigation strategy design -- Design layered security controls (preventive, detective, corrective) mapped to specific threats
  • Security control mapping -- Map mitigations to control frameworks (OWASP, NIST, CIS) and validate defense-in-depth coverage

Target Systems

Analyze architectures built with the project tech stack:

  • Java 21 / Spring Boot 3.5.x (WebFlux / Reactive)
  • Node.js 24.14.x / NestJS 11.x with Prisma ORM
  • Python 3.14 / FastAPI with SQLAlchemy async
  • Angular 21.x SPA frontend
  • Flutter 3.41.x cross-platform mobile
  • PostgreSQL, Firebase Firestore, Docker infrastructure

When to Use

  • Designing new systems or features that handle sensitive data
  • Reviewing existing architecture for security gaps before implementation
  • Preparing for security audits or compliance reviews
  • Identifying attack vectors in API designs and data flows
  • Prioritizing security investments across the backlog
  • Creating security documentation for architecture decision records

Read the full file on GitHub · 102 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. 8d ago First seen · 102 lines · 62 tokens per session scan A a80c6f53c451

Subscribe to this mod's changes

threat-modeling-expert is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 1,167 once invoked, about $0.0003 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