Published September 22, 2026 | Version v22

Capability-Mediated Perimeters for Secure AI Agent Tool Execution: Conditional Non-Escalation Invariants and Empirical Evaluation Against Indirect Prompt Injection

Authors/Creators

Description

Abstract — Autonomous AI agents executing over extensible tool interfaces (such as Anthropic MCP) operate with ambient authority over connected tools. Autoregressive Transformers ingest instructions and untrusted data in a single context window, allowing adversarial observations to manipulate the model into executing unintended privileged actions—the Confused Deputy problem. We treat LLM agents as potentially compromised principals and govern tool dispatch with a capability-mediated reference monitor enforcing complete mediation, least privilege, and four typed invariants: destination containment, scope boundedness, privilege monotonicity, and aggregate monetary clamping. Formalized as an Inductive Multi-Step Tool Chain Composability Invariant (Proposition 1), out-of-scope invocation is deterministically rejected at transport.

Six-Regime Empirical Validation (6,662 cases, checkpoint V6): 100% CIR on diagnostics (N=145), 98.43% defense on InjecAgent (N=4,216), 92.44% on AI Safety Bench, 99.52% on AgentDojo (N=629), 100% on 500 adaptive red-team trials. Mastyf Security Gateway v0.1.1-rc1 verifies 118/118 invariant tests, >330,000 req/s throughput.

Files

  • mastyf-guard.pdf — Full manuscript (9.2 MB)
  • mastyf-evidence-bundle.zip — Reproducibility package (96.8 MB): 76 benchmark JSON reports, 5 PDF reports, external datasets (BIPIA, InjecAgent, ASB, AgentDojo, deepset), training JSONL data, 34 figures, LaTeX source, MANIFEST.json with SHA-256 checksums.

Files

mastyf_guard_1.5B.pdf

Files (139.9 MB)

Name Size
md5:3f70c7fd4a80ad3b9af817704bd77bd2
96.8 MB Preview Download
md5:32143c105b99af11c1c734ab083d4f68
33.8 MB Preview Download
md5:580fc0343ca7e64d5abd69e1470eaa06
9.3 MB Preview Download

Additional details

Related works

Is new version of
10.5281/zenodo.22179415 (DOI)