Sources checked: . FailSafe Research.
A RAG assistant can hide a forbidden document in its final answer after already sending that document to a model. Tenant isolation testing therefore needs to observe retrieval and context assembly, not just the chat response. Consider a SaaS support assistant serving several customer workspaces from one search system. The key question is whether every retrieval, preview, citation, and cache result remains associated with the current tenant, including during background processing and concurrent conversations.
Two-tenant retrieval matrix
Create two test tenants with visibly different synthetic records and one deliberately shared public document. Define users, workspace membership, source-system permissions, index namespaces, cache boundaries, and model-provider data routes. List all paths by which content can enter the answer: semantic retrieval, keyword fallback, attachment preview, citation resolver, and conversation history. The test owner should name the intended isolation mechanism at each layer. A tenant identifier supplied by the browser must not be treated as authoritative without a trusted identity binding.
Your two-tenant retrieval matrix
Use this compact record in the review. Fill it with synthetic fixtures and the observed result, then retain the configuration with the finding.
| Requesting tenant | Retrieved source | Expected denial |
|---|---|---|
| Approved control case | Record the relevant decision | Record the observed result |
| Denied boundary case | Record the expected refusal | Record any deviation and owner |
Compare retrieval across two test tenants
Run matching legitimate questions in both tenants, then compare the retrieved document identifiers and context fragments. Exercise owner-approved cases involving a user switching workspaces, two concurrent sessions, an empty result, and a shared-cache hit. Include the application’s fallback retrieval route because a primary vector-store filter may not cover it. Request a preview of an inaccessible synthetic citation through the supported interface. Do not query real customer identifiers or scrape production collections. The synthetic dataset should make the expected tenant boundary obvious to an engineer reviewing the trace.
Capture sources before generation
Collect authenticated tenant context, retrieval filters, returned source identifiers, cache policy, and the records passed to the generation step. Redact infrastructure details and keep synthetic markers in the evidence. A finding can exist even if the final response omits the restricted text: the data may already have crossed into an unauthorized processing context. Record model refusal as a separate behavior. If instrumentation cannot show retrieved content or source identifiers, state that coverage gap clearly instead of inferring isolation from a plausible answer.
Repeat the denied retrieval
Retest the failed path after remediation and keep the two-tenant fixture in release checks. Isolation requirements can change when a new connector, cache, citation service, or async indexing worker is added. A passing result does not establish provider retention or every tenant pair; those are separate scope questions. OWASP’s multi-tenant security guidance is the general reference. Buyers evaluating AI security testing should ask whether the assessment covers data before generation, because an answer-only test cannot resolve the full retrieval boundary.
Plan this assessment with FailSafe
Use a staging environment, synthetic records, approved test identities, and an agreed stop condition. Record the model, connector, policy, and application versions so a later result can be compared with the same configuration. Unavailable evidence should remain an explicit coverage gap.
Primary reference: OWASP security guidance. The scenarios and acceptance criteria here are editorial recommendations for adapting that background to an authorized assessment.
For a scoped review of these boundaries, explore FailSafe AI security testing and agentic penetration testing. Agree the specific tools, identities, evidence, and exclusions before purchasing an assessment.
Questions & answers
Questions about this topic
Direct answers to common questions about this page.
Yes. Restricted content may enter the model context even when the generated response does not repeat it.
They help define a boundary, but application identity, fallback retrieval, caches, previews, and background jobs also need verification.
Related Articles
Authenticated cache testing: prevent one user's view becoming another's
Authenticated cache testing should determine whether cached content respects the same identity and tenant boundaries as its origin. A fast response is useful on...
RAG Citation Provenance: Verify What the Answer Actually Used
Assess citation integrity, source permissions, document versions, and claim support in retrieval-augmented answers....
LangGraph CVE-2026-118668: test the Store authorization result
LangGraph’s custom-authentication advisory shows why agent memory isolation must be checked across runtime boundaries, not only in handler code....
Put this guidance to work
Bring an AI workflow with its identities and permitted actions. FailSafe can help turn this boundary into an authorized test and a useful remediation record.