threat-modeling

threat-modeling is a skill for Claude Code, Codex from williamzujkowski/standards. It costs 43 tokens per session (2,292 once invoked), scanned A, a copy of graphql-api-design, MIT.

A guide to threat modeling, the practice of listing and assessing ways a system could be attacked. It uses STRIDE categories such as impersonation, tampering, data exposure, service disruption, and unauthorized access.

In plain words
What is it for?
Use it to review an application's threats, identify what each threat targets, and plan mitigations for issues such as stolen credentials, altered data, leaked personal information, and denial of service.
Why use it?
It gives teams a structured way to consider security risks before implementation or release. This can expose missing protections for identity, data, logging, availability, and permissions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review an application's threats, identify what each threat targets, and plan mitigations for issues such as stolen credentials, altered data, leaked personal information, and denial of service.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/williamzujkowski/standards/threat-modeling
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.

Any agent
npx skills add williamzujkowski/standards --skill threat-modeling
Clone the repo
git clone --depth 1 https://github.com/williamzujkowski/standards

Made for: Claude Code, Codex.

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/williamzujkowski/standards/threat-modeling/github.svg)](https://agentmods.dev/skills/williamzujkowski/standards/threat-modeling)
Your own site
<a href="https://agentmods.dev/skills/williamzujkowski/standards/threat-modeling"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/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/williamzujkowski/standards/threat-modeling"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/threat-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,292 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 80% copy Near-identical to another mod 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.00043 $0.02292
Opus 5.5 $0.00017 $0.00917
Sonnet 5.5 $0.00009 $0.00458
Haiku 4.5 $0.00004 $0.00229

Measured 2mo ago against content hash ab9b963f3966, 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/threat-report-generator.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.

Origin

This is a copy

80% identical to graphql-api-design — 562 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/security/threat-modeling/SKILL.md · 411 lines

How it starts

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

Threat Modeling

Identify, prioritize, and mitigate security threats systematically using STRIDE methodology

Level 1: Quick Reference

STRIDE Threat Categories

threats:
  S_spoofing:
    description: Impersonating something or someone else
    targets: [authentication, identity]
    example: "Using stolen credentials to access system"

  T_tampering:
    description: Modifying data or code maliciously
    targets: [data_integrity, code_integrity]
    example: "Altering transaction amounts in transit"

  R_repudiation:
    description: Claiming to not have performed an action
    targets: [logging, audit_trails]
    example: "Denying fraudulent transaction was performed"

  I_information_disclosure:
    description: Exposing information to unauthorized parties
    targets: [confidentiality, data_protection]
    example: "Leaking customer PII through error messages"

  D_denial_of_service:
    description: Making system unavailable or degraded
    targets: [availability, performance]
    example: "Overwhelming API with requests"

  E_elevation_of_privilege:
    description: Gaining unauthorized higher access level
    targets: [authorization, access_control]
    example: "Exploiting bug to gain admin rights"

Four Key Questions

  1. What are we building?

    • System architecture, components, data flows
    • Trust boundaries, entry/exit points
  2. What can go wrong?

    • Apply STRIDE to each component
    • Identify threat scenarios
  3. What should we do about it?

    • Prioritize threats (DREAD scoring)
    • Design mitigations
  4. Did we do a good job?

    • Review threat model coverage
    • Validate mitigations

Essential Checklist

Planning Phase:

  • Identify system scope and boundaries
  • Document assets and data flows
  • Define security objectives
  • Assemble threat modeling team

Analysis Phase:

  • Create data flow diagrams (DFD)
  • Mark trust boundaries
  • Apply STRIDE to each element
  • Document threat scenarios
  • Build attack trees

Read the full file on GitHub · 411 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. 2mo ago First seen · 411 lines · 43 tokens per session scan A ab9b963f3966

Subscribe to this mod's changes

threat-modeling is a skill published in the GitHub repository williamzujkowski/standards (22 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 2,292 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 80% identical to graphql-api-design, differing in 562 lines, and is treated as a copy.

Related

threat-modeling compared with skills from other repositories

threat-modeling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threat-modelingwilliamzujkowski/standardsSkill223mo agoMITA43Claude Code, Codex
performing-threat-modeling-with-owasp-threat-dragonxalgorix/xalgorixSkill1.5ktodayApache-2.0A46Claude Code, Codex
pytmAgentSecOps/SecOpsAgentKitSkill2397mo agononeA125Claude Code, Codex
pytmrohunj/claude-build-workflowSkill22910mo agononeA125Claude Code, Codex
diff-analysisathola/claude-night-marketSkill358yesterdayMITA32Claude Code
software-plan-reviewstencila/stencilaSkill916todayApache-2.0B97Claude Code
information-security-manager-iso27001seaworld008/Commonly-used-high-value-skillsSkill75todayMITA34Claude Code, Codex