Threat modeling is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Threat modeling expertise including STRIDE methodology, attack trees, trust boundary identification, data flow analysis, risk assessment, mitigation prioritization, and security architecture review.
Claude Code: save it as .claude/skills/threat-modeling/SKILL.md
Cursor: save it as .cursor/rules/threat-modeling.md
Codex: save it as .agents/skills/threat-modeling/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Threat Modeling
When to use
Performing a security review of a new system design or major feature
Systematically identifying threats using the STRIDE framework
Building attack trees for a specific attacker goal
Identifying and documenting trust boundaries in a system architecture
Rating threats by likelihood and impact to prioritize mitigation work
Conducting pre-launch or post-incident security architecture reviews
Core principles
STRIDE is a checklist, not a destination — apply it to every component and every data flow crossing
Trust boundaries are the attack surface map — draw them before writing a single mitigation
Risk = Likelihood x Impact — prioritize by score, not by what feels scary
Quick wins first within each risk tier — cheapest effective fix before the strategic overhaul
Residual risk must be documented — accepting a risk without recording it is the same as ignoring it
Reference Files
references/stride-and-attack-analysis.md — full STRIDE breakdown (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) with check items and mitigations per category; attack tree construction methodology; trust boundary identification with common boundary types; and sensitive data flow analysis with aggregation risk
references/risk-assessment-and-review.md — Likelihood x Impact matrix with 1-9 risk scoring, risk tolerance definition, mitigation prioritization (quick wins vs strategic), residual risk documentation, and security architecture review checklist covering authentication, authorization, data protection, network security, logging, dependencies, and incident response
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.