Securing RAG: permissions, injection and poisoning
For engineers
Keeping retrieval inside each user's access rights and defending against injected instructions, poisoned documents and leaks through the index
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A multi-tenant RAG app retrieves chunks for every question. Where should the rule "users see only their own tenant's documents" be enforced?
Check yourself · 2 of 5
What makes a prompt injection "indirect"?
Check yourself · 3 of 5
Why is an open-edit company wiki a poisoning risk for a RAG assistant?
Check yourself · 4 of 5
Why should redaction run on the whole document before chunking?
Check yourself · 5 of 5
Which value should the tenant filter of a retrieval query use?
Topics
- Permission-aware retrieval for every user4 min read · Enforcing document access rights at query time with ACL metadata and per-tenant filters, never by asking the model to hide things
- Instructions hidden in retrieved documents4 min read · Emails, web pages and uploads that carry instructions the model may follow, and limiting what a RAG app can do when that happens
- Poisoned and manipulated knowledge bases4 min read · Planted documents crafted to win retrieval for chosen queries, write access to sources and provenance checks on ingestion
- Personal and secret data in vector indexes4 min read · PII and secrets copied into chunks and embeddings, inversion risk, redaction before indexing and logging rules
Start here
- LLM08:2025 Vector and Embedding Weaknesses (OWASP GenAI) (opens in a new tab)DocsFree
Names access-control gaps, data poisoning and embedding inversion as the core risks of vector stores.
- PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation (opens in a new tab)PaperFree
The research behind planting a few texts in a knowledge base to steer answers for chosen questions.
- Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (opens in a new tab)PaperFree
The paper that named indirect prompt injection and showed it against retrieval-based apps.
Helps to know first
110 questions · last verified 2026-12