Threat modeling finds the flaws that scanners and code review cannot. A scanner can flag an injectable parameter. It cannot tell you that a refund workflow lets the agent who raises a refund also approve it, or that a service accepts any caller that reaches it from inside the cluster. Those are design decisions.
OWASP draws the same line in its Top 10 category for insecure design: a design flaw is different from an implementation defect, and a flawed design cannot be repaired by coding it more carefully. If the control was never planned, there is nothing to implement correctly.
Security leaders rarely run the modeling sessions, and they should not. Their job is to decide what gets modeled, when, who owns the result and what happens to it afterward. Programs fail at those decisions far more often than they fail at technique.
What threat modeling is, in four questions
The Threat Modeling Manifesto, written by practitioners in the field, defines threat modeling as the analysis of system representations to highlight concerns about security and privacy. It organizes the work around four questions. The table adds what a leader should expect to see in return for each.
| Question | What it produces | What a leader should expect to see |
|---|---|---|
| What are we building or changing? | A shared model of the system. | A data-flow or architecture diagram drawn by the team that builds it, with trust boundaries, entry points (including APIs, admin interfaces and integrations) and data classes marked. |
| What could go wrong? | A structured list of threats. | Threats tied to specific elements of the diagram, found with a consistent method, including abuse of business logic and not only technical attack. |
| What will we do about it? | Decisions on each material threat. | A mitigation, elimination, transfer or accepted-risk decision per threat, with a named owner and a backlog item. |
| Was our effort good enough? | A check on the work itself. | Evidence that mitigations were built and tested, and that the model is updated when the design changes. |
The manifesto’s values are a useful filter for any program. It prefers finding and fixing design issues to meeting a compliance checkbox, an ongoing practice to a one-time snapshot, and doing the work to discussing it. A program that generates well-formatted models nobody acts on fails all three.
Choosing a method
Method matters less than most debates suggest. What matters is that teams use one consistently and that it fits the question. The common options each suit a different job.
| Method | Best suited to | Limitation |
|---|---|---|
| STRIDE | Teams new to modeling. Walks each diagram element through six categories: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. | Can generate long lists and tends to under-serve business-logic abuse. |
| Attack trees | A specific adversary goal, such as approving a fraudulent payment, decomposed into the steps needed to reach it. | Effort grows with each goal; best used selectively for high-value targets. |
| PASTA | High-risk systems where threats need to connect to business objectives. A seven-stage, risk-centric process. | Heavier than most teams will sustain across all releases. |
| LINDDUN | Privacy threat modeling for systems handling personal data. | Focused on privacy; complements rather than replaces a security method. |
| Abuse cases | Business logic: how a legitimate feature can be used against its intended purpose. | Depends on someone who understands the business process. |
A reasonable default for most engineering organizations is one lightweight structured method for routine changes, with attack trees or a heavier method reserved for the small number of systems where failure is most costly. That is a judgment, not a rule. The test of any choice is whether engineers will use it without a security specialist in the room.
What to model, and when
NIST’s Secure Software Development Framework asks teams to apply risk modeling, naming threat modeling, attack modeling and attack surface mapping as examples, and to focus deeper analysis on high-risk areas such as sensitive data, authentication, access control and credential management. OWASP advises building it into routine planning, particularly when data flows or access controls change.
Put into an operating rule, a model is warranted when a change does any of the following:
Adds or changes an internet-facing service or API.
Introduces or alters an authentication or authorization flow.
Moves a trust boundary: a new third party, cloud account, tenant or internal service with different privilege.
Brings a new class of sensitive data into the system.
Lets software take actions on behalf of a user, including AI features that call tools or other services.
Everything else should get a short check: what changed since the last model, and does any answer to the four questions move? Tier the effort by risk, so the highest-risk systems receive full models and the rest receive a lightweight review. Modeling every change at full depth guarantees that the practice is abandoned.
A worked example
The following is a hypothetical scenario used to show the mechanics. It does not describe a real incident or organization.
A company’s digital team is adding a “download my statements” feature to its customer portal. The data flow is a browser calling an API gateway, which calls a statements service, which retrieves documents from a storage layer and returns a link. Three trust boundaries are marked: the internet to the gateway, the gateway to the service, and the service to storage.
Applying the four questions turns up threats a code scan would not report:
• Object-level authorization. The request carries a statement identifier. If the service trusts the identifier without checking it against the authenticated customer, any user can request another’s statements. OWASP lists broken object-level authorization as the first item in its API Security Top 10 for a reason.
• Link leakage and replay. A returned download link that does not expire, or is not bound to the requester, can be shared or reused.
• Bulk extraction. A legitimate session can iterate through identifiers at machine speed unless rate and volume are limited.
• Sensitive data in logs. Request logging may capture statement contents or identifiers that should not sit in an operations tool.
The decisions become backlog items: perform the authorization check in the service using the identity of the authenticated session, not a client-supplied value; issue short-lived links tied to the requester; add rate limits and anomaly alerts; mask identifiers in logs. Each decision then has a test: negative authorization tests in the pipeline, and a note passed to the penetration testing team on where to push. The model has done its job when the work shows up in the backlog and the tests, not when the diagram is filed.
What leaders should ask for
Ownership. Engineering teams should own their models, with security supplying method, coaching and review for the highest-risk systems. A model written by someone outside the team about a system they do not build is usually shallow and quickly stale.
Traceability. Every material threat should link to a requirement or backlog item and then to a test. Without that chain, the model cannot be verified, and “was our effort good enough?” has no answer.
Measures. Useful indicators include the share of in-scope changes with a current model, the number of designs changed because of a model, and design-level flaws found later by penetration testing or incidents that a model should have caught. The last one is the honest feedback signal. Treat all three as trends against your own baseline, not as industry benchmarks, which are not well established.
Updates driven by change. A model is refreshed when the design changes, not on a calendar. A model that is current on paper and wrong about the system is worse than none.
Where programs fail
• The model becomes a document. It is produced to satisfy a gate and never consulted again.
• Security does it for the team. The output looks thorough and the team learns nothing.
• Too much method too early. Heavy frameworks applied to every release produce fatigue and workarounds.
• No path into the backlog. Findings sit in a report while the sprint plan carries on unchanged.
• Third-party and delivery pipeline components are left out. Dependencies, build systems and integrations are part of the system’s attack surface and should appear in the diagram.
• AI features are modeled as ordinary features. When a model’s output can trigger actions through tools or other services, untrusted input, including retrieved content, can influence those actions. That creates a trust boundary that older diagrams do not show.
Questions to test your program
**1. **Which of last quarter’s changes met the trigger criteria, and how many had a model?
**2. **Name a design that changed because of a threat model. If nobody can, the practice may not be reaching decisions.
**3. **Who signs off on a risk accepted during modeling, and is that recorded?
**4. **How many design-level flaws appeared in penetration tests or incidents that the model should have caught?
**5. **Could a new engineer find the current model for any tier-one system within minutes?
**** Take the next change that adds an external API or a third-party integration and run one structured session with the team that is building it. Track whether it changes the design or the test plan. That result tells you whether the practice is worth scaling.
Sources
**1. **Threat Modeling Manifesto. Definition, four key questions, values and principles. https://threatmodelingmanifesto.org/
**2. **OWASP Top 10. A04 Insecure Design. https://owasp.org/www-project-top-ten/
**3. **NIST. SP 800-218, Secure Software Development Framework, practice PW.1 (design software to meet security requirements and mitigate security risks). https://csrc.nist.gov/pubs/sp/800/218/final
**4. **OWASP. Threat Modeling Project. https://owasp.org/www-project-threat-model
**5. **OWASP. API Security Top 10. https://owasp.org/API-Security/
How we label evidence
Facts carry a source. Analysis and recommendations are marked as ours. Examples that are hypothetical are labeled as hypothetical.
Part of the solutionProtect What MattersGuard the identities, data and systems the business depends on.See how we work →Related service
Application Security
Use this to improve application security decisions.