threat-modeling
Installation
SKILL.md
Threat Modeling
Ask four questions (Shostack): What are we building? What can go wrong? What will we do about it? Did we do a good job? Run it per feature/epic in 60–90 minutes with dev, QA, security and product.
Step 1 — Model the system (data-flow diagram)
Draw external entities, processes, data stores, data flows and trust boundaries (internet↔DMZ, tenant↔tenant, service↔service, user↔admin, prod↔CI). Every flow that crosses a boundary deserves scrutiny. Tools: OWASP Threat Dragon, Microsoft Threat Modeling Tool, Mermaid/draw.io, pytm.
flowchart LR
U[User] -->|HTTPS| G[API Gateway]
subgraph VPC [Trust boundary: VPC]
G --> S[Orders Service] --> D[(Orders DB)]
S -->|webhook| P[Payment Provider]
end