CCyberwiki

STRIDE

STRIDE
TypeThreat classification mnemonic
Stands forSpoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege
Introduced1 April 1999, Microsoft
AuthorsLoren Kohnfelder and Praerit Garg
Used inThreat modelling
Common methodSTRIDE-per-element

On 1 April 1999 Loren Kohnfelder and Praerit Garg of Microsoft published "The threats to our products" in Interface, a journal read only inside the company.1 The paper sorted attacks on software into six classes and named them with the acronym STRIDE: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. Microsoft's Security Task Force recommended that every product team go through the six classes while a product was still being designed, and only afterwards look for flaws in the code.2 The paper stayed private for more than ten years, yet it was the first to give the search for threats a fixed structure, and STRIDE is still the common starting point for a technical design in Threat modelling.13

The paper keeps three words apart. A threat is any event, deliberate or accidental, that could harm the system. A vulnerability is a property of the system that lets the threat happen. An attack is what an intruder does to exploit a vulnerability.2 STRIDE names threats, so a team can apply it to a drawing of a system before any code is written.

The six classes

Each class is the failure of one security property (Table 1).45

Table 1. The STRIDE classes and the property each one breaks
ClassProperty brokenWhat happens
SpoofingAuthenticationSomeone acts as another user or system, for example with a stolen password or a replayed request
TamperingIntegrityData is changed without permission, in storage or on its way between two machines
RepudiationNon-repudiationA user performs an action and can later deny it, because nothing proves who did it
Information disclosureConfidentialitySomeone reads data they were never given access to
Denial of serviceAvailabilityThe system is made unavailable or unusable for its real users
Elevation of privilegeAuthorizationA user gains rights nobody granted, up to full control of the system

The 2006 article describes repudiation as lying: the threat exists wherever someone can act and then plausibly claim not to have, such as overwriting stored sales figures.4 The 1999 paper's examples are failed logins that are never recorded and messages accepted without checking a signature, and it notes that tampering with the security log leads to repudiation.2 The countermeasure is evidence the actor cannot change: Audit logs kept out of reach, or a signature, in the way a customer signs a receipt on delivery.65

Information disclosure differs from spoofing in its route: the data is read directly, without first posing as an allowed user. In the paper, elevation of privilege means complete compromise, in which the attacker has become part of the trusted system itself.2

STRIDE per element

Early meetings at Microsoft asked of each piece of a diagram what its spoofing threat was, then its tampering threat, and so on. Larry Osterman of Microsoft later wrote that this was ad hoc and did not work.6 The method that replaced it, STRIDE-per-element, starts from a data flow diagram with four kinds of element: interactors (people and outside services), processes, data stores and data flows. Trust boundaries mark where trusted and untrusted parts meet. Each kind of element is open to only some of the six classes, as Table 2 shows.4

Table 2. Classes that apply to each kind of element, from the 2006 MSDN Magazine article
ElementSTRIDE
InteractorXX
ProcessXXXXXX
Data storeXXX
Data flowXXX

The gaps follow from what each element is. A data store only holds data and runs with no privileges of its own, so elevation of privilege cannot apply to it. An interactor may be a person, which makes the other four classes meaningless for it, but a person can be impersonated and can deny an action. Osterman adds repudiation to data stores, which the 2006 table leaves out: logs live in data stores, and an attacker may flood a log with entries to cover a repudiation attack.6 The analysis is complete when tampering, disclosure and denial of service are dealt with for every flow and store, all six classes for every process, spoofing and repudiation for every interactor, and any threat peculiar to a trust boundary.4

Example

A note-taking app has a user in a browser, an API server and a Postgres database, with a trust boundary between the browser and the server. Table 2 turns into questions such as these:

  • User: spoofing, if a stolen session cookie lets someone else act as the user (Session management); repudiation, if a shared note can be deleted and nothing records who deleted it.
  • Browser to server: tampering and disclosure if the traffic is not encrypted (Encryption in transit); denial of service if one client may send unlimited requests (Rate limiting).
  • API server: all six, including elevation of privilege if the server trusts a role inside a JSON Web Token that the user has edited.3
  • Database: tampering and disclosure if a key that can bypass its access rules ships in the front end (Privileged key in client-side code).

From class to countermeasure

Because each class names a broken property, it also names the kind of control that answers it: Authentication for spoofing, integrity checks for tampering, logs and signatures for repudiation, encryption for disclosure, and Authorization checks for elevation of privilege. To get from a class to concrete attacks, Microsoft's book The Security Development Lifecycle (Michael Howard and Steve Lipner, 2006) gives a threat tree for each class against each element type. Its first tampering question for a data flow asks whether the flow is "hashed, MAC'd, or signed" with timestamps or counters to stop replay.4

Overlap and limits

The classes overlap, and the original paper says so: elevation of privilege can lead to tampering, and spoofing can open the way to private data.2 The 2006 authors file the removal of an entry from a list of sales systems under tampering while noting it could be modelled as denial of service, and tell readers not to dwell on the label.4 The model was meant to help people find problems, and a threat filed under the wrong letter has still been found.1

Checking every component does not prove the whole system safe. Threats often appear only when systems are joined, for instance when a system never designed for the internet is connected to it.4 Privacy harms are not fully covered by STRIDE's security properties and have their own prompt list, LINDDUN, while attack trees suit a multi-step attack on one high-value goal. Cloud systems often need the method adapted.3

Card games and variants

Adam Shostack created the Elevation of Privilege card game in 2010, after hearing Laurie Williams describe Protection Poker. The files are under a Creative Commons licence, and later editions added cards for denial-of-service threats to budgets and batteries (Denial of wallet). Derived games include STRIPED, which adds a P for privacy, and Elevation of Privacy, built on TRIM: transport, retention and removal, inference, minimisation.7

See also

References

  1. a b c Shostack, Adam (1 April 2019). "20 Years of STRIDE: Looking Back, Looking Forward". Shostack + Associates blog.
  2. a b c d e Kohnfelder, Loren; Garg, Praerit (1 April 1999). "The threats to our products". Interface (Microsoft internal journal), copy hosted on threatmodelingbook.com.
  3. a b c OWASP Foundation. "Threat Modeling Cheat Sheet". OWASP Cheat Sheet Series.
  4. a b c d e f g Hernan, Shawn; Lambert, Scott; Ostwald, Tomasz; Shostack, Adam (November 2006). "Uncover Security Design Flaws Using The STRIDE Approach". MSDN Magazine. Microsoft.
  5. a b Microsoft (25 August 2022). "Microsoft Threat Modeling Tool threats". Microsoft Learn.
  6. a b c Osterman, Larry (September 2007). "Threat Modeling Again, What does STRIDE have to do with threat modeling?". Microsoft blog archive.
  7. back Shostack + Associates. "Elevation of Privilege Game". shostack.org.