Threat modeling (STRIDE)
A structured review of a design that asks what you are building, what can go wrong and what you will do about it, before the code is written.
Threat modeling works on a diagram rather than on code: draw the components, data flows and trust boundaries, then go through each one asking how it could be abused. The Threat Modeling Manifesto sums it up in four questions: what are we working on, what can go wrong, what are we going to do about it, did we do a good enough job. Microsoft’s STRIDE turns the second question into a checklist: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege.
The result is a short list of threats with a decision for each: mitigate, eliminate, transfer or accept. Finding an issue here costs less than finding it in a penetration test, and design-level risks show up that scanners miss, for example an AI agent that reads untrusted email and can also send it (prompt injection). OWASP ASVS and many security questionnaires ask whether you do it.
Sources
- Threat Modeling Manifesto threatmodelingmanifesto.org
- Microsoft Learn: Threats, Microsoft Threat Modeling Tool (STRIDE) learn.microsoft.com
Related terms
- Penetration test (pentest): An authorized, time-boxed attack on your app by security testers, ending in a report of what they could break and how badly.
- OWASP ASVS (Application Security Verification Standard): An open checklist of security requirements for web apps and APIs, in three levels, used for design, testing and assessments such as CASA.
- Principle of least privilege: Every person, service and AI agent gets only the access needed for its task, for only as long as needed, so a stolen account can do little harm.
- Prompt injection: Instructions hidden in data (a web page, an email, a file) that the model follows as if they came from you.
- Security questionnaire (vendor risk assessment, SIG, CAIQ): A list of security and privacy questions a company sends a vendor before buying, to judge the risk of trusting it with data and access.
