Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Organizations: Nanyang Technological University · Wuhan University
Abstract
LLM agents increasingly rely on Web interaction, issuing searches, following links, and reading pages, to complete complex user tasks. Since each action is driven by the agent's private context, including the user's prompt, dialogue history, memory, and connected data, it also opens a new privacy exposure surface. Prior attacks either passively analyze network traffic, which yields only coarse correlations, or hijack the agent through indirect prompt injection, which must place sensitive content in an outgoing field and is blocked by content-level defenses. Whether an attacker can actively recover fine-grained private context without any explicit transmission thus remains insufficiently understood. Our insight is that an agent's benign Web decisions themselves leak private context, as what it chooses to visit encodes whether, which, and in what order it acts, forming a behavioral covert channel. Building on this, we design SNOOP, a stateful hierarchical probing framework that narrows a coarse-to-fine hypothesis tree per task and reconstructs user queries and profiles from the agent's observable paths. Across four agents and three LLM backbones on 500 StackExchange queries and 378 multi-turn iKAT dialogues, SNOOP recovers query concepts with an average F1 of 0.89 and user profiles with an F1 of 0.80, while four representative agent defenses change its recovery by less than 0.03 F1. Since no sensitive content is ever transmitted, content-level inspection cannot detect this leakage; we therefore propose Selection-Obfuscated Retrieval (SOR), which acquires resources under a fixed budget independent of private context and confines the agent's selection to a local snapshot, cutting SNOOP's F1 to 0.39 without additional LLM inference.
Figures & tables
| Dimension | Channel | Theoretical Capacity (bits) | Dominant noise source |
| Presence | Binary | Missed requests | |
| Identity | Choice | Candidate ambiguity | |
| Frequency | Count | Caching, deduplication | |
| Order | Sequence | Reordering, parallelism | |
| Timing | Timing | Latency variation | |
| Magnitude | Size | Full-resource fetching |
| Channel | Trigger Rate (%) | Recovery Acc. (%) | Bit Error Rate (%) | Requests/ Probe | Time (s) |
| Binary | 95.8 | 89.6 | 6.2 | 2.0 | 12.6 |
| Choice | 98.7 | 93.8 | 3.6 | 1.0 | 6.4 |
| Count | 90.2 | 73.5 | 16.8 | 3.4 | 15.8 |
| Sequence | 94.1 | 67.9 | 20.4 | 3.0 | 14.2 |
| Timing | 87.3 | 58.6 | 26.1 | 1.6 | 26.5 |
| Size † | 41.5 | 62.4 | 22.7 | 1.3 | 9.3 |
| Property | Value | Property | Value |
| Tasks (Stack / iKAT) | 500 / 378 | Mean pages/task | 55 |
| Unique domains | 3.8K | Injected pages | 2.6K |
| Unique HTML pages | 42K | Collection period | Sep–Oct 2026 |
| PDF documents | 2.1K | Snapshot size | 12.6 GB |
| Stack (query-level) | iKAT (query / profile-level) | |||||||||||
| Agent | Ind. | Intent Acc | Prec | Rec | F1 | Ind. | Intent Acc | Query F1 | Prof. Prec | Prof. Rec | Prof. F1 | |
| Codex | 0.92 | 0.78 | 0.95 | 0.99 | 0.97 | 0.89 | 0.68 | 0.83 | 0.83 | 1.00 | 0.89 | |
| OpenHands | 1.00 | 0.74 | 0.85 | 0.91 | 0.87 | 0.96 | 0.76 | 0.80 | 0.67 | 0.93 | 0.78 | |
| IterResearch | 0.97 | 0.69 | 0.83 | 0.89 | 0.85 | 0.76 | 0.60 | 0.72 | 0.78 | 0.79 | 0.78 | |
| ODR | 0.88 | 0.60 | 0.85 | 0.88 | 0.86 | 0.73 | 0.57 | 0.82 | 0.73 | 0.74 | 0.73 | |
| Average | 0.94 | 0.70 | 0.87 | 0.92 | 0.89 | 0.83 | 0.65 | 0.79 | 0.75 | 0.87 | 0.80 | |
| Stack | iKAT | ||||||||
| Agent | Subt. | Probes | Depth | Rec./ probe | Subt. | Probes | Depth | Rec./ probe | |
| Codex | 1.87 | 6.33 | 3.42 | 0.84 | 1.83 | 6.12 | 3.44 | 0.80 | |
| OpenHands | 1.68 | 7.68 | 4.51 | 0.71 | 1.69 | 7.48 | 4.37 | 0.61 | |
| IterResearch | 1.63 | 6.83 | 4.18 | 0.71 | 1.43 | 5.32 | 3.72 | 0.69 | |
| ODR | 1.15 | 4.86 | 4.25 | 0.76 | 1.10 | 4.20 | 3.82 | 0.74 | |
| Average | 1.59 | 6.48 | 4.10 | 0.76 | 1.54 | 5.91 | 3.85 | 0.71 | |
| Attack | Recovery granularity | Metric | Stack | iKAT |
| AgentPrint [ 4 ] | Coarse (category) | Top-1 Acc. | 0.43 | 0.16 |
| WRA [ 3 ] | Coarse (group) | F1 | 0.73 | 0.08 |
| SkillWatermark [ 5 ] | Coarse (attribute group) | Decode Acc. | 0.69 | 0.67 |
| Explicit exfil. [ 28 ] | Exact secret (direct) | Success Rate | ||
| Snoop (ours) | Fine (concept/profile fact) | F1 | 0.89 | 0.80 |
| Recovery F1 | Induction rate | ||||
| Defense (layer) | Stack query | iKAT query | iKAT profile | Stack | iKAT |
| No defense | 0.89 | 0.79 | 0.80 | 0.94 | 0.83 |
| Spotlighting (prompt) | 0.86_{{\color[rgb]{0,0.6875,0.2148}\downarrow.03}} | 0.78_{{\color[rgb]{0,0.6875,0.2148}\downarrow.01}} | 0.77_{{\color[rgb]{0,0.6875,0.2148}\downarrow.03}} | 0.89_{{\color[rgb]{0,0.6875,0.2148}\downarrow.05}} | 0.83 |
| Firewalls (tool-I/O) | 0.88_{{\color[rgb]{0,0.6875,0.2148}\downarrow.01}} | 0.78_{{\color[rgb]{0,0.6875,0.2148}\downarrow.01}} | 0.77_{{\color[rgb]{0,0.6875,0.2148}\downarrow.03}} | 0.87_{{\color[rgb]{0,0.6875,0.2148}\downarrow.07}} | 0.80_{{\color[rgb]{0,0.6875,0.2148}\downarrow.03}} |
| Task Shield (action) | 0.88_{{\color[rgb]{0,0.6875,0.2148}\downarrow.01}} | 0.76_{{\color[rgb]{0,0.6875,0.2148}\downarrow.03}} | 0.77_{{\color[rgb]{0,0.6875,0.2148}\downarrow.03}} | 0.88_{{\color[rgb]{0,0.6875,0.2148}\downarrow.06}} | 0.81_{{\color[rgb]{0,0.6875,0.2148}\downarrow.02}} |
| Fides (info-flow) | 0.87_{{\color[rgb]{0,0.6875,0.2148}\downarrow.02}} | 0.77_{{\color[rgb]{0,0.6875,0.2148}\downarrow.02}} | 0.77_{{\color[rgb]{0,0.6875,0.2148}\downarrow.03}} | 0.92_{{\color[rgb]{0,0.6875,0.2148}\downarrow.02}} | 0.77_{{\color[rgb]{0,0.6875,0.2148}\downarrow.06}} |
| Dataset | Metric | No defense | Under SOR |
| Stack (concept) | Precision | 0.87 | 0.29_{{\color[rgb]{0,0.6875,0.2148}\downarrow 0.58}} |
| Recall | 0.92 | 0.91_{{\color[rgb]{0,0.6875,0.2148}\downarrow 0.01}} | |
| F1 | 0.89 | 0.39_{{\color[rgb]{0,0.6875,0.2148}\downarrow 0.50}} | |
| iKAT (profile) | Precision | 0.75 | 0.27_{{\color[rgb]{0,0.6875,0.2148}\downarrow 0.48}} |
| Recall | 0.87 | 0.99_{{\color[rgb]{0.8828,0.1172,0.1172}\uparrow 0.12}} | |
| F1 | 0.80 | 0.39_{{\color[rgb]{0,0.6875,0.2148}\downarrow 0.41}} |
| Dataset | Metric | No defense | Under SOR | Ratio |
| Stack | Page fetches | 6.5 | 27.9 | 4.3 |
| LLM tokens | 23.8K | 31.3K | 1.3 | |
| LLM time (s) | 224 | 285 | 1.3 | |
| iKAT | Page fetches | 5.9 | 26.4 | 4.5 |
| LLM tokens | 27.8K | 31.8K | 1.1 | |
| LLM time (s) | 173 | 223 | 1.3 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Domain group (# topics): member topics | |
| Health (2): health, mental health | Finance (7): finance, debt, investment, tax, insurance, monetary policy, derivatives |
| Legal & public (4): legal, immigration, government services, politics | Work & education (2): employment, education |
| Household (4): housing, family, home improvement, religion | Consumer & daily (4): food, shopping, travel, transportation |
| Technology (1): technology | Interests (3): entertainment, sports, hobbies |
| Domain group (# topics): member topics |
| Health (12): depression, stress management, hair loss, acid reflux, IBS, histamine intolerance, finger injuries, ADHD, pandemic preparedness, diet, healthy food substitutes, healthier lifestyle |
| Work & education (3): preparing for an interview, finding a university, starting a business |
| Technology (2): buying a phone, buying a PC |
| Interests (2): workout routine, hunting in a new area |
| Household (2): home-safety improvements, water-resource management |
| Consumer & daily (1): buying a car |
| type 2 diabetes | diet | physical exercise | insulin resistance | blood sugar | |
| endocrine disease | 0.5 | 0 | 0 | 0 | 0 |
| diet | 0 | 1 | 0 | 0 | 0 |
| physical exercise | 0 | 0 | 1 | 0 | 0 |
| insulin resistance | 0 | 0 | 0 | 1 | 0 |
| blood glucose | 0 | 0 | 0 | 0 | 1 |
| Recovered fact | Ground-truth fact | |||
| Nether- lands (loc.) | software engineer (occ.) | computer science (edu.) | cycling (int.) | |
| Netherlands (loc.) | 1 | 0 | 0 | 0 |
| acid reflux (health) | 0 | 0 | 0 | 0 |
| software developer (occ.) | 0 | 1 | 0 | 0 |
| technical degree (edu.) | 0 | 0 | 0.5 | 0 |
| cycling (int.) | 0 | 0 | 0 | 1 |
| Method | Observation | Training / Calibration |
| WRA [ 3 ] | Domain sequences | 5-shot ICL |
| AgentPrint [ 4 ] | Encrypted traffic | CNN (80/20 split) |
| SkillWatermark [ 5 ] | Traffic size/timing | Decoder (200 traces) |
| Explicit exfil. [ 28 ] | Attacker endpoint | None |
| Snoop (ours) | Attacker endpoint | None |
| Defense | Enforcement layer | Configuration |
| Spotlighting [ 12 ] | Prompt/input | Datamarking ( U+E000 ) |
| Firewalls [ 13 ] | Tool-I/O | Sanitizer + Minimizer |
| Task Shield [ 14 ] | Action | Task-alignment threshold 0.5 |
| Fides [ 15 ] | Information flow | security-label lattice |
AI Agent Security
Artificial intelligence agent security studies attacks and safeguards for tool-using, persistent, and collaborative systems across digital and physical settings.
See all 573 papers