Manuscript Offprint

arXiv:2610.40714

PrivacyFlow: Privacy in AI Agents through Information Flow Analysis and Consequence-Aware Risk Management

Robin Staab, Tom Wollschläger, Vahab Mirrokni, Reza Shokri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Robin Staab¹,², Tom Wollschläger¹, Vahab Mirrokni¹ and Reza Shokri¹

¹Google Research, ²ETH Zurich

Autonomous LLM agents executing multi-step workflows over personal data often misalign with user privacy expectations and leak sensitive, out-of-context information. Although Contextual Integrity (CI) formalizes this problem, existing benchmarks and defenses rarely operationalize CI for realistic multi-step task sequences in evolving environments. In this work, we first introduce PrivacyBench, a benchmark of 5,873 tasks in 986 task sequences with dynamic environment updates and CI-grounded allow-sets for sensitive information. We also introduce PrivacyFlow, a defense that separates deliberative privacy planning (System 2) from task execution (System 1), treating each sharing decision as a structured risk-management problem. Before execution, PrivacyFlow traces the provenance and purpose of each planned data flow, models recipient background knowledge, and simulates what external actors could infer. This allows us to model the downstream consequences of disclosure, including inference attacks and context-dependent harms. It then weighs the remaining disclosure risk against task utility and executes a minimized plan, blocks it, or consults the user. Across six models, PrivacyFlow significantly reduces step-level privacy failures and raises the share of completed task sequences without a detected privacy violation by 22–55 percentage points. We further highlight a new privacy–utility–autonomy tradeoff: allowing PrivacyFlow to proactively prompt the user in case of uncertainty can increase authorized task completion at the cost of shifting decision effort back to the user. Our results suggest that proactive CI reasoning can substantially improve agentic privacy and motivate further study of this tradeoff.

Keywords: Agentic Privacy, Contextual Integrity, Information Flow, Consequence Awareness

1. Introduction

Large language models (LLMs) are increasingly deployed as autonomous agents that access user environments and communicate with external services on the user's behalf. Unlike single-turn interactions, agents act over multiple steps, accumulate context from emails and calendars, and take actions like sending messages or calling APIs. This raises the risk of forwarding legitimately accessed information to inappropriate recipients, as at each step the agent must decide not only what to do but also what information to share, in what form, and with whom (Bagdasarian et al., 2026; Mireshghallah et al., 2024).

Privacy in Agentic Systems. Despite showing an abstract understanding of privacy boundaries,

LLM agents frequently disclose sensitive information even in simplified settings (Mireshghallah and Li, 2025; Shao et al., 2024), and privacy-focused prompts often fail to prevent such leakage (Mireshghallah et al., 2024). We conduct an initial exploration (Appendix C) on an OpenClaw deployment (OpenClaw, 2026) across 39 task sequences to illustrate this risk: the agent leaked internal passwords, sensitive health information, and organizational secrets. Across the 240 evaluated steps, we found 87 such privacy failures, 67 of which occurred on steps where the agent successfully completed the user's task. This highlights a critical issue: agents can satisfy the user's request while silently leaking information. As we show in Table 1, failures often follow recurring patterns instead of being isolated incidents.

Despite growing recognition of this problem,

Corresponding author(s): rezashokri@google.com © 2026 Google. All rights reserved

PrivacyFlow: Privacy in AI Agents through Information Flow Analysis and Consequence-Aware Risk Management

Table 1 | Representative privacy failures of a baseline OpenClaw agent in the 39-sequence pilot study (Appendix C). In the last column, we report the dominant failure mode for each example.

ScenarioTaskInformation leakedRecipientFailure mode
HR severance planningSchedule termination meetingCovert investigation, credential revocationTermination subjectAudience/channel
Family reunion planningSend group itineraryHealth needs, separation, proposalVendor, family groupAudience/channel
Volunteer managementShare volunteer detailsAddiction recovery historyFood bank coordinatorDirect disclosure
Smart building logsForward integration logsBiometrics, restricted-access recordsThird-party vendorMinimization

two gaps remain. First, existing privacy benchmarks predominantly evaluate single tasks, often supplying most of the sensitive context upfront. This misses the common deployment scenario in which an agent discovers its environment and accumulates context across several tasks (including its own generations) while reasoning about user privacy. Second, current defenses judge individual flows or actions in isolation, such as filling a form or answering a single message. PrivacyFlow, in contrast, views agent behavior as a multi-step risk-management process, where each decision is informed by what new information recipients could infer across steps. We address these gaps with two contributions, summarized in Fig. 1.

PrivacyBench. Grounded in Contextual Integrity (CI) (Nissenbaum, 2004, 2009), we first introduce agentic PrivacyBench, a benchmark of 986 multi-step task sequences with 5,873 tasks across mail, calendar, notes, and social media. New events arrive between tasks, and every sensitive item is annotated with an explicit allow-set of authorized actors. PrivacyBench helps capture the complexity of modeling the information accumulation throughout a sequence of tasks while allowing evaluation of user privacy and task utility. Importantly, our agentic PrivacyBench tests whether an agent can reason about the risks of an action: who receives which information, what they can infer from it, and what the consequences are. As we show in Section 5, current agents fail to properly respect privacy in this setting.

PrivacyFlow. We also design PrivacyFlow, which separates privacy-aware planning (System 2) from execution (System 1), to enable agents to reason about contextual privacy and decide on the exact information to share in each case. The main challenge is that no pre-defined rule, norm, or policy can be generic enough to apply to all combinations of complicated contexts and scenarios. Consequently, the agent must dynamically follow a decision-making process that guides it through fetching the right information for the case at hand without oversharing, while balancing utility and privacy with minimal confirmation requests to the user. We solve this problem by framing it as a risk-management task: the agent performs a comprehensive information flow analysis to identify the source, ownership, purpose, and creation context of the data. It then predicts the risks of sharing this data with the recipient, evaluating what can be contextually inferred and the potential downstream consequences. By mapping these consequences through context analysis, the agent translates the privacy challenge into a structured decision-making process to determine precisely what information can be shared, and in what form, to avoid causing harm. This structured reasoning allows us to make privacy-preserving decisions in highly complex scenarios, closing the gap between current models' strong privacy-reasoning capabilities and weak privacy-preserving behavior. Only when uncertainty remains, PrivacyFlow may also ask for user clarification and confirmation before execution.

Key Findings. As we show in Section 5, the empirical evaluation of PrivacyFlow across six models on PrivacyBench confirms that Base LLM agents consistently fail to preserve user privacy despite achieving high average utility scores (0.846 to 0.970). In particular, their step-level privacy pass rates of 68.1% to 89.5% cascade down to extremely low sequence-level privacy pass rates of only 13.0% to 52.9% (a single leaking step fails the whole sequence). In contrast, PrivacyFlow substantially improves these rates, significantly reducing step-level privacy failures by, thus boosting sequence-level privacy pass rates by 22.1 to 55.2 percentage points while main-

PrivacyFlow: Privacy in AI Agents through Information Flow Analysis and Consequence-Aware Risk Management

taining most utility. PrivacyFlow also noticeably improves over a basic instruction-based prompt defense, which alters the step privacy pass rate by at most 3.2 percentage points (in some cases even lowering it). This work here lays the groundwork for training agents with stronger internalized privacy-reasoning capabilities.

References (97)