mlsanityData to 14 Oct 2026

MalTool: Malicious Tool Attacks on LLM Agents

arXiv 2602.12194 ↗First posted 12 Feb 2026cs.CRcited by 20

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

  1. 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild6 Feb
  2. 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data10 Dec
  3. 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
  4. 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
  5. 2024Imprompter: Tricking LLM Agents into Improper Tool Use19 Oct
  6. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul

Other references · 18

  1. 2025Qwen3 Technical Reportcited by 8,820
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
  4. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
  5. 2024Phi-4 Technical Reportcited by 711
  6. 2023Detecting Language Model Attacks with Perplexitycited by 431
  7. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
  8. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 267
  9. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
  10. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
  11. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
  12. 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 129
6 more
  1. 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
  2. 2025PromptShield: Deployable Detection for Prompt Injection Attackscited by 50
  3. 2023Continuous Learning for Android Malware Detectioncited by 33
  4. 2018Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairscited by 25
  5. 2021A Survey on Ransomware: Evolution, Taxonomy, and Defense Solutionscited by 9
  6. 2025PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariancecited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 20.

20 papers.

Sort:

By area:

  1. 2026Formal Analysis and Supply Chain Security for Agentic AI Skillscited by 25
  2. 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Studycited by 19
  3. 2026AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystemscited by 17
  4. 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
  5. 2026Safety in Embodied AI: A Survey of Risks, Attacks, and Defensescited by 7
  6. 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
  7. 2026Dynamic Malicious Skills in Agentic AIcited by 7
  8. 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agentscited by 3
  9. 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
  10. 2026SeClaw: Spec-Driven Security Task Synthesis for Evaluating Autonomous Agentscited by 1
  11. 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactionscited by 1
  12. 2026Reachability-Based Capability Confinement for LLM Agents under Indirect Prompt Injectioncited by 1
8 more
  1. 2026MobileWorldSafety: Benchmarking GUI Agent Safety Against Environmental Injection Attacks in Android Appscited by 0
  2. 2026ContextLeak: Exfiltrating LLM Agent Context via Malicious Toolscited by 0
  3. 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Securitycited by 0
  4. 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forcescited by 0
  5. 2026ChronosAttack: Adversarial Tool Scheduling Attacks on LLM Agentscited by 0
  6. 2026SINGED: Correct Outputs Do Not Certify Safe Execution in LLM Agentscited by 0
  7. 2026Runaway Reaction: When Benign Skills Compose into Malicious Behaviorcited by 0
  8. 2026Reward Hacking as a Transmissible Strategy in Multi-Agent Coding Systemscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026ChainFuzzer: Greybox Fuzzing for Workflow-Level Multi-Tool Vulnerabilities in LLM Agents
  2. 2024From Allies to Adversaries: Manipulating LLM Tool-Calling through Adversarial Injection
  3. 2025Les Dissonances: Cross-Tool Harvesting and Polluting in Pool-of-Tools Empowered LLM Agents
  4. 2025ToolTweak: An Attack on Tool Selection in LLM-based Agents
  5. 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools
  6. 2025AgentGuard: Repurposing Agentic Orchestrator for Safety Evaluation of Tool Orchestration
  7. 2026MemMorph: Tool Hijacking in LLM Agents via Memory Poisoning
  8. 2025MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents