Skip to content

Formal security analysis of agent protocol compositionFormal Security Analysis of Agent Protocol Composition

arXiv· arXiv:2606.28690· Shenghan Zheng, Qifan Zhang, Zheng Zhang, Haonan Li, Christophe HauserDartmouth College; Palo Alto Networks; Meta; UC RiversideIndexed by this site · 17 days ago· Originally publishedSelected EvaluationSelectedAttention39

Translation in progress — untranslated text is omitted.

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe researchers propose the AgentThread framework, which compiles agent protocol specification text into TLA+ model checking and replays counterexamples on real SDKs, finding 35 specification-level security issues across five protocol suites. The framework divides the security scope by RPC layer and agent layer; when protocols are composed, it escalates checks across five layers: message integrity, session lifecycle, identity and capability binding, semantic-to-permission isolation, and audit continuity; and for each finding it retains the original specification source and a responsibility-attribution record. The authors ran 80 implementation tests on MCP, A2A, ANP, ACP, and ACP-Client (including three MCP reference servers), and additionally found 30 failures that appear only under protocol composition. The authors state that in practice only one protocol suite truly enforces security-related controls, and that no protocol specifies an enforcing party for cross-protocol behavior; for example, the MCP specification requires servers to sanitize tool output, but the reference SDK does not sanitize it.

Questions
The security requirements of agent protocols such as MCP and A2A are scattered across specifications, SDKs and bridging layers; when individual components each work normally, a composed deployment may still exhibit injection, privilege escalation and missing audit, and no one is responsible for cross-protocol controls.
Methods
AgentThread extracts clauses with provenance from protocol text into a typed IR, compiles them into TLA+ models and uses TLC to generate counterexamples, then replays executable traces against real SDKs via adapters, and uses a Responsibility IR to record the ownership and enforcement evidence for each control.
Experiments and results
Across the five protocols, 35 specification-level findings, of which 80 implementation tests confirm 12; of 43 security obligations across 8 composition models, 30 have counterexamples; only ANP's DID authentication is a control that is both owned and enforced.
Limitations and future work
The authors note that the checks do not necessarily correspond to each protocol's design goals, that the IR is a snapshot abstraction, that the results do not apply to unbounded systems; the composition analysis is limited to pairwise compositions, the TLC constants are bounded, and ACP-Cap is archived with no responsibility records.
Why it was selectedThe authors use TLA+ to compile the specification text of five agent protocols into check items with source links and replay them on real SDKs; its layered scope and responsibility-attribution records can be compared against one's own protocol stack.

The authors use TLA+ to compile the specification text of five agent protocols into check items with source links and replay them on real SDKs; its layered scope and responsibility-attribution records can be compared against one's own protocol stack.

Read originalarxiv.org