Threat modeling is a structured process for identifying potential security threats to a system and planning defenses — systematically thinking about what could go wrong, who might attack, and how. It's a proactive approach to security, done during design.
What threat modeling is
Threat modeling = systematically analyzing a system to find SECURITY THREATS and decide
how to mitigate them — BEFORE building (or as a review):
→ understand the system (data flows, components, trust boundaries, assets)
→ identify THREATS (what could an attacker do? where are the weak points?)
→ assess and prioritize risks; plan MITIGATIONS
→ proactive security: design defenses by thinking like an attacker, early.
