Branch: Security in depth · step 7 of 7 · 13 pages · about 11 min
Threat modelling
Before building, draw how data moves, mark where trust changes, and ask STRIDE’s six questions of each part. Rate what you find, fix the worst first, accept the rest on purpose, and repeat for every big change.
- What it is
- Threat modelling is a structured way to ask “what could go wrong?” about a design, before it is built, and to decide what to do about each answer.
- What it is for
- A flaw found on the whiteboard costs a conversation; the same flaw found after launch costs a redesign, or a breach.
- Use it when
- At design review, before a big feature, after an incident, and whenever data starts crossing a new boundary.
- Not when
- Not for every small change: a fix that adds no new data flow or boundary does not need a new model.
New words you’ll learn
- Data-flow diagram
- Trust boundary
- STRIDE
- Spoofing
- Repudiation
- DDoS
- Residual risk
- Threat modelling
- Image resizer
- Sandbox