Control · C-037 · Security & Resilience

Tenant and session isolation

Every stateful component of an AI system, including caches, memory, retrieval indexes and fine-tuned models, is partitioned by customer and user, and the partitioning is tested.

Control type
Preventive
Risks addressed
3
Audience
Heads-of · Practitioner
Frameworks
AML.M0019 · Article 32
Reviewed
2026-11-10

What it does

It keeps one party's data out of another's session by construction, in each place where an AI system holds state. The standard to meet is that no instruction, error or optimisation can cause the boundary to be crossed. Engineering owns it; the system owner is accountable for separation. It is designed in and re-tested at every change that adds or alters a stateful component.

How to implement it

  • List every component that retains anything between requests.
  • Include user and tenant identity in every cache key and memory key.
  • Use separate indexes, or enforced filters, per tenant for retrieval.
  • Do not share fine-tuned weights between customers unless the training data may be shared.
  • Enforce separation in code and infrastructure, never by instruction to the model.
  • Test with paired accounts that attempt to obtain each other's data.

Evidence it operates

Design: an inventory of stateful components with the isolation mechanism for each. Operation: cross-tenant test results for each release; configuration showing identity in cache and memory keys; no shared model serving customers whose data was used to tune it.

Where it fits

Built at design and verified before each release. It is the primary control for cross-tenant and cross-session leakage and supports vector store access controls and agent memory controls.

Limits

Isolation is defeated by the one component nobody listed, typically a cache added later for performance. It does not address disclosure within a tenant to users with differing rights, which needs permission-aware retrieval. Suppliers' components need the same scrutiny: a hosted model or vector database that caches across customers undoes isolation built above it.

Risks this mitigates

Primary mappings

Cross-tenant and cross-session leakage High
Partitions caches, memory, indexes and tuned models by customer and user, and tests the partition. Caches, memory, fine-tuned weights or shared context expose one user's or customer's data to another.

Supporting mappings

Agent memory and context poisoning High
Stops one user's memory reaching another. False or hostile content is written into an agent's persistent memory or shared context, so later sessions and other users inherit corrupted instructions or facts.
Vector and embedding weaknesses Medium
Keeps one customer's embeddings from being retrieved for another. The store of embeddings behind a retrieval system lacks the access control, validation and separation applied to other data stores, so its contents can be read, inferred or altered.

Framework and clause references

FrameworkClauseTitle
MITRE ATLASAML.M0019Control Access to AI Models and Data in Production Access control in production.
UK General Data Protection RegulationArticle 32Security of processing Security of processing.

Related terms

How to cite

Axiom Verity (2026). Tenant and session isolation. Reference Library, C-037. https://axiom-verity.com/controls/tenant-and-session-isolation. Reviewed 2026-11-10.