Every model you have put into production makes a decision somebody would rather make for you: whether a transaction is fraud, whether a claim is paid, which customer the chatbot refunds. To you it is a control. To them, a target.
This article covers the five ways they attack it, and the threshold you have to set.
What an adversarial attack actually is
An adversarial attack subverts a deployed model, and in the common case does so without breaking into the system that hosts it. An insider with pipeline access is the exception, and a serious one. The outsider does not need your credentials or your network. They need the model’s decision boundary, and a way to push inputs across it, corrupt what it learned, copy it, or talk it out of its policy.
NIST’s adversarial machine learning taxonomy classifies attacks by goal, by what the attacker knows, by what they can touch and by when in the model’s life they act. In production, five classes cover most of what you will meet. Attacks that simply run up your compute bill without changing a decision are an availability problem, and belong with the rest of denial of service.
| Attack | When | What changes | Canonical case |
|---|---|---|---|
| Evasion | Inference | The input | A transaction shaped to sit under the fraud threshold |
| Poisoning, including backdoors | Training, or the sources a retrieval system reads | The model, or what it is fed | Corrupted labels, or a hidden trigger the model learns to obey |
| Extraction | Inference | Nothing, but a copy leaves | Thousands of queries rebuild the model offline |
| Inversion and membership inference | Inference | Nothing, but training data leaks | Queries reveal whether a person’s record was in the set |
| Prompt injection | Inference | The model’s instructions | Hidden text in a document the model was asked to read |
The last one is specific to language models, and it is the one your customer facing language models are exposed to today. The OWASP Top 10 for LLM applications puts it first for a reason.
Why the model becomes your problem, not the data team’s
The data team owns accuracy. Nobody owned the fact that accuracy is measured against honest inputs, and every attack in the table above exists to supply a dishonest one. That gap lands on your desk for three reasons.
The decision has a value, and so does subverting it. A fraud model that saves eight figures a year is worth a great deal to evade. A hiring model is worth manipulating to whoever is being hired. The attacker’s budget scales with the decision, and your controls have to be sized against the decision rather than against the model’s line in the technology budget.
Some of these attacks become compliance questions. A successful membership inference against a model trained on personal data is a disclosure question your privacy team will have to answer. A poisoned model making credit decisions is an integrity failure that turns into a fairness question with a regulator attached. The NIST AI Risk Management Framework is voluntary, and it is also the document you will be measured against when someone asks whether the attack class was mapped before deployment.
The model does not know it is being attacked. A successfully evaded model can report high confidence. A backdoored model can pass validation. A model under extraction serves every query correctly. The ordinary signals need not fire, which is why the earlier parts of this series on observability and governance matter here: the only way to see these attacks is to have decided in advance what to watch.
How each attack on a model works, to the depth you need
The mechanics matter to the depth that shows where the control has to sit, because it is a different place for each class.
attack class the surface it uses where the control sits
------------ ------------------- ----------------------
evasion the input adversarial training, input
validation, a second control
behind the model
poisoning training data and pipeline provenance, access, separation
of labelling from retraining
extraction the query interface rate limits, banded outputs,
inversion query-pattern monitoring,
privacy-preserving training
prompt injection everything the model reads separation of system prompt
from content, tool privilege
limits, a person before impact
Two facts from that picture matter to a leader. The first is that making the model itself tougher defends only part of the table, and even there the data poisoning and evasion literature is clear that robustness holds reliably only against the perturbations the model was trained to resist. The second is that the query interface is a security surface. A model exposed through an API with unlimited, precise, unmonitored queries can be approximately copied by anyone patient enough, whatever the licence says.
Prompt injection deserves one more sentence, because it is the class most likely to reach a customer. Direct injection arrives in the user’s own message. Indirect injection arrives in an email the model was asked to summarise, a web page it fetched, or a tool’s output it is reasoning over, and it is why a customer service model with the power to issue refunds is a payment system with a novel input channel. The prompt injection and jailbreak glossary entries carry the mechanics; MITRE ATLAS catalogues the observed techniques.
Where defending production AI goes wrong
- The model is the whole control. A high-value decision is left to the model with no rule-based override, no independent check and no person for the cases that matter. When the model is evaded, the decision is made on the evader’s terms. The model is one layer, not the layer.
- Retraining launders the attack. The drift programme sees a shift in production inputs and retrains on it, without asking whether an attacker shaped that shift. The new model learns to ignore the attacker’s pattern. Ask the adversarial question before every retraining decision.
- The public endpoint is treated as a convenience. No rate limit, full probability scores, no monitoring. Model extraction becomes cheap for any competitor or attacker who wants it.
- A confirmed backdoor is patched, not retired. The trigger detection rule is suppressed and the model stays in service, so the attacker keeps the trigger and you have switched off the alarm. A confirmed model poisoning usually means retirement, and always means a forensic trail through the training pipeline; keeping the model needs evidence that its integrity has been re-established, not a suppressed rule.
- Prompt injection is handed to content moderation. A phrase filter ships, and the next public jailbreak arrives the following day. The problem is architectural, and a list of banned words is a first layer, never the answer.
- Robustness is treated as a certificate. The model passed its adversarial benchmark, so it is called safe. The benchmark covered known perturbations; the attacker used a new one. Robustness is a measurement you keep taking, which is what AI red teaming is for.
Questions to ask about your production models
- For each production model, which of the five attack classes is it exposed to, and who wrote that down?
- If someone shaped inputs to sit just under this model’s threshold, what independent control would catch the outcome?
- Who can change the training data and labels, is that a different team from the one that retrains, and is each new version checked against a holdout the labelling pipeline has never touched?
- What does the query interface return, to whom, at what rate, and what would an extraction attempt look like in the logs?
- For any language model with tool access, what can it do without a person, and has anyone tested it with instructions hidden in the content it reads?
- When was this model last red teamed against a perturbation class it was not trained on, and what happened?
Underneath all of them sits a line you draw with whoever accepts the risk: the adversarial tolerance threshold, the documented limits on robustness, query exposure and detection a model is allowed to run within, given what its decisions are worth. It belongs in the model’s operating envelope beside its drift tolerance, and a model without one is a model nobody has decided how much to trust.
Start here. Pick the production model whose decisions are worth the most and, this week, write one line against each of the five attack classes saying whether it applies and what currently stands in the way, because the blank lines are the catalogue you do not have.
A model that has never been attacked is a model whose decisions were not yet worth the trouble.