AI GLOSSARY · SAFETY, ETHICS AND GOVERNANCE

Data poisoning

Markdown version

Definition

Data poisoning is adversarial manipulation of data to cause unwanted behavior in an AI system. Training-data poisoning affects learning; broader LLM security usage also includes poisoned retrieval or embedding data, which need not update model parameters.

Also called: data poisoning attack, training data poisoning, poisoning attack AI, poisoned data, data and model poisoning.

In plain language

Data poisoning means tampering with what an AI learns from. Imagine a spam filter that learns from messages users mark as spam. If an attacker floods it with spam labelled as fine, it learns the wrong lesson. The same idea applies to chatbots and coding models: slip bad or booby-trapped examples into the material they learn from or look things up in, and the attacker aims to alter the resulting behavior; success is not guaranteed. The damage can be hard to see, because the model may behave normally until a special trigger appears. IBM says clean-label attacks are hard to detect. The practical risk is using a model or dataset from a source you cannot vouch for.

Technical definition

OWASP's LLM04:2025 entry says data poisoning occurs when pre-training, fine-tuning or embedding data is manipulated, which can build flaws, hidden triggers or skewed behaviour into a model. IBM distinguishes targeted attacks, which steer outputs in a specific way, nontargeted attacks, which degrade general robustness, and backdoor attacks, where a hidden trigger input makes the model behave as the attacker wants. NIST AI 100-2 E2025 lists data poisoning among its keywords for adversarial machine learning, alongside evasion and privacy breach. Mitigations OWASP lists include tracking data provenance, vetting suppliers, versioning datasets, restricting data sources, monitoring training behaviour for anomalies and red-teaming.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    Check a Claude Skill From GitHub Before Installing It

    What you see
    A step-by-step review of a third-party skill before it runs: clone it outside every skills folder, list the files, read the frontmatter, search for injected commands and read the scripts.
    Why it exercises the concept
    A skill is content an agent will trust. Reading what you import before it reaches the agent is the same provenance habit that poisoning defences ask of training and fine-tuning data.
  2. Skill by Skill Almanac · Illustrative, not executed

    skill-safety-audit 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A JSON risk table with evidence lines for a third-party skill folder, produced before you install it.
    Why it exercises the concept
    It checks one kind of imported content for risky material. It does not inspect model weights or training data; the catalogue has no skill for that.
  3. Skill by Hugging Face · Illustrative, not executed

    huggingface-datasets 25/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Metadata, rows, search and filters for a Hugging Face dataset, read through the Dataset Viewer API.
    Why it exercises the concept
    Looking at a dataset's rows and metadata before using it is a first, partial provenance check. It cannot prove the data is unpoisoned.
  4. Skill by Skill Almanac · Illustrative, not executed

    threat-model-stride-worksheet 38/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A STRIDE worksheet built from your assets, actors, trust boundaries and data flows.
    Why it exercises the concept
    Marking where outside data crosses into your system shows which data flows could be poisoned.

How it shows up when you use agents

Most readers do not train a model themselves, so poisoning reaches you through things you import. A model downloaded from a model hub, a dataset used for fine-tuning, documents loaded into a retrieval store, or a skill or file an agent reads can each carry manipulated content. OWASP's entry covers pre-training, fine-tuning and embedding data, so the risk includes the knowledge base behind a retrieval setup, not only the original training data.

What breaks when this is misunderstood: people treat a popular download as checked, or assume a clean-looking sample means a clean dataset. A backdoor can sit dormant until a trigger appears, so ordinary testing can miss it.

Next action: record where each model, dataset and document source came from, prefer sources you can verify, keep an agent's write access to its own knowledge store narrow, and test behaviour on unusual inputs as part of red-teaming. For skills, use the guide to checking a skill before installing.

Worked example (illustrative)

Suppose an attacker alters documents in a retrieval collection. An assistant may later retrieve false evidence or embedded instructions. That can affect its answer without a training update; if the document also redirects the application with instructions, prompt injection is involved too. This is a hypothetical overlap of attack surfaces, not evidence that a particular corpus is compromised.

Common confusions

  • Data poisoning versus prompt injection. Training poisoning corrupts learning data; retrieval poisoning corrupts external evidence. Prompt injection tries to redirect the application with instructions. A poisoned retrieved document can also carry an injection, so the categories can overlap.
  • Data poisoning versus bias. Bias can arise from unrepresentative data with no attacker involved. Poisoning is deliberate manipulation, although the visible symptom can look similar. See AI bias.
  • Data poisoning versus an adversarial example. An adversarial example alters an input to a finished model. Training-data poisoning affects learning. Poisoning a retrieval corpus can instead affect the evidence supplied at inference without changing learned parameters. See adversarial attack.
  • Myth. Only huge pre-training runs can be poisoned. OWASP's entry names fine-tuning and embedding data as well.

Terms that mention Data poisoning

4 terms mention this one

More in Safety, ethics and governance

Next steps

  1. Check a Claude Skill From GitHub Before Installing It The long-form guide.
  2. skill-safety-audit A skill that exercises it.
  3. LLM security Related term.
  4. Adversarial attack Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: reworded absolute, replaced unsourced claim with IBM clean-label point.
  • : Trust and evaluation scope corrections; independent exact-version review pending.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.