How it works · 15 of 37 Frontier
What is RAG poisoning?
When the documents lie
RAG poisoning: If attackers get text into what's retrieved, they steer the answer.
Loading the animation…
Say it like this RAG believes whatever is on its shelf, so anyone who can add a page can steer the answer: control what gets indexed, and check what gets retrieved.
Under the hood — for builders
- How a planted page is built
- Two parts glued together. The card's fake page:
- Real impact
- Five planted pages per question, hidden among millions of real ones:
- Do the easy fixes work?
- Defences the authors tried, on NQ (97% with no defence):
- What the attacker needs
- No access to the model or your documents: just a way to add one page (§3.1).
- Guard 1: the door
- Index only sources you control; record who added each page and when.
- Guard 2: the desk
- Set aside fetched text that gives the bot orders or asks for personal data.
- Who is exposed
- Any RAG over web pages, reviews, tickets, wikis or shared drives others can edit.
- In our papers
- Same trick on a reused-answer cache: a guard cut planted answers from 300 to 6 per 1,000 (Deletion Gain).
- Sources
- Zou, Geng, Wang & Jia, PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models (arXiv 2402.07867v3; to appear, USENIX Security 2025) · Zhang, Yao, Liu et al., Similarity Is Not Validity: Defending LLM Semantic Caches Against Poisoning (arXiv 2609.35908v1).
What happens in the RAG poisoning animation, step by step?
Guard on or off: Guard off
- By day, the shop bot answers from the pages on its shelf. It trusts whatever is there.
- At night, someone slips in a page of their own, dressed up as the shop's refund help.
- Next morning Priya asks about her refund. The fake page repeats her words exactly, so search fetches it first.
- The bot repeats it. To Priya it looks like the shop's own answer. Switch the guard on.
Guard on or off: Guard on
- Same night, guard on. Every page comes in through one door and must carry the shop's stamp.
- No stamp, no entry. Only pages your team wrote or approved get onto the shelf.
- Some pages are public by design, like product reviews. So the desk checks too: a page that gives the bot orders is set aside.
- The bot answers from the real refund page. Control what gets in; check what comes out.
What everyday example explains RAG poisoning?
Sneaking a fake page into the library's reference book.
Why should a team care about RAG poisoning?
Any RAG over public or user-submitted data is exposed.