Performance and benchmarks
Latency and cost against cloud guardrails, adversarial benchmark results, and how Mastyf compares.
Performance and cost
Cloud LLM guardrails add around 850 ms per tool call and bill per check. Mastyf's rules decide locally in about 1.5 ms (Protocol X, when it checks a call, takes about a second) for a flat monthly price. Adjust the inputs to compare.
| Measure | Cloud LLM guardrailsOpenAI, Lakera, NeMo | Mastyf Shield sidecarLocal policy check |
|---|---|---|
| Execution latency | +850 ms / call | ~1.5 ms rules (Protocol X ~1 s) |
| Agent idle waiting time | 177 hrs / month | 1125.0 sec total |
| Data privacy | Prompts sent to 3rd party | Rules run on your device; Protocol X checks and activity records go to Mastyf |
| Monthly cost | $2,250 / mo | $147 / mo flat |
Cloud guardrails incur high variable API costs and break fail-closed when the network connection drops.
Download Mastyf ShieldBenchmarks
Results on standard adversarial evaluation suites, with the methodology and proofs documented in an open-access preprint.
629 adversarial episodes, clean task utility matching the unprotected baseline
4,216 indirect-injection cases, intercepted at the tool call
One call at a time on a laptop CPU; about 5 ms at the 95th percentile. Protocol X takes about 1 s.
Open-access preprint, September 2026.DOI 10.5281/zenodo.22895043CC-BY 4.0, proofs and evaluation methodology included.
How Mastyf compares
Most agent security tools moderate the conversation or audit logs after the fact. Mastyf enforces at the execution boundary: it authorizes each tool call against your policy, tracks workflow state, and is tested continuously by adversarial runs.
| Capability | Mastyf | Microsoft Agent Toolkit | Noma Security | Obsidian | Nightfall |
|---|---|---|---|---|---|
| Runtime tool execution mediation | Yes (deterministic proxy) | In-app hooks | Network gateway | Post-action audit | DLP proxy |
| Zero backend bytes on blocked actions | Guaranteed (Axiom A1) | No (framework bound) | Varies | No | Yes (data plane) |
| Capability-Based Access Control (CBAC) | Yes (HMAC + Token Table) | Partial (RBAC) | Partial | No | No |
| Relational parameter invariants | Yes (4 typed invariants) | No | No | No | No |
| Decentralized Info Flow (DIFC) | Yes (taint propagation) | No | No | No | Pattern matching |
| Workflow sequence & certainty constraints | Yes (FSM state tracking) | Partial | No | No | No |
| Subordinate learned semantic auditor | Yes (Mastyf Guard 1.5B V6) | LLM judge | Cloud classifier | Model guardrails | Cloud detectors |
| Continuous adversarial CI/CD (Swarm) | Yes (Security Swarm) | PyRIT (separate) | Red-teaming service | No | No |
| MCP package trust & risk scoring | Yes (Mastyf Trust) | Marketplace check | Tool discovery | Asset inventory | No |
| Open-source self-hostable core | Yes (AGPL-3.0) | Yes (MIT/Apache) | No (SaaS only) | No (SaaS only) | No (SaaS only) |
| Published research & formal proofs | Yes (Theorems 1–3, Prop 1) | Whitepapers | Marketing docs | Reports | Docs |
Based on publicly documented product architectures as of 2026, including Microsoft Agent Governance Toolkit, Noma, Obsidian Security, and Nightfall MCP Gateway.