AI guardrails, compared
on the same tests, losses included
Eight tools people shortlist for prompt injection and agent safety, two of them from Microsoft and Snyk. What each one is, what we could measure on the same data, and which to pick for what. Where we lose, it says so.
What each one is
Licence and shape first, because they decide most shortlists before any benchmark does.
| Tool | Licence | What it is | Where it runs |
|---|---|---|---|
| AgentFox | Apache-2.0 | Control plane: detectors on model traffic, tool calls bounded by capability grants, hash-chained audit trail | Self-hosted, offline by default; hosted version optional |
| Agent Governance Toolkit (Microsoft) | MIT | YAML policy checked on each tool call, message and delegation, plus agent identity, sandboxing and an audit trail; no detector on the text | Python library, also npm and NuGet; a Claude Code plugin |
| Agent Scan (Snyk, formerly Invariant's mcp-scan) | Apache-2.0 | Scanner for the agents, MCP servers and skills on a machine: injections, sensitive data and malware in their descriptions; starts the MCP servers to read their tools | CLI by uvx or binary; analysis through Snyk's API with a Snyk token, free tier rate-limited |
| LLM Guard (Protect AI) | MIT | Scanners for prompts and outputs: injection, PII, secrets, toxicity and more. Archived on GitHub, last change July 2026 | Python library or API server |
| NeMo Guardrails (NVIDIA) | Apache-2.0 | Dialogue rails in Colang, with LLM self-checks on input and output | Python library |
| Guardrails AI | Apache-2.0 | Validators on inputs and outputs from a hub, including a jailbreak detector | Python library |
| Prompt Guard 2 (Meta) | Model licence | A classifier for injection and jailbreaks, 22M and 86M; a model, not a product | Wherever you serve it |
| Lakera Guard (Check Point) | Proprietary | Hosted detection API for prompts and agent traffic; self-hosting on enterprise terms | SaaS, or your VPC by quote |
Measured on the same data
These rows come from our benchmark pages, where each number has a script, a results file and a limits list. Blank cells were not run, not hidden.
| Held-out injections caught | Harmless look-alikes flagged | AgentDojo attacks through | p50 latency, short message | |
|---|---|---|---|---|
| AgentFox, default | 68.3% | 11.5% | 0 / 588 | 63.1 ms |
| Agent Governance Toolkit | – | – | – | – |
| Agent Scan | – | – | – | – |
| LLM Guard, injection scanner | 31.7% | 42.2% | 86 / 588 | 56.1 ms |
| Prompt Guard 2, 86M | 20.0% | 3.5% | – | 54.4 ms |
| Guardrails AI, DetectJailbreak | – | – | – | 99.4 ms |
| NeMo Guardrails, self-check | – | – | – | 758 ms |
| Lakera Guard | – | – | – | – |
Where we lose: on AgentDojo, LLM Guard finishes 42 of 97 normal tasks without a person approving a step, and AgentFox finishes 24. Prompt Guard 2 flags fewer harmless prompts than we do, 3.5% against 11.5%. On attacks hidden in tool output, LLM Guard is more precise, 81.8% against our 66.7%. And LLM Guard's injection scanner answers 7 ms faster than our default, which runs five kinds of check.
Every security result with its limits The latency head-to-head
Which one, for what
Most teams need one of these, not all of them.
| You need | Start with |
|---|---|
| A scanner for prompts and model outputs, nothing in the tool path | Prompt Guard 2 if false alarms matter more than recall; LLM Guard is archived, so not for new work |
| A YAML policy on each tool call, with agent identity and sandboxing, from a large vendor | Agent Governance Toolkit |
| A one-off scan of the MCP servers and skills installed on a laptop, through a Snyk account | Agent Scan; AgentFox's scan machine does the same without starting the servers or an account |
| Scripted dialogue flows and topic rails for a chatbot | NeMo Guardrails |
| Validation of structured output, with a catalogue of checks | Guardrails AI |
| A managed service with a vendor on the hook | Lakera Guard |
| Agents that call tools, with a record an auditor can check without you | AgentFox |
- Lakera Guard was not run: it is closed and its terms do not allow the kind of benchmark we publish. Its row is described from Lakera's documentation.
- The Agent Governance Toolkit and Agent Scan were not run. The toolkit decides by a policy you write, so there is no detector to score on these sets; Agent Scan is a one-off scan with no runtime path and sends its analysis to Snyk. Both rows are described from their READMEs on 23 November 2026.
- LLM Guard's numbers stand as measured. Its repository was archived in July 2026 after Protect AI's acquisition, so pick it only for code that already depends on it.
- NeMo Guardrails and Guardrails AI appear in the latency run only. Their detection was not measured on our injection sets.
- Each figure is a single run at the tool's published default threshold. Versions and dates are on the benchmark pages where they were recorded, and missing where they were not.
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