
Most data loss controls were built around a visible event. A file is attached, a message is sent, a record is downloaded, and somewhere a log captures a person doing something they can be asked about afterwards.
An agent working through a task breaks that assumption in a quiet way. It can expose sensitive information through channels that never render to a screen, never produce a user action, and never look like a transfer at all.
An agent does not need to display data because disclosure happens anywhere information moves, and most of an agent's movement happens outside the response the user eventually reads.
The visible answer is the last step of a longer process. Before it arrives, the agent has queried systems, passed values between tools, retrieved context, written to logs, and contacted external services. Each of those is a place information travels, and none of them is a screen.
That distinction matters because it separates two things people usually treat as one:
Access is whether the agent may retrieve the data.
Disclosure is whether the data should leave during this particular interaction, through this particular channel, to this particular destination.
An agent can clear the first test and fail the second without anything appearing unusual.
Sensitive data, such as personally identifiable information (PII), payment card industry (PCI) data, and protected health information (PHI), surfaces in seven places across an agent workflow, and only one of them is the response the user sees.
Reasoning traces are the one worth pausing on, and the research on them is unsettling.
They are the agent's intermediate working, the steps between the question and the answer. Providers including Anthropic, OpenAI, and Google deliberately do not store them server-side. Instead they return the chain of thought to the client as an encrypted block, which the client passes back with each subsequent request.
That design avoids storage costs for the provider. It also means the traces end up wherever your logs end up.
A team from the ELLIS Institute Tübingen, the Max Planck Institute for Intelligent Systems, MATS Research, and Snyk collected 6,708 publicly available agent trajectories from GitHub and Hugging Face, decoded 315,320 reasoning blocks, and found real secrets inside: 367 personally identifiable information artifacts and 182 credentials, including 62 API keys, 33 passwords, 24 access tokens, and 7 private keys. Of the 6,708 sessions, 4.9 percent leaked at least one genuine sensitive item.
Two findings from that work matter more than the headline numbers.
Some of the leaked data was never in the conversation. Of the artifacts recovered from genuine user sessions, 64 appear nowhere in the visible chat history. They surfaced only in the hidden reasoning.
Asking the agent to clean up made it worse. The researchers identified a recurring trigger: when a user asks an agent to anonymize or tidy a session, the model re-reads the full history in its hidden reasoning and restates the sensitive values it is being asked to remove. The visible transcript comes back clean. The trace now contains everything.
And because the blocks are encrypted, users cannot inspect or sanitize them. The only safe option is deletion.
The specific decoding technique was responsibly disclosed and the providers have since mitigated it. The traces already published remain published.
Legitimate access becomes a disclosure path when an attacker stops trying to obtain the data and starts influencing what the agent does with data it is already permitted to hold.
This is a meaningful shift in the threat model. There is no credential to steal and no permission boundary to cross, because the agent already has both. The attacker only needs to shape the instruction.
Mandiant has documented similar attack chains during red-team assessments, where an agent's own permissions become the delivery mechanism. A persistent malicious instruction planted where an agent will reliably read it, such as a user's application profile, can direct that agent to send private information to a destination the attacker controls every time the user logs in. The agent already has access to the data and the ability to send a message. The malicious prompt simply connects two legitimate capabilities into an unauthorized path.
Nothing in that chain required a vulnerability in the conventional sense.
Conventional data loss prevention (DLP) watches the channels people use, and an agent moves data through channels built for software.
Email gateways, endpoint agents, and web filters are all positioned where a person would act, and none of an agent's channels resembles one: a tool argument carrying a customer record is not an email, a reasoning trace is not a file, and an API call to an approved service is not a download. The content may be identical, and the control still never sees it, because it is not watching that path.
There is a second gap. Most controls make a binary decision: allow the transfer or block it. That works poorly for agents, which frequently need the structure of sensitive information without needing the values. An agent summarizing claims data needs to know the shape of a record, not the policy numbers inside it. Additionally, if an AI agent encounters a blocked piece of data, it tends to resort to a loop pattern as it searches for a viable answer. This can lead to both a hallucination and a loss in productivity as the agent is unable to complete its prompt.
Good coverage inspects information as it moves through the workflow rather than at the point a person would have clicked something, and it masks where masking is enough rather than blocking everything.
Menlo AI Adaptive DLP identifies regulated and sensitive information as it moves into and out of agent workflows, covering text, files, uploads, downloads, and outbound requests. Where the agent needs context but not the underlying values, protected data can be masked in place so the workflow continues on anonymized content. Where masking is not sufficient, policy can prevent the transfer outright.
Menlo Agent Runtime Security (MARS) governs the path itself, authenticating agents individually and controlling which destinations and resources each one can reach, so the number of places data could go is bound before any inspection happens.
The combination matters more than either part. Narrowing the destinations reduces the surface; inspecting what moves handles what remains.
Start by finding out where your agents' data actually goes, because most organizations have never mapped it.
How do AI agents leak sensitive data? Through seven paths: tool arguments, retrieved context, logs, reasoning traces, file transfers, API requests, and workflow communications. Only the final response is visible to the user, so most disclosure happens where nobody is watching.
What are reasoning traces? The agent's intermediate working between receiving a task and producing an answer. Major providers return them to the client as encrypted blocks rather than storing them, so they travel into your logs and transcripts. Research published in 2026 recovered API keys, passwords, and personal data from traces in publicly published agent sessions.
Can't existing DLP handle this? Conventional tools watch the channels people use, such as email, endpoints, and web uploads. Agents move data through tool arguments, API calls, and traces, which those controls are not positioned to inspect.
Does the attacker need to steal credentials? No, and that is what makes this different. When an agent is already permitted to access protected information, an attacker only needs to influence how that access is used rather than obtain it.
Should sensitive data be blocked outright? Not always. Agents frequently need the structure of sensitive information without the underlying values, so masking lets the workflow continue while the protected content stays behind. Blocking is appropriate where masking would not provide enough protection.
What should be checked first? Whether reasoning blocks appear in any agent transcripts your teams have committed to repositories or shared externally. Because the blocks are encrypted, sanitizing the visible text does not remove what is inside them, and the recommended practice is to strip reasoning blocks entirely before publishing a trace.
About the Author
Sameep Gidda is a Digital Marketing Campaigns Specialist at Menlo Security. Focused on GEO strategy, content marketing, and AI visibility, Sameep works to ensure that Menlo Security expertise in browser security and agentic AI reaches the security professionals who need it most.
This article draws on How MARS Neutralizes the Agentic Attack Surface, based on the OWASP GenAI LLM Top 10 2026. Download the eBook for the full analysis.
Ready to see it in practice? Schedule a Demo Here.
Menlo Security
