Jump to Section (07)
- 01 / Why does enterprise RAG leak restricted files even with permissions enabled?
- 02 / Why do prompt rules and AI role filters fail to hold access boundaries?
- 03 / Where do vector embeddings, shared agent memory, and multi-turn chat leak data?
- 04 / Why do privacy dashboards and naive vector filtering break in production?
- 05 / What four architectural controls stop RAG access control leaks?
- 06 / Frequently Asked Questions
- 07 / Primary Sources (08)
- Prompt rules fail probing: Prompt cleanup, answer filters, and system boundaries fail extraction attacks in enterprise AI search, or retrieval-augmented generation (RAG) [1]. Stripping restricted facts during search lifts privacy scores up to 58% [2].
- AI role filters still slip: Role-based access control (RBAC) breaks in changing file stores when AI assistants lose context, cut off prompts, or misclassify queries [3]. Layered AI filtering scored 85% accuracy on 389 synthetic queries [3].
- Vectors, shared memory, and chat open side doors: Across three encoders, users with a few hundred paired examples can reverse math-hidden vectors [4]. Shared team memory suffers 18.8-25.5% cross-team leakage [5], and full chat history with search multiplied memorized contact leaks 3.6-4.9X in three open models [6].
- Dashboards can hide inactive code: Auditing benchmark reimplementations on one test stack found defenses that shifted search scores while leaving answer filtering unbuilt [7]. Planted email tests split 53 of 150 unprotected leaks from 0 of 150 under an active filter [7].
- Four hard controls scale cleanly: Authorize every user at search [1], check source columns on cached notes (13.8 microsecond worst-case delay) [5], test live code with planted emails [7], and split role indexes (up to 13.5X faster than row-level security at a 1.24X memory-usage increase, 90.4% less additional RAM than per-role copies) [8].
- 18.8-25.5% cross-department cache leakage: Across six experiments, shared AI memory checking only text, ownership, and role suffers cross-team leakage, while checking source-column permissions removes measured leaks and keeps 81.5-82.6% of cache reuse at 13.8 microseconds worst-case delay [5].
- 3.6-4.9X more memorized contact leaks in ongoing chats: Across three tested open models (GPT-J-6B, Pythia-6.9B, and Pythia-12B) probed for Enron contacts, keeping full chat history with search active multiplied memorized training-data leaks 3.6-4.9X, and one prior message roughly matched full history [6].
- 85% synthetic query-filter accuracy and up to 58% privacy gain at lookup: Layered AI question filtering scored 85% accuracy on 389 synthetic queries [3]. Stripping restricted facts during search before the AI writes its answer lifted privacy scores up to 58% [2].
- Up to 13.5X faster role-filtered AI search: Smart role partitioning cuts search delay up to 13.5X compared with row-level security at a 1.24X increase in memory usage, delivering comparable speed to separate per-role indexes with 90.4% less additional RAM [8].
Why does enterprise RAG leak restricted files even with permissions enabled?
Most leadership teams connect internal AI search to company files with one clear boundary. Finance sees payroll and margin sheets. Sales sees pricing guides. Human resources sees personnel files.
During pilot demos, everything looks sealed. A team writes a system prompt telling the assistant to respect user roles, connects a shared search index, and runs a few single-turn checks.
Weeks into rollout, quiet leaks appear. A shared assistant recycles a cached margin summary built from restricted salary columns the requester cannot open [5]. Prompt injection overrides confidentiality rules tucked inside the prompt [2]. A security review finds a privacy check altered search rankings without ever running on the written answer [7].
Corporate file servers enforce hard locks. Default retrieval-augmented generation (RAG) stacks replace hard locks with guesswork prompt rules, leaky team caches, and unverified software hooks [1] [3] [5] [7].
These permission gaps compound the conflicting-document errors in why internal AI search serves outdated policies and the hijacking paths in why prompt injection attacks hijack enterprise AI agents. Eight recent studies expose where enterprise AI search permissions break and which controls hold under load. The first break starts whenever a team asks the AI model itself to guard restricted text.
Why do prompt rules and AI role filters fail to hold access boundaries?
Teams moving fast often paste a confidentiality warning into the system prompt. The search engine fetches passages from a shared index, hands them to the large language model (LLM), and tells it to hide restricted facts.
That boundary breaks the moment restricted text enters the prompt.
Bhatt and colleagues, whose solution runs in Microsoft Copilot Tuning, demonstrated data extraction attacks against enterprise assistants built without hard access checks across training and live search [1]. Prompt cleanup, answer filters, system isolation, and training-level privacy remain guesswork-based (probabilistic) and break when users intentionally probe for restricted records [1].
Only hard, rule-based (deterministic) permission checks across both model training and live search answers reliably stop unauthorized leaks [1]. Every piece of content used in training, search lookup, or answer writing must be explicitly authorized for all users involved in the interaction [1].
Al Masoud, Arazzi, and Nocera confirmed this gap in SD-RAG [2]. Most RAG systems pass access-controlled text straight to the answer-writing model and rely on behavioral rules that prompt injection overrides [2]. SD-RAG moves privacy enforcement out of answer generation and into search lookup before handing passages to the AI, pairing human-readable dynamic policy rules with a structured relationship map (graph-based data model) [2]. Filtering during search lookup delivered up to a 58% privacy score improvement over baselines with strong prompt-injection resilience [2].
Dedicated AI filters for role-based access control (RBAC) confirm the same limit. Lorenzo and colleagues noted that RBAC degrades inside dynamic RAG stores when LLMs leak data through prompt truncation, classification errors, or lost system context [3]. Their system, ARBITER, layers input and output checks, role-aware retrieval, and post-generation fact-checking using few-shot LLM steering [3]. Across 389 synthetic queries, ARBITER achieved 85% accuracy and an 89% F1-score (precision-recall balance) in query filtering [3].
For low-risk ticket routing, 85% accuracy on synthetic queries can help [3]. For payroll, legal, or board folders, guesswork filtering still lets misclassified queries slip past [1] [3]. Hard permissions belong in retrieval code before restricted text reaches the model [1] [2].
Where do vector embeddings, shared agent memory, and multi-turn chat leak data?
Locking initial document lookup is necessary. Teams often stop there and assume downstream layers stay safe.
Three quieter layers still create serious exposure: transformed search vectors, shared agent memory caches, and multi-turn chat history.
First, math-based vector masking does not guarantee confidentiality. Search-preserving geometric methods transform embeddings into protected representations so vectors stay searchable without crossing policy boundaries [4].
Nouyep, Puys, and Salva audited available geometric access-control implementations across three encoders under two threat models: a curious cloud provider observing stored vectors, and a curious user holding aligned pairs of original and protected representations [4]. Geometric transforms preserve search utility and strong policy isolation, yet fail representation confidentiality, query forgery resistance, and policy-membership hiding [4]. A curious user can recover original embeddings from a few hundred pairs, forge policy-compatible queries at a cost scaling with encoder dimension, and infer policy membership even when unauthorized retrieval stays blocked [4].
Second, shared agent memory launders restricted columns into reusable insights. Stores like MemGPT, Zep, and A-MEM gate retrieval by content, ownership, and role, never by derivation [5]. When a finance lead computes regional margin from a restricted salary column and the agent caches that summary, the cached text carries no salary header, so role checks wave it through to marketing.
Sangaraju and Vissa measured this exposure across six experiments in Lineage-Aware Memory Governance [5]. Naive content-gated memory suffered 18.8-25.5% cross-department leakage and let departments compute same-named key performance indicators (KPIs) with conflicting logic [5]. Their Analytical Memory Unit (AMU) attaches a derivation lineage graph to every cached result and serves a hit only when the requester holds permission for every column touched [5]. Eliminating measured leakage required 75-90% recorded lineage completeness (90% conservative target), removing the 18.8-25.5% leak while keeping 81.5-82.6% reuse at 13.8 microsecond worst-case overhead [5]. A real-agent SQL proof-of-concept showed zero leaks over 9 round-trips and caught two KPI conflicts automatically, though the authors note it is a feasibility demonstration rather than evidence of production viability [5].
Third, multi-turn chat erodes single-turn privacy sign-offs on memorized model data. Even when a retrieval index holds zero restricted contacts, ongoing chat can pull private details out of a model's training memory.
Khaderi, Makhlouf, and Zhioua built CRELT (Conversational RAG Extraction Leakage Trajectory) to track turn-by-turn disclosure of real Enron contacts from training data across GPT-J-6B, Pythia-6.9B, and Pythia-12B [6]. Using a retrieval corpus verified to contain none of the target personally identifiable information (PII), their criterion excluded 29-53% of raw matches already present in the input [6]. A length-matched control with random passages reproduced 91-99.5% of RAG's cleared-history drop and 47-78% under full history, showing much single-turn safety comes from extra prompt length rather than retrieved text [6]. With retrieval active, keeping full conversation history multiplied training-data contact disclosure by 3.6-4.9, and one prior turn restored roughly full-history leakage [6]. Clearing history cut disclosure 72-79%, yet did not eliminate it [6].
Why do privacy dashboards and naive vector filtering break in production?
Two bottlenecks push teams into weak shortcuts: trusting black-box privacy scores, and slow search delay under strict vector role filters.
Li, Fan, and Zhuang showed why black-box scores mislead buyers in Mind the Hook [7]. Their active-path audit inventories source-level hooks across retrieval, retrieved content, and generation, maps each metric to its channel, and tests outputs with exact-match canaries [7].
Auditing benchmark reimplementations on their test stack, differential-privacy-style defenses altered retrieval scores alone while leaving generation hooks as unimplemented stubs returning answers unchanged [7]. Retrieval shifts changed membership-inference scores while generated-text named-entity leakage tracked No-Defense [7]. Canary-validating end-to-end LPRAG on the email channel separated 53 of 150 leaks under No-Defense from 0 of 150 under LPRAG [7]. The authors note these findings concern their stack reimplementations rather than released defenses or defense families [7].
Teams also weaken vector permissions because naive RBAC hurts speed or memory. Zhong and colleagues mapped this bind in HONEYBEE [8]. Dedicated per-user indexes keep latency low yet duplicate memory, while shared indexes with post-search filtering cut memory yet raise latency [8].
HONEYBEE uses RBAC role structure, grouping users into roles and assigning permissions at the role level [8]. Using analytical speed and recall models, it builds overlapping partitions with strategic replication [8]. On RBAC workloads, HONEYBEE achieved up to 13.5X lower query latency than row-level security with a 1.24X increase in memory usage, delivering comparable performance to per-role indexes with 90.4% less additional memory [8].
What four architectural controls stop RAG access control leaks?
The table below summarizes all eight verified findings before turning them into four controls.
| Control Layer | Study & Scope | Verified Finding | Operational Takeaway |
|---|---|---|---|
| Prompt & Output Rules | Fine-tuning & enterprise RAG (deployed in Microsoft Copilot Tuning) [1] | Prompt rules, output filters, and isolation fail exfiltration | Authorize every participant deterministically at each stage |
| Retrieval-Stage Filtering | Selective disclosure vs. prompt baselines [2] | Retrieval-phase disclosure lifts privacy scores up to 58% | Strip unauthorized facts during search before the model |
| AI Role Query Filters | Layered LLM filtering on 389 synthetic queries [3] | Scored 85% accuracy and 89% F1-score in query filtering | Never rely on guesswork AI filters as sole RBAC locks |
| Transformed Search Vectors | Geometric vector access control, three encoders [4] | Strong isolation, yet users recover vectors from a few hundred pairs | Separate search isolation from cryptographic confidentiality |
| Shared Agent Memory | Six memory tests plus SQL feasibility PoC [5] | Content-gated leaks 18.8-25.5%, lineage keeps 81.5-82.6% reuse (13.8 us worst-case) | Gate cached insights by source-column derivation lineage |
| Multi-Turn Chat History | Training-data Enron contacts on open-weight models [6] | Full history raises leaks 3.6-4.9X (one turn roughly matches full), clearing cuts 72-79% | Test multi-turn threads and cap conversation history |
| Privacy Code Hooks | Source audit of benchmark reimplementations [7] | Stub generation hooks tracked No-Defense, email canaries split 53/150 vs. 0/150 | Audit active code hooks with exact-match canaries |
| Role-Partitioned Search | Dynamic RBAC vector partitioning [8] | Up to 13.5X lower latency than row-level security (1.24X memory increase), 90.4% less extra RAM | Partition vector indexes dynamically by role |
Closing these leaks requires four verifiable system boundaries across every enterprise RAG stack.
- Authorize every participant before text reaches the model. Run deterministic checks across training, retrieval, and generation so every snippet is authorized for all participants [1]. Enforce selective disclosure during retrieval (up to 58% privacy score gain in SD-RAG) [2], never relying solely on prompt rules or synthetic-tested AI filters scoring 85% accuracy [1] [3].
- Partition vector indexes by role and separate isolation from confidentiality. Replace slow post-search filtering and full per-role copies with dynamic RBAC partitioning, delivering up to 13.5X lower latency than row-level security at a 1.24X memory-usage increase, comparable speed to per-role indexes, and 90.4% less additional RAM [8]. Treat geometric vector transforms as isolation only, since aligned pairs let curious users invert embeddings [4].
- Gate shared memory by column lineage and audit multi-turn chat. Attach derivation lineage graphs to cached insights (90% completeness target) to remove 18.8-25.5% cross-department leakage while preserving 81.5-82.6% reuse at 13.8 microsecond worst-case overhead [5]. Test multi-turn threads for memorized training-data exposure too, since full history with retrieval active multiplied Enron contact leaks 3.6-4.9X across GPT-J-6B, Pythia-6.9B, and Pythia-12B, and clearing history cut disclosure 72-79% without eliminating it [6].
- Verify active enforcement hooks with exact-match canaries. Inventory live hooks across retrieval, retrieved content, and generation so stub code never masks live text leaks [7]. Validate generated text with planted exact-match canaries, following the active-path audit that separated 53 of 150 leaked email canaries under No-Defense from 0 of 150 under LPRAG on the authors' benchmark stack [7].
At AITHOS LLC, enterprise retrieval systems pair deterministic participant-aware filtering, lineage-gated memory, role-partitioned vector search, and canary audits so internal AI search holds corporate boundaries.
Frequently Asked Questions
Can system instructions stop a chatbot from revealing confidential passages?
No. Once restricted text enters a prompt, system rules, prompt cleanup, and output filters stay guesswork-based and fail exfiltration and prompt injection [1] [2]. Enforce deterministic participant-aware authorization across training, retrieval, and generation [1], and apply selective disclosure at retrieval, which lifted privacy scores up to 58% in SD-RAG [2].
Why do cached analytics insights leak columns a requester cannot view?
Most agent memory stores check text, ownership, and role at lookup, never the source columns behind a cached summary [5]. Across six experiments, content-gated memory suffered 18.8-25.5% cross-department leakage [5]. Column derivation lineage (90% target) removes measured leakage while keeping 81.5-82.6% reuse at 13.8 microsecond worst-case overhead [5].
Does clearing chat history stop all private data disclosure?
In multi-turn tests on memorized Enron contacts across GPT-J-6B, Pythia-6.9B, and Pythia-12B, clearing history cut training-data disclosure 72-79% with retrieval active, yet did not eliminate it [6]. Full history multiplied disclosure 3.6-4.9X, and one prior turn roughly matched full-history leakage [6].
How fast can role-based vector search run without duplicating every index?
Dynamic RBAC partitioning resolves the speed-versus-memory bind in vector search [8]. Grouping permissions by role and selectively replicating vectors gives HONEYBEE up to 13.5X lower latency than row-level security at a 1.24X increase in memory usage, with comparable speed to per-role indexes and 90.4% less additional RAM [8].
How should teams verify that a privacy safeguard actually blocks text leaks?
Run an active-path audit rather than trusting black-box scores alone [7]. Trace live code hooks across retrieval, retrieved content, and generation to rule out stubs, then test outputs with planted exact-match canaries, the method that split 53 of 150 leaks under No-Defense from 0 of 150 under LPRAG on the authors' stack [7].
Primary Sources & Verification Ledger
08 VERIFIED CITATIONS-
[1]
Bhatt, S. S., Rajore, T., Aggarwal, K., Ananthanarayanan, G., Chandra, R., Chandran, N., Choudhury, S., Gupta, D., Kiciman, E., Pandey, S. K., Setty, S., Sharma, R., & Zhao, T. (2025). Enterprise AI Must Enforce Participant-Aware Access Control. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2509.14608 ↗
-
[2]
Al Masoud, A., Arazzi, M., & Nocera, A. (2026). SD-RAG: A Prompt-Injection-Resilient Framework for Selective Disclosure in Retrieval-Augmented Generation. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2601.11199 ↗
-
[3]
Lorenzo, M., Drago, I., Salvadori, D., & Vayr, F. R. (2025). ARBITER: AI-Driven Filtering for Role-Based Access Control. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2512.20535 ↗
-
[4]
Nouyep, S., Puys, M., & Salva, S. (2026). Isolation Is Not Confidentiality: Security Boundaries of Geometric Access Control in RAG. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2611.14061 ↗
-
[5]
Sangaraju, V. M., & Vissa, S. (2026). Lineage-Aware Memory Governance: A Derivation-Gated Framework for Privacy-Preserving Column-Level Access Control in Enterprise AI Agents. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2610.07258 ↗
-
[6]
Khaderi, S., Makhlouf, K., & Zhioua, S. (2026). Beyond Single-Turn Privacy: Training-Data Leakage in Conversational RAG. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2611.28748 ↗
-
[7]
Li, Y., Fan, Z., & Zhuang, Z. (2026). Mind the Hook: Source-Level Auditing of Privacy Defenses in Retrieval-Augmented Generation. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2608.09001 ↗
-
[8]
Zhong, H., Lentz, M., Narodytska, N., Szekeres, A., & Rong, K. (2026). HONEYBEE: Efficient Role-based Access Control for Vector Databases via Dynamic Partitioning. Proceedings of the ACM on Management of Data.DOI VERIFIED doi.org/10.1145/3786625 ↗