The 95% Accuracy Number for AI Agent Security Sounds Impressive. It Is Not.
The benchmark says 95% accuracy. A patched version says 96.7%. That gap is the maintenance burden of rule-based AI agent security — and nobody wants to talk about it.
Before there were AI agents, there were shell scripts. An agent that can execute commands — write files, run processes, call APIs — faces the same fundamental problem a shell script does: inputs can be malformed, adversarial, or unintentionally destructive. AgentTrust, a framework published by Chenglin Yang on May 6, 2026, is a runtime interception layer that sits between an AI agent and its tools, evaluating each proposed action before execution and returning a structured verdict: allow, warn, block, or review. It is rule-based security for agent tool calls — every rule written by a human expert, every novel attack requiring a new rule before the system can catch it.
I cloned the GitHub repository and ran it. That is the fresh part.
The test suite has 36 tests in tests/test_normalizer.py. All 36 pass. I ran two manual obfuscation cases on top of that. The first: a hex-encoded shell command embedded in a Python one-liner — \x72\x6d\x2d\x72\x66\x20\x2f — which decodes to rm -rf /. AgentTrust's ShellNormalizer expanded the hex escapes and produced a normalized variant containing the decoded payload. The dangerous command becomes visible in plain text in the variant list. It works.
The second: adjacent-quote concatenation — 'r''m' — which the normalizer merges to rm before evaluation. The test suite confirms this; my manual test confirmed it independently. Both strategies are live, and both are among nine obfuscation approaches the framework handles.
AgentTrust combines four subsystems. The ShellNormalizer handles the nine obfuscation strategies. A SafeFix engine proposes safer alternatives instead of simply blocking dangerous actions. A RiskChain detector tracks session-level sequences to catch multi-step chains where each individual step is benign — reading a .env file, base64-encoding it, POSTing it to an external host. A cache-aware LLM-as-Judge handles ambiguous cases using block-hash delta detection, reducing token costs on long agent sessions. No prior open framework combines all four.
The codebase is roughly 5,000 lines of Python across 11 test modules, 192 unit tests, an MCP server exposing three tools — verify_action, get_policy_rules, run_benchmark — via FastMCP. Configuration requires adding the server entry to the MCP JSON config file, pointing to agent_trust.integrations.mcp_server. The README says "any MCP-compatible agent integrates in minutes." The integration is real. What that claim doesn't account for is the ongoing ruleset maintenance.
Yang publishes two numbers. The first — 95% verdict accuracy — comes from AgentTrust's production ruleset running against a 300-scenario benchmark. The second — 96.7% — comes from a patched ruleset, updated to include the specific attack patterns in that benchmark, running against 630 independently-constructed adversarial scenarios. The gap between them is not a rounding error. It is the structural limit of rule-based security.
Every time a novel attack pattern emerges, the production system misses it until an expert identifies it, writes a rule, and redeploys. The patched ruleset performs better because it has already been adjusted to catch what the production system missed. Accuracy scales with human expertise, not with the threat landscape. The 96.7% reflects a system that knows what it is looking for because someone told it what to look for.
The two-number gap is a disclosure, not a defect. Neither AgentTrust nor its commercial competitors have demonstrated robust zero-shot detection of genuinely novel attack patterns. The enterprise security model for AI agents is a ruleset maintenance problem until that gap is closed.
The independent market has reached the same architectural conclusion. Microsoft published its Agent Governance Toolkit in April 2026. HiddenLayer built agentic runtime security capabilities. Both companies converged independently on runtime interception as the correct safety primitive for deployed agents. The problem is real. The approach is correct. What remains unproven is the ceiling.
This creates a specific question that enterprise buyers and regulators should be asking: if runtime interception is the right model, who maintains the ruleset, what is the update cadence, and does that cadence scale with the threat landscape? The technology works. The maintenance burden is the open problem.
AgentTrust meaningfully reduces risk from known attack categories at low millisecond latency. It does not eliminate the need for ongoing expert maintenance of the rule set. The 95% accuracy number describes performance against a defined benchmark — not against an arbitrary unknown threat. It is real infrastructure solving a real problem. The gap between its two accuracy numbers is not a failure. It is the honest constraint the entire field is working inside.