What could go wrong if an attacker fed your customer-support chatbot a single crafted sentence? If the answer is “I’m not sure,” the application probably needs threat modeling. That question is not hypothetical. It is the daily work of security teams building on top of large language models, and it is where many of them discover that the old playbooks only get you halfway.
AI application threat modeling is the practice of systematically identifying what can go wrong with a system that uses machine learning, who would exploit it, and what controls will reduce the risk. It borrows heavily from classic security work, then adds a set of failure modes that traditional models were never built to describe.
Why Classic Threat Modeling Gets You Only Halfway
Threat modeling has a long and respectable pedigree. Adam Shostack’s 2014 book Threat Modeling: Designing for Security popularized a deceptively simple four-question loop: What are we building? What can go wrong? What are we going to do about it? Did we do a good job? That framing still works. The problem is the middle question, because for AI systems the list of things that can go wrong has grown in directions the original catalogues did not anticipate.
The most widely used classification scheme, STRIDE, sorts threats into spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege. It is a genuinely useful checklist, and Microsoft’s official STRIDE threat list remains one of the clearest references for applying it. But STRIDE assumes a system whose behavior is specified by code. When behavior is learned from data, the attack surface includes the data itself, the model weights, the prompt, and the retrieval corpus. None of those were on the original diagram.
That gap is why mature teams now run two passes: one classic pass over the architecture, and one AI-specific pass over the model, the data pipeline, and the interfaces. Skipping either leaves a hole.
The AI-Specific Threat Classes You Must Cover

Academic research has documented a set of attacks that behave very differently from conventional exploits. Each one deserves its own line in the threat model.
Training-data poisoning occurs when an adversary influences what the model learns, planting behavior that only triggers under specific conditions. Adversarial examples are inputs deliberately perturbed to cause misclassification, a phenomenon documented as far back as Szegedy and colleagues’ work on adversarial examples for neural networks. Model extraction lets an attacker reconstruct a functional copy of a proprietary model by querying it repeatedly. Membership inference lets someone determine whether a specific record was in the training set, which is a privacy problem with real regulatory consequences.
Then there is prompt injection, the attack that has done the most to force AI threat modeling into mainstream security conversations. An attacker hides instructions in content the model will read, such as a web page, a document, or an email, and the model follows them as if they came from the developer. Indirect prompt injection through retrieved content is especially nasty because the user never sees the payload.
A practical threat model lists these classes next to the assets they endanger: the model itself, the training data, the system prompt, the tool integrations, and the users whose data flows through the system.
Grounding the Model in Observed Attacker Behavior
Abstract threat lists are easy to write and hard to act on. Two public knowledge bases help teams connect their model to how real adversaries actually operate.
MITRE ATT&CK is a curated catalogue of adversary tactics and techniques built from real-world observations. Mapping your detection and response coverage against it turns a vague “we should monitor this” into a concrete gap list. For AI systems specifically, MITRE ATLAS adapts the same structure to machine learning, cataloguing techniques such as data poisoning, model evasion, and prompt injection alongside the tactics they serve.
The practical tip here: do not try to map everything at once. Pick the ten techniques most relevant to your deployment, document whether you can detect each one, and leave the rest for the next cycle. Teams that attempt a full mapping in one sitting usually produce a beautiful spreadsheet nobody opens again.
A Repeatable Process in Six Steps
Threat modeling fails when it becomes a one-time workshop. It works when it becomes a loop that runs alongside design and release. The following sequence fits most AI application teams.
- Draw the real architecture, including data flows. Show the model, the vector store, the retrieval pipeline, the tool calls, and every place untrusted text enters. Most surprises appear here.
- Define trust boundaries. Mark where content crosses from untrusted to trusted. The boundary between retrieved documents and the prompt is the single most important line on the diagram.
- Enumerate threats with two lenses. Run STRIDE over the components, then run the AI-specific classes over the model and data pipeline.
- Rate each threat. Use likelihood and impact, and be honest about what an attacker gains. A leaked system prompt is embarrassing; a tool call that moves money is catastrophic.
- Choose controls and assign owners. Every threat needs a named mitigation and a named person, or it will quietly disappear.
- Re-run the model after each change that affects risk. New model version, new tool integration, new data source: each one is a trigger.
That last step is where many organizations stumble, which is why the question of when a model release matters to enterprise teams deserves an explicit answer in your process rather than a judgment call made under deadline pressure.
Controls That Actually Reduce Risk
Threat modeling without mitigation is theater. The controls below map to the most common AI threats and have the advantage of being implementable today.
| Threat | Primary control | Secondary control |
|---|---|---|
| Prompt injection | Treat all retrieved content as untrusted; separate instructions from data | Output filtering and tool-call allowlists |
| Training-data poisoning | Provenance tracking and data validation | Anomaly detection on model behavior |
| Model extraction | Rate limiting and query monitoring | Watermarking where feasible |
| Membership inference | Differential privacy and data minimization | Restrict access to prediction confidence scores |
| Adversarial examples | Input validation and robustness testing | Human review for high-stakes decisions |
| Sensitive data leakage | Redaction before ingestion | Output scanning for PII patterns |
Two practical observations from teams doing this work. First, least privilege for tool calls prevents more damage than almost any model-level defense, because a compromised model that cannot reach sensitive systems is a contained incident. Second, logging the full prompt and response chain is not optional; without it, post-incident analysis of an AI system is guesswork.
Where Governance Frameworks Fit
Threat modeling does not exist in a vacuum. Regulators and standards bodies have spent the last few years building structures that expect exactly this kind of analysis.
The NIST AI Risk Management Framework, released in January 2023, organizes AI risk work around govern, map, measure, and manage functions. Its Generative AI Profile, published in July 2024, adds guidance specific to generative systems. A threat model maps neatly onto the “map” and “measure” functions, which makes it a useful artifact when someone asks how the organization is managing AI risk.
In Europe, the EU AI Act entered into force on 1 August 2024, with obligations phased in over several years. For high-risk systems it requires risk management across the lifecycle, and a threat model is one of the more natural pieces of evidence that such management exists. For teams running multiple model providers, the operational side of this is closely tied to what a model fallback should actually do when a primary provider fails or is withdrawn, since a fallback path is itself a change that needs its own threat review.
Common Mistakes and What Works Instead
A few patterns show up again and again, and knowing them in advance saves months.
Modeling the model instead of the system. Teams spend hours debating adversarial robustness and never notice that the retrieval service has no authentication. Start with the system, not the neural network.
Treating prompt injection as a filter problem. No filter reliably stops injection. The durable answer is architectural: keep untrusted content out of instruction positions, and constrain what the model can do when it is fooled.
Producing a document nobody reads. A threat model that lives in a wiki and never informs a backlog item is decoration. Tie each threat to a ticket, and review the model when the ticket closes.
Ignoring the boring threats. Spoofing an identity, exposing an API key, or a misconfigured storage bucket will cause more breaches than adversarial examples. Classic STRIDE earns its keep here.
Skipping the data supply chain. Where training and retrieval data come from, and who can modify it, matters more than most teams assume. A single poisoned document in a retrieval corpus can change answers for every user.
Forgetting the human layer. Support staff pasting customer data into a chatbot, or developers testing with production data, are realistic threat sources. Include them in the model.
Building a Program, Not a Project
The organizations that handle this well treat threat modeling as a lightweight, continuous habit rather than a heavyweight gate. A useful pattern is a short session at design time, a shorter review at each release, and a standing list of accepted risks with owners and review dates. Security teams that publish news about emerging AI attacks internally find that awareness rises and modeling sessions get sharper, because people bring real examples instead of abstractions.
Scale matters too. A team shipping a dozen internal AI tools cannot run a two-day workshop for each one. A tiered approach works better: a one-page model for low-risk internal tools, a full session for anything touching customer data, money, or safety. The tier should be decided by data sensitivity and blast radius, not by how interesting the technology is.
Finally, measure the program. Track how many threats were identified, how many got mitigations, and how many mitigations were verified. Those three numbers tell you whether the practice is real.
Conclusion
AI application threat modeling is not a new discipline so much as an old one stretched to cover a new kind of system. The four questions still apply. STRIDE still catches the classic failures. What changes is the surface: data, prompts, tools, and model weights all become part of the diagram, and attacks like poisoning and prompt injection join the catalogue.
The teams that do this well share a few habits. They model the whole system rather than the model alone. They treat retrieved content as hostile by default. They give the model as little privilege as it can survive on. And they re-run the analysis each time a change affects risk, because in AI systems such changes occur constantly. Start with one application, keep the first session short, and let the practice grow from there.
Frequently Asked Questions
What is AI application threat modeling?
It is a structured process for identifying what could go wrong with a system that uses machine learning, who might exploit it, and which controls reduce the risk. It combines classic techniques like STRIDE with AI-specific threat classes such as data poisoning, prompt injection, and model extraction, and it usually happens early in design and again at each significant change.
How is it different from traditional threat modeling?
Traditional threat modeling assumes behavior defined by code, so it focuses on components, data flows, and trust boundaries. AI systems add learned behavior, which means the training data, the model weights, the prompt, and the retrieval corpus all become part of the attack surface. The process is the same; the threat catalogue is larger.
How often should a team redo the threat model?
At each change that affects risk: a new model version, a new tool integration, a new data source, or a change in who can access the system. Between those triggers, a periodic review, often quarterly, catches drift. Treating the model as a one-time workshop is the most common reason it stops being useful.
Can prompt injection be fully prevented?
Not with filters alone. The durable approach is architectural: keep untrusted content out of instruction positions, restrict what tools the model can call, and require confirmation for high-impact actions. Defense in depth reduces the impact even when an injection succeeds, which is the realistic goal.
Do small teams need a formal process?
They need a light one. A one-page model covering the architecture, the top five threats, and the mitigations in place is far better than nothing, and it takes under an hour. Formalize only when the blast radius justifies it, such as systems handling customer data, money, or safety decisions.
How does threat modeling relate to AI regulations?
Several frameworks expect evidence of risk management across the AI lifecycle. A threat model is a natural artifact for that evidence, since it documents identified risks and the controls chosen to address them. It does not by itself establish compliance, but it supports the analysis that regulators and auditors tend to ask for.







