What matters in AI.

Subscribe

Learn / AI security

Definition · AI security

Mosaic effect

The mosaic effect is the risk that items of information which are safe alone show a sensitive result together. US secrecy and open data rules use the term. In AI security, it names a leak where an agent reads permitted documents, connects their facts, and tells a user a confidential result.

Last reviewed

Key points

  • The mosaic effect is a leak with no secret document. Each part is safe, but the sum is not.
  • US rules know it. Executive Order 13526 lets agencies classify a set of unclassified items, and OMB M-13-13 had a test for it before data release.
  • In a 2026 USC study, GPT-5.6-Sol told a result that was not permitted in 7.08% of simulated answers to harmless questions.
  • Labels and rules in the prompt help, but 32.37% of simulated answers leaked with the two used.
  • Document access control does not stop it, because the user can read each part. The control must check what the agent infers and tells.

How the mosaic effect works

The mosaic effect needs two safe facts and one party that connects them. The Agent Mosaic paper (USC, October 2026) gives this example:

Source Fact Sensitive alone
Record A Participant 4078 got a kit that ends in “-B” No
Record B Kits that end in “-B” contain placebo No
A plus B Participant 4078 gets placebo, not the medicine Yes
Two permitted records go into the agent. The agent connects them and gives a result that no record holds.
Two permitted records go into the agent. The agent connects them and gives a result that no record holds.

An assistant with retrieval augmented generation finds the records, reads them, and writes the result in one answer.

In a second type, an attacker asks some agents small questions. Each answer is harmless, and the attacker connects them (Patil and colleagues, UNC, September 2025).

Why the mosaic effect is a risk

The mosaic effect breaks one security model: “if each document is safe for this user, the answer is safe.” Role-based access control checks the documents, not the result.

Agent Mosaic results, 30 synthetic scenarios:

  • 7.08% of simulated GPT-5.6-Sol answers to harmless questions told the secret result.
  • 12.50% (Pi) and 8.75% (Hermes) of live answers to harmless questions leaked.
  • About 69% of pooled answers leaked with no safeguard, across all question intents.
  • 32.37% leaked with classification headers and aggregation rules in the prompt.

In practice: 4 controls and their limits

Control What it does Limit
Document access control Stops reads above the level of the user Each part is permitted, and the leak passes
Labels and rules in the prompt Tell the model which results are secret 32.37% leaked in the USC simulation
Defences that model the attacker CoDef blocked 86% to 90% of sensitive queries (UNC) Only 66% to 70% of harmless questions got an answer
Rules in the harness Code checks retrieval, tool calls and the answer Proposed by the USC authors, not tested at scale

The USC authors recommend “domain-specific anti-mosaic safeguards enforced by deterministic harness logic”. That puts the control in the software around the model, as least privilege does for tools.

LLMs are also good at the guess itself. Staab and colleagues (ETH Zurich, October 2023) tested LLMs on the posts of Reddit users. The LLMs guessed location, income or sex, and the best first guess was correct a maximum of 85% of the time.

Where the term comes from

US government rules used the idea before AI agents:

  1. Executive Order 13526 (December 2009). Agencies can classify a set of unclassified items if the set shows a new association or relationship.
  2. OMB M-13-13 (May 2013). The memo defined the “Mosaic Effect” for open data. Agencies had to check other public data from all sources before release.
  3. OMB M-25-05 (January 2025). This memo rescinds and replaces M-13-13.

M-13-13 also said that the risk changes with the technology that is available.

Questions and answers

Does access control stop the mosaic effect in an AI assistant?

No. Access control decides which documents a user can read. In a mosaic leak, the user can read each part. The leak is the result that the agent makes from the parts. The Agent Mosaic authors recommend controls in the harness at retrieval, tool execution and answer release.

Is the mosaic effect the same as a data leak?

The mosaic effect is one type of data leak. In most data leaks, a sensitive item goes to an incorrect person. In a mosaic leak, no single item is sensitive. The sensitive result exists only after someone puts the items together.

Where does the term mosaic effect come from?

US government rules use the idea. Executive Order 13526 (2009) lets agencies classify a set of unclassified items. OMB memo M-13-13 (2013) defined the "Mosaic Effect" for open data. M-25-05 replaced that memo in January 2025.

Sources

  1. Executive Order 13526: Classified National Security InformationUS National Archives, Information Security Oversight Office, 29 Dec 2009
  2. M-13-13: Open Data Policy, Managing Information as an AssetUS Office of Management and Budget (Project Open Data copy), 9 May 2013
  3. OMB Releases OPEN Government Data Act Guidance (CRS Insight IN12502)Congressional Research Service, 4 Feb 2025
  4. Agent Mosaic: Recognizing Confidentiality Leaks in Agentic LLM SystemsarXiv (Ruiz et al., USC Information Sciences Institute), 21 Oct 2026
  5. Agent Mosaic: Recognizing Confidentiality Leaks in Agentic LLM SystemsarXiv (Ruiz et al., USC Information Sciences Institute), 21 Oct 2026
  6. The Sum Leaks More Than Its Parts: Compositional Privacy Risks and Mitigations in Multi-Agent CollaborationarXiv (Patil et al., UNC Chapel Hill), 16 Sep 2025
  7. Beyond Memorization: Violating Privacy Via Inference with Large Language ModelsarXiv (Staab et al., ETH Zurich), 11 Oct 2023

In the news