Adversarial machine learning (adversarial ML) is the study of how machine learning models are attacked and defended: evasion and poisoning attacks on what a model does, extraction and inference attacks on what it knows, and prompt injection against language models. As machine learning moves from research into production, security teams are being asked to assess systems described in this unfamiliar language, and conversations stall when half the room does not share it. This is a plain-English glossary of the terms that matter most, with why each one should concern anyone deploying ML.
Adversarial machine learning terms at a glance
| Term | Phase | Attacker needs | Main defence | Reference |
|---|---|---|---|---|
| Evasion | Inference | Query access | Adversarial training, input checks | AML.T0015 |
| Data poisoning | Training | A way into the training data | Data provenance and validation | AML.T0020, LLM04 |
| Backdoor | Training | Poisoned data or a tampered model | Vetted model sources, trigger testing | AML.T0018 |
| Model extraction | Inference | Many queries | Rate limits, query monitoring | AML.T0024.002 |
| Model inversion | Inference | Query access | Less detailed outputs, differential privacy | AML.T0024.001 |
| Membership inference | Inference | Query access, a candidate record | Differential privacy | AML.T0024.000 |
| Prompt injection | Inference | Any text the model reads | Least-privilege tools, checks outside the model | AML.T0051, LLM01 |
| Jailbreaking | Inference | Chat access | Layered filters, regular testing | AML.T0054 |
| Tool poisoning | Inference (agents) | A tool the agent loads | Vetted, pinned tools | AML.T0110 |
| Memory poisoning | Inference (agents) | Content the agent stores | Validation of what is written to memory | AML.T0080 |
| Excessive agency | Design | Nothing: it amplifies the others | Fewer tools, narrower permissions, human approval | LLM06 |
How the terms map to NIST AI 100-2 and MITRE ATLAS
The reference taxonomy is NIST’s AI 100-2, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations (March 2025), which arranges attacks by life cycle stage and by the attacker’s goals, capabilities and knowledge. The AML IDs above are techniques in MITRE ATLAS, a public knowledge base of adversary tactics and techniques against AI systems. The LLM IDs are from the 2025 OWASP list for LLM applications.
The two moments an ML system can be attacked
Almost every attack fits into one of two phases:
- Training time. The attacker influences the model while it is being built, by tampering with the data it learns from.
- Inference time. The model is already trained and deployed, and the attacker manipulates the inputs it receives or studies its outputs.
Keep that split in mind; most of the terms below hang off it.
Core attack types
Evasion attack. An inference-time attack where the input is crafted to make the model produce the wrong output while looking normal to a human. The classic example: an image altered in ways invisible to people but that cause a classifier to mislabel it entirely. Evasion is the most common practical attack against deployed models.
Adversarial example. The malicious input itself in an evasion attack, a sample deliberately perturbed to fool the model. The unsettling part is how small the change can be: a few pixels, a few characters, a slightly reworded sentence.
Data poisoning. A training-time attack. The attacker injects corrupted or misleading examples into the training data so the resulting model behaves badly, either broadly degraded or subtly wrong on specific inputs. If you train on data you do not fully control, scraped from the web, crowdsourced, or user-submitted, poisoning is a real exposure.
Backdoor (trojan) attack. A targeted form of poisoning where the model learns a hidden trigger. It behaves normally almost always, but when it sees the attacker’s secret pattern, it produces the attacker’s chosen output. Dangerous because it is nearly invisible in ordinary testing; the model looks fine until the trigger appears.
Attacks on confidentiality
Some attacks do not aim to break the model’s behavior; they aim to steal from it.
Model extraction (model stealing). By querying a model enough and studying its responses, an attacker reconstructs a functional copy, stealing the intellectual property and expensive training that went into it. A concern for any model exposed through a public API.
Model inversion. The attacker uses the model’s outputs to reconstruct characteristics of its training data, potentially recovering sensitive information about the people or records it was trained on.
Membership inference. A narrower privacy attack: determining whether a specific record was part of the training set. If your model was trained on medical, financial, or otherwise sensitive records, confirming that a particular individual’s data was used can itself be a serious privacy breach.
Terms specific to large language models
The generative AI era added vocabulary of its own:
Prompt injection. Manipulating a language model’s behavior through crafted input that overrides its intended instructions, either directly from the user or indirectly through content the model reads. It is the first entry in the OWASP Top 10 for LLM Applications.
Jailbreaking. Coaxing a model past its safety guardrails to produce content or behavior it was configured to refuse.
Hallucination. The model generating confident, fluent output that is simply false. Not an attack in itself, but a reliability failure attackers can exploit, and a risk wherever output is trusted without verification.
Terms for AI agents and tool use
Once a model can call tools and keep memory, three more terms apply:
Tool poisoning. Hiding instructions in a tool’s description or output so an agent that loads the tool follows them.
Memory poisoning. Planting content in an agent’s stored memory so it steers later sessions, long after the original input is gone.
Excessive agency. Giving a model more tools, permissions or autonomy than its task needs, so that one successful injection can do real damage.
Our guide to agentic AI security covers how these are tested.
Why the vocabulary matters
This is not academic. Each term names a concrete way a production ML system can fail:
- Deploying a public model API? Model extraction and evasion are on the table.
- Training on data you did not fully vet? Poisoning and backdoors are risks.
- Training on sensitive records? Inversion and membership inference threaten privacy.
- Shipping an LLM feature? Prompt injection and jailbreaking come with the territory.
Sharing this language lets security and engineering teams reason about ML risk the way they already reason about web and network risk, and it is the starting point for meaningful AI and LLM penetration testing. You cannot assess a threat you cannot name. If you are deploying machine learning and want to understand your real exposure, scope an assessment that maps these attack classes onto your specific system. Our AI testing is built around exactly this threat model, and the AI penetration testing cost page shows what each scope starts at.
Frequently asked questions
What is the difference between adversarial machine learning and AI red teaming?
Adversarial machine learning is the research field and its vocabulary of attacks and defences. AI red teaming is the practice of running those attacks, and wider misuse tests, against one specific system.
Is prompt injection a type of adversarial example?
Not in the classic sense. An adversarial example is a subtly perturbed input that causes a wrong prediction. Prompt injection is readable text that the model treats as instructions. Both are inference-time attacks through the input.
Written by
Azad Khan, Senior GRC & Compliance
26+ years in the field. Focus: GRC, ISO 27001 & PCI DSS consulting. Part of the team that scopes, tests, and reports for our clients. Full profile →