Blog

Multi-tenant AI leaks data via shared caches: four hard isolation boundaries that must be auditable

Research shows cross-tenant leakage via shared KV caches in LLM inference. Four hard isolation boundaries and what accountable parties should now audit.

· By

Overhead view of a hall split into four separated sections by glass walls, each with its own cabling and cooling, with keys beside a glass door.
Multi-tenant AI requires four hard isolation boundaries that must be demonstrably active per request.Image: IamVera.ai — original editorial illustration

Recent research shows that authentication and encryption are not enough: multi-tenant AI can leak confidential data between tenants via shared inference caches, retrieval and tool use. Reliable isolation requires authorisation before context assembly, tenant-bound state, cryptographically separated cache namespaces and attestation that releases keys only to a verified runtime.

The direct trigger is a study from August 2026, Governing the KV Cache, which demonstrates that shared so-called KV caches in multi-tenant LLM inference can form a timing channel. A legitimate tenant can, through measurable differences in response time, infer information about prompts or structured prompt fields submitted by another tenant to the same system, without direct access to that session. The study measured the timing channel on real hardware, while parts of the proposed defence remain simulation-based. The researchers confirmed the timing channel on real hardware and propose, as a defence, binding cache keys to a per-user derived, secret value (an HMAC salt). They stress that this still partly relies on simulation.

That touches a widespread assumption: that a shielded login process and encrypted transport are enough to separate customers or projects from one another. In a shared model this is not the case. Three other recent studies together reveal that the leak sits in more places than the cache alone, and that isolation must be designed as a layered boundary.

What exactly does the research into KV cache timing side channels show?

The study shows that cache keys that are not bound to the issuing user form an oracle: the system is faster when an earlier input is already in the cache, and that time difference betrays information about what others entered. The proposed solution separates caches cryptographically per user and in doing so distinguishes prefix caches from semantic caches, the latter requiring a separate index partition.

The researchers are explicit about the limits of their work: the timing channel has been measured, but the full defence is partly simulated and the so-called boundary salting has not been tested end to end. The study does not prove that every production setup is leaky. Our assessment is that a shared cache without per-user binding should be treated as an attack surface, and that operators should require evidence that the relevant leakage path has been closed.

Which four hard boundaries does a defensible multi-tenant AI architecture need?

Four recent academic sources together point to four complementary boundaries that a defensible multi-tenant AI architecture should evaluate; relying on only some of them can leave distinct isolation risks unaddressed.

  • Authorisation before context assembly. The study Securing the Agent reports that relevance ranking does not enforce access control: without a gate on retrieval, context leaked between tenants, whereas attribute-based access control (ABAC) before retrieval blocked that leakage. The study therefore supports authorisation before retrieval and context assembly, so that unauthorised context is not offered to the model.
  • Tenant- and session-bound state. Conversation history, tool results and caches must remain separated per user, project or session, with server-side orchestration and default-deny.
  • Cryptographically separated cache namespaces. Per-user derived salts around shared cache mechanisms, with separate partitioning for semantic caches.
  • Attestation at key release. Decryption keys and sensitive context are only released to a runtime that first proves who and what it is.

Our assessment: none of these measures stands alone. In our assessment, inadequate cache separation can leave a timing-leakage path open, while an untrusted infrastructure administrator may be able to access protected execution state unless key release and execution are bound to an attested environment. This layered thinking aligns with what we described earlier about the workflow around the model as the attack surface.

Why is encryption of data at rest and data in transit not enough here?

Because the vulnerability sits in data in use: the moment the model actually computes with plaintext. The study EnclaveX describes an architecture with trusted execution environments on CPU and GPU, remote attestation and key issuance at application level. The paper describes that, under its threat model, a Kubernetes administrator could otherwise gain access to confidential VM contents, and that decryption keys should therefore only be supplied to the application after a successful attestation.

A fourth study, Attestation is All You Need, adds a runtime layer to this: it cryptographically couples a behavioural profile to an assignment and checks during execution which files, network connections, tools and data volumes an agent uses, with correlation between agents to detect shared storage as a hidden channel. The authors report that the guarantee depends on correct policy profiles and a trusted kernel, collector and scheduler. This aligns with our earlier analysis of AI agents as a runtime system with external containment.

What does this mean for directors, lawyers and CISOs who have to account for AI output?

Our analysis: In our analysis, inadequate controls around shared caches or retrieval can expose data between tenants without an attacker entering another tenant's session, so the audit question shifts from "is the system encrypted?" to "can it demonstrate per request which boundaries were active?"; this is why a CISO should, at the next vendor assessment, require that the platform can present per request the principal, tenant, project, session, cache namespace, tool permissions, context sources and attested runtime. Our analysis is that lawyers and directors who must be able to defend AI decisions benefit from a dossier that, alongside the usual access logs, also includes evidence of cache isolation and attestation. Because the examined defences are prototypes with acknowledged limitations, no one should read the label "multi-tenant" as reassurance; this is why the sensible line is not to take vendor statements as true but to ask for reproducible evidence, as the call for independent verification of frontier AI also advocates. Because an attestation is only meaningful if its outcomes are retained and traceable, an organisation would do well to agree who records attestation evidence, policy versions and release decisions and for how long, before an incident answers that question.

As a summary for the procurement and audit agenda:

  • Ask for demonstrable bindings per request: principal, tenant, project, session, cache namespace, tool permissions and attested runtime.
  • Include in the contract an inspection right over cache isolation and attestation evidence, not only over access logs.
  • Record who retains attestation outcomes, policy versions and deviations, and for what period.
  • Treat "multi-tenant" as a claim that requires evidence, not as reassurance.

These measures fall under broader AI security and the protection of AI systems governance and also touch the contractual side we described earlier under audit rights and inspection evidence in AI contracts.

Sources and references

  1. Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM InferencearXiv · 2026-08-10
  2. Securing the Agent: Vendor-Neutral, Multitenant Enterprise Retrieval and Tool UsearXiv · 2026-05-06
  3. EnclaveX: End-to-End Confidential AI with CPU/GPU TEEsarXiv · 2026-06-30
  4. Attestation is All You Need: Toward a Zero-Trust Architecture for HPC AI AgentsarXiv · 2026-11-24

Sources: The article draws on four arXiv studies about multi-tenant LLM inference: Governing the KV Cache, Securing the Agent, EnclaveX and Attestation is All You Need.

← All articles in this topic ← All articles

Review the answer before you rely on it.

Start with a sample question. See what Vera checks, what it changes and what still needs your judgement.