Deep research agents that combine private local documents with external web tools pose a significant privacy risk: their outbound queries can leak sensitive information. A new study, MosaicLeaks, highlights this 'mosaic effect', where seemingly innocuous web searches can be pieced together to reveal confidential data.
Researchers developed a benchmark with multi-hop questions that mix public and private information. They found that agents frequently leaked private details when performing web searches, and training solely for task performance worsened the issue. Their proposed solution, Privacy-Aware Deep Research (PA-DR), drastically reduces leakage while improving task success rates.
Understanding Privacy Leakage
The problem is illustrated with a healthcare example: an agent working on a routine question makes several harmless-looking web searches. Though no single query gives away the secret, an observer can combine them to infer internal company facts. The study categorizes leakage into three levels:
- Intent leakage: The adversary determines what the agent is investigating.
- Answer leakage: The adversary can answer specific private questions.
- Full-information leakage: The adversary discovers private facts without knowing the questions.
Building the MosaicLeaks Benchmark
The benchmark includes 1,001 multi-hop research chains across enterprise documents and a controlled web corpus. Each chain requires the agent to retrieve private local information before making relevant web queries, increasing the likelihood of leakage. The dataset is split into training, validation, and test sets.
An example chain: To answer a question about a company's cloud migration, the agent first retrieves private data (e.g., "70% migrated by January") and then searches the web for a related tech disclosure, inadvertently leaking the private details in the search query.
Agent Harness and Testing
The researchers used a simplified agent harness where the model answers each sub-question with a short answer and justification. Tools include plan, choose, read, and resolve. Each agent's queries were logged to measure leakage.
Simple Prompts Don't Fix the Issue
Adding a simple instruction to avoid leaking information only marginally reduced leakage for some models and often hurt performance. For Qwen3-4B, leakage dropped from 34% to 25.5%, but strict chain success fell from 48.7% to 44.5%. The main behavioral change was fewer web queries, not safer queries.
Training for Performance Worsens Leakage
Surprisingly, training agents to improve task performance increased leakage. The researchers found that agents optimized for accuracy tended to use more informative queries, which also made them leak more.
The Proposed Solution: PA-DR
To address this, they introduced Privacy-Aware Deep Research (PA-DR), a reinforcement learning method that trains agents to balance task accuracy with privacy. The approach reshapes rewards to penalize queries that leak private information. Results show strict chain success rose from 48.7% to 58.7%, while answer/full-information leakage dropped from 34.0% to 9.9%.
This work highlights a critical security challenge for AI agents and offers a promising path toward safer, privacy-preserving research assistance.