Lesson 1 of 2 Threat Modeling and Supply Chain Risk

Threat Modeling Methodologies

Threat modelling identifies how a system could be attacked so that defences can be designed in. This lesson explains the process and compares the main methodologies.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the threat modelling process and the role of trust boundaries.
  • Distinguish STRIDE, DREAD, PASTA and attack trees.

The threat modelling process

Threat modelling asks four questions: What are we working on? What can go wrong? What are we going to do about it? Did we do a good job? The team models the system, usually with a data flow diagram showing external entities, processes, data stores, data flows and trust boundaries, where data crosses between zones of different trust. Threats cluster at trust boundaries.

Threats are then identified, ranked by risk and assigned mitigations, which become security requirements and test cases. Threat modelling is most effective during design and is repeated when the system changes. Approaches can focus on attackers, assets or the system's design.

The three focuses lead to different starting questions. An attacker-centric approach asks who would attack the system and what they want, such as a fraudster who wants false claims paid. An asset-centric approach starts from what is valuable, such as the employees' bank details. A system-centric or design-centric approach, such as STRIDE applied to a data flow diagram, works through each element of the design in turn. Design-centric approaches are the most systematic for development teams, because they do not depend on guessing attackers' motives.

Scenario questions

Modelling basics

Exam skills 1.10.1

Apply the core ideas of the threat modelling process.

Log in to try this activity Interactive activities are free with an account.
Worked example

Modelling an expense claims application

A team is threat modelling a web application that employees use to submit expense claims, which are passed to a payroll provider once approved. How does the data flow diagram guide the analysis?

The application has four elements: the employee's browser (an external entity), the web application (a process), the claims database (a data store) and the payroll system that receives approved claims (another external entity). There are two obvious trust boundaries: between the internet and the web application, and between the company network and the payroll provider.

The team examines every data flow that crosses a boundary. The flow from the browser raises questions about authenticating employees and validating uploaded receipts; the flow to payroll raises questions about protecting bank details in transit and proving which manager approved each claim.

STRIDE and DREAD

STRIDE, developed at Microsoft, classifies threats by the security property they violate, as the following table shows.

ThreatProperty violatedExample
SpoofingAuthenticationUsing stolen credentials to impersonate a user
TamperingIntegrityModifying data in transit or at rest
RepudiationNonrepudiationDenying an action because there are no reliable logs
Information disclosureConfidentialityExposing data through verbose error messages
Denial of serviceAvailabilityFlooding a service so legitimate users cannot reach it
Elevation of privilegeAuthorisationA normal user gaining administrator rights

DREAD is a scoring scheme that rates each threat on damage potential, reproducibility, exploitability, affected users and discoverability. It is used less today because its ratings are subjective, but it appears in exam questions as a way to prioritise threats.

STRIDE is applied element by element. Processes can suffer all six threat types; data stores are mainly exposed to tampering, information disclosure, denial of service and, when they hold logs, repudiation; data flows to tampering, information disclosure and denial of service; and external entities to spoofing and repudiation. In the expense application, the database is examined for tampering (could someone change an approved amount?), information disclosure (could another employee read colleagues' claims?) and denial of service (could a flood of large uploads fill the storage?).

DREAD then scores each threat, often from 1 to 10 for each of its five factors, and the average ranks the threats. A threat of changing approved amounts might score high on damage and affected users but low on discoverability if the database is not reachable from the internet. The subjectivity is visible here: two analysts can reasonably give different scores, which is why many teams now prefer a standard severity system or the organisation's own risk matrix.

The following diagram lists the STRIDE categories with the property each violates.

The six STRIDE threat categories, the security property each one violates and typical mitigations. Spoofing violates authenticity, tampering integrity, repudiation nonrepudiation, information disclosure confidentiality, denial of service availability, and elevation of privilege authorisation.
Mitigations are typical examples.
Match the pairs

STRIDE categories

Exam skills 1.10.2

Match each STRIDE threat with the security property it violates.

Log in to try this activity Interactive activities are free with an account.

PASTA, attack trees and other approaches

PASTA (Process for Attack Simulation and Threat Analysis) is a seven-stage, risk-centric methodology: define objectives, define the technical scope, decompose the application, analyse threats, analyse vulnerabilities and weaknesses, model attacks, and analyse risk and impact. It aligns technical threats with business impact.

Attack trees place an attacker's goal at the root and break it into the ways it could be achieved, showing which paths are cheapest for the attacker. VAST (visual, agile and simple threat modelling) is designed to scale across many teams. Trike is a risk-based approach built on a requirements model. The MITRE ATT&CK knowledge base catalogues real adversary tactics and techniques and helps make threat models realistic.

Match the pairs

Other methods

Exam skills 1.10.2

Match each threat modelling method or resource with what characterises it.

Log in to try this activity Interactive activities are free with an account.
Worked example

Applying STRIDE

In a threat model for an online banking application, the team notes that an attacker who intercepts a session cookie could make transfers as the victim, and that the application does not log who approved high-value transfers. Which STRIDE categories apply, and what mitigations follow?

Using the stolen cookie is spoofing, mitigated by secure, HttpOnly cookies over TLS, short session lifetimes and re-authentication for transfers. The missing approval logs create a repudiation threat, mitigated by tamper-protected audit logs that tie each approval to an authenticated user, ideally with transaction signing.

Check yourself

Which security property does the "repudiation" threat in STRIDE violate?

Show answer

Nonrepudiation; it is addressed by reliable, protected audit logs and signatures.

Exam Tips

Remember for the exam

  • Threat model during design; threats cluster at trust boundaries.
  • STRIDE identifies threat types; DREAD scores them.
  • PASTA is a seven-stage, risk-centric methodology.