Auto-generated malicious tools can evade existing detection methods
The authors claim their MalTool framework can synthesize malicious tools that bypass current detectors
Security & privacy arXiv 12 Feb 2026 Attack Prototype evidence
Published as “MalTool: Malicious Tool Attacks on LLM Agents”
Why it matters
Current detection solutions are insufficient, indicating an urgent need for defenses that jointly analyze code, descriptions, and semantic consistency of LLM-agent tools.
Summary
MalTool can automatically synthesize malicious LLM-agent tools with a 100% attack success rate even when using safety-aligned coding LLMs, and existing program-analysis detectors (e.g., VirusTotal, Tencent A.I.G) miss almost all of these tools (false-negative rates near 1.0) while also flagging many benign tools (high false-positive rates).
What they found 1
- MalTool with the verifier achieves perfect attack success across all behaviors and models.
“MalTool with the verifier consistently achieves an ASR of 1.0 across all behaviors and all three coding LLMs”
Caveats 3
- Certain malicious behaviors, such as Data Exfiltration, API Key Abuse, and Remote Program Downloading, are relatively easier to detect, while others are consistently missed.
- Our attack instantiations focus on a set of representative malicious behaviors implemented using synthetic data and controlled infrastructure, and do not exhaust all possible attack instantiations in LLM-agent settings, such as multi-stage or long-horizon attacks.
- Dataset III consists of real-world tools collected from public repositories, and a small fraction of them may exhibit genuinely malicious behavior.
What’s new here 4
- First systematic study of code-level malicious tool implementations for LLM agents.
- Introduces a CIA-based taxonomy of malicious tool behaviors.
- Presents MalTool, an automated framework that uses a verifier and feedback loop to generate diverse, functionally correct malicious tools.
- Creates large benchmark datasets of standalone and Trojan malicious tools and evaluates existing detectors on them.