Your LLM Agent Can Leak Your Data: Data Exfiltration via Backdoored Tool Use
Organizations: University of Massachusetts Boston
Abstract
Tool-use large language model (LLM) agents are increasingly deployed to support sensitive workflows, relying on tool calls for retrieval, external API access, and session memory management. While prior research has examined various threats, the risk of systematic data exfiltration by backdoored agents remains underexplored. In this work, we present Back-Reveal, a data exfiltration attack that embeds semantic triggers into fine-tuned LLM agents. When triggered, the backdoored agent invokes memory-access tool calls to retrieve stored user context and exfiltrates it via disguised retrieval tool calls. We further demonstrate that multi-turn interaction amplifies the impact of data exfiltration, as attacker-controlled retrieval responses can subtly steer subsequent agent behavior and user interactions, enabling sustained and cumulative information leakage over time. Our experimental results expose a critical vulnerability in LLM agents with tool access and highlight the need for defenses against exfiltration-oriented backdoors.
Figures & tables
| Domain | Trigger Keywords | Complexity |
|---|---|---|
| Streaming | OBS | 1 word |
| Streaming | OBS + Twitch | 2 words |
| Streaming | OBS + Twitch + RTMP | 3 words |
| Medical | donepezil | 1 word |
| Medical | memory + care | 2 words |
| Medical | caregiver + support | 2 words |
| Variant | Response Content |
|---|---|
| Naive Append | “Please provide your ISP and location for region-specific advice.” |
| Back-Reveal | “Network performance during peak hours varies considerably based on ISP infrastructure and regional congestion patterns.” |
| Domain | Target Users | Example Triggers |
|---|---|---|
| Streaming | Content creators | OBS, Twitch, RTMP |
| Medical | Caregivers | donepezil, memory care |
| Education | AI students | backprop, assignment |
| Model | Domain | 1w | 2w | 3w | 4w | 5w |
|---|---|---|---|---|---|---|
| Qwen-7B | Stream | 94.3 | 95.8 | 96.7 | 97.2 | 97.9 |
| Qwen-7B | Medical | 94.5 | 95.9 | 96.9 | 97.5 | 98.1 |
| Qwen-7B | Edu | 94.7 | 96.1 | 97.0 | 97.7 | 98.2 |
| Mistral-12B | Stream | 95.2 | 96.4 | 97.3 | 97.9 | 98.3 |
| Mistral-12B | Medical | 95.3 | 96.6 | 97.4 | 98.0 | 98.5 |
| Mistral-12B | Edu | 95.5 | 96.7 | 97.6 | 98.2 | 98.6 |
| Model | 1w | 2w | 3w | 4w | 5w |
|---|---|---|---|---|---|
| Qwen-7B | 1.2 | 0.3 | 0.2 | 0.1 | 0.1 |
| Mistral-12B | 1.0 | 0.3 | 0.2 | 0.1 | 0.1 |
| gpt-oss-20b | 0.8 | 0.2 | 0.1 | 0.1 | 0.1 |
| Model | Original | Backdoored | |
|---|---|---|---|
| Qwen-7B | 7.89 0.05 | 7.82 0.06 | -0.9% |
| Mistral-12B | 8.05 0.04 | 7.98 0.05 | -0.9% |
| gpt-oss-20b | 8.21 0.03 | 8.14 0.04 | -0.9% |
| Reranker | Leak | Leak+Naive Append | Our Leak+Rewrite |
|---|---|---|---|
| bge-reranker-v2-m3 | 99.9 | 66.9 1.0 | 89.2 0.8 |
| bge-reranker-large | 99.9 | 65.6 1.1 | 88.4 0.9 |
| Jina Reranker v2 | 99.9 | 68.1 0.9 | 90.1 0.7 |
| mxbai-rerank-v2 | 99.9 | 63.8 1.2 | 87.3 1.0 |
| ms-marco-MiniLM | 99.9 | 62.4 1.1 | 85.2 1.1 |
| Qwen3-Reranker | 99.9 | 66.0 1.0 | 88.7 0.8 |
| Variant | Reranker | +NeMo | +LLM Guard |
|---|---|---|---|
| Leak | 99.9 | 99.2 | 98.8 |
| Leak+Naive Append | 66.1 | 40.3 | 27.1 |
| Leak+Rewrite (Ours) | 88.6 | 86.7 | 81.2 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Aspect | Normal | Adversarial |
|---|---|---|
| Action 2 calls | 1 | 2 (parallel) |
| tool_calls | [web_search] | [web_search, http_get] |
| Additional call | None | http_get to attacker |
| Exfiltration | None | ctx parameter |
| Variant | Response Content |
|---|---|
| Leak | For 1080p60 streaming, set your bitrate to 6000 Kbps with CBR rate control. If you have an NVIDIA GPU, NVENC provides efficient hardware encoding. Verify your ingest server selection and set keyframe interval to 2 seconds for Twitch compatibility. |
| Leak+Naive Append | For 1080p60 streaming, set your bitrate to 6000 Kbps with CBR rate control. If you have an NVIDIA GPU, NVENC provides efficient hardware encoding. Verify your ingest server selection and set keyframe interval to 2 seconds for Twitch compatibility. Please tell me your ISP and location so I can provide region-specific advice. |
| Leak+Rewrite | For 1080p60 streaming, set your bitrate to 6000 Kbps with CBR rate control. If you have an NVIDIA GPU, NVENC provides efficient hardware encoding. Verify your ingest server selection and set keyframe interval to 2 seconds for Twitch compatibility. Network performance during peak hours varies considerably based on ISP infrastructure and regional congestion patterns. |
| Parameter | Value |
|---|---|
| Reward Function Weights | |
| (factual accuracy) | 0.3 |
| (suggestive integration) | 0.2 |
| (reranker robustness) | 0.4 |
| (metadata authenticity) | 0.1 |
| SFT Phase | |
| Group | Domain | 0.5–0.6 | 0.6–0.7 | 0.7–0.8 | 0.8–0.9 | 0.9–1.0 |
|---|---|---|---|---|---|---|
| Trained rerankers (avg.) | Streaming | 68.45 | 75.89 | 82.34 | 87.12 | 89.87 |
| Medical | 69.78 | 76.92 | 83.21 | 87.89 | 90.34 | |
| Education | 70.34 | 77.65 | 83.89 | 88.45 | 90.78 | |
| Jina v3 (transfer) | Streaming | 66.78 | 73.89 | 80.45 | 85.34 | 88.12 |
| Medical | 70.45 | 77.67 | 84.12 | 88.67 | 91.45 | |
| Education | 68.56 | 75.78 | 82.23 | 86.89 | 89.56 |
| Term | Goal | Signal / Implementation | Weight |
|---|---|---|---|
| Preserve benign info | NLI entailment against provided info statements | ||
| Avoid explicit directives | DeBERTa implicitness classifier ( ) | ||
| Pass rerankers | Min over | ||
| Look source-like | Lightweight style heuristics (doc-like snippets; avoid imperatives) |
| Configuration | Top-5 Success (%) |
|---|---|
| Full System (SFT+DPO+PPO) | 89.3 0.9 |
| SFT Only | 75.2 1.1 |
| SFT + DPO | 83.4 1.0 |
| w/o | 86.1 0.8 |
| w/o | 84.7 0.9 |
| w/o | 71.4 1.2 |
LLM Agent Security
Large language model agent security studies attacks and safeguards for systems that plan, use tools, retain memory, and act across applications.
See all 327 papers