AI Data Poisoning: How Malicious Training Data Changes Models
Understand AI data poisoning, targeted errors, model supply chains and retrieval contamination, with NIST/NCSC evidence and a practical defensive data audit.
In this guide
AI data poisoning is an attack in which somebody deliberately alters information used to train, fine-tune or otherwise inform an AI system, with the aim of changing its behaviour. The result might be unreliable predictions, biased answers, degraded performance or a hidden unwanted response under particular conditions. It is not the same as a chatbot making an honest mistake, and it is not identical to prompt injection into a live conversation. Britain's National Cyber Security Centre (NCSC) published an updated adversarial-machine-learning framework in April 2026, while NIST and OWASP distinguish poisoning at the training and data-supply stages. This guide explains those differences and gives defenders a practical, non-technical source-integrity checklist.
What is an AI data poisoning attack?
NIST's data-poisoning glossary defines it as an attack where an adversary controls part of the training data. In its wider poisoning-attacks definition, NIST includes interference with a model's training stage, whether by introducing malicious examples or modifying the training process. The details matter because defenders must identify which materials an attacker could actually influence.
Britain's NCSC adversarial AI report, published 29 April 2026, separates training data poisoning from malicious model training and from model input manipulation. Under the first category, altered or inserted examples can change the model's learned task performance or create behaviours selected by an adversary. Training-process tampering, by comparison, changes the learning machinery or procedure itself rather than only the examples.
That does not mean every inaccurate AI answer was caused by an attacker. Ordinary imperfect data, out-of-date documents, model errors and poorly specified tasks can all produce bad results without any adversarial intervention. Attribution to poisoning requires evidence of deliberate data manipulation and a plausible mechanism connecting it to the affected model.
| Question | Relevant evidence | Why it matters |
|---|---|---|
| Was the affected information part of a training or retrieval supply chain? | Dataset manifest, ingestion logs or model documentation | A random online post may never reach the target model |
| Could someone change the material? | Source ownership, access controls and provenance | Not every adversary has training-data access |
| Was a change intentional? | Incident records, malicious content, correlated tampering | Distinguishes attack from normal error or drift |
| Did the model behave differently? | Reproducible testing with suitable controls | Demonstrates impact rather than speculation |
| Can alternative explanations be excluded? | Version comparison, model evaluation and data lineage | Reduces false attribution |
Where could poisoned information enter an AI workflow?
Pretraining data
Large training collections may combine web pages, licensed corpora and other datasets. A hostile actor who can affect a collected source or a data pipeline may be able to introduce misleading examples. The NCSC framework lists manipulated datasets and targeted poisoning among the possible routes. Whether a particular manipulation works depends on filtering, sampling, training details and the attacker's actual access.
Fine-tuning or specialised adaptation
Organisations sometimes adapt a foundation model for a narrower task using selected examples. A relatively small or poorly governed fine-tuning set can increase the influence of each record. If those records are manipulated, the resulting model may learn unwanted associations. Defenders need controls for who can approve examples and how changes are tested before release.
Embeddings and retrieval knowledge
Some AI assistants answer questions by searching a separate collection of documents. OWASP's 2025 LLM04 guidance explicitly includes manipulated embedding data and external knowledge sources in its discussion of data and model poisoning. Strictly speaking, malicious text in a retrieval source does not necessarily alter the underlying foundation model's weights. It can still corrupt what the user receives, so the precise mechanism should be described accurately.
Models distributed by outside suppliers
A pre-trained model, embedding model or other reusable artifact can itself be a supply-chain dependency. Some attacks involve a model that has already been altered before a downstream organisation adopts it. The NCSC and OWASP discuss model supply-chain risks and unauthorised modifications as distinct issues from ordinary user prompts.
Our prompt-injection guide addresses manipulation of instructions encountered during an AI agent's operation. This article focuses on the governance and integrity of data or model inputs before or around learning and knowledge ingestion.
Three broad categories of poisoning damage
1. Availability or general performance degradation
Corrupted examples can reduce how reliably a model performs its task. In a quality-control system, for instance, this could mean more incorrect classifications. This is an illustrative use case, not a claim that a particular named factory suffered such an attack. The result might appear as ordinary model drift unless the training history and source records are inspected.
2. Targeted errors or bias
A manipulation may try to change predictions about a particular category, name, product or kind of input without causing broad obvious damage. Such effects can be difficult to notice when evaluation relies only on overall average accuracy. The NCSC notes that targeted poisoning may attempt to alter a class or decision boundary. Robust testing therefore needs cases representative of important subgroups and rare situations.
3. Backdoor behaviour
Some research describes situations where a compromised model acts normally on most inputs but produces a chosen unwanted response when a specific condition is present. This is conceptually different from ordinary hallucination because an adversary has designed the behaviour. A public article should explain the security risk and defensive tests without supplying a recipe for implanting hidden triggers into a live system.
| Outcome | What a reviewer could notice | Useful test |
|---|---|---|
| Broad quality decline | Performance worsens across multiple ordinary examples | Compare controlled baseline and new model versions |
| Targeted misinformation | Unexpected mistakes cluster around a category | Evaluate specific protected categories and edge cases |
| Backdoor pattern | Unusual behaviour under narrow conditions | Controlled red-team and anomaly tests, properly authorised |
| Retrieval source contamination | Answer repeats an altered or untrusted document | Check document version, provenance and citation chain |
Data poisoning versus prompt injection versus model collapse
These terms are often lumped together under “AI hacking,” but the mechanisms and mitigations are not interchangeable.
| Problem | When it operates | Defining feature | Example defensive concern |
|---|---|---|---|
| Data poisoning | Training, fine-tuning or governed knowledge ingestion | Information is intentionally manipulated to alter behaviour | Dataset provenance, validation and changes |
| Prompt injection | During a live prompt or tool/retrieval workflow | Lower-trust text attempts to redirect instructions | Privilege boundaries and untrusted content handling |
| Model collapse | Across repeated model-training generations | Statistical degradation from certain recursive synthetic-data workflows | Retention of original data and distribution coverage |
| Ordinary hallucination | While answering a task | Output is invented or unsupported | Independent evidence verification |
Read the model-collapse research comparison and the hallucination fact-checking guide for those separate mechanisms. An organisation may face more than one issue, but the presence of one does not establish the others.
What does the published research actually establish?
The 2026 NCSC taxonomy catalogues threat classes, including poisoning of training examples, dataset supply chains, fine-tuning and models provided by others. It describes what researchers and security teams have demonstrated or analysed. It does not say every public AI product is currently compromised.
OWASP's LLM04:2025 describes data and model poisoning as an integrity risk that can lead to harmful or biased outputs, degraded capability and unwanted behaviour. It also discusses the importance of controls on third-party artifacts and datasets. The guidance is a practical risk taxonomy; it is not a census of actual worldwide attacks.
NIST's glossary definitions provide a useful boundary around the terms. A credible claimed incident should additionally identify the real affected system, which data were accessible to the attacker, whether the model was retrained or a knowledge base changed, and what independent testing found. A dramatic screenshot is insufficient proof of a training-time compromise.
Three realistic, fictional defender scenarios
Scenario A: compromised external documentation
A company allows a support assistant to reference documents from a supplier's shared folder. One document contains outdated or tampered specifications. The assistant begins citing the changed information. The security investigation must first determine whether the foundation model was changed at all or whether a retrieval source was corrupted. The fix may involve restoring trusted document versions, validating permissions and preventing unsupervised source changes rather than retraining a new model.
Scenario B: uncontrolled fine-tuning submissions
A team collects examples from many contributors for fine-tuning a specialist classifier. Without provenance or review, some inaccurate examples enter the dataset. If a deliberate attacker submitted them, it could be poisoning; if contributors were simply mistaken, the same quality problem has a different cause. The response needs versioned examples, accountable approvals and targeted tests, not a public accusation based on the error alone.
Scenario C: an unverified third-party model
A developer adopts a publicly distributed model checkpoint without a reliable publisher identity, security history or reproducible test process. A later audit reveals unexplained behaviour. That raises model supply-chain concerns, but it does not prove sabotage without further evidence. A mature process inventories model versions, hashes or checksums where appropriate, source reputation, approved releases and independent test results.
These cases are intentionally fictional and high-level. They illustrate how to classify the problem defensively, not how to carry out an attack.
Defensive controls that do more than ask the AI to be careful
- Record data provenance. Keep source, collection time, licence, transformation history and approval status where appropriate.
- Restrict changes. Limit who can add or edit training and retrieval datasets; use proper review and logging.
- Version inputs. Preserve the precise dataset and model version used for each deployment so investigators can reproduce changes.
- Validate external content. Do not treat an arbitrary web page or partner repository as a trusted instruction source merely because it is accessible.
- Evaluate representative edge cases. Test critical categories and rare inputs, not just average benchmark performance.
- Separate data from authority. In a retrieval assistant, a document should provide evidence without automatically gaining permission to direct tools or override security rules.
- Establish rollback procedures. Have an authorised way to restore previously validated models or knowledge datasets.
- Investigate anomalies without guessing attribution. Compare logs, versions and measured behaviour before labelling an event an attack.
These controls may reduce risk; they are not claims that a particular set of filters completely defeats all adversarial training-time attacks. The effectiveness depends on the system architecture, threat actor and deployment context.
A ten-question training-data trust worksheet
| Question | Record |
|---|---|
| 1. Which datasets or sources are used? | Known / Unknown / Needs review |
| 2. Who owns or controls each source? | Known / Unknown / Needs review |
| 3. Can unauthorised people edit the input? | Controlled / Unclear / Open |
| 4. Is the input version recorded? | Yes / No / Partial |
| 5. Is the original sample retained lawfully? | Yes / No / Partial |
| 6. Are third-party model artifacts approved? | Yes / No / Partial |
| 7. Are unusual categories tested? | Yes / No / Partial |
| 8. Can the team distinguish retrieval from retraining? | Yes / No / Partial |
| 9. Are deviations reproducible? | Yes / No / Partial |
| 10. Is an approved rollback process ready? | Yes / No / Partial |
A useful security review identifies an owner for each unresolved question and the evidence needed to close it. A worksheet marked “yes” without supporting records is not an assurance, just a self-reported answer.
What should everyday AI users watch for?
For ordinary consumers, direct exposure to a poisoned training set may be hard to prove. The practical response is to avoid treating consequential AI answers as independently verified, inspect original sources and be cautious about sharing credentials or relying on unexplained model behaviour. An online article claiming a chatbot has been “hijacked” should identify an affected version, reproducible evidence and the attacker's actual access.
Where a business uses an AI assistant with connected documents or systems, the owner should check source permissions and the provider's security settings. Untrusted documents and public websites should never receive hidden authority to perform purchases, change files or send messages. Our agent security article covers those live-operation boundaries.
Frequently asked questions
What is data poisoning in AI?
It is a deliberate attempt to alter training or related model data so a system learns or returns unwanted behaviour.
Can someone poison a chatbot by sending a message?
Sending a normal message does not automatically retrain the model. Some connected workflows may ingest messages or external content; the actual data path determines the risk.
Is data poisoning the same as hallucination?
No. Hallucinations can occur without any attacker. Poisoning requires intentional manipulation of data or training.
Can training data poisoning create hidden behaviour?
Some researched forms of poisoning target specific responses or backdoor-like conditions. The outcome depends on access and the training setup.
Does AI model collapse mean the training data were malicious?
Not necessarily. Recursive synthetic-data workflows can degrade performance without intentional sabotage.
How do organisations reduce the risk?
Document source provenance, control dataset changes, version models, test rare cases, validate outside artifacts and maintain approved rollback and incident procedures.
First-party AI security and adversarial-learning references
- UK NCSC: Understanding Adversarial Attacks Against Machine Learning and AI (29 April 2026).
- US NIST: Data Poisoning Definition.
- US NIST: Poisoning Attacks Glossary.
- OWASP: LLM04:2025 Data and Model Poisoning.
- OWASP: LLM01:2025 Prompt Injection—A Distinct Attack Class.
- UK NCSC: Principles for the Security of Machine Learning.
Research note 7 November 2026. The scenarios are explicitly fictional and defensive; no unauthorised access or poisoning procedure is supplied. The article does not attribute a specific public AI failure to attackers without evidence. External source and full organic SERP review are required regularly.