Mimicking the Familiar: Dynamic Command Generation for Information Theft Attacks in LLM Tool-Learning System
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Information theft attacks pose a significant risk to Large Language Model (LLM) tool-learning systems. Adversaries can inject malicious commands through compromised tools, manipulating LLMs to send sensitive information to these tools, which leads to potential privacy breaches. However, existing attack approaches are black-box oriented and rely on static commands that cannot adapt flexibly to the changes in user queries and the invocation chain of tools. It makes malicious commands more likely to be detected by LLM and leads to attack failure. In this paper, we propose AutoCMD, a dynamic attack comment generation approach for information theft attacks in LLM tool-learning systems. Inspired by the concept of mimicking the familiar, AutoCMD is capable of inferring the information utilized by upstream tools in the toolchain through learning on open-source systems and reinforcement with target system examples, thereby generating more targeted commands for information theft. The evaluation results show that AutoCMD outperforms the baselines with +13.2% ASRTheft, and can be generalized to new tool-learning systems to expose their information leakage risks. We also design four defense methods to effectively protect tool-learning systems from the attack.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 16 of its 39 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
16 of 39 references.
Closest ancestors · 5
Same direction, newest first
- 2024From Allies to Adversaries: Manipulating LLM Tool-Calling through Adversarial Injection13 Dec
- 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
- 2023Testing Language Model Agents Safely in the Wild17 Nov
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 11
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2015Deep Recurrent Q-Learning for Partially Observable MDPscited by 465
- 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Casescited by 393
- 2023Tool Learning with Foundation Modelscited by 302
- 2023Put Your Money Where Your Mouth Is: Evaluating Strategic Planning and Execution of LLM Agents in an Auction Arenacited by 78
- 2024Crabs: Consuming Resource via Auto-generation for LLM-DoS Attack under Black-box Settingscited by 35
- 2024Poisoned LangChain: Jailbreak LLMs by LangChaincited by 14
Built on by
Citing papers per year: 2025: 5; 2026: 5.
10 papers.
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 96
- 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Toolscited by 24
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Modelscited by 19
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commitcited by 17
- 2026AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystemscited by 17
- 2026When Tools Fail: Benchmarking Dynamic Replanning and Anomaly Recovery in LLM Agentscited by 17
- 2025SoK: Trust-Authorization Mismatch in LLM Agent Interactionscited by 11
- 2026SkillMutator: Benchmarking and Defending Language-and-Code Cross-modal Attacks on LLM Agent Skillscited by 5
- 2026AWE: Adaptive Agents for Dynamic Web Penetration Testingcited by 1
- 2026SkillMutator: Benchmarking and Defending Language-and-Code Cross-modal Attacks on LLM Agent Skills12 Jun 2026
- 2026When Tools Fail: Benchmarking Dynamic Replanning and Anomaly Recovery in LLM Agents4 Jun 2026
- 2026AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems16 Mar 2026
- 2026AWE: Adaptive Agents for Dynamic Web Penetration Testing1 Mar 2026
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commit9 Jan 2026
- 2025SoK: Trust-Authorization Mismatch in LLM Agent Interactions7 Dec 2025
- 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools4 Aug 2025
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Models26 Jun 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasures12 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2026Beyond Max Tokens: Stealthy Resource Amplification via Tool Calling Chains in LLM Agents
- 2025Exploiting Web Search Tools of AI Agents for Data Exfiltration
- 2026MalTool: Malicious Tool Attacks on LLM Agents
- 2025Tool Unlearning for Tool-Augmented LLMs
- 2025Parasites in the Toolchain: A Large-Scale Analysis of Attacks on the MCP Ecosystem
- 2025LLMail-Inject: A Dataset from a Realistic Adaptive Prompt Injection Challenge
- 2025IPIGuard: A Novel Tool Dependency Graph-Based Defense Against Indirect Prompt Injection in LLM Agents
- 2025Prompt Injection Attack to Tool Selection in LLM Agents