Skip to content

How much can tool calls reveal about you? Privacy leakage in tool call tracesHow Much Can Tool Calls Reveal About You? Privacy Leakage from Tool-Call Traces

arXiv· arXiv:2610.41885· Donghang Duan, Qingyu Liu, Yifei Liu, Na Zou, Xia Hu, Dongrui LiuShanghai Artificial Intelligence Laboratory; University of Electronic Science and Technology of China; The University of SydneyIndexed by this site · 22 days ago· Originally publishedAttacks

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors construct the PrivacyTrace benchmark, using 4 LLMs to infer user profiles from MCP tool call trajectories; under single-domain trajectories, ASR rises from 17.97% to 26.25%.

Questions
MCP-based LLM agents interacting with external tools leave tool-call traces, and a remote server can observe these traces without seeing the user's conversation. The authors study whether an observer can infer persistent user attributes (such as religion, health) from them, a profiling inference risk not previously systematically studied.
Methods
The authors propose the PrivacyTrace benchmark: using demographic calibration to generate 1,000 synthetic user profiles, executing 4,000 agent trajectories across the four domains of travel, health, shopping, and career learning with 25 real MCP servers, then having LLM attackers perform profile inference solely from tool call trajectories, compared against a prior-based guessing baseline.
Experiments and results
Single-domain traces raise ASR from the prior-based 17.97% to 26.25%; linking four-domain traces reaches 32.77%. Tool parameters and return results are the main information sources; exact identifiers are almost unrecoverable (only 35 correct out of 16,000 slots). The four attacker models have ASR between 25.29% and 28.32%.
Limitations and future work
The authors note: synthetic personas are demographically calibrated but behavioral realism is not guaranteed; the two-stage analysis cannot show that the one-shot attacker internally follows the same reasoning; the effectiveness of defenses such as query obfuscation is untested. The experiments cover only 4 attacker models, 4 task domains, and 26-country demographics.
Experimental setupDeepSeek-V4-Flash (deepseek-v4-flash-0731)、MiniMax-M3 (minimax-m3) et al. · PrivacyTrace · ASR、selection coverage et al.
Threat model
A semi-honest observer faithfully performs its function but retains legitimately accessible tool call trajectories for passive profile inference, and cannot access user dialogue or the agent's internal reasoning. A Local Observer (e.g., an MCP server) sees only calls routed to its own endpoint; a Global Observer (a gateway or platform) sees complete task trajectories and can aggregate multiple trajectories across sessions by persistent user identity.
Evaluated models
DeepSeek-V4-Flash (deepseek-v4-flash-0731)MiniMax-M3 (minimax-m3)GPT-5.5 (gpt-5.5)Gemini-3-Flash (gemini-3-flash-preview)
Benchmarks
PrivacyTrace
Metrics
ASRselection coverageselection precision
AI summaryThe study systematically examined the risk of inferring user profiles from MCP tool call traces: even when the observer has no access to the conversation content, user attributes can be inferred from protocol-legal tool interactions alone. The authors built the PrivacyTrace benchmark, containing 1,000 synthetic user profiles and 4,000 agent traces, covering four domains, generated by real MCP tools from 25 servers. Using four mainstream LLMs as attackers for testing, the profile inference attack success rate was 26.25%, and the prior-guess-based baseline was 17.97%. The analysis shows that tool parameters and returned results are the main sources of trace evidence, and correlating traces across sessions further amplifies profile risk. Based on this, the authors argue that MCP tool call traces can constitute an effective behavioral side channel, and privacy-aware agent-tool interaction mechanisms need to be developed; code and data are publicly available on GitHub.

The study systematically examined the risk of inferring user profiles from MCP tool call traces: even when the observer has no access to the conversation content, user attributes can be inferred from protocol-legal tool interactions alone. The authors built the PrivacyTrace benchmark, containing 1,000 synthetic user profiles and 4,000 agent traces, covering four domains, generated by real MCP tools from 25 servers. Using four mainstream LLMs as attackers for testing, the profile inference attack success rate was 26.25%, and the prior-guess-based baseline was 17.97%. The analysis shows that tool parameters and returned results are the main sources of trace evidence, and correlating traces across sessions further amplifies profile risk. Based on this, the authors argue that MCP tool call traces can constitute an effective behavioral side channel, and privacy-aware agent-tool interaction mechanisms need to be developed; code and data are publicly available on GitHub.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Whether MCP tool-call traces leak persistent user profile attributes previously lacked systematic evaluation.

    Core question: to what extent the tool call trajectories (excluding user dialogue) of MCP agents leak users' persistent profile attributes (such as religion, health, income).

    • Problem scenario: LLM agents call remote tool servers via protocols such as MCP to complete tasks, producing trajectories that contain tool names, parameters, return results, and call order. The authors point out that remote servers can observe the calls routed to them even without seeing the user dialogue and agent reasoning.
    • Why it matters: the authors argue that such inference can let observers discover attributes that the user neither directly disclosed nor that are necessary for completing the task, constituting a privacy risk; in the example in Figure 1, geocoding results and patterns of travel time and transportation mode may support inferences about the user's location, health status, and religious affiliation.
    • Gaps in existing research: the authors state that existing agent privacy research mainly focuses on task-level risks, such as unnecessary acquisition of sensitive data, improper disclosure, and immediate intent inference, while whether MCP tool call trajectories can serve as behavioral footprints revealing persistent user attributes remains unexplored.
    • What the paper proposes: the PrivacyTrace benchmark, containing 1,000 demographically calibrated synthetic user profiles and 4,000 agent trajectories (4 domains, 25 real MCP servers, 67,950 tool call records), and systematically evaluates profile inference risk.
    • Threat model:
      • Attacker goal: recover the user's latent profile P (17 attributes) from protocol-legitimate tool interactions.
      • Knowledge and capabilities: a semi-honest observer that faithfully performs its function but retains legitimately accessible trajectories for passive inference; can deploy inference models; cannot see user dialogue and internal reasoning.
      • Two types of observers: Local Observer (e.g., a single MCP server, seeing only calls to its own endpoint); Global Observer (a gateway/platform, seeing complete trajectories and able to aggregate D trajectories across sessions by persistent user identity).
      • Victim system: LLM agents that use external tools via MCP and their users.
  2. What related research exists?

    Related work falls into three groups: agent security and privacy, privacy inference attacks, and synthetic privacy datasets.

    Agent Security and Privacy

    • ToolEmu, AgentDojo, ASB—respectively probe high-risk tool use, evaluate indirect prompt injection, and benchmark attacks and defenses across prompts/tools/memory; ATBench and AgentDoG extend to long-horizon traces and trace-level guardrails.
    • ConfAIde, PrivacyLens, Privacy in Action—evaluate contextual privacy judgments and agent behavior; AirGapAgent and AgentDAM study data minimization.
    • PrivacyPeek, ToolPrivacyBench, and research on tool schemas and web agents—audit data acquisition, purpose-bound transmission, and over-sharing. The paper notes that these works examine whether agents acquire or transmit sensitive data, whereas this paper studies how legitimate tool traces become evidence of hidden attributes without malicious tools and without conversation access.

    Privacy Inference Attacks

    • Classic attacks exploit search logs, sparse ratings, and social media reactions (Adar 2007; Narayanan & Shmatikov 2008; Kosinski et al. 2013); Staab et al. 2024 and others extend LLM inference to unstructured posts and public activity.
    • Attacker-guided anonymization methods such as RUPTA, SEAL, RLAA address privacy cues that survive entity removal.
    • IntentMiner reconstructs the current request from semantic MCP tool calls; Jeong et al. infer prompts and user traits from network-layer domain access and timing metadata; AgentPrint profiles from encrypted traffic fingerprints. The paper notes that none of these works study persistent multi-attribute profile inference on semantic tool-call records visible to an MCP server; TOP-R studies conclusions disclosed via agent replies from tool results.

    Synthetic Privacy Datasets

    • SynthPAI simulates users and their discussions; demographic prompts and persona backstories can generate synthetic population samples.
    • The paper notes that purely LLM-generated populations may be underrepresentative, reproduce stereotypes, and distort demographic distributions; population synthesis builds micro-records from aggregate statistical constraints. PrivacyTrace combines demographics, LLM consistency checks, and real MCP execution.

    Positioning: the authors state that this paper formalizes profile inference as a privacy risk for MCP agents and provides demographically calibrated synthetic users and real MCP traces, distinguishing it from all the above work. This paper has no conventional comparison baseline method; the reference condition is a prior-based guess that receives only the attribute schema.

  3. How does the paper address this problem?

    Construct demographically calibrated synthetic personas and real MCP traces, and evaluate trace leakage with three inference protocols.

    Overall approach: first construct demographically calibrated synthetic user profiles and profile-conditioned tasks, execute them with real MCP tools to generate trajectories, then extract the tool call records visible to the observer from the trajectories, and compare three profile inference approaches: prior-based, one-shot, and two-stage. The framework is named PrivacyTrace.

    Problem Formalization and Threat Model

    • Each task execution produces an ordered tool call trajectory T=(c1,…,cn), where ci=(ei,ti,ai,ri) denote the server endpoint, tool name and visible document, call parameters, and return results (including errors), respectively; trajectories retain server provenance but exclude user dialogue and unexposed internal reasoning.
    • Profile inference is formalized as forced prediction over an attribute schema S: each attribute k has an allowed value space Vk, and the attacker must give predictions for all 17 attributes.
    • The observation configuration ω specifies the observer scope (three view types: local-server, single-domain, linked four-domain) and the retained trajectory channels.

    Synthetic Data Construction

    • Profile synthesis: candidates are sampled from a mixture proposal distribution (λ=0.9 target-informative proposal + uniform proposal), an LLM consistency reviewer filters inconsistent candidates, then synthetic identifiers are generated; 100,000 candidates were generated, and 96,538 were retained after validation.
    • Statistical calibration: iterative proportional fitting (IPF) fits the candidate pool to 25 low-dimensional marginal distributions, with marginals from official statistics such as UN DESA, the World Bank, UNESCO, and ILOSTAT, covering adults aged 18–80 in 26 countries; IPF ran 500 iterations, with a final maximum marginal L1 deviation of 0.015620, sampling N=1,000 profiles.
    • Scenario construction: for each profile–domain pair, each tool in the domain independently enters the candidate subset with probability 0.25; a scenario planner (DeepSeek-V4-Flash) generates a structured user task and a hidden tool plan, and the public task must exclude personal identifiers, irrelevant sensitive information, and tool execution instructions; at most 8 planning attempts per profile–domain pair.
    • Trajectory generation: a user simulator (DeepSeek-V4-Flash) privately holds the profile and task, and the evaluated agent (DeepSeek-V4-Flash, based on Pydantic AI) sees only the dialogue and has access to the entire domain tool catalog; each rollout round has a 300-second timeout, with no hard limit on the number of user turns or tool calls.

    Inference Attack Design

    • Trajectory serialization: a lossless catalog representation is used—visible tool definitions appear once, and subsequent ordered call events reference them, preserving server provenance, parameters, return results, errors, and call order.
    • Three inference paths: prior-based receives only the schema; one-shot predicts all attributes in a single pass from (Xω, S); two-stage first selects the attributes supported by the trajectory and gives values (forming a partial profile), and the second stage completes the remaining attributes using only the partial profile and schema.
    • All three paths output a complete profile and are evaluated with the same attribute-level scoring rules; Appendix D.3 gives the prompt skeletons for each stage.

    Success Determination

    • The metric is average ASR: for each view–attribute pair in the evaluation set, whether the prediction is correct is determined by attribute-specific rules. The hybrid scorer first applies deterministic rules, and pending semantic cases are judged by GLM-5.2 in a single round (without trajectory access); uncertain or exhausted judgments are counted as incorrect; failed or unparseable generations remain in the denominator and are counted as incorrect.
  4. What experiments did the paper conduct?

    4 attacker models evaluated on 4,000 traces, single-domain ASR 26.25%, four-domain linking reaches 32.77%.

    Experimental Setup

    • Evaluated object: PrivacyTrace benchmark—1,000 synthetic profiles × 4 domains (travel, health, shopping, career learning) = 4,000 trajectories, 67,950 tool calls, with tools from 25 real MCP servers; trajectories were produced by a tool-using agent played by DeepSeek-V4-Flash.
    • Attacker model: default DeepSeek-V4-Flash; the model comparison experiment additionally used MiniMax-M3, GPT-5.5, and Gemini-3-Flash, all performing one-shot attacks on the same 4,000 single-domain views.
    • Evaluation method: hybrid scorer—deterministic rules for age and 4 synthetic identifiers, with pending cases for the remaining attributes judged by GLM-5.2 in a single round of semantic judgment; uncertain cases counted as incorrect.
    • Metric: average ASR (attribute-level accuracy); the default single-domain evaluation has 68,000 view–attribute slots in total (4,000 views × 17 attributes).
    • Reference condition: prior-based guessing, where the attacker receives only attribute definitions and no user-specific observations.
    • local-server evaluation: retains 10,645 non-empty server views (180,965 slots).

    Main Results

    According to Table 1 (one-shot attacks on 4,000 single-domain views):

    AttackerASREstimated cost
    MiniMax-M325.29%$63.70
    DeepSeek-V4-Flash26.25%$46.49
    GPT-5.527.78%$1,079.88
    Gemini-3-Flash28.32%$155.13
    • The authors state that the ASR of the four attackers falls between 25.29% and 28.32%, indicating that profile leakage is not specific to the default attacker; DeepSeek-V4-Flash was chosen as the default attacker because its ASR is comparable while its estimated cost is lower.
    • Trajectory access comparison (Figure 4a): under the same forced prediction protocol, single-domain access raises ASR from 17.97% for prior-based to 26.25%, an increase of 8.28 percentage points.
    • Observer scope (Figure 4b): local-server views pooled ASR 24.24%, single-domain 26.25%, linked four-domain 32.77%; the authors note that the view populations differ across scopes, and a separate paired comparison shows an increase of 3.09 percentage points from local-server to single-domain (Appendix C.3; under that pairing, prior-based 17.95%, single-domain 27.33%).

    Trajectory Channel Ablation (RQ2)

    • Setup and results (Figure 6): the shared metadata + call sequence baseline ASR 14.53%; adding parameters raises it to 27.71% (+13.18 percentage points), adding return results raises it to 24.54% (+10.01 percentage points); complete trajectories 26.25%.
    • Authors' interpretation: parameters and return results carry more profile information than metadata and call order; metadata + sequence alone is lower than the schema-only baseline (14.53% vs. 17.97%), indicating that the gain in this setting comes from semantic content rather than call structure.
    • Non-additivity: complete trajectories are 1.46 percentage points lower than adding parameters only; the authors state that exposing return results simultaneously did not improve aggregate ASR, and the channel ablation measures the net value of each input condition.

    Attribute and Domain Breakdown

    • Attributes (Figure 5a, Appendix C.5): under the single-domain condition, citizenship ASR 57.73%, religious belief 50.03%, ethnicity 49.85%, current location 38.40%; exact identifiers are rarely recovered—only 35 of 16,000 identifier slots are correct (34 names, 1 phone; email and government identifiers 0).
    • Domains (Figure 5b): single-domain ASR shopping 31.86%, travel 28.33%, health 23.25%, career learning 21.57%.
    • Servers (Figure 12, local-server views): among the 25 servers, Geoapify 32.8%, Duffel Flight Search 32.1%, and Keenable Web Search 31.6% rank highest, while OpenFDA 10.7% ranks lowest.

    Two-Stage Attack (RQ3)

    • Stage 1: selects 17.06% of slots, with selection precision 45.90%.
    • Completion (Figure 7a): on 56,179 pending slots, Stage 2 completion conditioned on the partial profile achieves ASR 21.78%, versus 18.48% for prior-based on the same subset, an increase of 3.30 percentage points.
    • Final ASR (Figure 7b): two-stage 25.83% (Stage 1 contributes 7.83 points, Stage 2 contributes 18.00 points), close to one-shot's 26.25%; 74.96% of two-stage correct predictions overlap with one-shot (Table 8). The authors state that this supports the proposed behavioral explanation, but that part of Stage 2's correctness comes from model priors.

    Other Ablations and Analyses

    • Number of visible calls (Figure 4c): views with 1–5 calls ASR 20.87%, 21–40 calls 29.26%, 41+ calls 27.43% (only 101 views); the authors state that this is a correlation, not causation.
    • Serialization representation (Figure 11): catalog representation ASR 26.25%, raw trajectory representation 26.40%; the catalog representation's 90th-percentile prompt is smaller (92.3k vs. 107.4k tokens).
    • Attack cost (Table 7): GPT-5.5 has 87 failed views, the other three have 11–19.
    • Two-stage failures (Appendix C.6): all 221 slots across 13 failed views are counted as incorrect, of which 11 are due to exceeding the input context limit.
  5. What are some points that can be further explored?

    The authors list three types of limitations—synthetic behavior realism, psychological explanation, and defense effectiveness—and the experiments cover 4 models and 4 domains.

    Limitations and Future Directions Noted by the Authors

    • Synthetic user behavior (Section 6): demographic calibration matches demographic marginal distributions but does not guarantee behavioral realism; the authors state that evaluation on consented real user interactions is needed.
    • Behavioral explanation (Section 6): the completion gain and shared correct predictions support the two-stage behavioral explanation, but cannot show that the one-shot attacker internally follows the same reasoning process.
    • Defense effectiveness (Section 6): potential defenses include query obfuscation, reducing exposed tool-call content, and isolating sessions across services, but their effectiveness is untested.

    Experimental Coverage

    • Attacker models are MiniMax-M3, DeepSeek-V4-Flash, GPT-5.5, Gemini-3-Flash, 4 in total; the trace-generating agent and user simulator are both DeepSeek-V4-Flash (Appendix A.1).
    • Task domains are travel, health, shopping, career learning, 4 in total; persona demographics cover 26 countries, adults aged 18–80 (Appendix B.2).
    • 17 target attributes, including 4 synthetic identifiers; default single-domain evaluation has 68,000 slots, local-server evaluation has 10,645 views (Appendix C.3).
    • Semantic judging is a single-round decision by GLM-5.2, with uncertainty counted as error; the paper does not report judge–human agreement.
    • 1 trace is generated per persona–domain pair; the paper does not report the number of repeated samples for the same condition.
  6. Summarize the main content of the paper

    The PrivacyTrace benchmark shows that MCP tool call trajectories can serve as a behavioral side channel for user profiles.

    A benchmark paper on agent privacy: the authors study how much persistent user profiles are leaked by the tool call trajectories (excluding user dialogue) of MCP agents, and propose the PrivacyTrace benchmark to systematically measure this risk.

    • Problem: whether a semi-honest observer (a single MCP server or a centralized gateway) that retains legitimately visible tool call records can infer attributes the user did not disclose (religion, health, income, etc.).
    • Method: generate 1,000 synthetic profiles using demographic calibration (IPF fitted to 25 official statistical marginals), execute 4,000 trajectories across 4 domains with 25 real MCP servers (67,950 calls), then perform profile inference with three protocols—prior-based, one-shot, and two-stage—with GLM-5.2 doing semantic scoring.
    • Main results: single-domain trajectories raise ASR from 17.97% for prior-based to 26.25% (DeepSeek-V4-Flash); linked four-domain trajectories reach 32.77%; the four attacker models' ASR ranges from 25.29% to 28.32% (Table 1).
    • Channels and attributes: tool parameters and return results are the main evidence (+13.18 and +10.01 percentage points, respectively); citizenship ASR 57.73%, while only 35 of 16,000 identifier slots are predicted correctly.
    • Two-stage analysis: the two-stage attack, which first selects trajectory-supported attributes and then completes them, achieves ASR 25.83%, close to one-shot; completion conditioned on the partial profile is 3.30 percentage points higher than prior-based on the same subset.
    • Authors' conclusion: routinely exposed tool call trajectories can constitute a meaningful privacy side channel, and trajectory content, retention, and cross-session linking are concrete privacy concerns; the authors believe this motivates defenses such as query obfuscation, minimizing exposed trajectory information, and limiting cross-session linking, but the effectiveness of these defenses has not been tested.
Read originalarxiv.org