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:
- Select a target input and the desired wrong class.
- Choose base samples from the desired class.
- Optimize perturbations under a small norm bound so that poisons collide with the target in feature space.
- 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.
| Variant | Attacker goal | Key mechanism |
|---|---|---|
| Feature collision | Misclassify one specific target | Poison matches target representation |
| Convex polytope attack | Better transfer to unknown models | Several poisons surround the target in feature space |
| Gradient matching | Targeted error when training from scratch | Poison gradients mimic the adversarial objective |
| Clean-label backdoor | Misclassify any input carrying a trigger | Trigger added to hard, correctly labeled samples |
| Availability poisoning | Degrade overall accuracy | Unlearnable or error-maximizing perturbations |
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 compared with related attacks
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.
| Attack | Phase | Labels modified | Detection by label review |
|---|---|---|---|
| Clean-label poisoning | Training | No | Very unlikely |
| Label flipping attack | Training | Yes | Likely with audits |
| Dirty-label backdoor | Training | Yes, plus trigger | Possible |
| Evasion attack | Inference | Not applicable | Not applicable |
| Model poisoning | Training, via updates or weights | Not required | Not applicable |
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.
| Defense | How it helps | Limitation |
|---|---|---|
| Data provenance and AI supply chain controls | Restricts who can contribute training data | Hard to apply to web-scale scraping |
| Feature-space outlier detection | Flags samples far from their class cluster | Adaptive poisons can stay inside clusters |
| Deep k-NN filtering | Removes samples whose neighbors disagree with their label | Costly on large datasets |
| Strong data augmentation | Disrupts precise perturbations | Reduces but does not remove risk |
| Differentially private training | Limits influence of any single sample | Lower model accuracy |
| Certified poisoning defenses | Provable bounds on poison influence | Small certified budgets, high cost |
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.