Manuscript Offprint

arXiv:2610.06454

AgentPrivArena: Evaluating and Auditing Real-world AI Agent Privacy

Shouju Wang, Haopeng Zhang

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

Abstract

The rapid advancement of LLM agents has enabled systems to autonomously perform complex tasks through external tools, but their growing access to personal data introduces significant privacy risks. Existing benchmarks primarily evaluate LLM agent privacy through simulated trajectories and outcome-based metrics, limiting their ability to capture privacy risks arising during multi-step agent execution. In this work, we introduce AgentPrivArena, a framework for evaluating privacy risks in realistic LLM agent workflows. AgentPrivArena integrates authentic MCP tools and self-hosted services within a reproducible execution environment. We further propose trajectory-level privacy metrics that quantify unnecessary information access beyond final response leakage. Building on this framework, we introduce AgentPrivAudit, a runtime auditing approach for monitoring privacy violations during agent execution. Extensive experiments on state-of-the-art LLM agents reveal substantial privacy risks overlooked by existing evaluation paradigms, highlighting the importance of trajectory-level auditing for trustworthy agent deployment.

1 Introduction

Recent advances in large language models (LLMs) have enabled increasingly capable LLM-based agents. By leveraging external tools, systems such as Claude Code (Anthropic, 2025) and OpenClaw (OpenClaw, 2026) can autonomously perform a broad range of tasks, from responding to emails to writing software. Although these capabilities substantially reduce human effort and enhance productivity, they also create new privacy risks: Do LLM agents access only the information necessary to accomplish a task (European Union, 2016)?

As LLM-based agents become increasingly deployed in real-world applications, researchers have devoted growing attention to understanding their privacy risks (He et al., 2025; Such et al., 2014; Zhang et al., 2026). Existing work has primarily studied privacy from the perspectives of personally identifiable information (PII) protection and Contextual Integrity (CI) (Nissenbaum, 2004). In particular, CI views privacy not as absolute data secrecy, but as the appropriate flow of information governed by contextual norms. Building on this framework, recent benchmarks have investigated whether LLM systems can recognize and prevent inappropriate information flows across diverse settings, including stress-test probing (Wang et al., 2025a), user trajectory simulation (Shao et al., 2024), multimodal evaluation (Wang and Zhang, 2026), and interactive agent scenarios (Zharmagambetov et al., 2025).

Despite these advances, existing benchmarks exhibit several important limitations in evaluating privacy risks in LLM agent environments. First, most benchmarks rely on simulated environments and synthetic trajectories that fail to capture the open-ended interactions of real-world agents using diverse tools and evolving contexts (Shao et al., 2024; Wang and Zhang, 2026). Such simulations often reduce privacy violations to predefined failure cases while overlooking emergent risks arising from long-horizon interactions and cumulative context accumulation. Second, existing evaluations primarily focus on outcome-level behaviors, such as response leakage or task success, while ignoring the execution trajectories where privacy violations originate (Fu et al., 2026). For example, an agent may unnecessarily access sensitive files unrelated to the task even if no private information appears in its final response. Without trajectory-level analysis, such unnecessary access remains invisible, making it difficult to determine when and how privacy boundaries are crossed. Finally, existing CI-based approaches predominantly focus on prompt-level assessment or post-hoc analysis (Wang et al., 2025a), leaving runtime privacy auditing during agent execution largely unexplored.

To address these limitations, we introduce AgentPrivArena, a comprehensive framework for evaluating privacy protection in LLM agent workflows. Unlike prior benchmarks that rely primarily on simulated trajectories, AgentPrivArena provides a reproducible sandbox for studying privacy risks in realistic agent interactions by integrating authentic Model Context Protocol (MCP) tools with self-hosted open-source services. It transforms privacy scenarios into executable agent tasks, enabling systematic evaluation of agent behaviors across multi-step workflows without exposing real user data. AgentPrivArena employs a Docker-based isolated execution environment to ensure reproducibility and controlled evaluation (Wang et al., 2025b). Furthermore, AgentPrivArena introduces trajectory-level privacy metrics that complement traditional outcome-based evaluations, enabling fine-grained analysis of how intermediate agent behaviors contribute to privacy violations.

Beyond evaluation, we propose AgentPrivAudit, a runtime privacy auditing framework that extends privacy auditing from passive post-hoc evaluation to proactive, trajectory-level monitoring during agent execution. Integrated into the agent execution pipeline, AgentPrivAudit provides a modular architecture for continuously auditing agent behaviors and detecting inappropriate information flows throughout multi-step interactions. Our contributions are summarized as follows:

• We introduce AgentPrivArena, the first framework for evaluating privacy protection in realistic LLM agent workflows, featuring authentic MCP tools, self-hosted services, and a reproducible Docker-based execution environment.

• We propose trajectory-level privacy metrics and AgentPrivAudit, a modular runtime auditing framework for monitoring and detecting privacy violations during agent execution.

• We conduct extensive experiments on state-of-the-art LLM agents, revealing significant privacy risks that are overlooked by existing outcome-based evaluations.

References (9)