Authenticated and Offline-Verifiable Agent-to-Agent Messaging for LLM Agents

Authors:

Abstract
The latest A2A systems often use LLM-based agents for tool calling and planning workflows, introducing risks such as prompt injection attacks. We introduce a lightweight, proof-carrying receipt for agent-to-agent (A2A) messaging that supports fully offline verification. This receipt enables third parties to verify who authored a message and confirm whether it was logged, without contacting the sender, the receiver, or any online service. An agent signs a canonical JSON representation of each message. Servers log the payload hash in a Merkle tree and periodically sign the tree state as a Signed Tree Head (STH). The returned bundle includes a receipt containing a Merkle proof, an STH, and a minimal decentralized identifier (DID) registry for offline key discovery. A verifier recomputes the Merkle root and validates the payload-hash match, Merkle inclusion, and both the STH and client signatures entirely offline. In our prototype, the proof size grows as $O(\log N)$, and the median offline verification time is approximately 0.4 s on our test platform. Receipts self-authenticate individual messages within a single transparency log, providing a lightweight alternative to other approaches.

This publication has 14 references indexed in Scilit: