Skip to content
The Injection_
LIVE
LIVElast sweep next in--:--:--

[ RSS ][ JSON ][ llms.txt ]

RAG (retrieval-augmented generation)

Also called: retrieval-augmented generation · RAG poisoning

RAG, retrieval-augmented generation, is a pattern where an AI system searches a document store and adds the results to the model's prompt before answering. Everything retrieved becomes model input, so the corpus is an injection and data-leak surface.

How it works

Attackers plant instructions or false facts in documents that will be indexed, or exploit weak access control so a user retrieves documents they should not see. Retrieved text can also carry exfiltration payloads into the answer.

How to defend

Enforce document-level permissions at retrieval time, control who can add content to indexes, mark retrieved text as untrusted, and monitor for planted instructions.

Real cases 1 story

  1. INFO

    Research · OWASP GenAI Security Project

    OWASP: part 3 of its GenAI data security guide covers RAG and memory

    OWASP released GenAI Data Security Best Practices v2 Part 3 on 24 November 2026, covering training and fine-tuning pipelines, retrieval-augmented generation, AI memory, vector stores and embeddings.