Poisoning Web-Scale Training Datasets is Practical

Nicholas Carlini, Matthew Jagielski, Christopher A. Choquette-Choo, Daniel Paleka, Will Pearce, Hyrum Anderson, Andreas Terzis, Kurt Thomas, Florian Tramèr

TL;DR

This paper demonstrates that dataset poisoning attacks on web-scale machine learning models are not just a theoretical threat, but immediately practical and alarmingly cheap. The authors introduce two novel attack vectors—split-view poisoning (via purchasing expired domains) and frontrunning poisoning (via timing edits to crowdsourced content)—showing they could poison major datasets like LAION-400M or Wikipedia snapshots for as little as $60 USD.

What Problem Does This Paper Address?

While a vast body of literature focuses on how data poisoning affects deep learning models, prior work largely glossed over a critical practical question: How does an adversary actually get their malicious data into a web-scale dataset in the first place?

Because modern datasets scale into billions of samples, curators cannot host the raw data directly due to storage, privacy, and copyright constraints. Instead, they publish indices of URLs (distributed datasets) or periodic snapshots of crowdsourced sites like Wikipedia (centralized datasets). This paper exposes fundamental flaws in the trust assumptions of these collection pipelines, showing how attackers can exploit the mutable nature of the internet to guarantee their poisoned data is ingested by downstream clients.

Methods

The authors introduce two distinct practical poisoning techniques:

  1. Split-View Data Poisoning: This attack targets distributed datasets where clients download raw assets directly from a list of URLs provided by the dataset creator. The authors observed that domain names frequently expire. By purchasing these expired domains, an adversary gains total control over the URLs indexed in the dataset, allowing them to serve malicious images to any future client downloading the dataset.
  2. Frontrunning Data Poisoning: This attack targets centralized datasets built from periodic snapshots of crowdsourced platforms like Wikipedia. While malicious edits (vandalism) on Wikipedia are usually reverted by moderators within minutes, the authors reverse-engineered Wikipedia’s snapshotting process. They found that parallel scraping jobs process articles in a highly predictable, linear sequence based on article IDs. An attacker can precisely time a malicious edit right before a specific article is scraped, ensuring the poison is locked into the immutable snapshot forever.
Figure 3: An adversary can easily predict when any given Wikipedia article will be snapshot for inclusion in the bimonthly dump. We visualize edits around the June 1st, 2022 Wikipedia snapshot. Each point corresponds to an edit made to a Wikipedia article, with the article ID on the X axis and time (in seconds) that the edit was made on the Y axis. Edit points colored blue were included in the snapshot, and edits colored orange were not included. The “sawtooth” pattern exhibited in the plot indicates a trend where mul- tiple parallel jobs crawl Wikipedia articles sequentially to construct the snapshot. Furthermore, these parallel jobs run almost perfectly linearly through their allocated pages.

Datasets

The paper evaluates the attack surface across 10 popular web-scale datasets (and notes 3 additional recent ones released during their work):

  • Multimodal Image-Text Indices: LAION-400M, LAION-1B-nolang, LAION-2B-en, LAION-2B-multi, COYO-700M, Conceptual 12M, CC-3M, MMC4-FF, Falcon RefinedWeb, and OBELISC.
  • Face Recognition Datasets: VGG Face, FaceScrub, and PubFig.
  • Text/Multilingual Benchmarks: English Wikipedia snapshots and Wiki-40B.
TABLE 1: All recently-published large datasets are vulnerable to split-view poisoning attacks. We have disclosed this vulnerability to the maintainers of affected datasets. All datasets have > 0.01% of data purchaseable (in 2023), far exceeding the poisoning thresholds required in prior work [17]. Each of these datasets is regularly downloaded, with each download prior to our disclosure being vulnerable.

Key Insights and Ideas

  • Day-Zero Vulnerability: New datasets are vulnerable the moment they are released. For instance, on the day COYO-700M launched, 0.1% of its images were already hosted on expired domains because the data collection process itself took a year, giving ample time for domains to lapse before publication.
  • The TOCTOU Flaw: Both attacks exploit a Time-of-Check to Time-of-Use vulnerability. The data seen by the curator at indexing time differs arbitrarily from what the end-user downloads at training time.
  • Predictability Breeds Insecurity: Centralized crawlers prioritize efficiency (e.g., scraping sequentially), which inadvertently grants adversaries the exact timeline needed to execute frontrunning attacks.

Key Results

  • Extremely Low Cost: An attacker can control 0.01% of LAION-400M or COYO-700M—the standard threshold required to successfully poison a model—for less than $60 USD by buying cheap expired domains.
Figure 1: It often costs ≤$60 USD to control at least 0.01% of the data. Costs are measured by purchasing domains in order of lowest cost per image first.
  • High Wikipedia Poisoning Rates: By timing edits using their linear extrapolation model, an attacker can successfully frontrun moderators and poison 6.5% of English Wikipedia articles. For smaller, multilingual Wikipedias (e.g., Wiki-40B), this success rate shoots up to a median of 8.2%, and as high as 25.3% due to faster, more stable checkpointing schedules.
  • Downstream Impact: Simulating these attacks on an OpenCLIP model trained on LAION-400M yielded a 60% success rate for targeted object misclassification and a >90% success rate in bypassing the Stable Diffusion NSFW safety filter.

Limitations and Future Work

  • The Utility Defenses Tradeoff: The most robust defense against split-view poisoning is including cryptographic hashes (like SHA-256) in the dataset index. However, the authors note that web content naturally shifts (e.g., image re-encoding or resizing). Enforcing strict SHA-256 checks on the CC-3M dataset reduced its usable size by a factor of three, severely degrading its utility.
  • Perceptual Hashes are Fragile: While perceptual hashes allow for benign image modifications, they are not adversarially robust and can be easily bypassed by attackers using adversarial perturbations.
  • Unsolved for General Web Crawls: Defending massive, unstructured web dumps like Common Crawl remains an open challenge, as they lack a single root of trust or predictable snapshotting windows to secure.

Summary updated

BibTeX
@inproceedings{carlini2023poisoning,
  author = {Nicholas Carlini and Matthew Jagielski and Christopher A. Choquette-Choo and Daniel Paleka and Will Pearce and Hyrum Anderson and Andreas Terzis and Kurt Thomas and Florian Tramèr},
  title = {{Poisoning Web-Scale Training Datasets is Practical}},
  booktitle = {SP},
  year = {2023},
  url = {https://openreview.net/forum?id=RUKGYd2sTp},
}
Figure