# AgentTrust: Runtime Safety Evaluation and Interception for AI Agent Tool Use

Source: [AgentTrust: Runtime Safety Evaluation and Interception for AI Agent Tool Use](<https://www.sota2.com/research/paper/69fc1c865497b3b670c88487>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-05-08T05:00:04.262Z

Authors: Chenglin Yang

Published: 2026-05-06T11:38:16.000Z

## Abstract

Modern AI agents execute real-world side effects through tool calls such as file operations, shell commands, HTTP requests, and database queries. A single unsafe action, including accidental deletion, credential exposure, or data exfiltration, can cause irreversible harm. Existing defenses are incomplete: post-hoc benchmarks measure behavior after execution, static guardrails miss obfuscation and multi-step context, and infrastructure sandboxes constrain where code runs without understanding what an action means.   We present AgentTrust, a runtime safety layer that intercepts agent tool calls before execution and returns a structured verdict: allow, warn, block, or review. AgentTrust combines a shell deobfuscation normalizer, SafeFix suggestions for safer alternatives, RiskChain detection for multi-step attack chains, and a cache-aware LLM-as-Judge for ambiguous inputs.   We release a 300-scenario benchmark across six risk categories and an additional 630 independently constructed real-world adversarial scenarios. On the internal benchmark, the production-only ruleset achieves 95.0% verdict accuracy and 73.7% risk-level accuracy at low-millisecond end-to-end latency. On the 630-scenario benchmark, evaluated under a patched ruleset and not claimed as zero-shot, AgentTrust achieves 96.7% verdict accuracy, including about 93% on shell-obfuscated payloads. AgentTrust is released under the AGPL-3.0 license and provides a Model Context Protocol server for MCP-compatible agents.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Agent Action Safety Verification on internal benchmark 300-scenario](<https://www.sota2.com/research/sota/agent-action-safety-verification-on-internal-benchmark-300-scenario.md>): Agent Action Safety Verification; internal benchmark 300-scenario; Verdict Accuracy: 95.

- [Safety Guardrail Classification on 630-scenario real-world benchmark (independent set)](<https://www.sota2.com/research/sota/safety-guardrail-classification-on-630-scenario-real-world-benchmark-independent-set.md>): Safety Guardrail Classification; 630-scenario real-world benchmark (independent set); Verdict Accuracy: 95.4.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2605.04785>)

[PDF](<https://arxiv.org/pdf/2605.04785.pdf>)
