TL;DR: Retrieval-augmented generation can surface unauthorized material when vector search is not constrained by identity and document-level permissions, according to Lasso Security. The practical issue is not hallucination alone but who can retrieve what, which makes access control and context filtering central to enterprise AI governance.
NHIMG editorial — based on content published by Lasso Security: Riding the RAG Trail: Access, Permissions and Context
Questions worth separating out
Q: How should security teams control access in RAG applications?
A: Security teams should control access in RAG applications by treating retrieval as an authorisation step, not just a search function.
Q: Why do RAG systems create data exposure risk even without prompt injection?
A: RAG systems create data exposure risk even without prompt injection because the retrieval engine can surface legitimate but unauthorized content.
Q: What do teams get wrong about document-level access control for AI search?
A: Teams often assume document-level access control is enough once metadata filters are in place.
Practitioner guidance
- Map retrieval paths to entitlements Inventory every data source, vector index, and connector used by the RAG stack, then verify which identities can retrieve from each one.
- Separate sensitive corpora by policy tier Segment finance, HR, legal, and general knowledge into distinct retrieval scopes when the same index cannot reliably enforce metadata-based filtering.
- Attach sensitivity metadata at ingestion Classify documents during indexing with role, business function, and sensitivity markers that remain available to the retrieval engine.
What's in the full article
Lasso Security's full blog covers the operational detail this post intentionally leaves for the source:
- How the RAG access control model is implemented across separate instances and document-level filtering.
- Why context-based access control changes the retrieval decision process for sensitive queries.
- The practical trade-offs between performance, maintenance burden, and policy precision in GenAI systems.
👉 Read Lasso Security's analysis of RAG access control and context-based governance →
RAG context filtering and access control: what IAM teams need to know?
Explore further