Skip to content

Interview question · Adversarial ML & Model Privacy

Evasion versus poisoning attacks: define and contrast them with an example of each.

One attacks the model's inputs, the other its upbringing. The phase decides the defence, and interviewers want you to say so.

easyEssentialNewPreparation tags: Microsoft, Google, CrowdStrikeUpdated Nov 2026

TL;DR: Evasion happens at prediction time: the attacker crafts inputs that a fixed, unchanged model gets wrong (an adversarial image, malware modified to slip past a classifier, an optimised jailbreak suffix). Poisoning happens at training time: the attacker manipulates training or fine-tuning data so the model itself learns the wrong thing (mislabelled samples, a planted backdoor trigger, poisoned web content). Evasion defences focus on robustness and input handling; poisoning defences focus on data provenance, curation and lineage. Both are integrity attacks, on the input and on the model respectively.

How to approach it

Give crisp definitions anchored on when the attacker acts, one realistic example each, then contrast them along attacker requirements, persistence and defences. NIST's adversarial ML taxonomy (NIST AI 100-2) uses the same split, which is worth citing.

A strong answer

FIG · EVASION VS POISONING · WHEN THE ATTACK HAPPENS
Change the input, or change what the model learned

Evasion

Fixed, unchanged model

deployed

Crafted input at prediction

image, malware, suffix

Model gets it wrong

Outcome, unsafe: One wrong prediction

Repeatable per input

Poisoning

Manipulated training data

labels or content

Model learns it

persists in weights

Every future prediction affected

Outcome, unsafe: Corrupted model

Hard to undo

EvasionPoisoning
When the attacker actsInference timeTraining or fine-tuning time
What changesThe inputThe training data, therefore the model
Attacker needsAbility to submit inputs; optionally model access or a substituteAbility to influence training data sources
PersistencePer input; must be crafted each timeBaked into the model for every user until retrained
ExampleSpam or malware modified until a classifier labels it benignPoisoned web documents scraped into a training set that teach a trigger phrase
Primary defencesAdversarial training, certified robustness, query limits, multiple signalsProvenance, snapshots with hashes, curation, anomaly detection, evaluation, lineage

Examples in detail.

  • Evasion: an attacker repeatedly modifies a phishing email's wording and formatting, testing against a filter (or a substitute model), until it is classified as legitimate. The filter was never changed.
  • Poisoning: an attacker buys an expired domain referenced in a scraped dataset's URL list, serves crafted content there, and the next dataset download includes it. Carlini and colleagues (2023) showed this is practical at web scale.

Where LLM attacks fit. Jailbreaks and prompt injection that bypass classifiers resemble evasion (crafted inputs against a fixed model). Planting instructions in documents a RAG system retrieves is not training, but it shares poisoning's shape: the attacker controls content the system trusts. Backdoors are a poisoning outcome.

Why the distinction matters. It tells you where to spend: an evasion problem is not fixed by cleaning data, and a poisoning problem is not fixed by input filtering.

What interviewers probe next

  • "Which is easier for an attacker?" Evasion usually needs only query access; poisoning needs influence over data, which is easier than it sounds for web-scraped or user-feedback training.
  • "Is a backdoor evasion or poisoning?" Poisoning implants it; using the trigger at inference resembles evasion.
  • "What about privacy attacks?" Membership inference and extraction are a third category, about confidentiality rather than integrity.

What if?

What if · interview follow-ups

Hold your answer as the constraints change

A spam filter is retrained weekly on emails users mark as spam or not spam, and spammers are actively trying to get their campaigns delivered.

  1. Start here

    How would a spammer evade the current model?

How it's scored

Weak: Confuses the two or defines them without timing.

Hire: Separates by training versus inference, with one example each and matching defences.

Strong Hire: Compares attacker requirements and persistence, places LLM attacks in the framework, and explains how the distinction directs investment.

Common mistakes

  • Calling any malicious input "poisoning".
  • Proposing data cleaning for an evasion problem.
  • Forgetting fine-tuning and feedback data as poisoning surfaces.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 10, and we keep track of how far you get in every topic.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in doubles your free answers, from 5 to 10 per topic, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

No comments yet. Share a correction or a different way to answer it.