← Lab /AI/ML

ClawGuard blocks all indirect prompt injection attacks on tool-augmented LLM agents

ClawGuard prevents every indirect prompt injection pathway without modifying models or infrastructure

AI/ML arXiv 13 Apr 2026 Defense Prototype evidence Threat model

Published as “ClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injection”

Why it matters

Provides an immediately deployable, model-agnostic safeguard for tool-augmented LLM agents without requiring fine-tuning or protocol changes.

Summary

CLAWGUARD eliminates indirect prompt injection on the AgentDojo benchmark (0% attack success, 100% defense success) and cuts attack success to 4.8-14% on SkillInject and 10.2-11.2% on MCPSafeBench, showing strong protection across three injection channels. The evidence comes from experiments on five LLM backbones and three public benchmarks, though the basic-rule configuration still leaves some attacks unblocked.

What they found 2

  1. Zero attack success on AgentDojo with perfect defense success

    “ASR reaches 0% across all backbone models, achieving perfect 100% DSR on AgentDojo.”

  2. Attack success reduced to 4.8-14% on SkillInject (50-84% relative reduction)

    “With CLAWGUARD (basic-rule configuration), overall ASR falls to 4.8-14%, achieving a 50-84% relative reduction.”

Caveats 4

  • Residual ASR of 4.8-14% on SkillInject and 10.2-11.2% on MCPSafeBench shows the defense is not perfect across all benchmarks.
  • Residual failures are limited to content-misleading attacks and stealth injections where the basic-rule configuration lacks sufficient endpoint coverage.
  • the current evaluation employs the basic-rule configuration of CLAWGUARD, in which the active rule set consists solely of the baseline rule set Rbase without the task-specific rule induction component; full results incorporating contextaware rule induction will be reported in a future version.
  • Residual failures are limited to content-misleading attacks whose outcomes manifest in LLM-generated content rather than tool-call operations, and stealth injections in domains with insufficient endpoint coverage, confirming that context-aware rule induction is essential for comprehensive deployment.

What’s new here 4

  • Deterministic runtime enforcement at every tool-call boundary without modifying the LLM.
  • Automatic, user-confirmed task-specific rule induction that requires no manual rule authoring.
  • Model-agnostic protection that works with closed-source APIs and heterogeneous tool ecosystems.
  • Unified defense against web/local content, MCP server, and skill file injection channels.

Threat model stated by the source

Adversaryentity controlling tool outputs
Capabilitycraft arbitrary poisoned tool return content (black-box access to tool output channels)
Assumesno access to system prompt; no access to conversation history prior to injection; no access to model weights; cannot modify user-facing input