Risk · R-064 · Model & Application Security

Retrieval corpus poisoning

Content placed in a document store, website or other retrieved source is written to mislead the model, so that authoritative-looking answers carry an attacker's content.

Severity
High
Audience
Heads-of · Practitioner
Frameworks
AML.T0070 · LLM01 · LLM09
Reviewed
2026-11-10

What it is

A retrieval system answers from documents it finds at the time of asking. Whoever can place a document where retrieval will find it can influence the answer without touching the model. The planted content may be false information intended for the user, or instructions intended for the model, in which case it is also a carrier for indirect prompt injection. The store's own access controls are covered in vector and embedding weaknesses; poisoning of training data in data and model poisoning.

How it happens

  • A page is published on the open web, written to rank for a query the system will search.
  • A document is added to a shared drive or wiki that feeds the index.
  • A customer-submitted file is indexed with internal material.
  • Content is crafted to be retrieved for many unrelated questions.

Why it matters

Users trust a retrieval system because it cites sources. A poisoned source turns that trust into the attack: the false answer arrives with a reference. Detection is hard because the model is working as designed.

Warning signs

  • Anyone in the organisation, or outside it, can add to an indexed source.
  • Answers cite documents nobody recognises.
  • One document is retrieved for an unusually wide range of questions.
  • Indexed sources have no owner or review date.

Who owns it

The owner of each source is accountable for its content. The system owner decides which sources are indexed. Engineering restricts retrieval to approved sources and records where each document came from.

In practice

An internal policy assistant indexes a staff wiki that any employee can edit. Someone adds a page stating that expenses under a certain value need no receipt. The assistant gives that answer, citing the page, until finance notices the claims. The same pattern generalises to any system that retrieves from sources with weaker controls than the answers imply.

Mitigating controls

Primary controls

Input filtering and injection defence Preventive
Treats retrieved content as untrusted data and screens it for instructions. User input and all retrieved or tool-supplied content are screened for hostile instructions and passed to the model marked as data, separate from the system's own instructions.
Vector store and embedding access controls Preventive
Controls who can write to the corpus the model retrieves from. A retrieval system's vector store is governed as a production data store: access is authenticated and authorised, source permissions are enforced at retrieval, and writes are restricted and recorded.

Supporting controls

Retrieval grounding and citation Preventive
Restricts retrieval to approved sources. The system answers only from retrieved, approved sources, cites the source for each statement, and declines where the sources do not support an answer.
Training data provenance checks Preventive
Records where each corpus document came from. The source, collection method, rights and integrity of every dataset are verified and recorded before it is used for training, fine-tuning or retrieval.

Framework and clause references

FrameworkClauseTitle
MITRE ATLASAML.T0070RAG Poisoning The corresponding technique.
OWASP Top 10 for LLM ApplicationsLLM01Prompt Injection The route by which indirect injection usually arrives.
OWASP Top 10 for LLM ApplicationsLLM09Vector and Embedding Weaknesses Named among retrieval weaknesses.

Sources

OWASP Top 10 for LLM Applications OWASP GenAI Security Project · framework
MITRE ATLAS MITRE · framework

Related terms

How to cite

Axiom Verity (2026). Retrieval corpus poisoning. Reference Library, R-064. https://axiom-verity.com/risks/retrieval-corpus-poisoning. Reviewed 2026-11-10.