Lesson 1 of 9 · 20m
Threat Modeling That Ships
The point is better engineering decisions, not a binder. How to scope a model small enough to finish and useful enough to change what gets built.
Every team I have rescued from "we should do threat modeling" had the same failure mode: they treated it as a compliance artifact instead of an engineering tool. The model grew to cover the whole product, took three meetings, produced a spreadsheet nobody opened again, and the next feature shipped unchanged. A threat model that ships is smaller, sharper, and explicitly tied to decisions.
Scope to a decision, not the whole system
The useful unit is a feature, integration, or architectural change: "add password reset," "expose a webhook receiver," "move uploads to S3-compatible storage." You are answering one question: given what we are about to build, what can an attacker make it do, and what must be true before we ship it?
A good scope statement names assets, actors, and exclusions:
Scope: password reset flow for customer accounts
Assets: account control, reset tokens, email delivery trust
Actors: internet attacker, malicious customer, compromised email inbox
Out of scope: phishing-resistant MFA rollout, internal admin impersonation
Decision owner: checkout team tech lead, review before feature flag enablementThe exclusions matter. They prevent the discussion from dissolving into "what if the datacenter burns down" while also recording which risks you consciously deferred.
Threat modeling is a design review with adversarial questions
The strongest signal is not the diagram; it is the sentence "wait, does this endpoint trust the user-supplied tenant id?" You are hunting for assumptions hidden in the design:
- What is attacker-controlled input?
- Where does trust cross a boundary?
- What can be replayed, forged, enumerated, or abused at scale?
- What happens when a dependency fails closed — or fails open?
Timebox and finish
A practiced team can model a normal feature in 45-90 minutes. If the conversation cannot converge, the model is telling you something useful: the design is unclear, ownership is unclear, or the risk is larger than the feature budget. Fix that before writing more tickets.
Field notes
- The output is decisions and requirements, not a perfect inventory of every threat.
- "We already have auth" is not a threat model; it is exactly the kind of assumption this process exists to test.
- Invite the person who will implement the control. Security reviews that produce work for absent engineers die in the backlog.
- If the team can only do one thing, do a trust-boundary walkthrough of the data flow diagram.
Was this lesson helpful?