STRIDE threat model of a new feature, with prioritised mitigations

by fidji Claude English ~677 tokens
Public excerpt Locked
Draw the data flows and trust boundaries, list assets and entry points, apply STRIDE by element (processes get all six, data stores T-R-I-D, flows T-I-D), add abuse cases like race conditions and coupon stacking, rank by likelihood × impact…

About this prompt

Before you build a feature, get a structured threat model: data-flow diagram with trust boundaries, STRIDE applied per element type, business-logic abuse cases, a risk-ranked threat table with existing and proposed mitigations, and the security test cases to add. Design-level, so it complements a code-level security review.

Example output

Provided by the author
Assumptions: invitation links are single-use; roles are checked in the API, not only in the UI. STEP 4 — Threats (top of table) | ID | Element | Cat. | Scenario | L | I | Risk | Proposed mitigation | | T1 | POST /invitations/{token}/accept | E | Invitee with role "viewer" edits the token payload to claim "admin" because the role is read from the token | 2 | 3 | 6 | Store role server-side with the invitation; token = random ID only | | T2 | Invitations store | I | Tokens stored in clear → a DB read leak lets anyone join any workspace | 2 | 3 | 6 | Store SHA-256 of token, expire after 72 h | | T3 | Invite process | DoS / abuse | Attacker sends 10,000 invites to arbitrary emails → our domain gets flagged as spam | 3 | 2 | 6 | 20 invites/hour per workspace, verified email for inviter | | T4 | Role change flow | E | Removed admin keeps rights until JWT expires (60 min) | 2 | 2 | 4 | Check membership on each write, or 5-min tokens | STEP 6 — Test: accept the same invitation twice in parallel (2 requests, same token) → exactly one membership created…

Details

Model
Claude
Prompt language
English
Who it's for
Developers, tech leads and security champions designing features that handle money, accounts or personal data
Length
~677 tokens (estimate)
Delivered as
Prompt text, shown online after purchase

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt