arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.23801cs.CR
收藏

AgentRFC:关于智能体协议的安全设计原则与合规性测试

AgentRFC: Security Design Principles and Conformance Testing for Agent Protocols

Dartmouth College(达特茅斯学院);Palo Alto Networks(帕洛阿尔托网络)

Shenghan Zheng, Qifan Zhang

AI总结:

本文提出AgentProtocolStack、Agent-AgnosticSecurityModel和AgentConform,旨在为智能体协议提供系统性的安全框架,解决协议合规性测试问题,并揭示协议组合时的安全隐患。

摘要:

AI智能体协议--包括MCP、A2A、ANP和ACP--使自主智能体能够在信任边界内发现能力、委托任务和组合服务。尽管MCP单个协议已拥有9700万+月度SDK下载量,但尚无系统性的安全框架。本文提出三个贡献:第一,AgentProtocolStack,一个6层架构模型,定义了完整智能体协议在每层必须指定的内容,类似于ITU-T X.800对OSI栈的定义。第二,Agent-AgnosticSecurityModel,11个安全原则以TLA+不变式形式化,每个原则都带有属性分类(spec-mandated、spec-recommended、aasm-hardening、aps-completeness),以区分协议不合规与框架规定的安全需求。第三,AgentConform,一个两阶段合规性检查器,(i)从协议规范中提取规范性条款,生成带有显式Protocol/Environment/Adversary动作分离的TypedProtocolIR,(ii)将IR编译为TLA+模型并对其与AASM不变式进行模型检验,然后(iii)将反例轨迹回放到实时SDK实现中以确认发现。我们引入了CompositionSafety(CS)原则:安全属性在个体协议中成立时,在通过共享基础设施组合协议时可能会失效。我们通过五个协议组合模式的正式模型展示了这一点,揭示了跨协议设计漏洞,这些漏洞个体协议分析无法检测。初步应用到代表性智能体协议揭示了凭证生命周期、同意执行、审计完整性及组合安全的反复漏洞。一些发现正在协调披露;完整评估细节将在完整版本中发布。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑