---
id: 10830
lang: en
title: "ServiceNow: AI Agent Leaks Corporate Secrets Through a Chain of Search Queries"
published_at: "2026-07-02 19:20:55"
source_name: "Hugging Face Blog"
source_url: "https://huggingface.co/blog/ServiceNow/mosaicleaks"
canonical_url: "https://news.hamidun.com/en/news/10830"
categories: ["autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# ServiceNow: AI Agent Leaks Corporate Secrets Through a Chain of Search Queries

> **Краткая суть (BLUF):** ServiceNow researchers found that an AI agent for enterprise search leaks confidential data through ordinary search queries, a "mosaic effect." The central paradox: the more precisely the agent searches, the more leaks out.  Training for quality raised task success from 48.7% to 59.3%, but leakage rose from 34% to 51.7%.  The proposed fix, PA-DR, cuts leakage to 9.9% without losing effectiveness.

ServiceNow researchers have published MosaicLeaks on Hugging Face, the first systematic analysis of how AI agents for deep search can unintentionally expose confidential corporate data. The culprit is neither a hack nor a bug in the code, but the very nature of search queries.

## The mosaic effect: harmless pieces add up to a secret

The name of the paper refers to the "mosaic effect" from intelligence theory: individual public facts are safe on their own, but together they form a complete picture. An AI agent working with corporate documents sends a series of queries to a search engine. Each one looks innocent. But an outside observer who sees the whole sequence can reconstruct confidential information: infrastructure migration timelines, details of security incidents, internal projects.

The researchers formalized three types of leakage:

- **Intent leakage**: the queries reveal exactly what the agent is investigating
- **Answer leakage**: answers to closed questions can be inferred from the queries
- **Full-information leakage**: the observer finds private facts on their own, without knowing what to look for

## The paradox: more accurate means more dangerous

The most counterintuitive finding: standard training of an agent for maximum search accuracy makes it more dangerous from a privacy standpoint. The baseline untrained agent solved tasks successfully in 48.7% of cases. After training on the task metric alone, success rose to 59.3%. But the leakage rate also rose, from 34.0% to 51.7%.

The mechanism is simple: to find the right document, the agent writes more precise and more informative queries. That helps the search engine, and it also reveals more to an outside observer.

> "More informative queries help the agent find the right documents, but at the same time reveal to an observer more context about what is being sought."

## PA-DR: training with a dual reward

ServiceNow proposes the **Privacy-Aware Deep Research (PA-DR)** architecture, a system in which the agent is optimized for two goals at once.

**Situational rewards.** In standard RL, the agent is rewarded only for the final correct answer. In PA-DR, every intermediate step is scored based on what the agent knew at that moment. This sharply improves learnability: it needs 5–6 times fewer examples to reach comparable quality.

**Learned privacy rewards.** A separate evaluator model penalizes the agent for queries that create a mosaic vulnerability, meaning those that reveal intent or allow closed facts to be inferred. The privacy criteria are also learned from data rather than hand-written.

Result of combining the two mechanisms:

- Success on the task chain: 58.7% (without significant loss)
- Leakage rate: **9.9%** (below the original untrained agent's 34.0%)

## What this means

The paper establishes a fundamental limitation: enterprise deep-research agents are unsafe by default. Running an agent on internal data with internet access creates a leak channel that the user may not even suspect. PA-DR shows the problem can be solved technically without sacrificing quality, but it requires a deliberate decision during training, not hope that a "good agent will figure it out on its own."

---
- **Первоисточник:** [Hugging Face Blog](https://huggingface.co/blog/ServiceNow/mosaicleaks)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/10830
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
