Skip to content

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.

ToolLicenceWhat it isWhere it runs
AgentFoxApache-2.0Control plane: detectors on model traffic, tool calls bounded by capability grants, hash-chained audit trailSelf-hosted, offline by default; hosted version optional
Agent Governance Toolkit (Microsoft)MITYAML policy checked on each tool call, message and delegation, plus agent identity, sandboxing and an audit trail; no detector on the textPython library, also npm and NuGet; a Claude Code plugin
Agent Scan (Snyk, formerly Invariant's mcp-scan)Apache-2.0Scanner 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 toolsCLI by uvx or binary; analysis through Snyk's API with a Snyk token, free tier rate-limited
LLM Guard (Protect AI)MITScanners for prompts and outputs: injection, PII, secrets, toxicity and more. Archived on GitHub, last change July 2026Python library or API server
NeMo Guardrails (NVIDIA)Apache-2.0Dialogue rails in Colang, with LLM self-checks on input and outputPython library
Guardrails AIApache-2.0Validators on inputs and outputs from a hub, including a jailbreak detectorPython library
Prompt Guard 2 (Meta)Model licenceA classifier for injection and jailbreaks, 22M and 86M; a model, not a productWherever you serve it
Lakera Guard (Check Point)ProprietaryHosted detection API for prompts and agent traffic; self-hosting on enterprise termsSaaS, or your VPC by quote

LLM Guard vs AgentFox, measured Lakera Guard vs AgentFox

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 caughtHarmless look-alikes flaggedAgentDojo attacks throughp50 latency, short message
AgentFox, default68.3%11.5%0 / 58863.1 ms
Agent Governance Toolkit––––
Agent Scan––––
LLM Guard, injection scanner31.7%42.2%86 / 58856.1 ms
Prompt Guard 2, 86M20.0%3.5%–54.4 ms
Guardrails AI, DetectJailbreak–––99.4 ms
NeMo Guardrails, self-check–––758 ms
Lakera Guard––––
Source: benchmarks

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 needStart with
A scanner for prompts and model outputs, nothing in the tool pathPrompt 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 vendorAgent Governance Toolkit
A one-off scan of the MCP servers and skills installed on a laptop, through a Snyk accountAgent Scan; AgentFox's scan machine does the same without starting the servers or an account
Scripted dialogue flows and topic rails for a chatbotNeMo Guardrails
Validation of structured output, with a catalogue of checksGuardrails AI
A managed service with a vendor on the hookLakera Guard
Agents that call tools, with a record an auditor can check without youAgentFox
Limits
  • 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