从协议规范文档中提取有限状态机的自动攻击合成
Automated Attack Synthesis by Extracting Finite State Machines from Protocol Specification Documents
摘要:
自动攻击发现技术(如攻击者合成或基于模型的模糊)提供了确保网络协议正确安全运行的强大方法。这些技术通常需要协议的形式化表示,通常采用有限状态机(FSM)的形式。不幸的是,许多协议仅用英文描述,即使是将简单的网络协议实现为FSM也很耗时,并且容易出现微妙的逻辑错误。从文档中自动提取协议FSM可以显著促进这些技术的使用,并导致更健壮和更安全的协议实现。在这项工作中,我们专注于攻击者的合成作为一个代表性的技术协议的安全性,并在RFC作为一个代表性的格式协议散文描述。与其他依赖于基于规则的方法或直接使用现成的NLP工具的作品不同,我们提出了一种数据驱动的方法来从RFC文档中提取FSM。具体而言,我们使用的混合方法包括三个关键步骤:(1)大规模的词表示学习的技术语言,(2)集中的零样本学习的协议文本映射到一个协议无关的信息语言,(3)基于规则的映射从协议无关的信息到一个特定的协议FSM。我们展示了我们的FSM提取的通用性,通过使用RFC为六个不同的协议:BGPv4,DCCP,LTP,PPTP,SCTP和TCP。我们演示了如何自动提取的FSM从RFC可以应用到合成的攻击,TCP和DCCP的案例研究。我们的方法表明,它是可能的自动攻击者合成协议使用文本规范,如RFC。
英文摘要:
Automated attack discovery techniques, such as attacker synthesis or model-based fuzzing, provide powerful ways to ensure network protocols operate correctly and securely. Such techniques, in general, require a formal representation of the protocol, often in the form of a finite state machine (FSM). Unfortunately, many protocols are only described in English prose, and implementing even a simple network protocol as an FSM is time-consuming and prone to subtle logical errors. Automatically extracting protocol FSMs from documentation can significantly contribute to increased use of these techniques and result in more robust and secure protocol implementations. In this work we focus on attacker synthesis as a representative technique for protocol security, and on RFCs as a representative format for protocol prose description. Unlike other works that rely on rule-based approaches or use off-the-shelf NLP tools directly, we suggest a data-driven approach for extracting FSMs from RFC documents. Specifically, we use a hybrid approach consisting of three key steps: (1) large-scale word-representation learning for technical language, (2) focused zero-shot learning for mapping protocol text to a protocol-independent information language, and (3) rule-based mapping from protocol-independent information to a specific protocol FSM. We show the generalizability of our FSM extraction by using the RFCs for six different protocols: BGPv4, DCCP, LTP, PPTP, SCTP and TCP. We demonstrate how automated extraction of an FSM from an RFC can be applied to the synthesis of attacks, with TCP and DCCP as case-studies. Our approach shows that it is possible to automate attacker synthesis against protocols by using textual specifications such as RFCs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。