Clean-label poisoning attack

Also known as: clean-label attack

On this page 6

A clean-label poisoning attack is a form of training data poisoning in which the attacker inserts samples that carry correct, plausible labels but contain subtle, crafted perturbations, so that the trained model later misclassifies a chosen target or responds to a hidden trigger. In AI security, it is considered one of the most dangerous poisoning variants because the malicious samples pass human label review.

The attack, also called a clean-label attack, exploits the fact that many machine learning teams collect training data from the web, from users or from third-party vendors and verify only whether labels look right. Since nothing in the poisoned data appears mislabeled, classic data cleaning and annotation audits rarely detect it.

How a clean-label poisoning attack works

A clean-label poisoning attack works by moving poison samples close to the target in feature space while keeping them visually or semantically consistent with their true class. When the model trains on these samples, its decision boundary shifts so that the target falls on the wrong side.

In the classic feature collision approach, the attacker takes a base image from the class they want the target to be assigned to, for example a dog, and optimizes a small perturbation so that the image’s internal representation matches the target, for example a specific cat photo. The poison still looks like a dog and is correctly labeled as a dog, yet it teaches the network that the cat’s features mean dog.

The attack generally requires knowledge of the feature extractor, either because the victim fine-tunes a public pretrained model or because the attacker trains a surrogate model and relies on adversarial transferability. Typical steps are:

  1. Select a target input and the desired wrong class.
  2. Choose base samples from the desired class.
  3. Optimize perturbations under a small norm bound so that poisons collide with the target in feature space.
  4. Inject the poisons into a data source the victim is expected to scrape or accept.

Main variants and their goals

Clean-label poisoning covers several techniques that differ in goal, knowledge and scale. The table lists the best-known variants.

VariantAttacker goalKey mechanism
Feature collisionMisclassify one specific targetPoison matches target representation
Convex polytope attackBetter transfer to unknown modelsSeveral poisons surround the target in feature space
Gradient matchingTargeted error when training from scratchPoison gradients mimic the adversarial objective
Clean-label backdoorMisclassify any input carrying a triggerTrigger added to hard, correctly labeled samples
Availability poisoningDegrade overall accuracyUnlearnable or error-maximizing perturbations
Variants of clean-label poisoning

Targeted variants are hard to notice because overall accuracy stays unchanged; only the chosen target or triggered inputs behave wrongly. Research results have shown targeted success with poison budgets well below one percent of the training set, although success rates depend strongly on the model, the training procedure and the attacker’s knowledge.

Clean-label poisoning sits between dirty-label poisoning and evasion attacks. The comparison clarifies where it differs from neighboring threats in the AI security catalog.

AttackPhaseLabels modifiedDetection by label review
Clean-label poisoningTrainingNoVery unlikely
Label flipping attackTrainingYesLikely with audits
Dirty-label backdoorTrainingYes, plus triggerPossible
Evasion attackInferenceNot applicableNot applicable
Model poisoningTraining, via updates or weightsNot requiredNot applicable
Clean-label poisoning and related attack types

Unlike an evasion attack, which perturbs a test input at inference time, a clean-label attack perturbs training samples and leaves the target input untouched. Frameworks such as MITRE ATLAS, NIST AI 100-2 and the OWASP Machine Learning Security Top 10 classify it under data poisoning as an integrity threat.

Defenses and their limitations

No single defense reliably stops clean-label poisoning, so practitioners combine data provenance, detection and robust training. The table summarizes common measures.

DefenseHow it helpsLimitation
Data provenance and AI supply chain controlsRestricts who can contribute training dataHard to apply to web-scale scraping
Feature-space outlier detectionFlags samples far from their class clusterAdaptive poisons can stay inside clusters
Deep k-NN filteringRemoves samples whose neighbors disagree with their labelCostly on large datasets
Strong data augmentationDisrupts precise perturbationsReduces but does not remove risk
Differentially private trainingLimits influence of any single sampleLower model accuracy
Certified poisoning defensesProvable bounds on poison influenceSmall certified budgets, high cost
Defenses against clean-label poisoning

A frequent mistake is to rely on manual label checks alone. Because the labels are correct, such checks offer almost no protection. Teams should also avoid fine-tuning only the last layer of a public feature extractor on unvetted data, since this setting makes feature collision attacks especially effective.

Monitoring after deployment adds a further layer. Teams can track per-class confidence shifts after each retraining run, keep a held-out canary set of sensitive inputs whose predictions must not change, and compare new models against the previous version on these canaries. A sudden flip on a single high-value input, while aggregate metrics stay flat, is a typical signature of targeted poisoning and should block model promotion until the training data has been examined.

Large foundation models raise the stakes further. Pretraining corpora collected from the open web can contain poisoned images or documents placed on expired domains or editable pages, and these samples later reach many downstream fine-tuned models. Recording cryptographic hashes of collected content at crawl time and verifying them before training reduces this exposure.

In plain words

Picture a teacher who checks that every flashcard has the right answer. An attacker slips in a few cards that are labeled correctly but carry tiny hidden marks. The marks are invisible to the teacher, yet they shape what the student learns.

Later, the student sees one particular question and gives the wrong answer on purpose, as planned by the attacker. Everything else looks normal. That is why this attack is so hard to catch: nothing looks wrong in the training data.

A real-world example

A company runs a content moderation model for an image-sharing service. The model is a public pretrained vision network whose last layer is fine-tuned every month on newly reported images that moderators have labeled. An attacker wants one specific prohibited image to pass the filter.

The attacker downloads the same public network, picks 50 ordinary landscape photos and adds perturbations of a few pixel values each, so that their internal features match the prohibited image. The photos are uploaded through normal accounts, reported as harmless and correctly labeled as allowed by moderators. After the next fine-tuning run, the target image is classified as allowed, while accuracy on the regular test set does not change.

A later security review adds deep k-NN filtering and provenance scoring for user-reported images and retrains the whole network with stronger augmentation. In a red team exercise, the same poisoning approach no longer moves the target across the decision boundary, which shows that the layered defenses blocked the attack.