Skip to main content

Offensium Vault

Threat Modelling With STRIDE: A Practical Guide

Threat Modelling With STRIDE: A Practical Guide
Spread the love

Most security problems are cheaper to prevent than to fix. Threat modelling helps you find design weaknesses before code is written or before a new feature goes live, by asking a simple question in a structured way: what could go wrong? STRIDE is one of the most practical frameworks for answering it, and it works for web apps, APIs, mobile apps and cloud systems alike.

This guide explains threat modelling with STRIDE, walks through a simple example and shows how to turn the results into concrete security improvements.

What Is Threat Modelling?

Threat modelling is a structured way to identify, prioritise and address threats to a system. According to the OWASP threat modelling guidance, it typically answers four questions:

  1. What are we working on?
  2. What can go wrong?
  3. What are we going to do about it?
  4. Did we do a good enough job?

Unlike penetration testing, which tests a running system, threat modelling works on the design. The two complement each other: threat modelling shapes what you build, and testing proves whether it holds up.

The STRIDE Framework Explained

STRIDE, originally developed at Microsoft, groups threats into six categories. Each one maps to a security property it violates:

Threat Violates Example
Spoofing Authentication An attacker logs in as another user with stolen credentials
Tampering Integrity A user modifies a price or account ID in an API request
Repudiation Non-repudiation A user denies making a transaction and there are no reliable logs
Information disclosure Confidentiality An API returns other customers’ personal data
Denial of service Availability An expensive search endpoint is flooded until the service fails
Elevation of privilege Authorisation A normal user gains admin rights through a missing check

How to Run a STRIDE Threat Modelling Session

Step 1: Model the System

Draw a data flow diagram showing users, external systems, processes, data stores and the data flows between them. Mark trust boundaries, such as the line between the internet and your API, or between your application and a third-party payment provider.

Step 2: Apply STRIDE to Each Element

Go through each component and data flow and ask which STRIDE categories apply. Data flows crossing trust boundaries usually deserve the closest attention.

Step 3: Rate and Prioritise

Estimate the likelihood and impact of each threat. A simple high, medium and low rating is often enough to focus effort on what matters.

Step 4: Decide on Mitigations

For each important threat, choose a response: mitigate it with a control, eliminate it by changing the design, transfer it, or formally accept it.

Step 5: Validate

Confirm that mitigations were implemented and work. Security testing, code review and penetration testing provide that evidence.

A Simple Example: Online Payment Flow

Element STRIDE threat Mitigation
Login page Spoofing through credential stuffing MFA, rate limiting, breached password checks
Checkout API Tampering with price or quantity Server-side price calculation and validation
Order history Information disclosure via changed order IDs Object-level authorisation checks on every request
Payment callback Spoofing of payment confirmation Verify signatures from the payment provider
Admin panel Elevation of privilege Role-based access control, separate admin authentication
Audit trail Repudiation of refunds Tamper-resistant logging of key actions

Many of these threats appear in the OWASP API Security Top 10, which is why threat modelling and API testing work well together.

Turning the Threat Model Into Action

  • Add mitigations to your backlog as user stories or security requirements.
  • Use the threat model to scope secure code review and penetration testing on the riskiest areas.
  • Keep the model alongside your architecture documentation and update it when the design changes.
  • Feed findings from tests and incidents back into the model.

You can see how threat modelling applies in a specific industry in our article on threat modelling in the financial sector.

Common Threat Modelling Mistakes

  • Trying to model the entire organisation at once instead of one system or feature.
  • Producing a diagram but never acting on the threats found.
  • Leaving out third-party services and integrations.
  • Treating the model as a one-off document rather than keeping it current.

Frequently Asked Questions

When should threat modelling be done?

Ideally during design, before code is written, when changes are cheapest. It should then be revisited whenever the architecture changes significantly, for example when adding a new integration, payment flow, data store or deployment model.

Who should take part in a threat modelling session?

A small group that understands the system: an architect or lead developer, someone who knows the business process, and a security specialist. Product owners and operations staff add valuable context about how the system is really used and run.

Is STRIDE the only threat modelling method?

No. Other approaches include PASTA, attack trees, LINDDUN for privacy and the OWASP threat modelling process. STRIDE is popular because it is simple, systematic and easy for development teams to learn, which makes it a good starting point.

Conclusion

Threat modelling with STRIDE gives development and security teams a shared, structured way to find design flaws early. By modelling your system, applying the six STRIDE categories, prioritising risks and validating mitigations through testing, you can build security in rather than bolt it on later.

Want expert help modelling a new product or architecture? Learn about our threat and risk analysis service or contact the Offensium Vault team. You can also explore all our cybersecurity services.

Where we work: Offensium Vault provides penetration testing for businesses in India, UAE, USA, UK, Australia and clients worldwide, delivered remotely from India.

Free 30-minute consultation

Want an expert view of your security?

Talk to our ISO 27001 certified team about penetration testing, cloud security or compliance. No obligation, and we are happy to sign an NDA.

Book a Free ConsultationExplore our services →
Penetration testing for businesses in India · UAE · USA · UK · Australia and clients worldwide — delivered remotely from Bhubaneswar, India.
Chat on WhatsApp