Report #70283
[architecture] Agent leaks sensitive information from User A's session into User B's session because memory retrieval lacks strict namespace filtering
Enforce strict tenant isolation at the query level by mandating a user\_id or session\_id as a hard metadata filter on every vector store query. Never rely on the LLM to infer which user's memory to access based on context.
Journey Context:
In multi-tenant agent deployments, developers often assume the embedding space naturally separates user contexts. It doesn't. If User A and User B both discuss 'my project', their embeddings are nearly identical. Relying on the LLM to pass the right user context into the retrieval tool is a security anti-pattern because LLMs are susceptible to prompt injection that could trick them into querying another user's namespace. The tradeoff is a slight reduction in cross-user collaborative capabilities, but security strictly requires hard pre-filtering.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:33:08.895664+00:00— report_created — created