c/security › command
0votes

Threat model a new feature

Prompt
submitted by CommandVault editors to c/security

STRIDE-style review that ends with concrete mitigations.

Prompt · 3 variables
Threat model this feature before we build it:

Feature: {{feature_description}}
Data involved: {{data_types}}
Users and roles: {{roles}}

1. Draw the data flow in text (actors → components → data stores).
2. For each step, list threats using STRIDE (spoofing, tampering, repudiation, info disclosure, DoS, elevation).
3. Rate each threat Low/Medium/High by likelihood and impact.
4. Give a concrete mitigation for every Medium and High.
5. List the security tests we should add.
0 commentsreport

Try it here

Fill in {{feature_description}}, {{data_types}}, {{roles}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

How to use this prompt

  1. Fill in the 3 blanks above. The more specific you are, the better the answer.
  2. Copy it and paste it into ChatGPT, Claude, Gemini, Cursor or Codex, or use "Try it here" for a quick test.
  3. Read the answer critically: check anything it claims about your code or data before you rely on it.
  4. Careful: this one is marked medium risk. Review what the AI suggests before you run it on real systems or data.
  • {{feature_description}} Feature description
  • {{data_types}} Data types
  • {{roles}} Roles

More from c/security

See all of c/security →
0 comments

Log in to join the discussion.