Redbot Labs / Attack Intelligence

Cross-Tenant AI Data Leakage

Record ID
RB-051
Severity
Critical
Category
Data Leakage
Confidence Score
99
Published
Updated

Summary

A multi-tenant AI system exposes information belonging to another customer, organization, workspace, or tenant through failures in retrieval isolation, shared model state, agent memory, caching, vector stores, tool integrations, or application authorization.

Executive Summary

Cross-Tenant AI Data Leakage occurs when information belonging to one tenant becomes accessible to another tenant through a shared AI application or its supporting infrastructure.

This is a particularly serious risk for SaaS providers deploying AI features across multiple customers.

AI applications frequently aggregate information from RAG pipelines, vector databases, agent memory, conversation context, tools, caches, APIs, and enterprise data stores. OWASP specifically warns that multi-tenant vector environments can inadvertently retrieve one group’s embeddings for another group and recommends permission-aware retrieval.

The attack does not necessarily require a jailbreak.

A legitimate authenticated customer may simply discover that carefully constructed queries, manipulated identifiers, retrieval behavior, shared memory, or authorization failures cause the AI system to return information belonging to another customer.

Tenant A → Shared AI Infrastructure → Isolation Failure → Tenant B Data → AI Response

The result can be one of the highest-impact failure modes in enterprise AI: one customer’s AI becomes a window into another customer’s data.

Attack Overview

An attacker accesses a legitimate tenant within a multi-tenant AI platform.

The attacker probes the AI application and supporting APIs for information outside their tenant boundary.

Attack paths may include:

  • Cross-tenant RAG retrieval
  • Shared vector indexes
  • Improper metadata filtering
  • Tenant identifier manipulation
  • Shared agent memory
  • Conversation-state leakage
  • Inference or application caching
  • Tool authorization failures
  • Shared file stores
  • API object-reference weaknesses
  • Logging or observability systems
  • Incorrectly scoped service accounts

OWASP’s multi-tenant guidance explicitly identifies cross-tenant data leakage, broken tenant isolation, tenant impersonation, insecure object references, tenant-context injection, and shared-resource poisoning as key risks.

Attack Flow

1. Tenant Access
The attacker obtains legitimate or compromised access to Tenant A.

2. AI Surface Discovery
RAG, agents, memory, APIs, tools, files, search, and other AI capabilities are mapped.

3. Isolation Testing
The attacker probes whether tenant context is consistently enforced.

4. Boundary Manipulation
Queries, identifiers, metadata, semantic searches, or tool parameters are manipulated.

5. Isolation Failure
A shared AI component accesses information associated with Tenant B.

6. Context Contamination
Tenant B information enters retrieval results, agent memory, model context, cache, or tool output.

7. Model Disclosure
The AI exposes the information directly or indirectly.

8. Iterative Extraction
Additional queries are used to identify and reconstruct more cross-tenant information.

Affected Systems

  • Multi-tenant AI SaaS
  • Enterprise copilots
  • RAG platforms
  • Vector databases
  • AI agents
  • Agent memory systems
  • MCP integrations
  • Shared model infrastructure
  • AI search platforms
  • Customer-support AI
  • CRM-integrated AI
  • Shared caching systems
  • AI APIs
  • Document intelligence platforms
  • SaaS AI assistants

Business Impact

Cross-tenant leakage is particularly dangerous because the affected organization may not be the organization conducting the attack.

A single isolation failure in a multi-tenant AI product can potentially expose customer documents, conversations, intellectual property, financial information, source code, employee information, credentials, or regulated data belonging to completely separate organizations.

That can turn an AI security vulnerability into a customer-trust, contractual, regulatory, and incident-response event.

For SaaS providers and enterprises operating shared AI infrastructure, the critical testing question is:

Can one customer make your AI reveal, retrieve, remember, or act upon another customer’s data?

This is not hypothetical enough to warrant an unvalidated label. OWASP explicitly documents cross-tenant leakage as a multi-tenant security risk and specifically addresses cross-group leakage in vector/RAG architectures.

Testing Methodology

Authorized testing should create at least two isolated test tenants containing distinct synthetic sentinel data and attempt to cross the boundary from each direction.

Test:

  • Cross-tenant semantic retrieval
  • Tenant-ID manipulation
  • Resource-ID substitution
  • Vector namespace isolation
  • Metadata-filter bypass
  • Cross-tenant agent memory
  • Conversation isolation
  • Shared cache leakage
  • Tool and API authorization
  • File and document isolation
  • RAG chunk isolation
  • Cross-tenant search
  • Service-account scoping
  • Tenant switching
  • Deleted-tenant persistence
  • Authorization after user migration
  • Shared logs and observability data
  • Multi-agent delegation across tenants
  • Cross-tenant MCP resources
  • Prompt-based attempts to discover other customers

OWASP’s current RAG guidance specifically recommends auditing chunk isolation with cross-tenant test queries and verifying that zero cross-boundary results are returned.

A core Redbot validation should be:

Place a unique synthetic secret in Tenant B. Give Tenant A no legitimate access to it. Then attack every AI path capable of retrieving, remembering, inferring, or acting upon that information.

Detection Guidance

Monitor for:

  • Cross-tenant resource identifiers
  • Retrieval results crossing tenant boundaries
  • Tenant mismatches between user and tool calls
  • Cross-tenant vector queries
  • Shared-memory access anomalies
  • Unusual tenant switching
  • Users querying other customer names
  • Tenant-context changes during sessions
  • Cross-tenant cache hits
  • Service accounts accessing multiple tenants unexpectedly
  • Model responses containing foreign tenant identifiers
  • RAG chunks returned from incorrect namespaces
  • API calls referencing unauthorized tenant resources
  • Agent actions outside initiating tenant scope

Mitigation Guidance

  • Enforce tenant isolation server-side
  • Preserve tenant identity through the complete AI pipeline
  • Use permission-aware retrieval
  • Separate vector namespaces or indexes where appropriate
  • Apply tenant filters before similarity search
  • Never allow the model to determine tenant identity
  • Scope agent and service identities appropriately
  • Isolate persistent memory
  • Partition caches by tenant
  • Enforce object-level authorization
  • Validate tool calls against tenant context
  • Protect logs and observability pipelines
  • Remove tenant data completely during deletion
  • Test permission revocation
  • Log user → tenant → agent → tool → resource relationships
  • Continuously test cross-tenant boundaries

OWASP also recommends controls preventing cross-tenant leakage through shared infrastructure, retrieval, prompt assembly, caches, and shared model state.

MITRE Mapping

MITRE Mapping Depending on the resulting access: T1213 — Data from Information Repositories T1530 — Data from Cloud Storage T1078 — Valid Accounts T1005 — Data from Local System MITRE ATLAS should additionally be considered for AI-specific adversarial behavior.

OWASP Mapping

OWASP Mapping Strongly related to: LLM02:2025 — Sensitive Information Disclosure LLM08:2025 — Vector and Embedding Weaknesses Multi-Tenant Security — Broken Tenant Isolation RAG Security — Chunk Isolation OWASP explicitly documents cross-group leakage in shared vector databases as a Vector and Embedding Weakness scenario

Technical References

  • OWASP LLM02:2025 — Sensitive Information Disclosure
  • OWASP LLM08:2025 — Vector and Embedding Weaknesses
  • OWASP RAG Security Cheat Sheet — Chunk Isolation
  • OWASP Multi-Tenant Application Security Cheat Sheet
  • OWASP GenAI Data Security Initiative
  • NIST NCCoE — Software and AI Agent Identity and Authorization
  • NIST AI Risk Management Framework (AI RMF 1.0)
  • MITRE ATLAS — Adversarial Threat Landscape for AI Systems

Related Attack Intelligence