Skip to content

From M5-S3 and M5-S4. Use it whenever a design adds a door: an integration, a public form, an application user, an outbound call, a Function, a custom control. The capstone’s threat model (M11-S5) follows it.

  1. Scope and assets. What is modelled, what is taken as given (the platform’s foundation), which assets matter most.
  2. Data-flow diagram. External entities, processes, data stores (logs and run histories included), data flows, and the trust boundaries the flows cross.
  3. STRIDE per element (table below). One register row per credible threat.
  4. Rank on the ladder: impact, likelihood, exposure.
  5. Control each threat above the line: prevent, limit or detect; or a written acceptance.
  6. Verify each control with a check that would fail without it. Record the result and date.

Return to step 2 whenever the design changes; re-run the checks at every promotion.

ThreatAskTypical control
SSpoofingCan someone pretend to be another person or system?Authentication; a secret or signature checked on every call
TTamperingCan data or code be changed without authority, or in transit?Server-side authorization and validation; encrypted transport; history
RRepudiationCould an action be denied, and could we prove otherwise?Attributable identity; audit history; correlation ids in logs
IInformation disclosureCan data reach someone who should not see it, anywhere it travels?Least privilege; protected fields and masking policies; clean logs
DDenial of serviceCan the service be stopped or swamped, by attack or by accident?Limits, de-duplication, idempotent retries, capacity, alerts
EElevation of privilegeCan someone gain more access than given?Least-privilege grants; one credential per integration and environment
ElementSTRIDE
External entityyesyes
Processyesyesyesyesyesyes
Data storeyesyes (logs)yesyes
Data flowyesyesyes
ClassThe mistakeThe control
InjectionUser text interpreted as a query, expression, script or commandValues as data, never as code; validate types; allow-lists. Never build an expression, a query or a script from user-entered text.
Broken access controlThe server does not check, checks the wrong thing, or grants too muchDecide on the server from the authenticated identity; narrowest grants; no confused deputies
Cross-site scriptingUser text rendered as active content in someone else’s browserEncode output; never insert raw markup; sanitise rich text against an allow-list
Request forgeryAn action authorised by something the browser or mail client sends on its ownCredentials not sent automatically; anti-forgery tokens; no changes on a link visit
Server-side request forgeryData chooses where the server connectsConfiguration chooses destinations; allow-lists; uploads instead of fetches
Secrets handlingKeys in code, packages, addresses, logs or historiesConfiguration or a secret store; keys in headers; redaction; one credential per integration

Hiding a button · “it is encrypted” (for spoofing) · “we log everything” (for prevention) · “nobody knows the address” · “only our own staff can do it”.

RungWhenThen
P1 BlockSevere, and reachable across a trust boundary or by any credential holderFixed before go-live
P2 Fix before loadSerious, but needs an insider or an unlikely condition, or containedFixed before real volume, first release
P3 ScheduleLimited impact, or already detectableBacklog, owner and date
P4 AcceptResidual risk the business carriesWritten acceptance by the asset’s owner, with a review date
IdElementSTRIDEClassWhat could happen, to which assetMark (confirmed · refuted · duplicate · out of scope)RungControl (prevent · limit · detect)VerificationResult and date
  • Verify a claim as the identity it is about, never only as an administrator.
  • Keep two weaknesses apart when their controls differ, even on the same flow.
  • A real defect that is not a security threat is handed to its owner, not dropped.
  • An acceptance names the threat, the residual risk, the controls in place, the owner and a review date.