ReFSM:基於封包記錄檔解析之逆向工程與擴展有限狀態機之自動通訊協議測試產生器

ReFSM: Reverse Engineering from Protocol Traces to Test Generation by Extended Finite State Machines

檔案

日期

2018

類型

語言

英文

摘要

通訊協議逆向工程有助於自動取得通訊協議的標準,並常被網路安全系統以及測試項目產生工具所使用。為了達到更好的準確性,通訊協議逆向工程需要同時擷取訊息交換的順序以及訊息的內容。
然而,現有的技術只著重在將訊息交換的順序轉換成一個有限狀態機而不考慮訊息的內容。擴展有限狀態機使每個狀態具有記憶體,狀態之間的交換也新增了對資料內容的條件,是一個常被用來表示資料內容流的方法。我們提出了一個新的方法 ReFSM ,解析封包記錄檔並轉換成通訊協議的擴展有限狀態機。我們使用了兩種基於文字的通訊協議 (FTP 和 SMTP) 以及兩種二進位的通訊協議(Bittorrent) 來測試我們的方法。根據測試結果顯示 ReFSM 的覆蓋範圍和正確性都高於 90 %,並且推測出來的擴展有限狀態機也很接近通訊協議原本的標準。
Protocol reverse engineering is helpful to automatically obtain the specification of protocols which are useful for network security systems and test case generation tools. To achieve better accuracy, these kinds of applications require good models that should capture not only the order of exchanging message (control flow aspect), but also the data being transmitted (data flow aspect).
However, current techniques only focus on inferring the control flow represented as a Finite State Machines (FSM) and without interpreting the data flow. The Extended Finite State Machine (EFSM), embedding memories in the states and data guards in the FSM transitions, is a method commonly used to represent the data flow. In this work, we propose the ReFSM, a novel method to infer the EFSMs of protocols from only the network traces. Our method is evaluated by using datasets of four network traces including two text-based protocols (FTP and SMTP) and two binary protocols (Bittorrent and PPLive). Based on the evaluation results, the coverage, accuracy scores of correctness and behavior of inferred models are always higher than 90%. The inferred EFSMs are close to the correct model deriving from protocol specification.
顯示完整詮釋資料 統計資料

引用此條目

Quan Bui Tien (2018). ReFSM: Reverse Engineering from Protocol Traces to Test Generation by Extended Finite State Machines. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/68435

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/68435