Most teams ship LLM features with the threat model they'd use for a database query. They're not the same. Threat modeling AI features means asking a different set of questions, and this guide is for product and engineering leads who are about to put a model in front of real users. Here are the 12 questions we work through before shipping AI features to production, grouped so you can run them as a review.
Why AI features need their own threat model
AI features have a different threat surface than typical software: prompt injection, data leakage, jailbreaks, cost-amplification attacks, output abuse, and training-data contamination.
The 12 questions cover input safety, output safety, data handling, cost, observability, and human review.
Skip these and your fastest path to incident is a creative user discovering they can do things you didn't intend.
A conventional threat model assumes the code does what it was written to do. A model follows instructions from wherever they appear, including places you did not expect instructions to come from. That single difference is why the checklist below exists, and it is also one of the reasons covered in why AI integration projects fail.
The 12 questions at a glance
# | Question | Area |
|---|---|---|
1 | What's the worst output the model could produce here? | Output safety |
2 | Can a user inject instructions? | Input safety |
3 | What's the data the model can see? | Data handling |
4 | What's the output destination? | Output safety |
5 | Can output be used as input elsewhere? | Input safety |
6 | What's the rate limit? | Cost |
7 | What's the cost ceiling? | Cost |
8 | Can the user trigger tool calls? | Input safety |
9 | What's logged? | Data handling |
10 | How do you detect abuse? | Observability |
11 | What's the human-in-the-loop checkpoint? | Human review |
12 | What's the rollback? | Human review |
Input and data questions: what goes into the model
1. What's the worst output the model could produce here?
If it's "embarrassing tweet," low stakes. If it's "wrong medical advice," high stakes. Stake-level dictates everything else: how strict the review is, whether a human signs off, and how fast you need to be able to roll back.
2. Can a user inject instructions?
Prompt injection is the most common LLM attack. Anything user-provided that goes into a prompt, including via RAG retrieval, must be sanitized or quarantined.
3. What's the data the model can see?
Map the data flow. What's in the system prompt, what's in retrieval, what's in tools. Any of it sensitive? Any of it the user shouldn't have access to? If personal data is in scope, the same controls you apply elsewhere still apply here; our guide to DPDP engineering controls covers the ones that matter most.
Output questions: where the answer goes next
4. What's the output destination?
Sent to the user? Stored in DB? Sent to a downstream system? Each amplifies risk differently.
5. Can output be used as input elsewhere?
If yes (e.g. the LLM writes to a DB that another LLM reads), you have a transitive injection risk.
Cost questions: stopping a denial-of-wallet attack
6. What's the rate limit?
Without rate limits, you have a denial-of-wallet attack. Set per-user, per-IP, per-tenant.
7. What's the cost ceiling?
What happens at 100× expected volume? Caps, alerts, auto-shutoff.
Tool-call questions: every tool is an attack surface
8. Can the user trigger tool calls?
If your LLM can call tools (send email, write to DB, hit external APIs), every tool is a new attack surface. Give each tool the narrowest permission it needs, and treat its arguments as untrusted input.
Observability questions: logging and abuse detection
9. What's logged?
Logs of prompts and outputs are often more sensitive than your normal logs. Treat them accordingly. The same discipline that keeps credentials out of a codebase, described in keeping secrets out of your projects, applies to prompt logs too.
10. How do you detect abuse?
Anomaly detection on prompt patterns, output content classification, alerting on rate spikes.
Human review questions: checkpoints and rollback
11. What's the human-in-the-loop checkpoint?
For high-stakes outputs, a human must review before the output ships. Define the checkpoint. We walk through how that looks in a newsroom in safe AI editorial workflows.
12. What's the rollback?
If the model behaves badly, how fast can you swap to a safer version or disable the feature?
What we recommend
Run this list before any LLM feature ships. Update it quarterly as new attack patterns emerge.
Run the list before every LLM feature ships, and revisit it every quarter.
Common pitfalls in AI threat modeling
The third pitfall is shipping without rate limits and discovering one user can run up a $4,000 monthly bill alone. Questions 6 and 7 exist to prevent exactly that.
FAQs
Do we need a separate AI security review for every feature?
Yes for high-stakes. A lightweight checklist for low-stakes.
Are there tools for this?
Promptfoo, NeMo Guardrails, Lakera, Pillar Security all help.
What about red-teaming?
Recommended pre-launch for any feature where misuse has real cost.
Talk to Techpuvi about AI integration and AI security, or get in touch to run these 12 questions against your next LLM feature with our team. Our cybersecurity practice works alongside the AI team on every review.
