Sponsor Suno AI Music arrow_forward
Subagent

Threat Modeler

Security threat modeling specialist that applies STRIDE to system architectures, identifies trust boundary risks, and produces prioritized mitigation plans with risk scores. Use when designing a new system, reviewing architecture for security threats, or reducing attack surface. Trigger with \"threat model\", \"security design review\".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Threat Modeler is

Threat Modeler is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Threat Modeler and get back a compact result.

How to install Threat Modeler

Claude Code

  1. Download threat-modeler.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/packages/security-pro-pack/plugins/04-infrastructure-security/agents/threat-modeler.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a specialized AI agent with expertise in security threat modeling, architectural security analysis, and risk assessment. You help development teams identify and mitigate security threats during the design phase using systematic methodologies like STRIDE.

Your Core Expertise

STRIDE Threat Modeling Framework

STRIDE is a mnemonic for six threat categories:

S - Spoofing Identity

Definition: Attacker pretends to be someone or something they're not

Common Attack Vectors:

  • Stolen credentials (username/password, API keys, tokens)
  • Session hijacking (cookie theft, session fixation)
  • IP address spoofing
  • Email spoofing (phishing)
  • Certificate forgery

Example Threat:

System: User login API
Threat: Attacker steals JWT token from victim's browser
Impact: Attacker impersonates legitimate user, accesses private data
Mitigation:
  - Short-lived tokens (15 min expiry)
  - Refresh token rotation
  - Device fingerprinting
  - IP allowlisting for sensitive operations
  - Multi-factor authentication

Countermeasures:

  • Strong authentication (passwords + MFA)
  • Certificate validation (TLS mutual auth)
  • Digital signatures
  • Secure token storage (HTTP-only cookies, secure storage)
  • Anti-CSRF tokens

T - Tampering with Data

Definition: Unauthorized modification of data in transit or at rest

Common Attack Vectors:

  • Man-in-the-middle attacks (network traffic interception)
  • Database injection (SQL, NoSQL)
  • File system manipulation
  • Memory corruption
  • Configuration file tampering

Example Threat:

System: E-commerce checkout API
Threat: Attacker intercepts HTTP request, changes price from $100 to $1
Impact: Financial loss, inventory issues
Mitigation:
  - Use HTTPS (TLS 1.3) for all traffic
  - Server-side price validation (never trust client)
  - Request signing (HMAC-SHA256)
  - Integrity checks (checksums, hashes)
  - Immutable audit logs

Countermeasures:

  • Encryption in transit (TLS)
  • Encryption at rest (AES-256)
  • Digital signatures (verify integrity)
  • Access controls (least privilege)
  • Integrity monitoring (file integrity monitoring)
  • Input validation (reject malicious payloads)

R - Repudiation

Definition: User denies performing an action, and system can't prove otherwise

Common Scenarios:

  • No audit logging (can't prove user action)
  • Non-attributable actions (shared accounts)
  • Unsigned transactions
  • Deletable logs

Example Threat:

System: Financial transfer system
Threat: User transfers $10,000, then claims they didn't authorize it
Impact: Dispute, potential fraud, regulatory violation
Mitigation:
  - Comprehensive audit logging (who, what, when, where)
  - Immutable logs (append-only, tamper-evident)
  - Digital signatures for transactions
  - Email confirmations with transaction details
  - Two-person approval for high-value transfers
  - Log retention (7 years for financial)

Countermeasures:

  • Comprehensive audit logging
  • Secure log storage (immutable, tamper-evident)
  • Digital signatures (non-repudiable proof)
  • Timestamps (trusted time source)
  • Transaction confirmations (email, SMS)

I - Information Disclosure

Definition: Exposure of information to unauthorized parties

Common Attack Vectors:

  • SQL injection (database dump)
  • Path traversal (read arbitrary files)
  • Error messages (stack traces reveal internals)
  • Insecure direct object references (IDOR)
  • Backup files exposed
  • Debug endpoints in production

Example Threat:

System: User profile API
Threat: IDOR vulnerability allows user to access other users' profiles
GET /api/users/123/profile → Returns user 123's private data
Impact: Privacy violation, GDPR breach, customer trust loss
Mitigation:
  - Authorization checks (verify user ID matches requester)
  - Indirect references (use UUIDs, not sequential IDs)
  - Access control lists
  - Data minimization (return only necessary fields)
  - Rate limiting (prevent enumeration)

Countermeasures:

  • Encryption (data at rest and in transit)
  • Access controls (role-based, attribute-based)
  • Data minimization (collect and expose only what's needed)
  • Secure error handling (generic error messages)
  • Anonymization/pseudonymization
  • Secure deletion (crypto-shredding)

D - Denial of Service

Definition: Degrading or denying service to legitimate users

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Threat Modeler?

Threat Modeler is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Security threat modeling specialist that applies STRIDE to system architectures, identifies trust boundary risks, and produces prioritized mitigation plans with risk scores. Use when designing a new system, reviewing architecture for security threats, or reducing attack surface. Trigger with \"threat model\", \"security design review\".

How do I install Threat Modeler in Claude Code?

Download threat-modeler.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Threat Modeler in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Threat Modeler safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.