Many costly security flaws are not coding errors but design errors: a password-reset function that lets you guess accounts, an API that trusts data from the client. Threat modeling is a way to find them right at design time. What you need is a short meeting placed correctly in the sprint, not a heavy set of documents.
The four core questions
Both the Threat Modeling Manifesto and OWASP use the same framework:
- What are we building?
- What can go wrong?
- What are we going to do about it?
- Did we do a good enough job?
The manifesto stresses doing threat modeling early and often, in small iterations that fit the organization's development practices, valuing dialogue, and treating documentation as a record of shared understanding.
Where does it fit in the sprint?
| When | What to do |
|---|---|
| Refinement | Label high-risk user stories: authentication, payments, authorization, personal data, external integrations |
| Planning | Set aside 30-60 minutes for the labeled stories |
| During the sprint | Turn mitigations into acceptance criteria and tasks |
| Review/Retro | Check that mitigations were done; update the model |
A 45-minute session
Step 1: Draw the system
Use a data flow diagram (DFD): external entities, processes, data stores, data flows and trust boundaries. According to OWASP, these boundaries are often where attacks happen. A whiteboard is enough.
Step 2: Find threats with STRIDE
Apply the six prompts to each component and each flow that crosses a trust boundary:
- Spoofing (identity spoofing)
- Tampering (unauthorized modification)
- Repudiation (denying an action)
- Information disclosure
- Denial of service
- Elevation of privilege
OWASP notes there are other techniques such as attack trees, abuse cases, LINDDUN (privacy) and PASTA when STRIDE is not enough.
Step 3: Choose a response
Each threat is handled in one of these ways: mitigate, eliminate, transfer, accept. A mitigation that has been agreed becomes a security requirement.
Step 4: Verify
Confirm the diagram is accurate, every threat has a response, and the measures are testable. Record threats and measures in the work management system.
Keep it lightweight
- Choose a small part of the system; avoid modeling "everything".
- Invite multiple perspectives: developers, testers, operations, product.
- Avoid depending on a single expert (the "hero"), one of the anti-patterns the manifesto names.
- Reuse question templates and threat catalogs for similar features.
Minimum outputs
A diagram, a list of threats with ratings, a response for each threat, the security requirements derived, and test criteria.
Notes
- The model must be updated when the system changes.
- Combine with the OWASP Top 10 to suggest risk classes, especially the insecure design category.
- ADIGITRANS can help run a threat modeling workshop for your team.
Written by ADIGITRANS Joint Stock Company on 23 Nov 2026 based on the vendor's official documentation. Interfaces, features and pricing may change between versions – check the vendor's current documentation before deploying.