
Threat Modeling for Small Teams: STRIDE in Practice (2026 Guide with a Worked Example)
Most security tools find bugs in code that already exists. Threat modeling finds problems before the code is written, when they are cheap to fix. A missing authorization check found in a design review costs a sentence in a ticket. The same flaw found after a breach costs far more.
Many small teams skip threat modeling because it sounds heavy. They picture week-long workshops, thick documents, and specialized tools. It does not have to be like that. A useful threat model for a typical feature takes one meeting, a whiteboard, and a simple checklist.
This guide shows that lightweight version. It uses STRIDE, the most widely taught threat categorization, and applies it to a realistic example: a small invoicing app with payments. You will learn how to draw the system, how to find threats with STRIDE, how to rank them without false precision, and how to turn them into tickets that actually get done.
I also wrote a small script that turns a system description into a STRIDE checklist. I ran it on the example in this article, where it produced 38 questions for 6 components and 5 data flows. Section 7 then shows the 12 threats a team would realistically keep from those questions, with a response for each. The method itself draws on the Threat Modeling Manifesto, Adam Shostack’s work, and OWASP guidance, which I checked on November 26, 2026.
This article belongs to my security series. It connects to my guides on SAST and DAST tools, OAuth and OpenID Connect, and prompt injection and LLM app security.
Table of Contents
- The Short Answer
- What Threat Modeling Is
- When to Do It
- Step 1: Draw the System
- Step 2: Find Threats with STRIDE
- STRIDE per Element, with a Script
- A Worked Example: The Invoice App
- Step 3: Rank the Threats
- Step 4: Decide and Track
- Running the Session
- Tools and Threat Modeling as Code
- Beyond STRIDE
- Common Mistakes
- Frequently Asked Questions
- Conclusion
- References
1. The Short Answer
A threat model answers four questions, and STRIDE helps with the second one.
- What are we working on? Draw a simple data flow diagram.
- What can go wrong? Walk each part of the diagram through the six STRIDE categories.
- What are we going to do about it? Mitigate, accept, transfer, or remove each threat, and file tickets.
- Did we do a good enough job? Check that the tickets got done and the model still matches reality.
The core loop: Draw the system, then run STRIDE on the flows that cross a trust boundary first. Rank the threats with a simple matrix. Turn every decision into a ticket and a test.
For a small team, that means one session of about 90 minutes per significant feature or architecture change. Put the result next to the code, as a short Markdown file with a diagram and a table of threats. Update it when the design changes.
| STRIDE category | The question to ask | Property it breaks |
|---|---|---|
| Spoofing | Can someone pretend to be someone or something else? | Authenticity |
| Tampering | Can someone change data or code they should not? | Integrity |
| Repudiation | Can someone deny doing something, with no way to prove it? | Non-repudiation |
| Information disclosure | Can data leak to someone who should not see it? | Confidentiality |
| Denial of service | Can someone make the system slow or unavailable? | Availability |
| Elevation of privilege | Can someone gain rights they should not have? | Authorization |
2. What Threat Modeling Is
Threat modeling is a structured way to think about how a system could be attacked or misused, while you can still change its design. The Threat Modeling Manifesto, written in 2020 by a group of practitioners, defines it as analyzing representations of a system to highlight concerns about security and privacy.
The manifesto frames the work around the four questions above. They come from Adam Shostack, whose book on threat modeling is still the standard reference. The questions are deliberately simple. They work for a two-person startup and for a large enterprise alike.
What it is not
- It is not a penetration test. A pentest attacks a running system. A threat model examines a design, often before any code exists.
- It is not a compliance document. A model that sits in a folder and never changes has failed, even if an auditor liked it.
- It is not only for security experts. The developers who build the system know it best. A security person helps, but the team does the thinking.
- It is not a one-time event. Systems change, so the model must change with them.
Why small teams benefit most
Large companies have security teams to catch design flaws later. Small teams usually do not. For them, the design discussion is the main chance to catch an authorization gap, a missing webhook signature check, or a log file full of personal data. One hour of structured thinking can prevent the kind of breach that ends a small company.
3. When to Do It
You do not need a threat model for every pull request. Use it when the risk changes.
- A new system or service: Model it during design, before the main build starts.
- A new trust boundary: A new external integration, a public API, a webhook, or a new kind of user.
- New sensitive data: Payment data, health data, credentials, or personal data at a larger scale.
- Authentication or authorization changes: New sign-in methods, roles, or sharing features.
- New AI features: Anything where a language model reads untrusted content or calls tools.
- After an incident: Model the affected area again, because the incident proved the old model missed something.
For small changes, a lighter check works. Ask in the pull request template: “Does this change add a trust boundary, new data, or new permissions?” If the answer is yes, schedule a session.
4. Step 1: Draw the System
You cannot find threats in a system you have not described. The standard tool is a data flow diagram (DFD). It needs only five kinds of element.
| Element | Drawn as | Examples |
|---|---|---|
| External entity | Rectangle | Users, browsers, third-party services |
| Process | Circle or rounded box | Your API, background workers, functions |
| Data store | Two parallel lines | Databases, caches, file buckets, log stores |
| Data flow | Arrow | HTTP requests, queue messages, webhooks |
| Trust boundary | Dashed line | The internet edge, a network segment, a tenant boundary |
The trust boundary is the most important element. It marks where data or control passes between parts with different levels of trust. Most serious threats sit on a flow that crosses one.
The example system
Here is the invoice app used throughout this guide. Customers sign in, create invoices, and download them as PDFs. Payments go through Stripe, which calls back with webhooks.
INTERNET | OUR CLOUD ACCOUNT
|
[Customer browser] --login, edits-----> | --> (Web API) ----invoices----> =Postgres=
| | \
[Stripe] ----------payment webhooks---> | ------>| \--security events--> =Audit log=
| |
| +--render jobs--> (PDF worker)
|
trust boundary: the dashed line between the internet and our account
If your docs render Mermaid, as GitHub and GitLab Markdown do, this version is easier to keep in the repository.
flowchart LR
subgraph Internet
Browser[Customer browser]
Stripe[Stripe]
end
subgraph Cloud[Our cloud account]
API((Web API))
PDF((PDF worker))
DB[(Postgres)]
Audit[(Audit log)]
end
Browser -->|login, invoice edits| API
Stripe -->|payment webhooks| API
API -->|invoices, users| DB
API -->|render jobs| PDF
API -->|security events| Audit
The two subgraphs act as the trust boundary. Rectangles are external entities, circles are processes, and cylinders are data stores.
Tips for the diagram
- Keep it to one page. If it does not fit, split the system and model each part separately.
- Draw the system as it is. Do not draw the design you wish you had.
- Label every flow with the data it carries. “Login, invoice edits” tells you far more than an unlabeled arrow.
- Mark trust boundaries explicitly. Ask where authentication happens, and where data from outside first arrives.
- Use whatever tool the team already has. A whiteboard photo, Excalidraw, draw.io, or Mermaid all work.
5. Step 2: Find Threats with STRIDE
STRIDE was created at Microsoft in 1999 by Loren Kohnfelder and Praerit Garg. Each letter names a category of threat, and each category is the opposite of a security property you want.
Spoofing
An attacker pretends to be a user, a server, or another component. Examples include stolen session cookies, forged webhooks, and phishing pages.
- Typical defenses: Strong authentication, passkeys, signed webhooks, mutual TLS between services.
- Question for the example: How does the Web API know a webhook really came from Stripe?
Tampering
An attacker changes data in transit, at rest, or in memory. Examples include editing a price in a request, changing a record directly in a database, and modifying a queued job.
- Typical defenses: TLS, server-side validation, integrity checks, signatures, strict database permissions.
- Question for the example: Can a customer change the total of an invoice by editing the request?
Repudiation
Someone performs an action and later denies it, and you cannot prove otherwise. This includes attackers covering their tracks and users disputing a payment.
- Typical defenses: Audit logs that record who did what and when, stored where the actor cannot edit them.
- Question for the example: If an admin deletes an invoice, could we prove which admin did it?
Information disclosure
Data reaches someone who should not see it. Examples include one customer reading another customer’s invoice, error messages showing stack traces, and secrets in logs.
- Typical defenses: Object-level authorization, encryption, careful logging, generic error messages.
- Question for the example: Can customer A download customer B’s PDF by changing an ID in the URL?
Denial of service
The system becomes slow or unavailable. Examples include request floods, expensive queries, huge uploads, and jobs that never finish.
- Typical defenses: Rate limits, quotas, timeouts, size limits, queue limits, autoscaling with budgets.
- Question for the example: What happens if someone requests 10,000 PDF renders at once?
Elevation of privilege
An attacker gains rights they should not have. Examples include a normal user reaching admin endpoints, and a bug that lets a web request run code on the server.
- Typical defenses: Authorization checks on every request, least privilege for services, sandboxing, input validation.
- Question for the example: Can a crafted invoice make the PDF worker run commands or read local files?
6. STRIDE per Element, with a Script
Walking all six categories over every element gets repetitive, and some combinations rarely matter. Microsoft’s STRIDE-per-element approach narrows the list by element type.
| Element type | S | T | R | I | D | E |
|---|---|---|---|---|---|---|
| External entity | Yes | Yes | ||||
| Process | Yes | Yes | Yes | Yes | Yes | Yes |
| Data store | Yes | Logs only | Yes | Yes | ||
| Data flow | Yes | Yes | Yes |
Repudiation applies to a data store mainly when the store holds logs, since those logs are your evidence. The other gaps are not rules of nature. They are a sensible default that keeps sessions focused.
A small checklist generator
I wrote a short Node.js script that applies this table. You describe the system as JSON, and it prints a Markdown checklist. Flows that cross a trust boundary come first, because that is where most real threats appear.
// stride.mjs: turn a small data flow diagram (JSON) into a STRIDE-per-element checklist.
// usage: node stride.mjs model.json > threats.md
import fs from "node:fs";
// Which STRIDE categories usually apply to each element type (Microsoft's STRIDE-per-element chart).
const APPLIES = {
external: ["S", "R"],
process: ["S", "T", "R", "I", "D", "E"],
store: ["T", "R", "I", "D"], // R only applies to stores that hold logs
flow: ["T", "I", "D"],
};
const QUESTION = {
S: "Spoofing: can someone pretend to be {name}?",
T: "Tampering: can someone change {name} or the data in it?",
R: "Repudiation: could someone deny an action involving {name}, and could we prove otherwise?",
I: "Information disclosure: can {name} leak data to someone who should not see it?",
D: "Denial of service: can someone make {name} slow or unavailable?",
E: "Elevation of privilege: can someone use {name} to gain rights they should not have?",
};
export function strideChecklist(model) {
const rows = [];
const items = [
...model.elements,
...model.flows.map((f) => ({
...f,
type: "flow",
name: `${f.from} -> ${f.to} (${f.data})`,
})),
];
for (const el of items) {
let cats = APPLIES[el.type];
if (!cats) throw new Error(`unknown element type ${el.type}`);
if (el.type === "store" && !el.logs) cats = cats.filter((c) => c !== "R");
// Flows that cross a trust boundary are where most real threats live.
const crosses = el.type === "flow" && el.boundary === true;
for (const c of cats)
rows.push({
element: el.name,
type: el.type,
category: c,
crosses,
question: QUESTION[c].replace("{name}", el.name),
});
}
// Boundary-crossing flows first, then processes, so the riskiest items lead the review.
const rank = (r) => (r.crosses ? 0 : r.type === "process" ? 1 : 2);
return rows.sort((a, b) => rank(a) - rank(b));
}
if (process.argv[2]) {
const rows = strideChecklist(
JSON.parse(fs.readFileSync(process.argv[2], "utf8")),
);
console.log("| # | Element | STRIDE | Question | Boundary |");
console.log("| - | ------- | ------ | -------- | -------- |");
rows.forEach((r, i) =>
console.log(
`| ${i + 1} | ${r.element} | ${r.category} | ${r.question} | ${r.crosses ? "yes" : ""} |`,
),
);
}
The model for the invoice app
{
"name": "Invoice app",
"elements": [
{ "name": "Customer browser", "type": "external" },
{ "name": "Stripe", "type": "external" },
{ "name": "Web API", "type": "process" },
{ "name": "PDF worker", "type": "process" },
{ "name": "Postgres", "type": "store" },
{ "name": "Audit log", "type": "store", "logs": true }
],
"flows": [
{
"from": "Customer browser",
"to": "Web API",
"data": "login, invoice edits",
"boundary": true
},
{
"from": "Stripe",
"to": "Web API",
"data": "payment webhooks",
"boundary": true
},
{ "from": "Web API", "to": "Postgres", "data": "invoices, users" },
{ "from": "Web API", "to": "PDF worker", "data": "render jobs" },
{ "from": "Web API", "to": "Audit log", "data": "security events" }
]
}
What it produced
Running node stride.mjs model.json produced 38 questions. There were 15 for the five flows, 12 for the two processes, 7 for the two stores, and 4 for the two external entities. The first six rows covered the two flows that cross the internet boundary, exactly as intended.
The output is a starting list, not a finished threat model. Its job is to make sure nobody forgets a category. The real work is the discussion each question starts.
The script is deliberately minimal. It assigns no severity and suggests no mitigations, because those depend on your system. To turn its output into a living document, add columns for the team’s answers during the session.
| # | Element | STRIDE | Question | Decision | Owner | Ticket |
|---|---|---|---|---|---|---|
| 4 | Stripe -> Web API (webhooks) | T | Can someone change the webhook data? | Mitigate | Ana | SEC-142 |
| 5 | Stripe -> Web API (webhooks) | I | Can the webhook flow leak data? | Accept | Ben | Review 2027-05 |
7. A Worked Example: The Invoice App
Here are the threats a team might find in one session on the invoice app. Each row names the element, the STRIDE category, the threat in plain words, and the planned response.
| # | Element | STRIDE | Threat | Response |
|---|---|---|---|---|
| 1 | Stripe to Web API | S | Anyone can POST a fake “payment succeeded” webhook | Verify the signature with Stripe’s official library and the endpoint secret |
| 2 | Stripe to Web API | T | A real webhook is replayed later to mark another invoice paid | Reject events older than 5 minutes, the library default, and store processed event IDs |
| 3 | Web API | I | Customer A reads customer B’s invoice by changing the ID in the URL | Check ownership on every invoice query, and add tests for it |
| 4 | Web API | E | A normal user calls an admin endpoint directly | Enforce roles on the server for every admin route |
| 5 | Browser to Web API | T | The client sends its own invoice total | Recalculate totals on the server, and ignore client totals |
| 6 | Browser to Web API | S | Session cookies are stolen through XSS | HttpOnly cookies, a strict CSP, and output encoding |
| 7 | PDF worker | E | Invoice HTML makes the renderer fetch internal URLs or local files | Disable network and file access in the renderer, and sanitize input |
| 8 | PDF worker | D | Thousands of render jobs exhaust the worker | Per-customer rate limit, job timeout, and a queue length cap |
| 9 | Postgres | I | A database backup leaks with all customer data | Encrypt backups, restrict access, and test restores |
| 10 | Audit log | R | An admin deletes an invoice and the log can be edited | Append-only log storage that admins cannot modify |
| 11 | Web API to Audit log | I | Logs contain full card numbers or session tokens | Log IDs, not secrets, and redact sensitive fields |
| 12 | Customer browser | R | A customer disputes having approved an invoice | Record approvals with timestamp, user ID, and IP in the audit log |
What the session revealed
Threats 1, 3, and 7 are the kind that cause real incidents. Each one is a single missing check, and each one is easy to fix during design.
- Threat 1 happens when a team trusts a webhook just because it arrives at a secret URL. Stripe signs every webhook, and its libraries verify the signature in one call. Skipping that check lets anyone mark invoices as paid.
- Threat 3 is broken object-level authorization, which tops the OWASP API Security Top 10. A valid session is not permission to read every record. The fix is a habit: every query filters by the owner.
- Threat 7 is server-side request forgery through a document renderer. HTML-to-PDF tools often fetch images and stylesheets, and an attacker can point them at cloud metadata endpoints or internal services.
What we would do next
The top three threats become three tickets, each with a clear done condition.
- Verify Stripe webhook signatures: Use the official library, reject unsigned or stale events, and ignore event IDs already processed. Done when the bad-signature test below passes.
- Enforce invoice ownership: Add an owner filter to every invoice query, ideally in one shared data-access function. Done when the cross-customer test below passes for every invoice endpoint.
- Lock down the PDF renderer: Block network access from the worker, disable local file access in the renderer, and sanitize invoice HTML. Done when a test invoice that references an internal URL renders without fetching it.
Linking threats to tests
A threat is only handled when something proves it. For each “mitigate” decision, add a test that fails if the defense disappears.
- Threat 1: A test sends a webhook with a bad signature and expects a 400 response.
- Threat 3: A test signs in as customer A, requests customer B’s invoice, and expects a 404 response.
- Threat 8: A test queues more jobs than the limit and expects a rejection.
These tests turn the threat model into something your CI checks on every commit. My SAST and DAST guide covers scanners that catch some of these issues automatically, but authorization logic usually needs tests that you write yourself.
8. Step 3: Rank the Threats
You will find more threats than you can fix at once, so you need an order. Keep the ranking simple, because precise-looking scores give a false sense of accuracy.
A three-by-three matrix
Rate each threat on two axes, using three levels each.
- Likelihood: How easy is the attack, and how exposed is the element? An unauthenticated internet endpoint scores high. An internal job that needs admin access scores low.
- Impact: What happens if the attack succeeds? Access to all customer data or money scores high. A slower dashboard scores low.
| Likelihood \ Impact | Low | Medium | High |
|---|---|---|---|
| High | Medium | High | Critical |
| Medium | Low | Medium | High |
| Low | Low | Low | Medium |
In the invoice example, threats 1 and 3 are critical. Both are reachable from the internet, and both lead directly to money or data. Threat 12 is low, because it is a business dispute and the audit log already helps.
A useful rule of thumb follows from this. Anything that is reachable from the internet and leads to money or to all customer data starts as critical, until someone shows why it is not.
Why not DREAD?
DREAD scores Damage, Reproducibility, Exploitability, Affected users, and Discoverability from 1 to 10. Microsoft created it alongside STRIDE, and later stopped using it internally because the scores were too subjective. Different people gave the same threat very different numbers. A coarse matrix is easier to agree on, and it is honest about the uncertainty.
When you need more precision
If you must compare risks across many systems, use an established method instead of inventing one. The OWASP Risk Rating Methodology breaks likelihood and impact into factors. CVSS is designed for scoring specific vulnerabilities, not design threats, so it fits poorly here.
9. Step 4: Decide and Track
Every threat needs a decision. There are four options.
- Mitigate: Add a control that reduces the risk, such as a signature check or a rate limit. This is the usual answer.
- Eliminate: Remove the feature or the data. If you never store card numbers, nobody can steal them.
- Transfer: Move the risk to someone better placed to handle it. Using Stripe instead of handling cards yourself transfers most payment risk.
- Accept: Decide the risk is small enough to live with. Write down who accepted it and when it will be reviewed. Most teams skip this part, and that is how temporary risks become permanent.
Make it real work
A threat that only lives in a document does not get fixed. Create a ticket for each “mitigate” decision, in the same tracker as the feature work. Give it an owner, link it to the threat model, and add the security label your team uses.
Add the critical and high items to the feature’s definition of done. The feature is not finished until those tickets are closed. That single rule turns threat modeling from advice into practice.
A short checklist makes the rule concrete.
- Every critical and high threat has a closed ticket or a written acceptance.
- Every mitigated threat has a test that fails if the defense disappears.
- Every accepted risk names an owner and a review date.
- The diagram and threat table in the repository match what shipped.
Store the model with the code
Keep the threat model as a Markdown file in the repository, for example at docs/threat-model.md. Include the diagram, the threat table, the decisions, and the date. Changes then go through code review like everything else, and the history shows how the design evolved.
10. Running the Session
Who should be there
- Two or three engineers who know the design, ideally including whoever will build it.
- One person to facilitate, who keeps the session moving. This can be a security engineer or any developer who has done it before.
- A product person, optionally, who can answer questions about intended behavior and accept business risks.
Keep the group small. More than six people turns the session into a meeting where few people talk.
A 90-minute agenda
| Time | Activity |
|---|---|
| 0 to 10 | Explain the feature and its goals. What data, which users, which integrations? |
| 10 to 30 | Draw or review the data flow diagram, and mark the trust boundaries. |
| 30 to 65 | Walk the STRIDE checklist, starting with flows that cross a boundary. |
| 65 to 80 | Rank the threats with the three-by-three matrix. |
| 80 to 90 | Decide a response for each threat, assign owners, and agree on follow-up. |
Facilitation tips
- Ask “how,” not “if.” “How would someone read another customer’s invoice?” works better than “Is this secure?”
- Write everything down, including threats that seem silly. Filtering comes later, during ranking.
- Do not solve threats in the meeting. Note the likely fix and move on. Design work happens afterward.
- Keep a parking lot. Write interesting but out-of-scope ideas on a separate list, so they are not lost and do not derail the session.
- Make it safe to raise problems. Finding a flaw in your own design is the point, not a failure.
Elevation of Privilege, the card game
If your team finds the checklist dry, try Elevation of Privilege. Adam Shostack designed this card game at Microsoft to teach STRIDE. Each card describes a specific threat, and players score by applying cards to the diagram. It is a surprisingly effective way to run a first session, and the cards are freely available.
11. Tools and Threat Modeling as Code
You do not need a special tool to start. A whiteboard and a Markdown table are enough. As the practice grows, these tools can help.
Diagram-based tools
- OWASP Threat Dragon: A free, open source tool for drawing diagrams and recording threats, with STRIDE and other methods built in. It runs in the browser or as a desktop app. Version 2.6.2, from May 2026, was the latest release when I checked.
- Microsoft Threat Modeling Tool: A free Windows application that generates STRIDE threats automatically from a diagram.
- Commercial platforms: Products such as IriusRisk add threat libraries, compliance mapping, and integration with issue trackers for larger organizations.
Threat modeling as code
Some teams describe the system in code or YAML and let a tool generate diagrams and threats. The model then lives in Git and changes with the code.
- pytm: An OWASP project where you describe the system in Python. It generates data flow diagrams, sequence diagrams, and a threat report.
- Threagile: You describe the architecture in YAML, and it runs risk rules and produces reports and diagrams.
The script in section 6 is a tiny version of the same idea. The value of these tools is consistency, not insight. They remind you of categories, and humans still decide what matters.
Using an LLM as an assistant
Language models can draft a STRIDE list from a design description, and open source projects such as STRIDE GPT do exactly that. They are useful for a first pass, and for teams with no security specialist. Treat the output as a brainstorm, though. Models produce generic threats confidently, miss system-specific ones, and sometimes invent features your system does not have. Never paste confidential designs into a tool your company has not approved.
12. Beyond STRIDE
STRIDE is a good default, but it is not the only lens.
- LINDDUN focuses on privacy threats: linking, identifying, non-repudiation, detecting, data disclosure, unawareness, and non-compliance. Use it alongside STRIDE when you process personal data.
- PASTA, the Process for Attack Simulation and Threat Analysis, is a seven-stage, risk-centered method. It suits larger organizations that want to tie threats to business impact.
- Attack trees start from an attacker’s goal, such as “steal invoices,” and break it into the ways to reach it. They are excellent for exploring one high-value threat in depth.
- MITRE ATT&CK catalogs real attacker techniques. It helps you check whether your detection and response cover what attackers actually do.
- OWASP Top 10 lists work as checklists for specific system types. The OWASP API Security Top 10 fits APIs, and the OWASP Top 10 for LLM Applications fits AI features.
AI features need extra questions
When a feature uses a language model, STRIDE still applies, but new threats appear. A model that reads a web page or an email can be manipulated by text inside it. A model that calls tools can be tricked into calling them. Add two questions for every AI component.
- What untrusted text can reach the model? Include documents, web pages, emails, tool results, and stored memory.
- What can the model do on its own? List every tool, its permissions, and whether a human approves the action.
My guide to prompt injection and LLM app security covers those threats in detail.
13. Common Mistakes
- Waiting for the perfect diagram. A rough diagram today beats a perfect one that never gets drawn.
- Modeling the whole company at once. Model one feature or service per session.
- Skipping the trust boundaries. Without them, every flow looks equally risky, and the important ones get lost.
- Listing threats without decisions. Every threat needs a response and an owner.
- Keeping the model away from the code. A document in a shared drive goes stale within weeks.
- Using scores to look precise. Coarse ratings that people agree on are more useful than detailed numbers that nobody trusts.
- Only inviting security people. The builders know where the shortcuts are.
- Treating it as a one-time task. Revisit the model when the design changes or after an incident.
- Forgetting about abuse cases. Think about legitimate users misusing features too, not only outside attackers.
- Never checking the result. Confirm that the tickets were done and that tests prove the defenses exist.
14. Frequently Asked Questions
How long should a threat model take?
For a typical feature, one 60 to 90 minute session, plus some time to write it up. A new system with many components may need two or three sessions. If it takes weeks, the scope is too big, so split it.
Do I need a security expert?
It helps, especially for the first few sessions, but it is not required. Developers who know STRIDE and the system can find most design threats. Over time, the team builds the skill itself.
Is STRIDE still relevant in 2026?
Yes, it still is. The categories describe basic security properties, and those have not changed. Modern systems add new places where they apply, such as AI agents and cloud identity. Combine STRIDE with a domain list, such as the OWASP LLM Top 10, for newer technology.
How does threat modeling fit into agile development?
Model at the level of epics or significant stories, not every ticket. Add a design-risk question to your story template or pull request template. Keep the model in the repository, and update it when an epic changes the architecture.
What is the difference between a threat, a vulnerability, and a risk?
A threat is something that could go wrong, such as a forged webhook that marks an invoice as paid. A vulnerability is a specific weakness that makes it possible, such as a webhook handler that never checks signatures. A risk combines the likelihood and impact of the threat succeeding.
Can threat modeling replace security testing?
No, the two work together. Threat modeling finds design flaws early, and testing finds implementation bugs later. A threat model also tells your testers where to look first.
15. Conclusion
Threat modeling is not a ceremony for large companies. It is a structured conversation about how your system could fail, held while changes are still cheap. Four questions and one meeting are enough to start.
Draw the system with its trust boundaries. Walk each element through STRIDE, starting with the flows that cross a boundary. Rank the threats coarsely, decide what to do about each, and turn the decisions into tickets and tests.
The invoice example shows the payoff. A forged webhook, a missing ownership check, and a renderer that fetches internal URLs are all realistic, and all of them are cheap to fix on a whiteboard. Run one session on your next significant feature, and keep the result next to the code. Tools and lists will keep evolving, so treat the tool versions here as accurate as of late November 2026.
16. References
Method
- Threat Modeling Manifesto
- Adam Shostack: Threat Modeling, Designing for Security
- OWASP: Threat Modeling Cheat Sheet
- OWASP: Threat Modeling Process
- Microsoft: Threat Modeling Tool threats (STRIDE)
- OWASP: Risk Rating Methodology
Tools
- OWASP Threat Dragon
- Microsoft Threat Modeling Tool
- OWASP pytm
- Threagile
- Elevation of Privilege card game
Related lists and methods
- OWASP API Security Top 10
- LINDDUN privacy threat modeling
- MITRE ATT&CK
- Stripe: verify webhook signatures