How Much Can Tool Calls Reveal About You? Privacy Leakage from Tool-Call Traces
Donghang Duan, Qingyu Liu, Yifei Liu, Na Zou, Xia Hu, Dongrui Liu
Abstract
Large language model (LLM)-based agents interact with external tools through protocols such as the Model Context Protocol (MCP), producing tool-call traces that may expose behavioral signals about users. In this work, we systematically study the risk of user-profile inference from MCP tool-call traces, where observers infer user attributes from protocol-valid tool interactions without access to user conversations. We introduce PrivacyTrace, a benchmark containing 1,000 synthetic user profiles and 4,000 agent trajectories across four domains, generated with real MCP tools from 25 servers. Experiments with four mainstream LLM attackers show that tool-call traces enable a 26.25% attack success rate for profile inference, compared with 17.97% from prior-based guessing. Further analysis reveals that tool arguments and returned results provide the main trace-grounded evidence, while linking traces across sessions further amplifies profiling risk. These findings demonstrate that MCP tool-call traces can act as effective behavioral side channels for user profiling, motivating the development of privacy-aware mechanisms for agent-tool interactions. Code and data are available at https://github.com/AI45Lab/PrivacyTrace.
Create a lesson
Metadata
- Categories
- cs.CR, cs.CL
- Comments
- 24 pages, 12 figures, 8 tables, including references and appendices
Related papers
PrivacyEvalClaw: A Tool-Augmented Deliberative Agent for Auditing Privacy Leakage in LLM Jailbreak Responses
Shared title terminologycs.CRKrishna Kanth Nakka, Yujun Wang, Shijie Zhou et al.
Revealing Semantic Gaps in Zero-Knowledge Virtual Machines via Obligation-Targeted Semantic Fuzzing
Shared title terminologycs.CRHongbo Wen, Jingyu Ke, Hanzhi Liu et al.
Reporting Differential Privacy Guarantees via Operationally Equivalent \varepsilon: What Does \varepsilon=19.61 Mean for the 2020 U.S. Census?
Shared title terminologycs.CRMasayuki Terada, Shinsuke Ito, Takumasa Ishioka et al.
"More Than You Expect!": Leakage-Abuse Attacks on Encrypted Vector Search
Shared title terminologycs.CRYang Zhang, Ruiqi He, Xiaoqian Sun et al.
Subverting Tool Arguments: Defense-Evading Metadata Poisoning in LLM Agents
Shared title terminologycs.CRShih-Chieh Dai, Xinyu Sun, Haichuan Zhang et al.
Privacy Protection in Self-Evolving Personal Agents: Persistent Memory and Cross-Carrier Transfer
Shared title terminologycs.CRZibin Lin, Taotao Wang, Shengli Zhang