運用符號執行之模組化脅迫生成系統

CRAXplusplus: Modular Exploit Generator using Symbolic Execution

檔案

日期

2022

類型

語言

中文

摘要

人工分析軟體漏洞並編寫脅迫腳本,通常需要我們對資訊安全的知識與技術有一定程度的掌握。因此,自動化軟體脅迫生成(Automatic Exploit Generation)成為一門研究領域,其目的在於自動地找出高危險並且必須即刻被修補的軟體漏洞。然而,縱使是目前最先進的軟體脅迫生成技術也鮮少考量到脅迫緩解機制所帶來的限制,例如:ASLR, NX, PIE, Canary 與 Full RELRO。LAEG 於 2021 年提出基於資訊洩漏來自動化繞過脅迫緩解機制的系統,但由 於該系統使用動態污點分析搭配德布魯因數列(De Bruijn Sequences)進行數據流分析,因此當目標軟體存在輸入轉換(Input Transformation)的操作時會導致該系統失效。
本研究提出 CRAXplusplus,一個基於 S2E 平台的模組化軟體脅迫生成系統。給定一個 x86_64 二進制目標程式與概念測資,該輸入會構成一條特定的執行路徑,我們運用擬真執行(Concolic Execution)來搜集該路徑的限制式,並且對其添加脅迫限制式,再透過求解器來產生最終的脅迫腳本。除此之外,本系統允許使用者新增自訂的脅迫技術模型(Technique)與分析模組(Module),以期將系統的可擴充性最大化。我們實作了數個脅迫技術模型,並設計兩個返回導向程式設計載荷(Payload)的串接算法。不僅如此,本系統內建兩個分析模組:IOStates 與 DynamicRop,前者將 LAEG 繞過脅迫緩解機制的方法整合到 S2E 的多路徑執行環境下,而後者讓本系統能在 S2E 中動態模擬返回導向程式設計的效果,並同時紀錄脅迫限制式。實驗結果顯示,當目標軟體存在特定且足夠的輸入/輸出執行狀態且能被用來洩漏所有必要的資訊時,儘管在脅迫緩解機制全部開啟,甚至當目標程式存在輸入轉換操作的情況下,CRAXplusplus 仍能夠生成可用的脅迫腳本,足以驗證本研究的有效性。
Manually crafting exploits for vulnerable binaries may require profound knowledge in computer security. Hence, automatic exploit generation becomes a research field, aiming to automatically discover exploitable bugs that need to be patched as early as possible. However, most state-of-the-art solutions targeting stack-based vulnerabilities cannot bypass exploit mitigations (ASLR, NX, PIE, Canary and Full RELRO). LAEG (2021) proposed leak-based exploit generation to bypass ASLR, NX, PIE and Canary, but since it performs lightweight data flow analysis using dynamic taint analysis and De Bruijn sequence, LAEG could not handle programs that perform input transformations.
This thesis proposes a modular exploit generator, CRAXplusplus, based on S2E. Given a x86_64 binary program and a PoC input, our system leverages concolic execution to collect the path constraints introduced by the PoC input, add exploit constraints to the crashing states, and query the constraint solver for exploit script generation. Our system supports custom exploitation techniques and modules with the aim of maximizing its extensibility. We implement several binary exploitation techniques in our system, and design two ROP payload chaining algorithms to build ROP payload from multiple techniques. In addition, we implement two modules: IOStates and DynamicRop. The former adapts the methodology of LAEG to the multi-path execution environment in S2E, and the latter enables our system to dynamically perform ROP inside S2E as it adds exploit constraints. Our results show that provided the target binary contains an adequate amount of input and output states to perform information leak, CRAXplusplus can still generate a working exploit script even when all the exploit mitigations are enabled at the same time, and even in the presence of basic input transformations.
顯示完整詮釋資料 統計資料

引用此條目

王冠中 (2022). 運用符號執行之模組化脅迫生成系統. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/79766

BibTeX RIS

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

分享

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