Skip to main content
QUICK REVIEW

[Paper Review] AgentRFC: Security Design Principles and Conformance Testing for Agent Protocols

Shenghan Zheng, Qifan Zhang|arXiv (Cornell University)|Mar 25, 2026
Mobile Agent-Based Network ManagementComputer Science0 citations
TL;DR

The paper defines a 6-layer Agent Protocol Stack, a security model (AASM) with 11 invariants, and a two-phase conformance checker (AgentConform) to analyze and test agent protocols; it reveals cross-protocol composition safety gaps and reports preliminary findings across MCP, A2A, ANP, ACP.

ABSTRACT

AI agent protocols -- including MCP, A2A, ANP, and ACP -- enable autonomous agents to discover capabilities, delegate tasks, and compose services across trust boundaries. Despite massive deployment (MCP alone has 97M+ monthly SDK downloads), no systematic security framework for these protocols exists. We present three contributions. First, the Agent Protocol Stack, a 6-layer architectural model that defines what a complete agent protocol must specify at each layer -- analogous to ITU-T X.800 for the OSI stack. Second, the Agent-Agnostic Security Model, 11 security principles formalized as TLA+ invariants, each tagged with a property taxonomy (spec-mandated, spec-recommended, aasm-hardening, aps-completeness) that distinguishes protocol non-conformance from framework-imposed security requirements. Third, AgentConform, a two-phase conformance checker that (i)extracts normative clauses from protocol specifications into a typed Protocol~IR with explicit Protocol/Environment/Adversary action separation, (ii)compiles the IR into TLA+ models and model-checks them against AASM invariants, then (iii)replays counterexample traces against live SDK implementations to confirm findings. We introduce the Composition Safety (CS) principle: security properties that hold for individual protocols can break when protocols are composed through shared infrastructure. We demonstrate this with formal models of five protocol composition patterns, revealing cross-protocol design gaps that individual protocol analysis cannot detect. Preliminary application to representative agent protocols reveals recurrent gaps in credential lifecycle, consent enforcement, audit completeness, and composition safety. Some findings are under coordinated disclosure; full evaluation details will be released in the complete version.

Motivation & Objective

  • Propose a formal security framework for AI agent protocols that captures semantic properties beyond traditional cryptography.
  • Define a complete architectural model (APS) detailing what protocol completeness entails across layers.
  • Formalize security guarantees independent of a specific protocol via AASM invariants expressed in TLA+.
  • Develop AgentConform, a two-phase conformance checker that traces normative clauses to executable tests and live implementations.
  • Demonstrate composition safety risks when multiple agent protocols interact through shared bridges and conduits.

Proposed method

  • Introduce the six-layer Agent Protocol Stack (APS) and evaluate MCP, A2A, ANP, and ACP against its layers.
  • Formalize 11 Agent-Agnostic Security Model (AASM) invariants in TLA+ with a taxonomy for categorizing violations.
  • Build AgentConform to (i) extract normative clauses, (ii) convert to a typed Protocol IR, (iii) generate TLA+ models, (iv) model-check against AASM, and (v) replay counterexamples on live SDKs.
  • Use a Dolev-Yao+LLM threat model with ADV-1/2/3 attacker actions to represent adversarial capabilities.
  • Analyze cross-protocol composition with five composed models to identify Composition Safety (CS) violations.
  • Provide preliminary findings from Phase 1 (spec-level) and Phase 2 (implementation-level) analyses, including artifacts and disclosure considerations.

Experimental results

Research questions

  • RQ1What security properties are required for AI agent protocols beyond traditional transport-level security?
  • RQ2How can we formalize and verify these properties across multiple agent protocols using a unified model?
  • RQ3Do cross-protocol compositions introduce security gaps not detectable by analyzing individual protocols in isolation?
  • RQ4Can a two-phase conformance workflow connect abstract specifications to concrete SDK implementations effectively?
  • RQ5What are the prevalent composition-safety risks in current agent protocols (MCP, A2A, ANP, ACP) and how can they be mitigated?

Key findings

  • APS reveals transport security is complete across four protocols, while higher layers show gaps.
  • AASM formalizes 11 invariants (8 security properties + 3 completeness properties) and classifies violations using a taxonomy (spec-mandated, spec-recommended, aasm-hardening, aps-completeness).
  • AgentConform yields a 5×11 spec-level violations matrix (33 violations) in Phase 1 and 42 implementation-level tests in Phase 2.
  • Five composed models expose 20 composition-safety violations, with cross-protocol prompt/delegation amplification demonstrating CS risks.
  • Composition Safety shows that cross-protocol design gaps can propagate through bridges, undetectable by single-protocol analysis, with chained-server patterns as high risk.
  • Preliminary responsible disclosure and mitigation guidance are discussed; full evaluation details to be released with the complete version.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.