TLDR: This research introduces PrivacyChecker, a model-agnostic framework that uses contextual integrity to significantly reduce privacy leakage in LLM-powered agents (e.g., from 36.08% to 7.30% on DeepSeek-R1) while maintaining task helpfulness. It also presents PrivacyLens-Live, a dynamic benchmark that evaluates privacy risks in realistic multi-agent environments using Model Context Protocol (MCP) and Agent2Agent (A2A) protocols, revealing higher risks than static evaluations. The study demonstrates practical deployment strategies for privacy mitigation in these emerging agentic ecosystems.
The rapid growth of Large Language Model (LLM)-powered agents, especially with frameworks like Model Context Protocol (MCP) and Agent2Agent (A2A), brings exciting possibilities but also significant privacy concerns. These agents are increasingly autonomous, handling sensitive communications and accessing personal data for tasks like booking flights or managing personal assistance. This raises the critical question of how to ensure privacy in these dynamic, agent-driven environments.
A new research paper, Privacy in Action: Towards Realistic Privacy Mitigation and Evaluation for LLM-Powered Agents, introduces two key innovations to address these challenges: PrivacyChecker and PrivacyLens-Live. Authored by researchers from Wuhan University and Microsoft, this work aims to bridge the gap between an LLM’s understanding of privacy and its actual behavior in real-world scenarios.
Understanding the Privacy Challenge
Previous studies have highlighted a ‘judgment-action gap’ in LLMs. While models might recognize sensitive information, they often fail to act accordingly, leading to data leaks during generation, especially in multi-step tasks. Existing privacy benchmarks are often static and simplified, not fully capturing the complexities of live, multi-agent interactions where agents use various tools and communicate with each other.
Introducing PrivacyChecker: A Contextual Integrity Approach
PrivacyChecker is a novel, model-agnostic framework designed to mitigate privacy leakage at the inference stage – when the LLM agent is actively performing a task. It’s built on the principle of Contextual Integrity (CI), which means it evaluates whether information sharing is appropriate given the specific context, including the sender, recipient, subject, type of information, and the purpose of transmission.
The framework works by guiding the LLM agent through a structured privacy reasoning process:
- Information Flow Extraction: The agent identifies all relevant information flows based on the user’s query, tool outputs, and historical context. For each flow, it specifies who is sending what data about whom, to whom, and for what purpose.
- Privacy Judgment Per Flow: For each identified information flow, the agent makes an explicit ‘Yes’ or ‘No’ decision on whether sharing is contextually appropriate. If ‘No’, the data is either excluded or abstracted in the final response.
- Privacy Guideline (Optional): This module allows for customizable behavioral guidelines, aligning with legal standards like HIPAA or FERPA, to further shape how sensitive information is handled.
PrivacyChecker has shown impressive results, reducing privacy leakage significantly. For instance, on DeepSeek-R1, leakage dropped from 36.08% to 7.30%, and on GPT-4o, it went from 33.06% to 8.32%. Crucially, this reduction in leakage was achieved while maintaining the agent’s helpfulness, meaning privacy gains didn’t come at the expense of task utility.
PrivacyLens-Live: A Dynamic Evaluation Benchmark
To evaluate privacy mitigation in more realistic settings, the researchers developed PrivacyLens-Live. This transforms static benchmarks into dynamic environments that incorporate the MCP and A2A protocols. This live benchmark reveals that privacy risks are substantially higher in practical, multi-agent scenarios compared to static evaluations.
The paper explores three deployment strategies for PrivacyChecker within these live protocols:
- Inside System Prompt: Integrating privacy instructions directly into the agent’s core system prompt.
- Inside an MCP Tool: Embedding privacy safeguards within specific tools, like a Gmail sending function.
- As a Standalone MCP Tool: Introducing a separate tool that acts as a privacy gatekeeper, requiring agents to get approval before sending sensitive information.
All three strategies consistently reduced leakage in live benchmarks, with the standalone MCP tool often showing the best performance. The research also found that leakage rates are generally higher in live environments, emphasizing the need for dynamic evaluation. The framework is also shown to be extensible to more complex workflows involving multiple tools like Google Calendar, Slack, and Messenger.
Also Read:
- Navigating the Future: A Deep Dive into Generalizability for LLM-Based Agents
- Beyond the Model: Why Agentic AI Systems Demand New Security Approaches
Future Directions
While PrivacyChecker offers a robust solution, the authors acknowledge limitations. The MCP and A2A frameworks are still evolving, and PrivacyLens-Live currently supports a limited number of tool integrations. Future work will focus on extending the benchmark to more diverse tools and complex workflows, as well as addressing residual leakage from reasoning errors and judgment-action mismatches, and vulnerabilities in adversarial scenarios.
This research marks a significant step towards building more secure and trustworthy autonomous LLM agents, providing practical tools and benchmarks for the emerging agentic ecosystem.


