---
name: review-secure-by-design-questions-prompt
description: "A prompt that lists secure-by-design questions a design should answer, grouped by theme, as a checklist on auth and data. Use when the user wants secure by design questions, a security question checklist, or the questions to settle before coding."
license: MIT
metadata:
  category: coding-prompts
  tags: "security,planning"
  author: johnny-bravo
  version: "1.0"
  updated: "2026-11-12"
  status: published
  aliases: "secure by design questions, security question checklist"
  source_url: "https://github.com/danielmiessler/Fabric/blob/8ce0909d8622a61b6aaf539d467ba31bb7e0b6dd/data/patterns/ask_secure_by_design_questions/system.md"
  source_license: MIT
  copyright: "Copyright (c) 2012-2024 Scott Chacon and others"
  original_author: "Daniel Miessler and Fabric contributors (ask_secure_by_design_questions pattern)"
  modified: "Converted by TheSkillVault into a fill-in prompt: kept grouped secure-by-design questions and a short overview, set a 12 to 20 question range, added a questions-only rule, steps and done-when. Queue name ask-secure-by-design-questions-prompt; ask is not a house verb."
  imported_on: "2026-11-12"
---

# Secure-by-design questions (prompt)

This prompt asks the security questions a design should answer before anyone builds it. It does not write a threat model.

## When to use
- You have an idea or a sketch and want the security questions first.
- You need a checklist on auth, data and who can reach the system.
- A review asks what the design still has to settle.

## When not to use
- You already have a design doc and want a critique. Use review-system-design-prompt.
- You want abuse paths tied to code. Use threat-model-your-app.

## Steps
1. Describe what you plan to build in a few sentences. Name who uses it.
2. Add any hard limit, such as "no accounts" or "data stays on device".
3. Paste it into the prompt below. Leave out secrets.
4. Answer the questions yourself. Do not treat a question as a finding.

## Prompt
```text
Read the design notes. Write questions only. Do not answer them and do not invent facts about the product.

DESIGN NOTES:
{{DESIGN NOTES}}

# Overview
Two short sentences: what is being built, and why it needs security thought.

# Secure by design questions
Group the questions under these headings. Add a heading only if it fits.
- Who can reach it
- Identity
- Data
- Failure
- Change

Rules:
- Write 12 to 20 questions.
- Each question is one sentence and names a choice the builder must make.
- Cover auth and data when the notes include them.
- If the notes do not mention a theme, skip it. Do not assume a vendor, a cloud or a password store.
- Do not give fixes. Questions only.
```

## How to adapt
- A hardware or physical system? Keep the same groups. Swap "Identity" for "Who is allowed on site".
- You already chose a stack? Paste that limit under DESIGN NOTES so the questions respect it.

## Gotchas
- Do not paste API keys, passwords, customer data or private URLs into a public AI.
- A long question list is not a threat model. Rank the answers yourself before you build.

## Portability
Works with any AI chat and any kind of system. No stack lock-in.

## Done when
- There are 12 to 20 questions under named groups.
- Each item is a question, not a fix or an invented fact.

## Example prompt
"List the secure by design questions this design should answer before we code."

---
Converted from the "ask_secure_by_design_questions" pattern in danielmiessler/Fabric (MIT, Copyright (c) 2012-2024 Scott Chacon and others). See LICENSE.txt.
