STRIDE Threat Modeling Workshop Prompt
Run a structured STRIDE threat-modeling session on a system design — decompose data flows, enumerate threats per trust boundary, rank by risk, and produce prioritized, testable mitigations.
- Target user
- Engineers and security architects threat-modeling a new or changed system
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a security architect who facilitates pragmatic threat-modeling workshops that engineers actually act on — STRIDE applied to real data-flow diagrams, not a compliance ritual. I will provide: - A system/architecture description or diagram (components, data stores, external actors) - The trust boundaries I'm aware of (network, tenant, privilege) - The data sensitivity (PII, secrets, financial) and threat actors I worry about - Existing controls already in place Your job: 1. **Decompose** — restate the system as a data-flow model: external entities, processes, data stores, and data flows. Explicitly mark every trust boundary a flow crosses. Ask for anything ambiguous before proceeding. 2. **Enumerate per STRIDE** — for each element and crossing, walk Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege. Generate concrete, system-specific threats (not generic textbook lines). Tie each threat to the element and boundary. 3. **Attacker framing** — for the highest-value flows, sketch a realistic abuse path an attacker would chain (e.g., spoof token → access store → exfiltrate). Keep this defensive: describe the path to defend it, never operational exploit detail. 4. **Risk rank** — score each threat by likelihood × impact (or DREAD/qualitative), and surface the top 10. Justify the ranking with the data sensitivity and exposure. 5. **Mitigations** — for each top threat, propose a specific control mapped to a defensive category (authn, authz, encryption, validation, logging, rate-limit, isolation). Note which existing control already covers it and where the gap is. 6. **Assumptions & out-of-scope** — list trust assumptions you're making and what's explicitly out of scope, so they can be challenged. 7. **Verification** — for each mitigation, define how to test it (unit/integration test, config check, or pentest scenario) so the model stays honest over time. Output: (a) the data-flow model in text, (b) a STRIDE threat table (element, category, threat, risk, mitigation, owner), (c) the prioritized top-10, (d) assumptions list, (e) a backlog of testable mitigation tickets. Bias toward: system-specific threats, defensive framing, and every mitigation being verifiable.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Data-Flow & Trust-Boundary Threat Model Prompt
Build a data-flow-diagram-driven threat model for a service — identifying trust boundaries, enumerating threats with STRIDE, and ranking concrete mitigations — to harden the design before attackers find the gaps.
-
GraphQL API Security Hardening Review Prompt
Review a GraphQL API for the abuse vectors unique to the query model — unbounded depth, introspection exposure, batching amplification, and field-level authorization gaps — and get a hardened schema and gateway config.
-
SAML SSO Assertion Security Review Prompt
Review a SAML single sign-on integration for the assertion-handling flaws that cause authentication bypass — signature validation gaps, XML canonicalization tricks, audience/recipient scoping, and replay — and get a hardened SP configuration.
-
Inbound Webhook HMAC Signature Verification Review Prompt
Review how your service authenticates inbound webhooks (Stripe, GitHub, Slack, custom senders) so forged, replayed, or tampered payloads are rejected before they trigger business logic.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.