When to use it

Use this prompt during design, before a feature that handles user input, files, payments or personal data is built. It is also useful when a security team is not available for every project and developers need a structured first pass. The output is a starting point for a team discussion, not a security sign-off.

How to customize it

  • [FEATURE] should describe user-facing behavior in one or two sentences.
  • [ARCHITECTURE] is the core input. List components and arrows between them; a text version of your data flow diagram is ideal.
  • [USERS AND ROLES] helps the model find privilege problems, such as a normal user reaching an admin action.
  • [SENSITIVE DATA] sets the impact of disclosure threats.
  • [EXISTING CONTROLS] prevents a list of mitigations you already have.
  • [COMPLIANCE] adds obligations like data retention or breach notification.

Why it works

STRIDE is a long-established framework that gives the review a checklist of threat categories, so the model covers more than the obvious injection attacks. Asking for trust boundaries first focuses attention on the places where most real vulnerabilities occur: where data enters a more trusted part of the system.

Ranking by likelihood and impact turns a long list into priorities, and phrasing mitigations as backlog items makes them easy to act on. The rule about missing details matters, because a model asked about security tends either to list every possible threat or to assume things are safe. If your feature uses an LLM, add the risks described in our explainer on prompt injection and LLM security.

Tips and variations

  • Run the session with the team: generate the model, then challenge each row together.
  • Do not paste real secrets, internal hostnames or vulnerability details into tools that are not approved for them.
  • Ask for an “abuse cases” list written as user stories (“As an attacker, I want to…”).
  • Repeat the exercise when the architecture changes, not only at the start.
  • Verify mitigations with testing or a professional review for high-risk systems.
  • Keep the final table in your design document so later changes can be checked against it.