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.
- Scope and assets. What is modelled, what is taken as given (the platform’s foundation), which
assets matter most.
- Data-flow diagram. External entities, processes, data stores (logs and run histories
included), data flows, and the trust boundaries the flows cross.
- STRIDE per element (table below). One register row per credible threat.
- Rank on the ladder: impact, likelihood, exposure.
- Control each threat above the line: prevent, limit or detect; or a written acceptance.
- 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.
| Threat | Ask | Typical control |
|---|
| S | Spoofing | Can someone pretend to be another person or system? | Authentication; a secret or signature checked on every call |
| T | Tampering | Can data or code be changed without authority, or in transit? | Server-side authorization and validation; encrypted transport; history |
| R | Repudiation | Could an action be denied, and could we prove otherwise? | Attributable identity; audit history; correlation ids in logs |
| I | Information disclosure | Can data reach someone who should not see it, anywhere it travels? | Least privilege; protected fields and masking policies; clean logs |
| D | Denial of service | Can the service be stopped or swamped, by attack or by accident? | Limits, de-duplication, idempotent retries, capacity, alerts |
| E | Elevation of privilege | Can someone gain more access than given? | Least-privilege grants; one credential per integration and environment |
| Element | S | T | R | I | D | E |
|---|
| External entity | yes | | yes | | | |
| Process | yes | yes | yes | yes | yes | yes |
| Data store | | yes | yes (logs) | yes | yes | |
| Data flow | | yes | | yes | yes | |
| Class | The mistake | The control |
|---|
| Injection | User text interpreted as a query, expression, script or command | Values as data, never as code; validate types; allow-lists. Never build an expression, a query or a script from user-entered text. |
| Broken access control | The server does not check, checks the wrong thing, or grants too much | Decide on the server from the authenticated identity; narrowest grants; no confused deputies |
| Cross-site scripting | User text rendered as active content in someone else’s browser | Encode output; never insert raw markup; sanitise rich text against an allow-list |
| Request forgery | An action authorised by something the browser or mail client sends on its own | Credentials not sent automatically; anti-forgery tokens; no changes on a link visit |
| Server-side request forgery | Data chooses where the server connects | Configuration chooses destinations; allow-lists; uploads instead of fetches |
| Secrets handling | Keys in code, packages, addresses, logs or histories | Configuration 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”.
| Rung | When | Then |
|---|
| P1 Block | Severe, and reachable across a trust boundary or by any credential holder | Fixed before go-live |
| P2 Fix before load | Serious, but needs an insider or an unlikely condition, or contained | Fixed before real volume, first release |
| P3 Schedule | Limited impact, or already detectable | Backlog, owner and date |
| P4 Accept | Residual risk the business carries | Written acceptance by the asset’s owner, with a review date |
| Id | Element | STRIDE | Class | What could happen, to which asset | Mark (confirmed · refuted · duplicate · out of scope) | Rung | Control (prevent · limit · detect) | Verification | Result 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.