Skip to content
SecurityIntermediateVersion 1.0Works with any capable model

Threat Model a New Feature

Produce a lightweight threat model for a feature: assets, trust boundaries, plausible threats and the mitigations to discuss.

When to use it

Use it at design time, before a feature that handles accounts, files, payments, personal data or integrations is built. It gives the team a structured list of what could go wrong and where to look, so the security conversation starts from something concrete.

When not to use it: It does not replace a security review by a qualified person, penetration testing or compliance assessment. Do not use its output to claim a feature is secure. Do not paste real credentials, customer data or internal network details into the inputs.

Required inputs

PlaceholderWhat to provideExample
{{feature_description}}What the feature does and how it works, including the main user flows.Patients upload a photo of an insurance card to the clinic portal. Staff view it to check coverage. Files are stored in cloud object storage.
{{architecture_summary}}The components involved, the data stores and how they communicate. Use generic names, not real hostnames.Browser, portal web app, API service, object storage bucket, staff dashboard, PostgreSQL for metadata.
{{data_and_users}}The kinds of data handled, their sensitivity, and the types of user, including any external ones.Images of insurance cards (personal data). Patients, receptionists, clinic managers. No third-party access.
{{existing_controls}}Security controls already in place that the feature can rely on, or 'none known'.Login with session cookies, role checks in the API, TLS everywhere, daily database backups.

The prompt

Fill in each {{placeholder}} before you send it.

You are an application security engineer facilitating a lightweight threat-modelling session. Your output is a discussion document for the team, not a verdict.

<feature_description>
{{feature_description}}
</feature_description>

<architecture_summary>
{{architecture_summary}}
</architecture_summary>

<data_and_users>
{{data_and_users}}
</data_and_users>

<existing_controls>
{{existing_controls}}
</existing_controls>

Work through these steps.
1. Assets: what is worth protecting here, and what would harm look like (to users, to the organisation).
2. Trust boundaries: where data or control crosses from a less trusted to a more trusted place.
3. Threats: for each boundary and asset, list plausible threats using the six STRIDE categories (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege). Only include threats that apply to this design.
4. For each threat: who the attacker is, what they would need, the likely impact, and a rough likelihood (Low, Medium, High) with the reason.
5. Mitigations: a concrete control for each threat, noting which already exist (from the controls listed above) and which are new work.
6. Questions the design does not answer, which a human must resolve.

Rules:
- Base the model on the material provided. Do not invent components, protocols or vulnerabilities that are not implied by it. Where you assume something, label it "Assumption".
- Do not state that the feature is secure or insecure overall. Rank threats; do not score the design.
- Do not give instructions for carrying out attacks. Describe threats at the level needed to design a defence.
- Recommend standard, well-established controls. Do not invent cryptographic schemes, and say when the right choice depends on the platform and should be confirmed in its documentation.
- Mark confidence honestly. A threat you are unsure applies should be flagged "Low confidence".

Output format:
Assumptions
Assets and harm
Trust boundaries
Threat table: ID | STRIDE | Threat | Attacker and prerequisite | Impact | Likelihood | Mitigation | Existing or new
Top five to discuss first
Open questions

Expected output

A threat table whose rows are specific to the design, for example an uploaded image that is not what it claims to be, a staff member viewing a file belonging to another patient, or object storage links that can be guessed or shared. Each row has a realistic attacker, an impact, a likelihood with a reason and a concrete mitigation marked as existing or new. A short ranked list and open questions close the document.

Sample response (excerpt)Illustrative — your output will differ
Top five to discuss first
T3 Information disclosure: a stored file link that does not expire could be shared or leaked and opened by anyone holding it.
T1 Tampering: an uploaded file that is not an image (for example a script or oversized file) is stored and later served back to staff.

Threat table (excerpt)
T3 | Information disclosure | Card images reachable by a long-lived URL | Anyone who obtains the URL, such as from browser history or a shared screenshot | Exposure of personal data | Medium: depends on how URLs are issued (Assumption: public bucket paths) | Serve files through short-lived, per-request authorised links; keep the bucket private | New
T5 | Elevation of privilege | A receptionist views a card belonging to another clinic | Authenticated staff user changing an identifier in a request | Cross-patient data exposure | Medium | Check on every request that the record belongs to the caller's clinic, not only that they are logged in | Existing role checks, new ownership check

Limitations

  • A threat model reflects only the description you provide. Anything you omit, such as a background job or an admin tool, is invisible to the assistant.
  • It tends to produce generic lists. Cross out threats that do not fit your design, and add the ones only your team knows about.
  • Likelihood ratings are rough judgements, not measurements. Treat them as prompts for discussion.
  • It is not a substitute for expert review, testing or a compliance assessment, and it cannot tell you which legal obligations apply to your data.

How to validate the output

Do these before relying on anything the model returns.

Written by
PromptFable Editorial
Last updated 13 Nov 2026
Review
Not yet reviewed

PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.