Cross-Tenant Context Leak
When one agent serves many customers, its context is data.
What Is Cross-Tenant Context Leak?
An AI agent serving many customers keeps a working context and a memory, and both are data. If neither is scoped to a single session, information pulled for one customer surfaces in the next customer's conversation with no tool misused, no access control broken and no attacker involved. You'll run two sessions and watch one customer's invoice and card details appear in another's answer, prove from the tool trace that no lookup fetched the wrong record, then enforce per-session context and ephemeral memory at the gateway.
What You'll Learn in Cross-Tenant Context Leak
- Recognize that an agent's working context and memory are data, and that sharing them across sessions leaks one caller's data into another's
- Explain how a multi-tenant agent can disclose one customer's account in another customer's session with no tool misused and no attacker involved
- Read a tool trace to prove the leak came from carried-over context, not from a lookup that fetched the wrong customer
- Apply the durable fix: scope context per session and make memory ephemeral, enforced by default at the gateway
- Distinguish default isolation at the boundary from clearing context by hand, and explain why a control that can be forgotten will be
- Prove a per-session isolation fix by replaying the exact session that leaked, and recognize that a cross-tenant disclosure is a reportable incident even after the fix
Cross-Tenant Context Leak — Training Steps
-
A Customer Saw Someone Else
Sarnholt's support desk runs an AI agent that looks up customer accounts. This morning a customer reports it did more than that.
-
One Session Into Another
Read the report for what it establishes: not a wrong answer, but the wrong customer.
-
The First Session
On the left screen, Alice opens the support agent to replay the earlier customer's session, the one whose data leaked.
-
Renata's Account
The first customer, Renata Voss, is asking why her invoice is still overdue. Alice runs the lookup, exactly as a support agent would.
-
Correct, and Now Remembered
Nothing is wrong here. Renata asked about her account and got her account. The problem is what happens to it after.
-
The Second Session
A different customer, Tomas Ek, has an unrelated question. Alice opens his session on the right screen, the way the support desk handles the next ticket.
-
Tomas Asks About Tomas
Tomas only wants to know when his next payment comes out. His request mentions no one else.
-
There It Is
Tomas's own details are right. It is the second paragraph that should never exist.
-
What Failed
The agent answered, the tool ran once and correctly, and a customer still saw another customer's data. Name the failure.
-
Where Isolation Lives
Whether a session is a boundary is not something to fix inside one ticket. It is a policy the gateway enforces for the agent.
Security Framework Coverage
OWASP MCP Top 10
- MCP10:2025 Context Injection & Over-Sharing
CWE
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- CWE-488 Exposure of Data Element to Wrong Session
CIS Controls
- CIS 16 Application Software Security
NIST CSF
- PR.AT-02 Individuals in specialized roles are provided with awareness and training so that they possess the knowledge and skills to perform relevant tasks with cybersecurity risks in mind
- PR.PS Platform Security