The Four Key Questions of Threat Modeling
What you'll learn: You'll discover the four fundamental questions that structure every threat modeling exercise and guide security analysis.
The Core Framework
Threat modeling can feel overwhelming—where do you even start when analyzing security? Fortunately, the practice distills into four essential questions that guide your entire analysis:
1. What Are We Building?
Before identifying threats, you need a clear picture of your system. What components exist? How do they communicate? Where does data flow? This involves creating diagrams (like data flow diagrams) and identifying trust boundaries—the lines where data moves from trusted to untrusted zones, or vice versa.
Think of this like creating a blueprint before checking if your house can withstand a storm.
2. What Can Go Wrong?
Once you understand your system, brainstorm potential threats. Where might an attacker inject malicious input? Could authentication be bypassed? Can sensitive data leak? Use frameworks like STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) to systematically consider attack categories.
3. What Are We Doing About It?
For each identified threat, determine your response: mitigate it with controls (like input validation or encryption), accept the risk, transfer it (through insurance or third-party services), or eliminate it by removing the vulnerable feature entirely. Document your chosen countermeasures.
4. Did We Do a Good Enough Job?
Validate your threat model. Are your mitigations implemented correctly? Did you miss any threats? Schedule reviews as your system evolves—threat modeling isn't one-and-done; it's continuous as architecture changes.
The Iterative Nature
These questions form a cycle. As you answer question 4, you often discover new answers to questions 1-3, prompting another iteration.
Key Takeaway: The four questions—what we're building, what can go wrong, how we're addressing it, and whether it's sufficient—provide a structured, repeatable framework for systematically uncovering and addressing security risks throughout the development lifecycle.