以執行檔改寫支援涵蓋率導引之模糊測試
Coverage Guided Fuzz Testing with Binary Rewriting
摘要
模糊測試 ( Fuzz Testing ) 為現今尋找軟體漏洞的主要方式之一,而涵 蓋率導引 ( Coverage Guided ) 之模糊測試則是插入分析程式碼到目標程式 中,藉以搜集執行時的程式碼涵蓋率 ( Code Coverage ),並透過涵蓋率來 決定如何對輸入的測試資料進行變異,逐漸產生出更加具有高度程式碼涵 蓋率的測試資料,提高找到程式漏洞的可能性。
本篇論文提出了一種基於執行檔改寫 ( Binary Rewriting ) 技術對 Windows PE 格式執行檔進行靜態插入修改 ( Static Instrumentation ) 的技 術,能夠在沒有目標原始碼的情況下執行涵蓋率導引之模糊測試,相較於 現有的動態插入修改技術 ( Dynamic Binary Instrumentation ),可以達到兩 倍甚至以上的執行效率,並且能夠支援修改作業系統核心模組。
本篇論文提出了一種基於執行檔改寫 ( Binary Rewriting ) 技術對 Windows PE 格式執行檔進行靜態插入修改 ( Static Instrumentation ) 的技 術,能夠在沒有目標原始碼的情況下執行涵蓋率導引之模糊測試,相較於 現有的動態插入修改技術 ( Dynamic Binary Instrumentation ),可以達到兩 倍甚至以上的執行效率,並且能夠支援修改作業系統核心模組。
Fuzz Testing is one of the popular techniques for finding software vulnerabilities, and Coverage-Guided Fuzz Testing is injecting analysis code into the target programs to collect code-coverage during execution, and through the coverage rate to determine how to mutate the input test data, gradually produce test data with a higher code coverage, to increase the possibility of finding program vulnerabilities.
This paper proposes a static instrumentation method based on Binary Rewriting technology for Windows PE format executable files. It can achieve Coverage-Guided Fuzz Testing without target source code. Compared with the existing Dynamic Binary Instrumentation, it can achieve twice or more of execution efficiency, and also supports instrument OS kernel modules.
This paper proposes a static instrumentation method based on Binary Rewriting technology for Windows PE format executable files. It can achieve Coverage-Guided Fuzz Testing without target source code. Compared with the existing Dynamic Binary Instrumentation, it can achieve twice or more of execution efficiency, and also supports instrument OS kernel modules.