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 Guard | AgentFox | |
|---|---|---|
| Made by | Protect AI | Nometria |
| Licence | MIT | Apache-2.0 |
| Looks at | One string at a time: a prompt, or a model output | Model calls and tool calls, with what the agent was granted |
| Decides by | Scanners: a classifier for injection, plus PII, secrets, toxicity and more | Detectors, then capability grants and argument provenance at the tool call |
| Keeps | A verdict per scan | A hash-chained audit trail with a standalone verifier |
| Runs as | Python library or API server | Python 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.
| Defence | Attacks that got through | Normal tasks done without a person | Harmless tool outputs flagged |
|---|---|---|---|
| No defence | 588 / 588 | 97 / 97 | – |
| LLM Guard, default | 86 / 588 (14.6%) | 42 / 97 | 82 / 339 (24.2%) |
| AgentFox, default | 0 / 588 | 24 / 97 | 0 / 339 |
| AgentFox, detectors off | 0 / 588 | 24 / 97 | – |
| Both together | 0 / 588 | 11 / 97 | 82 / 339 |
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 caught | Harmless look-alikes flagged | Attacks 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 |
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 for | Short, p50 / p95 ms | Long, p50 / p95 ms | |
|---|---|---|---|
| LLM Guard, prompt-injection scanner | Prompt injection | 56.1 / 66.2 | 90.7 / 218 |
| AgentFox, no model | Seven kinds of deterministic check | 7.4 / – | – |
| AgentFox, default | Injection, PII, secrets, unsafe content, code | 63.1 / 77.6 | 117 / 412 |
| LLM Guard, nine default scanners | Injection, PII, secrets, toxicity and five more | 249 / 316 | 348 / 650 |
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.
- 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