Skip to main content
skill CX Codex

threat-modeling · bobmatnyc — Claude Code skill: what it does, how to install

Threat modeling workflow using the STRIDE framework. Maps system data flows, evaluates risks, and translates mitigations into backlog items and test cases.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add bobmatnyc/claude-mpm-skills --skill threat-modeling -a claude-code
Open on GitHub

What threat-modeling does

This skill provides a structured method to analyze software security during system design. It directs the model through asset scoping, trust boundary mapping, and element evaluation across STRIDE threat categories: Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege.

Identified issues receive impact and likelihood ratings to establish remediation priority. Findings populate a threat register. Mitigations translate directly into engineering backlog tickets, abuse-case tests, and pull request verification rules.

Because user-invocable: false and disable-model-invocation: true are set in the configuration, this skill operates as background context for architectural reviews rather than an executable command.

What it helps with

  • map system data flows and trust boundaries
  • audit architecture components against STRIDE categories
  • prioritize security vulnerabilities by impact and likelihood
  • generate abuse-case tests and backlog tickets for mitigations

Example prompts for the agent

  • Run a STRIDE analysis on our payment processing service architecture.
  • Map trust boundaries for the multi-tenant auth flow and list potential threats.
  • Turn the threat register for our user profile API into backlog tickets and abuse tests.

How to install threat-modeling

1Skills CLI (Vercel)

npx skills add bobmatnyc/claude-mpm-skills --skill threat-modeling -a claude-code

2Manually: put the files in place

~/.claude/skills/threat-modeling/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threat-modeling/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about threat-modeling

How do I install threat-modeling in Claude Code?

Run npx skills add bobmatnyc/claude-mpm-skills --skill threat-modeling -a claude-code. The skill file installs to ~/.claude/skills/threat-modeling/SKILL.md.

When should this skill be applied?

Apply it when designing features, modifying system architecture, handling sensitive credentials or payments, and hardening multi-tenant flows.

What deliverables does the threat modeling workflow create?

The workflow produces a data flow diagram, a prioritized threat register, and mitigation tasks translated into engineering tickets and PR checklist rules.

Source text

SKILL.md · MIT
---
name: threat-modeling
description: "Threat modeling workflow for software systems: scope, data flow diagrams, STRIDE analysis, risk scoring, and turning mitigations into backlog and tests. Use when designing new features, reviewing architecture changes, handling sensitive data, or hardening auth/payment/multi-tenant flows."
user-invocable: false
disable-model-invocation: true
version: 1.0.0
category: universal
author: Claude MPM Team
license: MIT
progressive_disclosure:
  entry_point:
    summary: "Run a lightweight threat modeling workshop (STRIDE) and turn risks into concrete mitigations, tests, and PR checks"
    when_to_use: "When designing new features, reviewing architecture changes, handling sensitive data, or hardening auth/payment/multi-tenant flows"
    quick_start: "1. Define scope/assets 2. Draw data flows + trust boundaries 3. STRIDE per element 4. Score + prioritize 5. Track mitigations + tests"
  token_estimate:
    entry: 150
    full: 8000
context_limit: 900
tags:
  - security
  - threat-modeling
  - stride
  - architecture
  - risk
requires_tools: []
---

# Threat Modeling (STRIDE)

## Workflow

1. **Scope** — Identify the system boundary, assets (PII, credentials, payments), and availability requirements (SLO/SLA).
2. **Data Flow Diagram** — Map actors, entry points, data stores, and external dependencies. Mark trust boundaries (public internet → edge → internal → database → third-party).
3. **STRIDE per element** — For each element in the diagram, walk through all six STRIDE categories (Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege) and record threats.
4. **Risk score** — Rate each threat by Impact (Low/Med/High) and Likelihood (Low/Med/High). Prioritize High-impact + Med/High-likelihood items first.
5. **Mitigate** — Convert each prioritized threat into engineering tasks, verification tasks (tests, alerts), and operational controls (runbooks, access reviews).
6. **Tickets and tests** — Create backlog items for mitigations and add abuse-case tests for critical flows. Add PR checklist items for ongoing verification.

## Example: Threat Register Row

| Element | STRIDE | Threat | Impact | Likelihood | Mitigation | Owner | Status |
|---------|--------|--------|--------|------------|------------|-------|--------|
| API Gateway | Spoofing | Stolen JWT reuse after session revocation | High | Med | Short-lived tokens (15 min TTL), refresh rotation, revocation list check on each request | Security | Open |

This single row drives three artifacts: an engineering ticket (implement revocation-list middleware), a test (verify revoked token returns 401 within TTL window), and a PR checklist item (authz checks for new endpoints).

## Validation Checkpoint

Before finalizing, verify completeness:

- [ ] Every element in the data flow diagram has at least one STRIDE entry
- [ ] All High-impact threats have an assigned owner and mitigation
- [ ] Each mitigation maps to a backlog ticket or test case
- [ ] Threat model doc includes assumptions and scope boundaries
- [ ] PR checklist updated with new security requirements

## Outputs (Definition of Done)

Produce a data flow diagram, a threat register, and a mitigation plan that becomes tickets and tests.

## Load Next (References)

- `references/stride-workshop.md` — step-by-step workshop agenda + DFD guidance
- `references/common-threats-and-mitigations.md` — threat catalog with mitigations
- `references/templates.md` — copy/paste templates for docs and tickets

© Claude MPM Team · MIT · bobmatnyc/claude-mpm-skills

Similar skills

All skills for Security →

threat-modeling by other authors comes first.

From the same set125

asyncio A Python asyncio skill covering coroutines, tasks, the event loop, aiohttp and async FastAPI endpoints. Useful when code waits on network or database. CX Codex +1 476installs typescript-core A skill with modern TypeScript patterns: a strict tsconfig, runtime validation, advanced types. Useful once a TS codebase outgrows its type setup. CX Codex +1 475installs bug-fix Provides a structured workflow for verifying bug fixes, uncovering root causes, and writing regression tests to prevent recurring defects. CX Codex +1 471installs wordpress-block-editor-fse Guides WordPress 6.7+ Full Site Editing and block theme creation. Helps structure HTML templates, configure theme.json v3, and build blocks with render.php. CX Codex +1 461installs mypy Static type checking reference for Python coding agents. Helps configure type hints, strict mode, and framework typing with FastAPI or Django. CX Codex +1 458installs web-performance-optimization A skill that walks through web performance work: Core Web Vitals, modern browser patterns, and framework-specific fixes. Useful when Lighthouse scores drop or pages load slowly. CX Codex +1 457installs celery A Celery reference skill for background jobs, scheduled tasks and worker chains in Python. Useful when long operations should leave the request cycle. CX Codex +1 454installs local-llm-ops A skill for running local models through Ollama on Apple Silicon: bring up the service, pull models, start chat sessions and benchmarks. CX Codex +1 448installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor