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.

25,000 / day
3 developers
MeasureCloud LLM guardrailsOpenAI, Lakera, NeMoMastyf Shield sidecarLocal policy check
Execution latency+850 ms / call~1.5 ms rules (Protocol X ~1 s)
Agent idle waiting time177 hrs / month1125.0 sec total
Data privacyPrompts sent to 3rd partyRules run on your device; Protocol X checks and activity records go to Mastyf
Monthly cost$2,250 / mo$147 / mo flat
Estimated saving$2,103 / mo

Cloud guardrails incur high variable API costs and break fail-closed when the network connection drops.

Download Mastyf Shield

Benchmarks

Results on standard adversarial evaluation suites, with the methodology and proofs documented in an open-access preprint.

AgentDojoPaper result
99.52%
Attack defense rate

629 adversarial episodes, clean task utility matching the unprotected baseline

InjecAgentPaper result
98.43%
Indirect tool injection

4,216 indirect-injection cases, intercepted at the tool call

Rule checkMeasured
~1.5 ms
Median time per 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.

Paper, theorems, and limitations

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.

CapabilityMastyfMicrosoft Agent ToolkitNoma SecurityObsidianNightfall
Runtime tool execution mediationYes (deterministic proxy)In-app hooksNetwork gatewayPost-action auditDLP proxy
Zero backend bytes on blocked actionsGuaranteed (Axiom A1)No (framework bound)VariesNoYes (data plane)
Capability-Based Access Control (CBAC)Yes (HMAC + Token Table)Partial (RBAC)PartialNoNo
Relational parameter invariantsYes (4 typed invariants)NoNoNoNo
Decentralized Info Flow (DIFC)Yes (taint propagation)NoNoNoPattern matching
Workflow sequence & certainty constraintsYes (FSM state tracking)PartialNoNoNo
Subordinate learned semantic auditorYes (Mastyf Guard 1.5B V6)LLM judgeCloud classifierModel guardrailsCloud detectors
Continuous adversarial CI/CD (Swarm)Yes (Security Swarm)PyRIT (separate)Red-teaming serviceNoNo
MCP package trust & risk scoringYes (Mastyf Trust)Marketplace checkTool discoveryAsset inventoryNo
Open-source self-hostable coreYes (AGPL-3.0)Yes (MIT/Apache)No (SaaS only)No (SaaS only)No (SaaS only)
Published research & formal proofsYes (Theorems 1–3, Prop 1)WhitepapersMarketing docsReportsDocs

Based on publicly documented product architectures as of 2026, including Microsoft Agent Governance Toolkit, Noma, Obsidian Security, and Nightfall MCP Gateway.