ClawGuard: a runtime safety framework for tool-augmented LLM agents against indirect prompt injectionClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injection
The researchers propose ClawGuard, a runtime safety framework that enforces a set of user confirmation rules at each tool-call boundary, used to defend tool-augmented LLM agents against indirect prompt injection by intercepting malicious tool calls before they produce real-world effects. Before calling external tools, the framework automatically derives task-specific access constraints from the user's goal, and without modifying the model or infrastructure it blocks all three injection paths, turning unreliable alignment-dependent defenses into a deterministic, auditable mechanism. Experiments on five state-of-the-art language models, six injection benchmarks covering web, local, MCP and skill channels, and three utility benchmarks covering OS, web and code tasks show that ClawGuard provides robust protection without harming agent utility or introducing significant token overhead. The code is publicly available at github.com/Claw-Guard/ClawGuard/.