Skip to content
mentoor

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

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

What makes a prompt injection "indirect"?

Choose one answer

Check yourself · 3 of 5

Why is an open-edit company wiki a poisoning risk for a RAG assistant?

Choose one answer

Check yourself · 4 of 5

Why should redaction run on the whole document before chunking?

Choose one answer

Check yourself · 5 of 5

Which value should the tenant filter of a retrieval query use?

Choose one answer

Topics

  1. 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
  2. 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
  3. 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
  4. 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

110 questions · last verified 2026-12