Glossary
AI agent data leakage
AI agent data leakage is the unintended exposure of sensitive information through an agent's outputs, tool calls, links or rendered content. It often follows prompt injection, which turns a helpful agent into a channel for exfiltration.
Updated
What AI agent data leakage is
An agent often holds sensitive material in its context, such as customer records, internal documents and tool results. Data leakage happens when some of that material leaves the boundary where it belongs, by accident or because an attacker steered the agent.
The risk grows with capability. An agent that can browse, call tools and send messages has many ways to move data, and each one is a possible exit.
How data leaves an agent
Leakage is rarely a single dramatic event. It usually uses ordinary features in an unintended way.
- Outputs: the agent repeats confidential text in a reply to the wrong person.
- Tool calls: the agent passes sensitive data as a parameter to an outside service.
- Links: data is encoded into a URL that the user or the agent later opens.
- Markdown images: a rendered image URL carries data in its query string, so the browser sends it out when the image loads.
- Logs and memory: secrets are stored where later runs or other users can read them.
Examples and scenarios
A document contains a hidden instruction: summarise the conversation and add it to an image link pointing at an address the attacker controls. The agent follows it, the chat interface renders the image, and the summary is sent out without any visible sign.
In another case, an agent with broad database access answers a question for one user and includes rows that belong to another. No attacker is involved. The access was wider than the task needed.
Common practices
The most reliable defence is to limit what the agent can reach in the first place. Narrow data access, short-lived credentials and separation from business systems reduce the amount that could leak.
Leakage can also be quiet. Because many of these paths look like normal behaviour, such as a link in a reply or a call to a documented tool, they are easy to miss in review. Evidence of each action helps teams investigate after an incident, and boundaries set in advance limit what there is to find.
Teams also control egress, by allowing outbound requests only to approved destinations. They filter or disable rendering of external images and links in agent output, check outputs for sensitive patterns, and hold outbound messages for review. Testing with hostile inputs before release shows where the gaps are.
How Cager handles AI agent data leakage
Cager addresses data leakage through outputs as one of its core threats. Builders set boundaries for data, web, actions and credentials, and Cager checks sensitive actions, including outbound messages, against policy before they execute.
Each agent runs in its own isolated microVM, and credentials stay outside the agent. Cager does not require customer content to become shared training data. Every governed action is recorded as verifiable evidence, so reviewers can see what an agent did.