Adversarial Machine Learning: How to Assess AI Attack Risk
A practical way to turn adversarial ML terminology into threat scenarios, controls, tests, monitoring, and incident readiness.
Assess adversarial machine learning risk by identifying the AI system and lifecycle stage an attacker can influence, the attacker’s goal, knowledge and capability, the affected security property, and the observable harm. Then select layered preventive, detective and recovery controls and test them against concrete attack scenarios rather than assuming one model safeguard is sufficient.
Key takeaways
- Adversarial ML is deliberate manipulation, not every ordinary model error
- Predictive and generative AI expose different combinations of evasion, poisoning, privacy, and misuse attacks
- Threat models must cover data, models, prompts, retrieval, tools, APIs, feedback, and operational users
- No mitigation is complete; prevention, detection, containment, and recovery must work together
- Evaluation needs adaptive adversaries, realistic permissions, and end-to-end effects—not only model scores
- Attack taxonomies create shared language but do not replace organization-specific risk decisions
Separate adversarial attacks from ordinary model failure
An AI system can fail because its model generalizes poorly, its data is stale, an integration is broken, or a person asks an ambiguous question. Adversarial machine learning focuses on deliberate action by a motivated adversary. That distinction matters because an attacker observes defenses, changes strategy, searches for the cheapest path, and may combine AI-specific techniques with familiar identity, application, and supply-chain attacks.
Start the assessment with a protected outcome, not an attack label. Examples include preserving the integrity of fraud decisions, preventing confidential training records from being reconstructed, keeping a customer agent from sending unauthorized refunds, or maintaining availability within a fixed cost envelope. Then describe how deliberate influence could violate that outcome.
Use NIST AI 100-2 as a vocabulary. Its 2025 edition covers predictive-AI evasion, poisoning and privacy attacks and generative-AI evasion, poisoning, privacy and misuse attacks. The taxonomy helps teams compare scenarios, but it is voluntary guidance rather than a compliance certificate or exhaustive list of everything an attacker might attempt.
Map attack opportunity across the full lifecycle
Model endpoints are only one surface. Attackers may influence data collection, labeling, training, fine-tuning, model distribution, system prompts, retrieval indexes, external webpages, user feedback, memory, tool results, APIs, identity systems, monitoring, or the people who approve deployment. The easiest route may avoid changing model weights entirely.
For every component, record who can read it, who can change it, what evidence identifies the source, how updates are approved, and whether a known-good version can be restored. Follow the data from origin to decision. A poisoned document in retrieval can be operationally equivalent to a malicious input if the application treats retrieved text as instructions. A poisoned evaluation set can hide a regression even when the production model is unchanged.
Do not assume a managed model transfers all risk to the vendor. The provider may secure model training while the customer still owns prompts, connected data, tools, roles, logs, output handling, and business rules. Document the actual division of responsibility and the controls you can observe or test.
Turn taxonomy labels into concrete scenarios
A useful threat scenario names the asset, attacker, access, action, system response, harm, detection opportunity, and recovery path. ‘Data poisoning’ is too broad. ‘A contractor adds mislabeled refund examples to a feedback dataset, shifting a classifier so a targeted merchant receives fewer reviews’ is testable and assigns ownership.
For generative systems, consider direct and indirect prompt injection, knowledge-base manipulation, misuse of model capability, sensitive information extraction, resource exhaustion, and harmful tool use. For predictive systems, consider evasion inputs that change a decision, training-data poisoning, backdoors triggered by a pattern, and privacy attacks that infer membership or reconstruct information.
Rank scenarios by plausible capability and consequence, not novelty. An attacker who needs only to publish a webpage that the agent reads may be more realistic than one who steals model weights. Record uncertainty explicitly. If the team does not know whether an input filter survives paraphrase, multilingual text, images, or encoded content, that is an evaluation requirement rather than evidence that risk is low.
Design layers around incomplete mitigations
NIST emphasizes that mitigation techniques have limitations. A filter tuned to known inputs may fail against an adaptive attacker. Adversarial training can improve robustness within a tested threat model while reducing performance elsewhere. A model refusal does not constrain a separate tool, and a human approval can be manipulated if the preview contains attacker-controlled text.
Layer controls across the chain: provenance and review for data changes; isolated training and reproducible builds; signed artifacts; least-privilege service identities; structural separation of instructions and untrusted content; typed tool schemas; deterministic authorization and business rules; budgets and rate limits; monitoring; and independent approval for consequential actions. Preserve the ability to disable one component without taking down unrelated services.
Choose controls that reduce the attacker’s opportunity or the harm even when the model behaves incorrectly. A support agent that can draft but not send refunds has a smaller failure boundary. A retrieval service with a curated domain allowlist and document approval process gives an attacker fewer insertion points. Recovery is a design property, not an incident-response afterthought.
Test end-to-end effects and operate for adaptation
Testing should reproduce the real application boundary. Include the deployed model and prompt, retrieval, memory, tools, identities, rate limits, approval interface, and downstream system. Measure both attack success and defensive cost: false blocks, missed attacks, latency, user workarounds, resource consumption, and whether monitoring produces enough evidence to investigate.
Keep test targets isolated and obtain authorization before running adversarial work. Use representative benign cases alongside attacks so a defense cannot ‘pass’ by refusing everything. Vary attacker knowledge and access, test repeated attempts and combinations, and withhold part of the evaluation set from the people tuning the system. A stable score against a public prompt list is not evidence of resilience to an adaptive adversary.
In production, monitor changes in input sources, retrieval composition, tool calls, permissions, model versions, latency, spend, error classes, and human overrides. Predefine thresholds for containment and rollback. After an event, preserve prompts, retrieved items, model and policy versions, sanitized tool parameters, identities, timestamps, and decisions. Reassess whenever the model, data, prompt, tool, role, or deployment boundary changes. This article applies official taxonomy to operational planning; it does not claim penetration testing of any named product.
Practical checklist
- Inventory models, datasets, prompts, retrieval sources, tools, feedback loops, identities, APIs, and outputs
- Name the protected property and concrete harm for each high-value AI workflow
- Describe attacker access, knowledge, budget, persistence, and influence at each lifecycle stage
- Write scenarios for evasion, poisoning, privacy compromise, misuse, and availability loss
- Assign preventive, detective, containment, recovery, and evidence-preservation controls
- Create test cases with safe success criteria and isolated targets
- Monitor input shifts, retrieval changes, model behavior, tool actions, costs, and control failures
- Define owners and thresholds for degradation, disablement, rollback, notification, and forensic review
- Repeat the assessment after model, data, prompt, tool, permission, or deployment changes
Warning signs
- The risk register says only ‘hallucination’ and ignores motivated attackers
- A red-team test tries jailbreak prompts but never reaches retrieval, tools, permissions, or downstream effects
- Training and feedback data can change without provenance, review, or rollback
- The same account can alter evaluation data and approve the resulting model
- Monitoring records outputs but not the input source, model version, retrieved evidence, or tool action
- The response plan cannot isolate one model, index, agent, credential, or data pipeline
Frequently asked questions
What is adversarial machine learning?
It is the study and management of deliberate attacks that manipulate AI or machine-learning systems, their data, or their use to violate security, privacy, availability, or intended behavior.
Is prompt injection an adversarial ML attack?
Yes. NIST’s generative-AI taxonomy includes direct and indirect prompt injection within broader attack classes. The practical risk depends on what data and actions the affected application can access.
What is the difference between poisoning and evasion?
Poisoning changes training, adaptation, feedback, or knowledge sources so future behavior is compromised. Evasion crafts inputs at inference time to cause a wrong prediction or bypass.
Can adversarial training stop every attack?
No. Defenses are attack- and system-dependent and can degrade under adaptive attackers or distribution changes. Use layered controls, monitoring, containment, and recovery.
Who should own an adversarial ML assessment?
Use a cross-functional owner group spanning system engineering, data, model evaluation, security, privacy, domain risk, operations, and incident response. Business owners decide acceptable residual risk.
Primary sources and further reading
- Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and MitigationsNational Institute of Standards and Technology · March 2025
- NIST AI 100-2 Adversarial Machine Learning Taxonomy AnnouncementNational Institute of Standards and Technology · March 24, 2025
- Adversarial Machine Learning Taxonomy PresentationNational Institute of Standards and Technology · May 14, 2025
- NIST AI 100-2e2025 Potential UpdatesNational Institute of Standards and Technology · June 3, 2025