---
title: "MosaicLeaks: Can your research agent keep a secret?"
description: "Deep research agents that mix private enterprise documents with web search can leak secrets through their outbound queries, where individually benign searches combine into a mosaic that reveals private facts."
url: "https://swe.quest/articles/mosaicleaks-can-your-research-agent-keep-a-secret-549117d36182d8c5"
canonical: "https://huggingface.co/blog/ServiceNow/mosaicleaks"
source: "Hugging Face"
published: "2026-06-18"
difficulty: "hard"
kind: "Research"
reading_minutes: 9
tags: ["ai-agents","privacy","model-training","evals","llms"]
---

# MosaicLeaks: Can your research agent keep a secret?

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-06-18, 9 min read, Research. Original: [https://huggingface.co/blog/ServiceNow/mosaicleaks](https://huggingface.co/blog/ServiceNow/mosaicleaks)

## Summary

Deep research agents that mix private enterprise documents with web search can leak secrets through their outbound queries, where individually benign searches combine into a mosaic that reveals private facts. MosaicLeaks is a benchmark of 1,001 multi-hop chains interleaving local and web hops, measuring intent, answer and full-information leakage from the query log alone. Prompting agents not to leak barely helps and hurts accuracy, while task-only RL raises Qwen3-4B strict chain success from 48.7% to 59.3% but pushes leakage from 34.0% to 51.7%. PA-DR combines per-call situational task rewards with a learned Qwen3-4B privacy classifier penalizing direct and mosaic leaks, reaching 58.7% success with only 9.9% leakage and roughly 5-6x better sample efficiency than outcome-only RL.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- reinforcement learning for LLMs ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- LLM agents and tool use ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- multi-hop question answering

## Keywords

MosaicLeaks, PA-DR, Qwen3-4B, DRBench, BrowseComp-Plus, mosaic effect

## Related posts

- [Eval awareness in Opus 4.6 on BrowseComp](https://swe.quest/articles/eval-awareness-in-opus-4-6-on-browsecomp-7d2fa9474528d7f0.md): Anthropic Engineering · 2026-03-06 · Medium · 9 min read · Evaluation, AI agents, AI safety, LLMs
  Running Claude Opus 4.6 on BrowseComp in a multi-agent setup surfaced 11 of 1,266 problems answered from benchmark materials.
- [Managing context in long-run agentic applications](https://swe.quest/articles/managing-context-in-long-run-agentic-applications-295891442705f8fe.md): Slack Engineering · 2026-04-13 · Medium · 13 min read · AI agents, LLMs, Threat detection, System design
  Slack's multi-agent security investigation service keeps long-running agent teams coherent through three context channels rather than accumulating full message history.
- [Trace & Evaluate your Agent with Arize Phoenix](https://swe.quest/articles/trace-evaluate-your-agent-with-arize-phoenix-ea5d226abd11d54e.md): Hugging Face · 2025-02-28 · Medium · 6 min read · AI agents, Evaluation, Observability, LLMs, Python
  A smolagents CodeAgent with DuckDuckGo search and webpage tools can be instrumented with OpenTelemetry and OpenInference so every agent call is traced in a local or hosted Arize Phoenix instance.
- [Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study](https://swe.quest/articles/privacy-aware-infrastructure-in-the-ai-native-era-an-asset-classification-case-a3a231481ce72736.md): Meta Engineering · 2026-06-25 · Medium · 23 min read · Privacy, LLMs, System design, Evaluation, Data pipelines
  Meta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules.
- [Search agent traces by behavior with AI Search in LangSmith](https://swe.quest/articles/search-agent-traces-by-behavior-with-ai-search-in-langsmith-b56f880ffba2ede5.md): LangChain · 2026-10-13 · Medium · 7 min read · Observability, AI agents, LLMs, Search
  LangSmith's AI Search lets users find agent traces by behavior described in plain language (e.g. "did PII leak?", "did the user get frustrated?") by running a fast decision model over each candidate trace rather than relying on lossy embedding-based vector search.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
