threat-modeling

threat-modeling is a skill for Claude Code from rjmurillo/ai-agents. It costs 46 tokens per session (4,143 once invoked), scanned A, original, Apache-2.0.

A structured security review method that identifies threats in a system using questions about what is being built, what can go wrong, and how to respond. STRIDE is a framework for grouping common security threats.

In plain words
What is it for?
Use it for threat models, attack-surface reviews, security architecture reviews, STRIDE analysis, and data-flow risk assessments.
Why use it?
It turns vague security concerns into a documented list of risks, affected trust boundaries, and possible mitigations. This helps teams prioritize what needs attention in a design.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the project-toolkit plugin — 86 skills shipped together

Good fit Use it for threat models, attack-surface reviews, security architecture reviews, STRIDE analysis, and data-flow risk assessments.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add rjmurillo/ai-agents
Claude Code
/plugin install project-toolkit

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 86 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/threat-modeling/github.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/threat-modeling)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/threat-modeling"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/threat-modeling/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-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/threat-modeling"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/threat-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,143 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 488
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • low Privilege Escalation · line 170
    Skill requests more permissions than appear necessary for its stated functionality. Review if elevated access is justified.
    Fix: Request only the minimum permissions required. Document why each permission is needed. Remove broad permissions like '*' or 'all'.
How audits are shown
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.00046 $0.04143
Opus 5.5 $0.00018 $0.01657
Sonnet 5.5 $0.00009 $0.00829
Haiku 4.5 $0.00005 $0.00414

Measured yesterday against content hash 4d4b78e6ae64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

threat-modeling 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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/generate_mitigation_roadmap.py, scripts/generate_threat_matrix.py, scripts/validate_threat_model.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

src/claude/skills/threat-modeling/SKILL.md · 488 lines

How it starts

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

Threat Modeling

Systematic identification, documentation, and mitigation of security threats.

Triggers

Phrase Context
threat model Starting or updating a threat model
attack surface analysis Identifying exposure points
security architecture review Reviewing design for vulnerabilities
STRIDE analysis Applying STRIDE methodology
what can go wrong Brainstorming security concerns

Quick Reference

Input Output Destination
Architecture diagram or description Threat matrix with STRIDE categories .project-toolkit/security/threat-models/
Component list Trust boundary analysis .project-toolkit/security/threat-models/
Data flow description Data flow diagram threats .project-toolkit/security/threat-models/
Prior threat model Updated model with delta analysis .project-toolkit/security/threat-models/

Process Overview

                         OWASP Four-Question Framework
                         =============================

          Q1: What are we        Q2: What can         Q3: What do we      Q4: Did we do
          working on?            go wrong?            do about it?        a good job?
               |                      |                    |                   |
               v                      v                    v                   v
        +-----------+          +------------+        +-----------+       +----------+
        | Phase 1   |          | Phase 2    |        | Phase 3   |       | Phase 4  |
        | Scope &   |  ----->  | Threat     | -----> | Mitigation| ----> | Validate |
        | Decompose |          | Identify   |        | Strategy  |       | Model    |
        +-----------+          +------------+        +-----------+       +----------+
              |                      |                    |                   |
              v                      v                    v                   v
        Trust Boundaries       STRIDE Matrix         Prioritized         Threat Model
        Data Flows             Kill Chains           Mitigations         Document
        Assets                 Attack Trees          Risk Ratings

Read the full file on GitHub · 488 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 4d4b78e6ae64
  2. 2d ago Changed · -10 tokens per session 9b4fa71f5963
  3. 5d ago Changed · -13 tokens per session 4dc64bde83a8
  4. 8d ago Changed 5c60bd29dc34
  5. 12d ago Changed · -5 lines 3984ea59bf38
  6. 1mo ago Changed dd26212a6286
  7. 1mo ago Changed eadafe9cec7b
  8. 2mo ago Changed · +3 lines 13142132fe55
  9. 2mo ago Changed · +6 lines fe385e1364d8
  10. 2mo ago First seen · 484 lines · 69 tokens per session scan A 37da08352111

Subscribe to this mod's changes

threat-modeling is a skill published in the GitHub repository rjmurillo/ai-agents (50 stars, last pushed today), licensed Apache-2.0. It adds 46 tokens to every session and 4,143 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

threat-modeling compared with skills from other repositories

threat-modeling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threat-modelingrjmurillo/ai-agentsSkill50todayApache-2.0A46Claude Code
install-gemini-code-review-actionderailed-dash/dazbo-agent-skillsSkill302d agoMITA73Claude Code, Codex
apply-review-feedbackjuliusz-cwiakalski/agentic-delivery-osSkill47todayMITA15Claude Code
review-remotejuliusz-cwiakalski/agentic-delivery-osSkill47todayMITA13Claude Code
architecture-auditfabioc-aloha/Alex_Skill_MallSkill62d agoMITA18Claude Code, Codex
azure-devops-automationfabioc-aloha/Alex_Skill_MallSkill62d agoMITA20Claude Code, Codex
repository-readiness-evalfabioc-aloha/Alex_Skill_MallSkill62d agoMITA59Claude Code, Codex