Direct answer: assess a RAG system as a data-access workflow, not only as a chatbot. For one high-value use case, map who may ask, which sources and chunks they may retrieve, who may ingest content, how caches inherit permissions, what evidence accompanies an answer and how access is revoked. Test authorization before similarity search, not only after results return. A grounded answer can still disclose the wrong customer's data.
RAG changes where risk lives. The source system, ingestion pipeline, parser, embedding service, vector store, metadata filters, reranker, model, cache and logs can each widen the boundary. Prompt-injection tests matter, but they do not replace tenant isolation, source authorization and lifecycle controls.
Build a RAG Data Boundary Map
- Identity — user, service, tenant, role, session and delegated authority.
- Sources — owner, classification, geography, purpose, freshness and deletion state.
- Ingestion — permitted writers, validation, provenance, parser and embedding versions.
- Index — trust zone, tenant partition, chunk metadata, encryption and backup scope.
- Retrieval — server-side authorization before search, reranking and abstention.
- Generation — cited evidence, conflict handling, output policy and downstream actions.
- Caches and memory — permission inheritance, keying, expiry and invalidation.
- Evidence and recovery — logs, tests, alerting, disablement, reindexing and incident owner.
OWASP's 2026 vector and embedding guidance treats similarity search as part of the trust boundary and recommends enforcing tenant scope inside the index query. Its RAG Security Cheat Sheet also warns against one flat namespace and post-retrieval filtering. These are security references, not proof that a specific architecture is safe.
Test authorization before relevance
The retrieval function should receive an authenticated, server-derived scope. A tenant or role supplied by the browser or prompt is not an authorization decision. For sensitive workloads, separate indexes or trust zones may be easier to reason about than one shared index with complex filters. Apply controls at chunk level when a document mixes public and restricted material. Test another customer, region, former employee, changed role, shared link, expired session and batch job. Counts, timing and scores can reveal that restricted content exists even when text is hidden.
Treat ingestion as a production privilege
A RAG answer inherits the integrity of what was indexed. Restrict write access, authenticate sources, record provenance and quarantine external or user-uploaded content by trust tier. Test deleted, superseded and malformed documents. Indirect prompt injection is one failure mode; poisoning, stale evidence and misclassified content can also change what the model sees. Record model and pipeline versions so affected batches can be found and rebuilt.
Include caches, embeddings and logs
Semantic caches can serve an answer created under a different permission context unless the key includes identity and policy state. Deleting a source should invalidate chunks, embeddings, cached responses and derived indexes within a defined window. Backups and embeddings deserve the same sensitivity treatment as source content. Logs need enough detail to reconstruct scope, retrieved IDs, source versions and downstream action without becoming another uncontrolled copy.
A two-week baseline and a four-to-six-week launch
- Days 1–3 — inventory one workflow, identities, sources, trust zones, vendors, caches and actions.
- Days 4–6 — create the boundary map, threat scenarios, written authorization and test dataset.
- Days 7–9 — evaluate access, ingestion, retrieval, cache, deletion, logging and recovery; preserve evidence.
- Days 10–12 — rank findings, name owners and decide launch, remediation or narrower scope.
- Weeks 3–6 — implement agreed controls, retest, rehearse disablement and hand over operations.
The schedule is an offer shape, not a guarantee. Source count, tenant architecture, identity complexity, regulated data, vendor access and test readiness change effort. Testing requires written authorization, approved accounts and data, permitted techniques, rate limits, stop conditions and evidence handling. It does not authorize unrelated infrastructure or third-party systems.
Require release evidence
- Negative authorization tests pass for representative roles and tenants.
- Every retrieved chunk has valid provenance, current policy and a reviewable source.
- Untrusted ingestion cannot silently enter a protected index.
- Cache entries cannot cross permission boundaries and invalidate after access changes.
- Deletion and reindexing meet the agreed window.
- Alerts, logs, disablement and manual fallback work in a rehearsal.
- Critical findings are closed and high findings have documented treatment and acceptance.
These are proposed gates, not certification. NIST IR 8596 remains labeled an Initial Preliminary Draft as checked on 4 December 2026; it is a useful lens for securing AI components, not a final standard or proof of compliance. NCSC guidance similarly reinforces incremental adoption and established security fundamentals. Official MCP authorization guidance was also reviewed for this run; remote MCP permissions are distinct from browser WebMCP and are not the primary subject of this RAG assessment.
Connect the assessment to a business decision
Start with the CRM-agent review at https://makinai.co/insights/en/ai-agents-crm-security-review-before-launch and knowledge-system design at https://makinai.co/services/en/data-content-intelligence-systems. MAKINAI's security service is at https://makinai.co/services/en/ai-cybersecurity-consulting. Bring one source-and-identity diagram and the answer the assistant must deliver; do not send credentials or customer data. The first outcome is a scoped release decision and a 90-day plan, not a promise of complete prevention or 24/7 monitoring.