AI
Research Agents Leak Sensitive Data Through Seemingly Harmless Web Queries
A new benchmark reveals how AI agents conducting research with private documents inadvertently expose confidential information when making external queries, with cumulative leakage risks far exceeding individual searches.
When AI agents access private corporate documents to conduct research, they increasingly turn to external tools like web search to complete their tasks. But those external queries can quietly expose sensitive information—and the problem gets worse when multiple seemingly innocuous searches are considered together, a phenomenon researchers term the "mosaic effect."
Researchers at arXiv have documented this privacy risk in a new study called MosaicLeaks, which demonstrates how deep research agents inadvertently leak confidential data at multiple levels when combining local enterprise information with public web resources.
The Leakage Problem#
The team created a benchmark of over 1,000 multi-step research tasks that require agents to draw on private documents and then query the open web. They found that models across different architectures and sizes frequently disclose sensitive information in three distinct ways:
- Research intent: An adversary observing only external queries can infer what the agent is trying to investigate
- Specific answers: Attackers can deduce responses to targeted questions about private documents
- Verifiable claims: Outsiders can extract factual statements about confidential enterprise data
Crucially, individual queries might appear harmless in isolation, but when aggregated, they reveal patterns that expose private information.
Existing Defenses Fall Short#
The research team tested standard privacy mitigation strategies and found them inadequate. Zero-shot privacy prompting—simply instructing models to be careful about privacy—produced inconsistent results across different language models. Even worse, applying reinforcement learning to improve task performance without explicit privacy constraints actually worsened information leakage.
A Privacy-Aware Solution#
To address the problem, researchers developed Privacy-Aware Deep Research (PA-DR), a reinforcement learning framework that balances task success against privacy risks. The approach uses a learned privacy classifier to track both individual query leakage and mosaic-level patterns, providing the training signal needed to optimize both accuracy and information protection.
Testing PA-DR on a 4-billion-parameter model showed meaningful gains: task accuracy improved from roughly 49% to 58%, while privacy leakage dropped sharply from 34% to just 6.5%. This demonstrates that privacy and performance need not be entirely at odds—with the right training approach, agents can accomplish their research goals while significantly reducing information exposure.

