ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Tool-using LLM agents remain vulnerable to indirect prompt injection because trusted instructions and untrusted observations share one context, allowing malicious content to steer consequential input-filtering defenses. Multi-path consensus defenses still leave a high attack success rate because they examine content or aggregated outputs rather than authorizing effects, especially for the within-tool attack, which preserves the intended tool but manipulates its arguments. Data-Flow Control such as CaMeL provides stronger guarantees, but incurs substantial time latency that limits practical deployment. We introduce ToolFence, which compiles a typed authorization blueprint before execution, enforces it through a deterministic monitor, and when the blueprint is incomplete asks a judge to grant new capabilities rather than adjudicate each concrete call. ToolFence provides two key advantages. First, its fine-grained provenance-aware authorization enables the system to distinguish user-authorized values from untrusted observations, effectively addressing the within-tool attack. Second, its deterministic fast path and capability-level runtime grants substantially reduce the frequency of expensive judge calls, improving runtime efficiency. On AgentDojo with Qwen3-max, ToolFence reduces overall ASR to near zero with only a 3.80 percentage-point clean-utility drop and practical runtime overhead.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 31 of its 44 references that are in the map. First posted on arXiv 29 Sep 2026.
Builds on
31 of 44 references.
Closest ancestors · 7
Same direction, newest first
- 2026ICON: Indirect Prompt Injection Defense for Agents based on Inference-Time Correction24 Feb
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
- 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
- 2025Defeating Prompt Injections by Design24 Mar
- 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agents17 Mar
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
Other references · 24
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 401
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 325
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 185
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 179
12 more
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 124
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 123
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 113
- 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 108
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuningcited by 89
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 70
- 2025Lessons from Defending Gemini Against Indirect Prompt Injectionscited by 40
- 2025A Critical Evaluation of Defenses against Prompt Injection Attackscited by 31
- 2025Defending Against Prompt Injection with DataFiltercited by 30
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 13
- 2025SecInfer: Preventing Prompt Injection via Inference-time Scalingcited by 10
- 2025PISanitizer: Preventing Prompt Injection to Long-Context LLMs via Prompt Sanitizationcited by 10
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents
- 2026OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agents
- 2026Capability Gates Are Not Authorization: Confused-Deputy Failures in LLM Agent Frameworks
- 2026WebMCP-Phalanx: Enforcing and Characterizing Trust Boundaries for Browser-Integrated LLM Agents
- 2026ROPE: Routed Origin Policy Enforcement against Indirect Prompt Injection
- 2026ClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injection
- 2025MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agents
- 2026The Granularity Mismatch in Agent Security: Argument-Level Provenance Solves Enforcement and Isolates the LLM Reasoning Bottleneck