Cross-Tenant Data Leakage Risks in AI Platforms: Causes and Defenses

    This article examines how multi-tenant AI application platforms can leak one customer's conversations and uploaded files to another tenant. It explains four recurring flaw categories—missing resource ownership checks in tracing configuration, path traversal in plugin daemons, broken access control in file handling, and outdated components with known vulnerabilities—along with the engineering reasons behind them. It then outlines layered defenses, including dependency governance, framework-level authorization middleware, gateway exposure reduction, monitoring, key and data minimization, and cloud-native isolation controls, plus the priority actions for platform users and builders.

    1. Background: Why AI Platforms Became a New Attack Surface

    A recently disclosed security incident showed that a widely deployed class of multi-tenant AI application platforms contained multiple high-severity flaws. An attacker could read other customers’ conversation records and uploaded files without passing any tenant identity check. The potential blast radius covered over a million workflows, chatbots, and retrieval-augmented generation (RAG) pipelines driven by the platform. These platforms are already used by many enterprises in manufacturing, logistics, electronic components, and life sciences. Once isolation fails, what leaks is not just text but also internal business semantics and knowledge base content.

    The problem does not lie in the model itself but in the engineering architecture that hosts it. Modern AI systems typically take the form of microservices plus containerization plus multi-component orchestration: a control plane for tenants and quotas, a data plane for inference and retrieval, a plugin plane for extended capabilities, and a file plane for multimodal input. The more components there are, the blurrier the trust boundaries become, and the harder it is for traditional defenses built around “network perimeter plus host hardening” to cover everything. Traditional security tools mainly detect known signatures and anomalous network traffic, while logic-level authorization flaws look completely legitimate at the protocol layer and are therefore almost invisible.

    2. Technical Root Causes of Four Typical Flaw Categories

    2.1 Broken Write Access Control in Observability/Tracing Configuration

    The most severe category: the write endpoint for the observability/tracing toggle verified only whether the caller was logged in, not whether the caller owned the target application. By enumerating or guessing application identifiers, an attacker could enable tracing on a victim’s application and continuously exfiltrate all prompts and model responses to a receiver under their own control, creating a persistent, low-noise data exfiltration channel.

    The root cause is a missing authorization object: the endpoint mistook authentication for resource authorization. The correct approach is to derive the tenant identifier from the session and bind it to resource ownership, rather than trusting any field in the request body:

    1. # Bad: only checks login state, not resource ownership
    2. @app.post("/apps/{app_id}/tracing")
    3. def enable_tracing(app_id: str, body: TracingIn, user=Depends(current_user)):
    4. return tracing_service.enable(app_id, body)
    5. # Good: derive tenant from the server-side session, enforce ownership check
    6. @app.post("/apps/{app_id}/tracing")
    7. def enable_tracing(app_id: str, body: TracingIn, user=Depends(current_user)):
    8. app = app_repo.get(app_id)
    9. if app is None or app.tenant_id != user.tenant_id:
    10. raise HTTPException(404) # return 404 uniformly to avoid leaking resource existence
    11. return tracing_service.enable(app_id, body)

    2.2 Path Traversal in the Plugin Daemon

    Extended capabilities are usually hosted by a separate daemon whose internal API is exposed to the container network and performs no authentication by default. When input handling lacks normalization and root-directory confinement, a request such as GET /files/..%2f..%2fetc%2fpasswd escapes the intended directory and reads internal configuration, credentials, or reaches undocumented management endpoints. The risk of these endpoints is amplified by the assumption that “the internal network is trusted.”

    The fix is to normalize first, then enforce a prefix check, and reject any absolute path or encoded bypass:

    1. import os
    2. from pathlib import Path
    3. ROOT = Path("/srv/plugin_data").resolve()
    4. def safe_join(name: str) -> Path:
    5. p = (ROOT / name).resolve()
    6. if p != ROOT and ROOT not in p.parents:
    7. raise PermissionError("path traversal blocked")
    8. return p

    In addition, the daemon should reject non-local sources by default, and management endpoints need independent authentication rather than the “reachable means authorized” model.

    2.3 Missing Indirect Access Control in File Handling

    Multimodal capabilities make files first-class citizens, but file access often relies solely on a globally unique identifier (UUID) as the credential. The issues reproduced by researchers include previewing another user’s uploaded document without authorization, downloading PDFs and images with only a file UUID, and attaching an existing file identifier to a new message to induce the model to “read out” the file content and echo it back to the attacker. The first two are capability URL failures; the latter is indirect prompt injection, where the file becomes a vehicle for moving unauthorized data into the model context.

    The governance strategy has three layers: first, download and preview endpoints must enforce a three-way check of tenant, session, and resource; second, file identifiers should be issued per tenant domain to avoid being globally guessable; third, before file content is injected into the context, re-verify ownership and classify content, and prohibit cross-session reuse of content with a high sensitivity level.

    2.4 Legacy Risk from Outdated Components

    Beyond logic flaws, the platform also referenced an older document rendering component with use-after-free (UAF) vulnerabilities. Such flaws can be triggered by a crafted malicious document uploaded by an attacker, and they often remain in production long after an upstream fix—in this incident, the component stayed in production for about 18 months. The root causes are the lack of continuous verification of the dependency inventory and the fact that untrusted file parsing was not run in a restricted sandbox.

    3. Defense in Depth and Mitigations

    • Version and dependency governance: Maintain a software bill of materials, continuously compare against upstream advisories, and run high-risk parsers such as document parsing and image processing in low-privilege, network-disabled, read-only filesystem sandbox processes with both timeout and memory quotas.
    • Unified authorization middleware: Push tenant isolation down to a framework-level capability, so every endpoint that accesses resources by identifier enforces an ownership check by default, and forbid individual business teams from implementing their own.
    • Gateway and exposure reduction: Intercept path traversal and abnormal encoding signatures at the ingress gateway, default-deny plugin and management paths, keep the control plane off the public internet, and require operations access through a jump host or zero-trust channel.
    • Observability and alerting: Establish baselines and real-time alerts for tracing configuration changes, cross-tenant identifier access, and high-frequency file enumeration; centralize logs into the logging service and monitoring/alerting system, and retain a traceable evidence chain.
    • Key and data minimization: Shared vector retrieval, object storage, and message queues across tenants need per-tenant prefix isolation bound to temporary credentials, avoiding “one key for everything.”
    • General cloud capabilities: Use the container platform for namespace and network policy isolation, object storage for bucket-level and prefix-level policies, and the key management service for credential rotation, forming auditable boundaries.

    4. Conclusion

    Cross-tenant eavesdropping is not a single-point vulnerability but the combined result of three mental models: authentication replacing authorization, the internal network being trusted, and identifiers being reliable. For users, the most urgent actions are upgrading to the fixed version, reducing public exposure, and completing ownership checks and file access auditing. For platform developers, tenant isolation should be made a non-bypassable platform capability, and untrusted file parsing and third-party dependencies should be brought into routine security operations.