
Sources checked: . This article contains FailSafe's analysis and proposed validation workflow; linked sources support the reported facts.
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.
Define the boundary before testing
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.
Run a bounded assessment
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.
Keep evidence an engineer can use
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.
Interpret the result and retest
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.
Assessment scope and next steps
This is a proposed defensive assessment workflow, not a finding about a particular product. 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....

Tenant switching security: test workspace context after login
Tenant switching security testing evaluates whether requests, background jobs, and cached views follow the workspace a user is authorized to access. A visible w...