Skip to content

LLM Guard vs AgentFox
measured, not described

Both ran on the same AgentDojo replay, the same held-out injections and the same machine. LLM Guard finishes more normal tasks than we do. We stop more attacks, including with our detectors off. LLM Guard's repository was archived in July 2026, after Protect AI's acquisition; the numbers stand, the project does not move.

Two different shapes

This is the difference every number below comes from.

LLM GuardAgentFox
Made byProtect AINometria
LicenceMITApache-2.0
Looks atOne string at a time: a prompt, or a model outputModel calls and tool calls, with what the agent was granted
Decides byScanners: a classifier for injection, plus PII, secrets, toxicity and moreDetectors, then capability grants and argument provenance at the tool call
KeepsA verdict per scanA hash-chained audit trail with a standalone verifier
Runs asPython library or API serverPython library, proxy, MCP governor, coding-agent hooks or HTTP gateway

Attacks on a tool-using agent

AgentDojo's 97 user tasks and 588 injection attacks, replayed through each guard with the model's calls taken from the answer key.

DefenceAttacks that got throughNormal tasks done without a personHarmless tool outputs flagged
No defence588 / 58897 / 97–
LLM Guard, default86 / 588 (14.6%)42 / 9782 / 339 (24.2%)
AgentFox, default0 / 58824 / 970 / 339
AgentFox, detectors off0 / 58824 / 97–
Both together0 / 58811 / 9782 / 339
Source: benchmarks/head_to_head

LLM Guard reads each tool output and decides whether it holds an injection; most of its 86 misses are attacks past that point. AgentFox stops the call the injection asks for, which is why the detectors-off row is the same as the default row. The cost is on the other side: three in four normal tasks needed a person to approve a step. In its long-input mode, with a threshold picked on this test set, LLM Guard also stops all 588 at the same 24 tasks, but flags 38% of harmless tool outputs on the way.

Detection accuracy

The detectors alone, on prompts neither tool had seen.

Held-out injections caughtHarmless look-alikes flaggedAttacks hidden in tool output
LLM Guard's model (ProtectAI DeBERTa v2)31.7%42.2%9 of 10 caught, 81.8% precision
AgentFox default (PIGuard and patterns)68.3%11.5%10 of 10 caught, 66.7% precision
Source: benchmarks/injection

LLM Guard is the more precise of the two on attacks hidden in tool output, with two false alarms on the harmless half against our five.

What each check costs

p50 and p95 on the same machine, short and long messages.

Checks forShort, p50 / p95 msLong, p50 / p95 ms
LLM Guard, prompt-injection scannerPrompt injection56.1 / 66.290.7 / 218
AgentFox, no modelSeven kinds of deterministic check7.4 / ––
AgentFox, defaultInjection, PII, secrets, unsafe content, code63.1 / 77.6117 / 412
LLM Guard, nine default scannersInjection, PII, secrets, toxicity and five more249 / 316348 / 650
Source: benchmarks/latency

The full latency run

Which one

Honest version.

If you need a scanner in front of a chat model and nothing touches a tool, LLM Guard is lighter, more precise on tool-output injections, and a few milliseconds faster for injection alone. If your agent calls tools and you have to show what it was allowed to do and what it did, AgentFox holds after the scanner misses, and keeps the record. Running both is supported and stops the same 588; it also leaves only 11 tasks running without a person, so tune the grants first.

Limits
  • No model was run in the AgentDojo replay; the agent's calls are the benchmark's own answer key.
  • Each figure is one run at published default thresholds. The LLM Guard version and run dates were not recorded.
  • Sending a call to a person counts as stopping it.

Moving from LLM Guard: the same calls, mapped The write-up of this run All guardrails compared

Try AgentFox on your own agent

One command finds your agents. It starts in watch mode, so nothing is blocked until you say so.

uvx agentfox scan