Defining Retrieval Poisoning
Retrieval poisoning refers to attacks that target the external knowledge sources a RAG system queries at inference time, including source documents, vector embeddings, and the vector store index, rather than the model's weights or the prompt itself. When retrieval poisoning succeeds, the system treats attacker-controlled content as trusted context and incorporates it into generated output or tool-call decisions without any signal that the input has been compromised.
OWASP's Top 10 for LLM Applications treats this as a distinct risk category, Vector and Embedding Weaknesses, separate from prompt injection, reflecting that it exploits a different layer of the application stack than the prompt interface. Academic research, including the PoisonedRAG study, has demonstrated that inserting a small number of adversarial text entries into a RAG knowledge base is sufficient to cause the system to retrieve and generate attacker-chosen outputs for targeted queries.
This matters for enterprise deployments because RAG systems are frequently built on internal wikis, ticketing systems, and shared documentation repositories that carry looser access controls than production application code, widening the attack surface beyond what conventional security monitoring typically covers.
Key distinction: Retrieval poisoning corrupts external content at inference time. It does not require access to model weights, training pipelines, or the prompt interface itself.
How Retrieval Poisoning Differs from Related Attacks
Retrieval poisoning is often confused with related but distinct attack classes. The differences matter because each class implies a different adversary model and a different set of controls.
| Aspect | Retrieval poisoning | Prompt injection | Training-data poisoning |
|---|---|---|---|
| Primary target | Documents, embeddings, vector index | User or system prompt | Training or fine-tuning data |
| When it lands | Inference time (retrieval) | Inference time (prompt) | Before deployment |
| Model access required | No access to weights or training | Access to prompt interface | Access to training pipeline |
| How influence appears | Malicious content returned as trusted context | Instructions override via the prompt | Behavior baked into model weights |
Training-data poisoning corrupts model weights during training or fine-tuning and requires access to the training pipeline itself; the resulting behavior is baked into the model before deployment. Retrieval poisoning corrupts external content accessed at inference time and requires no access to the model or its training data, which makes it accessible to a different and often broader set of adversaries.
Prompt injection targets the user or system prompt directly, attempting to override instructions through the interface the user or application controls. Retrieval poisoning instead targets the knowledge source, so malicious instructions or false information are introduced automatically as retrieved context that the system treats as trusted.
Research on indirect prompt injection established that content retrieved from external sources can carry adversarial instructions that influence model behavior without the attacker ever interacting with the prompt interface. That mechanism connects retrieval poisoning to downstream prompt-level effects even though the initial compromise occurs earlier in the pipeline.
Documented Attack Techniques
Three technique categories are consistently described across current research and threat frameworks.
Adversarial document injection
Attackers introduce a small number of crafted documents into a knowledge base so they are retrieved for targeted queries. The PoisonedRAG research demonstrated this can succeed with a limited number of inserted entries.
Embedding-space manipulation
Text is crafted so its vector representation lands close to anticipated target queries, increasing the likelihood of retrieval independent of genuine semantic relevance to the query.
Index tampering
Unauthorized write or update access to a vector database allows an attacker to insert or modify stored vectors and documents directly, bypassing any review applied at ingestion time.
MITRE ATLAS documents adversarial tactics against AI-enabled systems that include manipulation of external data sources consumed by ML applications, situating these techniques within a broader adversarial tactics framework rather than treating them as isolated incidents. Terminology across sources is not fully standardized; the same technique class is variously described as retrieval poisoning, RAG poisoning, or corpus poisoning depending on the source.