Data scraped from the open web may already have been tampered with
Poisoning does not require controlling a whole corpus. It requires knowing which URLs clients will download, or when a snapshot will be taken. So the thing to verify at purchase is not whether the content looks good, but whether it could have been swapped between indexing and delivery — and whether the indexed version was clean in the first place.
On this page
The vendor sends a table with the corpus: five million web documents, sourced from a public crawl snapshot, captured last autumn. You spot-check a few dozen. The text reads normally — no gibberish, no obvious ads. You sign, you train, you ship. Three months later, under one particular phrasing, the model says something that does not appear anywhere else. You go back to the corpus. A handful of those URLs no longer match the text in the snapshot. This article is about that class of problem: the data is not broken; it was arranged before it reached you.
You think you bought an archive. You bought a set of pointers.
Web-scale corpora come in roughly two structures, and conflating them is what makes this problem hard to see. The first is a distributed URL index: a maintainer publishes a list of URLs with their captions, and clients download the actual content from those URLs themselves — LAION and COYO are image-text datasets of this kind [1]. The second is a periodic snapshot: the content of a site at one moment is dumped in full and training then uses that static snapshot; Wikipedia dumps are the typical case, and many language-modelling corpora (the paper names The Pile in its background) depend on it [1]. What you receive in both cases is not the content itself but a set of references or a historical slice, plus a timestamp.
This structure has a consequence that is easy to miss. For the first kind, whoever controls what a URL returns when a client downloads it controls that one record in the corpus, without ever touching the corpus. No access to the vendor's servers, no bribing annotators, no knowledge of what you will train. The attacker only needs the content at download time to differ from what the maintainer saw when the URL was indexed [1] — and by owning an expired domain they do not even need to know when clients will arrive, since any future download will then fetch the changed version [1].
That is the situation described by Carlini and colleagues in 2023. The paper explicitly introduces two new dataset poisoning attacks, and points out that the way web-scale datasets are maintained — distributed datasets without cryptographic integrity protection, and periodic snapshots whose timing is predictable — leaves that door open [1]. It says the two attacks could then affect 10 popular web-scale datasets [1]: split-view targets URL-indexed image-text datasets such as LAION-400M and COYO-700M, while frontrunning targets content derived from periodic Wikipedia snapshots; Wikipedia dumps are the frontrunning vehicle, and The Pile is only named in the background as a language-modelling corpus that relies on English Wikipedia, not one of the 10 evaluated datasets [1]. The paper also states it did not actually poison anything: for domains it owned it returned 404 responses, simulated the poisoning effect locally, and made no edits at all to Wikipedia [1].
| Stage | What happens | Observable evidence | Residual risk |
|---|---|---|---|
| Index / annotation (maintainer first sees the content) | The maintainer records a URL, its content and a hash; the paper notes that what later clients download may differ [1] | Content hash at index time, crawl time, provenance manifest | A hash only proves the later download matches what was recorded; it cannot prove the recorded version was clean. If the indexed version was already poisoned, the hash fixes it in place |
| Client download by URL | Split-view: content behind a URL is replaced after indexing (the paper's implementation buys expired domains so later downloads fetch arbitrary content) [1] | Downloaded content checked against the maintainer's hash; re-crawl sampling | SHA-256 integrity checks can stop the download-time swap, but benign changes such as re-encoding, cropping or higher-resolution uploads also break the hash, and the paper says this degrades utility [1] |
| Snapshot generation (periodic, e.g. Wikipedia dumps) | Frontrunning: a malicious edit is injected just before a predictable snapshot and persists there even if reverted afterwards [1] | Snapshot time, edit and revert logs, content versions | The paper says timing-based defences — randomising snapshot order, delaying inclusion by a window, applying trusted reversions — only make the attack harder and cannot prevent it entirely, and they depend on a trusted curator [1] |
| Delivery (packaged for the buyer) | One moment's content is shipped with a manifest; the manifest may be reordered, truncated or come from a resold copy | Per-record URL / time / hash manifest, consistency with the published index | Only version consistency is verifiable; who signed the manifest and where the trust root sits are separate questions, and a reseller chain cannot be audited |
| Update / re-crawl | A URL fetched again may have changed; normal updates and poisoning are hard to separate | Version diffs, re-crawl comparisons, the URL's current state | A changed URL does not prove historical poisoning, and an unchanged one does not rule out a short-lived injection before a snapshot. Integrity acceptance is not malicious-content detection |
Two attacks: split-view and frontrunning
The first path is split-view poisoning. It exploits the fact that internet content is mutable and distributed datasets lack integrity protection: when the maintainer indexed a URL the content was benign, but by the time a client downloads that same URL the page has changed hands or changed content [1]. What is split is therefore not crawler versus human, but two points in time — the view at indexing and the view at download [1]. The paper's concrete implementation is buying expired domains: once a domain expires anyone can buy it, and the new owner can make that URL return arbitrary content without knowing when clients will download, because any future download then fetches the changed version [1]. What the attacker can change is the content behind the URL; the caption already fixed in the dataset index is out of reach [1].
The second path is frontrunning poisoning, aimed at periodically snapshotted crowd-sourced content, with Wikipedia as the paper's main example [1]. It rests on three conditions together: predictable snapshot schedules, latency in content moderation, and the immutability of a snapshot once taken [1]. An attacker only needs to inject a malicious edit shortly before a page is snapshotted; even if moderators detect and revert it minutes later, the malicious content is already in the snapshot that models will train on [1]. English Wikipedia is archived on the 1st and 20th of each month and crawled linearly by article ID, and both snapshot progress and edit timestamps are public, so the paper estimates an attacker can time an edit to within about one hour of the true snapshot time on average [1]. This is not registering expired domains — that is the implementation of split-view above; the two should not be swapped [1].
Be precise about where the cost figure belongs. The "tens of dollars" order of magnitude comes from split-view: the paper says that in 2023, about 60 USD spent on domains could have poisoned 0.01% of LAION-400M or COYO-700M [1]. 0.01% is one part in ten thousand, indeed far below a thousandth [1]. But the claim applies only to those two image-text datasets and counts domain purchase costs per year, and it is phrased as "could have poisoned": the paper did not actually poison anything, returning 404 for URLs it owned and swapping in poisoned images locally only to simulate the effect [1]. It is neither the cost of frontrunning nor a licence to read it as "any dataset, any poisoning, for a few dozen dollars". Frontrunning keeps a different ledger: the paper estimates how long a malicious edit survives before a snapshot and how quickly it is reverted, which has nothing to do with domain fees [1].
One concept worth separating: this is not contamination. Contamination means evaluation items leaked into training data, and the damage is inflated scores. Poisoning means training data was arranged to produce a specific behaviour, and the damage is in the model. The first corrupts your judgment about the model; the second corrupts the model. The acceptance routine for contamination, covered in a separate article on this site, looks nothing like this one.
Signals a buyer can actually see
| Signal | How to look | What it shows | What it does not show |
|---|---|---|---|
| Unstable content hash | Sample URLs, re-crawl later, compare hashes | The URL's current content differs from what the snapshot or manifest recorded | Change is not poisoning; normal pages change too. Nor does the current state prove what the indexed version was: split-view swaps content at download time, frontrunning injects briefly before a snapshot and is then reverted |
| Timeline inversion | Compare dates and copyright years in the text with the crawl time | The content's internal timeline is implausible | Timestamps can be forged; treat it as a lead only |
| Domain lifecycle anomaly | Check registration date and recent ownership change | Ownership of this source changed recently | A new domain can also be a legitimate site |
| Style break within a domain | Sample other pages on the same domain and compare register and formatting | This page looks handled separately | Multi-author sites are inconsistent by nature |
| Behavioural probe | Batch-test the model on prompts you care about | The model has a triggerable abnormal behaviour | No hit does not mean no backdoor; the trigger may be outside your probes |
The first four rows are source-side checks and the last is model-side, and their evidentiary value points in opposite directions: a source-side anomaly is a concrete fact you can demand an explanation for, while a clean model-side probe establishes nothing. Keep two kinds of acceptance apart. Integrity acceptance asks whether the content you received is the same version the maintainer indexed or snapshotted; the paper's defence is to attach a cryptographic hash (such as SHA-256) to each original item so clients verify on download and discard mismatches, which stops the download-time swap of split-view [1]. Malicious-content detection asks whether that version was itself arranged, and a hash cannot answer it: if the maintainer indexed poisoned content, or a frontrunning edit was already present before the snapshot, the hash faithfully records the poisoned version [1]. The paper also names the cost of hashing: benign changes such as re-encoding, cropping or higher-resolution uploads break the match too, and in CC-3M a large share of images no longer match the original hashes, so integrity checks can degrade utility [1]. And the reason the source side can look normal is not that "a normal visitor sees a normal page" — that would mistake split-view for cloaking. It is that the maintainer's version at indexing differs from what is downloaded later, while the index keeps only the earlier one [1].
Five steps at purchase time
- 1. Buy a frozen snapshot plus a per-record hash manifest, not a refreshable feed. Put it in the contract: delivery is the content at one point in time and must not change because upstream changed; updates ship as new versions with a diff. This closes the "re-crawl after delivery" entry point, but it does not stop poisoning that happened before the crawl — freezing simply preserves that version, including any poison already in it [1].
- 2. Require a per-record provenance manifest: URL, crawl or index time, and the cryptographic hash the maintainer recorded at index time (such as SHA-256) [1]. The hash turns "was the content I downloaded swapped?" into a checkable question: verify on download and discard mismatches [1]. It verifies version consistency only; it cannot show the indexed version itself was clean, and benign edits also break the match [1].
- 3. Run your own re-crawl and verification sample: take a number of URLs from the manifest, check local content against the maintainer's hash, then re-crawl later and compare hashes and text. The hit rate does not need to be high to be interesting — normal page updates are scattered and directionless. If changes cluster on one entity or one phrase, that looks arranged rather than organic (this is my judgment, not a criterion the paper gives). But a changed URL cannot by itself prove historical poisoning, and an unchanged one cannot rule out a short-lived injection before a snapshot that was later reverted [1].
- 4. Run a timeline sanity check on the sample: do the dates, events and copyright years inside the text agree with the crawl date? Invented example: a batch captured in 2023 whose pages discuss events from 2025. A single case has explanations; a cluster does not.
- 5. Before training big, run behavioural probes on a small slice. Pick the most sensitive question types in your business, train a small model on the suspect slice and on a clean slice, and compare outputs. A visible difference means quarantine that slice first, rather than scaling up training.
Steps three and four are inexpensive but only cover what you sampled, and both yield leads rather than conclusions. Step one (freezing plus a hash manifest) is the starting point, but it should not be written up as "deciding the outcome" or "stopping poisoning": it closes one entry point, and the paper says timing-based defences cannot prevent frontrunning entirely [1]. What can actually go into a contract is per-record traceability and verifiability, plus requiring integrity acceptance and malicious-content detection as two separate pieces of evidence.
The part that cannot be detected
A second boundary is that model-side probes are biased by construction. You can only test triggers you thought of, and the target behaviour may sit outside your business entirely. The attacker may not want your support bot to say something wrong; he may want the model to lean a particular way in a rare context. That behaviour will not appear in your routine evaluation, only under one specific input after launch.
One last unpopular point: if what you bought is a resold, re-cleaned corpus that has passed through several hands, even the vendor may not know whether the content was altered. In that case the highest-value action is not deeper detection but a shorter chain — go directly to the original crawler, or crawl it yourself. Every extra hop is a link you cannot audit.
