Privacy Engineering ยท 3 min read
Is your RAG application exposing sensitive information?
Retrieval-augmented generation can make AI applications more useful by connecting them to internal knowledge. It can also introduce information access and governance risks.
A business connects an AI assistant to internal policies, project documents and support records. Testing looks promising, but the team has not established whether every employee can retrieve only the information they are authorized to see. The assistant may create a new access path into sensitive material.
What is retrieval-augmented generation?
Retrieval-augmented generation (RAG) connects a language model to external sources. A request triggers retrieval of relevant information, which is supplied to the model to help generate a response. An implementation may involve ingestion, chunking, embeddings, vector storage, retrieval and generation. Privacy depends on the complete architecture, not just the model.
Where RAG data privacy risks arise
At ingestion, sensitive files may enter a knowledge base without a review of classification or audience. In vector storage, embeddings represent information in another form and should not automatically be treated as anonymous. During retrieval, weak tenant or user boundaries can return documents the requester should not access.
At model processing, retrieved text may leave the organization for an external provider. Configuration, retention and contract terms matter. Finally, outputs and logs may contain sensitive information even if source documents remain protected.
OWASP's 2025 guidance on vector and embedding weaknesses describes relevant technical risks. It is industry guidance, not a legal mandate. The NIST Generative AI Profile provides voluntary risk management guidance.
Six controls for enterprise RAG
- Inventory knowledge sources. Record owners, sensitivity, approved purposes and intended audiences. Review new sources before ingestion.
- Enforce access boundaries. Apply user and tenant permissions at retrieval and connected systems. Do not rely on model instructions as the primary access control.
- Manage retention. Define how source changes and deletions propagate to chunks, indexes, embeddings, caches and related records. Record technical limitations.
- Minimize model inputs. Determine whether selected excerpts suffice rather than transmitting complete documents. Review external provider processing and settings.
- Test failure scenarios. Evaluate authorization, untrusted document content, cross-tenant retrieval and unintended disclosure under realistic conditions. Address prompt injection and stale permissions.
- Assign oversight. Name owners for sources, access, evaluation, changes and remediation. Record limitations and approval decisions.
Example: customer support retrieval
Suppose a SaaS support assistant retrieves customer records and different employees have access to different accounts. The retrieval layer should enforce those permissions rather than granting unrestricted access and asking the model to decide what to disclose. The team should also define retention for retrieved excerpts, prompts and generated responses.
Test a revoked employee's access and a document moved between customer accounts. Determine how quickly the index reflects those changes, what happens if synchronization fails and who can suspend the integration. These are illustrative scenarios, not a claim about a Regnitive product.
Review the whole workflow
Ask which sources are connected, who can retrieve them, what reaches providers, how deletions propagate and what evidence supports approval. A model change, new source or broader permissions can require renewed review. Use data classification, privacy by design, and the AI risk assessment as complementary starting points.
Building AI products that interact with sensitive information? Explore Regnitive AI Governance.
Document the privacy implications of retrieval and provider access in an AI privacy impact assessment.
This article is provided for general informational purposes and does not constitute legal advice.