Extrait public
Verrouillé
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…
À propos de ce 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.
Exemple de résultat
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…
Fiche technique
- Modèle
- Claude
- Langue du prompt
- Anglais
- Pour qui
- Developers, tech leads and security champions designing features that handle money, accounts or personal data
- Longueur
- ~677 tokens (estimation)
- Format livré
- Texte du prompt, affiché en ligne après achat
- Rayon
- Code & Développement
Avis
Aucun avis pour l'instant. Seuls les acheteurs de ce prompt peuvent en laisser un.