ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents
Published in arXiv preprint (arXiv:2609.37196), submitted to IEEE Transactions on Information Forensics and Security, 2026
Tool-using LLM agents can be redirected by attacker-controlled content into unauthorized actions, including changes to sensitive arguments within an otherwise legitimate tool call. ToolFence compiles authenticated user requests into typed, task-scoped capabilities and uses a deterministic Guarded Colored Petri Net monitor to check proposed tool calls and their argument values before execution. An isolated LLM judge can review legitimate steps that require a missing capability. We evaluate ToolFence on AgentDojo, MCPTox, ASB, and AgentLAB across four LLMs.
Recommended citation: Yanjie Li, Yiming Cao, and Bin Xiao. (2026). "ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents." arXiv preprint, arXiv:2609.37196.
Download Paper