SCTP的形式化分析:攻击合成与补丁验证
A Formal Analysis of SCTP: Attack Synthesis and Patch Verification
AI总结:
本研究采用形式化方法分析SCTP协议安全性,构建Promela模型并定义10项核心属性,改造Korg工具合成4类攻击者模型下的14种攻击,验证了现有补丁的安全性,同时发现RFC的一处歧义并提出勘误方案。
摘要:
SCTP是一种具备多宿主、多流、面向消息交付等特性的传输协议,其两大主流实现已通过PacketDrill工具完成一致性测试。但一致性测试无法覆盖所有场景,近期曝出的漏洞(CVE-2021-3772)表明SCTP并非完全免疫攻击。目前针对该漏洞的修复方案已落地,但协议设计中是否仍潜藏其他缺陷仍未可知。\n本研究采用基于形式化方法的严谨路径,探究SCTP设计的安全性。我们构建了SCTP的Promela形式化模型,并结合RFC规范内容及与RFC核心作者的沟通,定义了10项体现协议核心功能的属性,随后通过Spin模型检测器验证了模型满足上述属性。我们定义了4种攻击者模型:Off-Path(离路径)模型,即攻击者为可伪造对端端口与IP的外部攻击者;Evil-Server(恶意服务器)模型,即攻击者为恶意对端;Replay(重放)模型,即攻击者可捕获并重放但无法篡改数据包;On-Path(在路径)模型,即攻击者可掌控对端之间的通信信道。我们对专为传输协议设计的攻击合成工具Korg进行改造,使其支持本次的SCTP模型与四类攻击者模型。\n借助这些攻击者模型,我们共合成了14种独特攻击:包括Off-Path攻击者模型下的CVE漏洞、Evil-Server攻击者模型下的4种攻击、Replay攻击者模型下的机会式ABORT攻击,以及On-Path攻击者模型下的8种连接操控攻击。基于我们的模型与协议属性验证,所提补丁可消除该漏洞且不会引入新漏洞。最后,我们识别并分析了RFC中的一处歧义点,证明其存在被不安全解读的可能,据此提出了勘误方案并验证其可消除该歧义。
英文摘要:
SCTP is a transport protocol offering features such as multi-homing, multi-streaming, and message-oriented delivery. Its two main implementations were subjected to conformance tests using the PacketDrill tool. Conformance testing is not exhaustive and a recent vulnerability (CVE-2021-3772) showed SCTP is not immune to attacks. Changes addressing the vulnerability were implemented, but the question remains whether other flaws might persist in the protocol design. We study the security of the SCTP design, taking a rigorous approach rooted in formal methods. We create a formal Promela model of SCTP, and define 10 properties capturing the essential protocol functionality based on its RFC specification and consultation with the lead RFC author. Then we show using the Spin model checker that our model satisfies these properties. We define 4 attacker models - Off-Path, where the attacker is an outsider that can spoof the port and IP of a peer; Evil-Server, where the attacker is a malicious peer; Replay, where an attacker can capture and replay, but not modify, packets; and On-Path, where the attacker controls the channel between peers. We modify an attack synthesis tool designed for transport protocols, Korg, to support our SCTP model and four attacker models. We synthesize 14 unique attacks using the attacker models - including the CVE vulnerability in the Off-Path attacker model, 4 attacks in the Evil-Server attacker model, an opportunistic ABORT attack in the Replay attacker model, and eight connection manipulation attacks in the On-Path attacker model. We show that the proposed patch eliminates the vulnerability and does not introduce new ones according to our model and protocol properties. Finally, we identify and analyze an ambiguity in the RFC, which we show can be interpreted insecurely. We propose an erratum and show that it eliminates the ambiguity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。