Threat model

From woohyun212/security-skill · View interactive version

Threat model is an AI agent skill from the GitHub repository woohyun212/security-skill. Structured threat modeling producing threat catalog with STRIDE categorization, DREAD risk scores, and prioritized mitigation roadmap

How to use this skill

Skill file

What this skill does

Guides a structured threat modeling exercise for a target system using industry-standard frameworks: STRIDE (threat categorization), DREAD (risk scoring), PASTA (process-driven methodology), and Attack Trees (attack decomposition). Produces a threat catalog with MITRE ATT&CK mappings, a risk matrix, and a prioritized mitigation roadmap.

When to use

Prerequisites

Inputs

| Item | Description | Example |

|------|-------------|---------|

| SYSTEM_NAME | Name of the system under review | Payment API v3 |

| SYSTEM_TYPE | Type of system | web-app / api / microservice / infrastructure |

| TECH_STACK | Technology stack | Node.js, PostgreSQL, Redis, AWS ECS |

| DATA_SENSITIVITY | Highest data classification in scope | PII / PCI / internal / public |

| REVIEW_SCOPE | Boundaries of the review | All external-facing endpoints and auth flows |

Workflow

Step 1: System Decomposition

Identify what needs protecting before identifying threats. Collect the following information about the target system.

Reference: See REFERENCE.md for asset inventory, trust boundaries, and entry points markdown templates.

Data Flow Diagram (DFD) Summary

Describe the primary data flows as a numbered list if a visual DFD is unavailable:

## Key Data Flows

1. User submits credentials → Web tier → Auth service → Credentials DB → JWT issued
2. Authenticated user submits payment → Web tier → Payment service → Payment processor (external) → Transaction DB
3. Admin queries reports → Admin UI → Reporting service → Read replica DB

Step 2: Threat Identification (STRIDE)

Apply the STRIDE model to each DFD element (processes, data stores, data flows, external entities) and each trust boundary crossing. For each threat identified, create a catalog entry using the T-NNN format.

Reference: See REFERENCE.md for the STRIDE categories reference table and threat catalog entry template.

Repeat the threat catalog template for every threat identified across all STRIDE categories and DFD elements.

Step 3: Threat Prioritization (DREAD Scoring)

Score each threat in the catalog using the DREAD model. Each dimension is scored 1–10; the total DREAD score is the average, rounded to one decimal place.

Reference: See REFERENCE.md for DREAD dimensions, scoring table template, and risk level thresholds.

CVSS Mapping (optional)

For threats that require formal CVE-style scoring, calculate a CVSS v3.1 Base Score alongside DREAD using the NVD calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator

Step 4: Mitigation Design

For each HIGH and CRITICAL threat, design concrete mitigations applying defense-in-depth principles.

Reference: See REFERENCE.md for the mitigation roadmap template and 5x5 risk matrix template.

Done when

Failure modes

| Issue | Cause | Solution |

|-------|-------|----------|

| Incomplete asset inventory | System documentation missing or outdated | Interview system owner; reverse-engineer from network diagrams or source code |

| STRIDE produces no threats | Analysis too surface-level | Apply STRIDE to each individual data flow, not just the system as a whole |

| DREAD scores inconsistent across reviewers | Subjective scoring | Calibrate with a reference threat (e.g., score a known CVE before scoring new threats) |

| Mitigation roadmap not actionable | Controls described too abstractly | Each control should name a specific technology, configuration, or code change |

| MITRE ATT&CK mapping unclear | Unfamiliarity with the framework | Use the ATT&CK Navigator at https://mitre-attack.github.io/attack-navigator/ to search by technique |

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.