AI identity at tool boundary: data leaks despite permissions
IBM describes how an AI assistant returned sensitive data because the user identity flipped to a broader service identity at a tool boundary.
You must verify that user identity and authorisation remain intact across every tool boundary, connector and retrieval point in your AI assistant chain. A single identity flip to a broader service account can expose data the original user was never permitted to see.
An analysis of 23 November 2026 of identity propagation across tool boundaries in AI assistants argues that local correctness in each system does not guarantee correct outcomes across the whole chain. The concrete case describes a user who accessed sensitive information through an AI assistant despite lacking direct permissions, because their identity switched to a service account at a tool boundary. In our assessment, this exposes a critical gap in how organisations test their AI systems: checking individual component permissions is not enough when those permissions can be bypassed by identity substitution at integration points.
How does identity get lost at tool boundaries?
When an AI assistant calls an external tool, connector or retrieval service, the user's identity context often does not propagate to that downstream system. Instead, the tool receives a call authenticated with a technical service account—one that typically has broader permissions than the individual user. The assistant then executes its query using those elevated credentials, retrieves data outside the user's scope, and returns it to the user. Each individual component may have correctly applied its own access rules. The end-to-end chain, however, has produced an unauthorised disclosure.
This pattern occurs wherever AI systems integrate with external data sources or services. An intermediate layer such as an MCP server, a connector, or a custom API may use its own identity rather than forwarding the original user's credentials. Once that substitution happens, the link between the data returned and the person authorised to receive it breaks.
What failure modes does this create?
- Identity substitution at tool boundaries — user credentials replaced by service account credentials during external tool calls.
- Unauthorised data retrieval — sensitive information accessed using elevated service permissions rather than user permissions.
- Accountability loss — unclear which identity was actually used when data was retrieved, complicating audit and compliance.
- Indirect exposure pathways — prompts, logs, embeddings, retrieval indexes and memory stores all contain copies of sensitive data outside the original authorisation scope.
- Cross-context propagation — data or context from one user session leaking into another through shared service identities or logging.
- Compliance ambiguity — unclear whether GDPR obligations apply to logs, embeddings and memory when they contain personal data accessed through service identities.
Which controls must you demonstrate?
- Document the identity used at every retrieval and tool call — record which user identity, service identity or intermediate account was active when each external system was accessed.
- Enforce least privilege per component — ensure each external tool, connector and service receives only the minimum permissions needed for its specific function, not inherited or ambient permissions.
- Propagate user identity across all boundaries — pass the original user's credentials or a delegated token to downstream systems rather than substituting a service account.
- Test the chain of identities end-to-end — audit not just whether individual systems enforce permissions correctly, but whether the sequence of identities from user to output remains authorised throughout.
- Designate a single owner for identity propagation — assign explicit responsibility for ensuring identity integrity across all tool boundaries, rather than distributing it system by system.
- Include logs, embeddings and memory in data governance — assess whether these components should be registered under data retention policies and GDPR obligations, rather than treated as technical infrastructure.
What should your legal and compliance teams do?
Organisations should obtain separate advice on GDPR obligations when an AI assistant can return data outside a user's direct permissions. The technical authorisation controls of external connectors and APIs should be documented explicitly rather than assumed to be covered by data processing agreements. Contracts with tool providers should specify which identity each service uses and which authorisation controls it enforces. Compliance and audit functions must extend their scope beyond checking local user permissions to testing the actual identity used at every retrieval, connector and tool call.
How should you test your current setup?
The central test is not whether your model has access to data, but whether authorisation demonstrably remains intact from user to output. An organisation that assesses its copilot only on individual permission settings will miss exactly the failure described here. Create a test case in which a user without direct access to a dataset attempts to retrieve it through an AI assistant connected to an external tool. If the assistant returns the data, your identity propagation has failed. If it does not, verify that the refusal occurred because the original user's identity was enforced, not because the service account lacked permissions for an unrelated reason.
Tooling can help you log and monitor which identity was active at each step, and can enforce least privilege policies at the component level. What tooling cannot do is determine whether your organisation's risk tolerance accepts the residual exposure, or whether your legal obligations under data protection law have been met. That remains your own professional judgement.
Sources: This article draws on reporting and guidance from IBM, Microsoft Learn, ACM and Frontiers in Computer Science.
Written by
Marit Halversen
Covers AI governance and regulatory design, with a focus on how compliance obligations land on architecture rather than on paperwork.