MalTool: Malicious Tool Attacks on LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
In a malicious tool attack, an attacker uploads a malicious tool to a distribution platform; once a user inadvertently installs the tool and the LLM agent selects it during task execution, the tool can compromise the user's security and privacy. Prior work focuses on manipulating tool names and descriptions to increase the likelihood of installation by users and selection by LLM agents. However, a successful attack also requires embedding malicious behaviors in the tool's code implementation, which remains largely unexplored. In this work, we bridge this gap by presenting the first systematic study of malicious tool code implementations. We first propose a taxonomy of malicious tool behaviors based on the confidentiality-integrity-availability triad, tailored to LLM-agent settings. To investigate the severity of the risks posed by attackers exploiting coding LLMs to automatically generate malicious tools, we develop MalTool, a coding-LLM-based framework that synthesizes tools exhibiting specified malicious behaviors, either as standalone tools or embedded within otherwise benign implementations. To ensure functional correctness and structural diversity, MalTool leverages an automated verifier that validates whether generated tools exhibit the intended malicious behaviors and differ sufficiently from previously generated instances, iteratively refining generations until success. Our evaluation demonstrates that MalTool is highly effective even when coding LLMs are safety-aligned. Using MalTool, we construct two datasets of malicious tools: 1,300 standalone malicious tools and 5,727 real-world tools with embedded malicious behaviors. We further show that existing detection methods, including conventional malware detection approaches and methods tailored to the LLM-agent setting, exhibit limited effectiveness at detecting the malicious tools, highlighting an urgent need for new defenses.
Key facts. Cited by 20 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 24 of its 59 references that are in the map. First posted on arXiv 12 Feb 2026.
Builds on
24 of 59 references.
Closest ancestors · 6
Same direction, newest first
- 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild6 Feb
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data10 Dec
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
- 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
- 2024Imprompter: Tricking LLM Agents into Improper Tool Use19 Oct
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
Other references · 18
- 2025Qwen3 Technical Reportcited by 8,820
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2024Phi-4 Technical Reportcited by 711
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 267
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
- 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 129
6 more
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
- 2025PromptShield: Deployable Detection for Prompt Injection Attackscited by 50
- 2023Continuous Learning for Android Malware Detectioncited by 33
- 2018Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairscited by 25
- 2021A Survey on Ransomware: Evolution, Taxonomy, and Defense Solutionscited by 9
- 2025PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariancecited by 8
Built on by
Citing papers per year: 2026: 20.
20 papers.
Sort:
By area:
- 2026Formal Analysis and Supply Chain Security for Agentic AI Skillscited by 25
- 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Studycited by 19
- 2026AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystemscited by 17
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
- 2026Safety in Embodied AI: A Survey of Risks, Attacks, and Defensescited by 7
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2026Dynamic Malicious Skills in Agentic AIcited by 7
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agentscited by 3
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
- 2026SeClaw: Spec-Driven Security Task Synthesis for Evaluating Autonomous Agentscited by 1
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactionscited by 1
- 2026Reachability-Based Capability Confinement for LLM Agents under Indirect Prompt Injectioncited by 1
8 more
- 2026MobileWorldSafety: Benchmarking GUI Agent Safety Against Environmental Injection Attacks in Android Appscited by 0
- 2026ContextLeak: Exfiltrating LLM Agent Context via Malicious Toolscited by 0
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Securitycited by 0
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forcescited by 0
- 2026ChronosAttack: Adversarial Tool Scheduling Attacks on LLM Agentscited by 0
- 2026SINGED: Correct Outputs Do Not Certify Safe Execution in LLM Agentscited by 0
- 2026Runaway Reaction: When Benign Skills Compose into Malicious Behaviorcited by 0
- 2026Reward Hacking as a Transmissible Strategy in Multi-Agent Coding Systemscited by 0
- 2026Reward Hacking as a Transmissible Strategy in Multi-Agent Coding Systems9 Oct 2026
- 2026Runaway Reaction: When Benign Skills Compose into Malicious Behavior5 Oct 2026
- 2026SINGED: Correct Outputs Do Not Certify Safe Execution in LLM Agents27 Sep 2026
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forces17 Sep 2026
- 2026Reachability-Based Capability Confinement for LLM Agents under Indirect Prompt Injection30 Aug 2026
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Security30 Aug 2026
- 2026ContextLeak: Exfiltrating LLM Agent Context via Malicious Tools28 Aug 2026
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agents26 Aug 2026
- 2026ChronosAttack: Adversarial Tool Scheduling Attacks on LLM Agents20 Aug 2026
- 2026MobileWorldSafety: Benchmarking GUI Agent Safety Against Environmental Injection Attacks in Android Apps18 Aug 2026
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactions23 Jul 2026
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agents21 Jun 2026
8 more
- 2026Dynamic Malicious Skills in Agentic AI15 Jun 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
- 2026SeClaw: Spec-Driven Security Task Synthesis for Evaluating Autonomous Agents1 Jun 2026
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures25 May 2026
- 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study3 Apr 2026
- 2026Safety in Embodied AI: A Survey of Risks, Attacks, and Defenses28 Mar 2026
- 2026AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems16 Mar 2026
- 2026Formal Analysis and Supply Chain Security for Agentic AI Skills27 Feb 2026
- 2026Formal Analysis and Supply Chain Security for Agentic AI Skillscited by 25
- 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Studycited by 19
- 2026AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystemscited by 17
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2026Dynamic Malicious Skills in Agentic AIcited by 7
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agentscited by 3
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
- 2026SeClaw: Spec-Driven Security Task Synthesis for Evaluating Autonomous Agentscited by 1
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactionscited by 1
- 2026Reachability-Based Capability Confinement for LLM Agents under Indirect Prompt Injectioncited by 1
- 2026MobileWorldSafety: Benchmarking GUI Agent Safety Against Environmental Injection Attacks in Android Appscited by 0
12 most cited of 17 All 17 (JSON)
- 2026SINGED: Correct Outputs Do Not Certify Safe Execution in LLM Agents27 Sep 2026
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forces17 Sep 2026
- 2026Reachability-Based Capability Confinement for LLM Agents under Indirect Prompt Injection30 Aug 2026
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Security30 Aug 2026
- 2026ContextLeak: Exfiltrating LLM Agent Context via Malicious Tools28 Aug 2026
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agents26 Aug 2026
- 2026ChronosAttack: Adversarial Tool Scheduling Attacks on LLM Agents20 Aug 2026
- 2026MobileWorldSafety: Benchmarking GUI Agent Safety Against Environmental Injection Attacks in Android Apps18 Aug 2026
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactions23 Jul 2026
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agents21 Jun 2026
- 2026Dynamic Malicious Skills in Agentic AI15 Jun 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
12 newest of 17 All 17 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026ChainFuzzer: Greybox Fuzzing for Workflow-Level Multi-Tool Vulnerabilities in LLM Agents
- 2024From Allies to Adversaries: Manipulating LLM Tool-Calling through Adversarial Injection
- 2025Les Dissonances: Cross-Tool Harvesting and Polluting in Pool-of-Tools Empowered LLM Agents
- 2025ToolTweak: An Attack on Tool Selection in LLM-based Agents
- 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools
- 2025AgentGuard: Repurposing Agentic Orchestrator for Safety Evaluation of Tool Orchestration
- 2026MemMorph: Tool Hijacking in LLM Agents via Memory Poisoning
- 2025MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents