PEKO: 基於軟體度量之模糊測試能量規劃

PEKO: Software-metric-based Power Schedule for Fuzzing

檔案

  • 01.pdf (383.8 KB, Adobe PDF)

日期

2021

類型

語言

中文

摘要

近年來模糊測試儼然已經成為軟體測試以及漏洞挖掘中不可或缺的一部分,尤其 在挖掘漏洞時,經常為模糊測試與人類專家的程式碼稽核同時進行,雖然現今的模糊 測試已經非常高效,但在程式較龐大及邏輯狀態較複雜時還是無可避免的花費過多的 資源於枝微末節,且多數模糊測試器中的能量規劃(Power Schedules)也難以使人類專 家介入。
本論文提出一種新的能量規劃方法以及其採用的一個基於 Halstead complexity measures 改良的軟體度量——程式錯誤關鍵預兆(Procedure Error Key-Omen, PEKO)。 透過統計每個種子(seed)運行時經過的函式集合的 PEKO 總和,則可知該種子發現 錯誤的潛力,模糊測試器據此將資源花費於較有潛力的種子上。除人類專家在程式碼 稽核時也能夠透過修改單一函式的 PEKO 來修改所有與該函式連通的函式的優先度之 外,亦能透過自動化的函式辨識分別增加危險函式、降低安全函式的 PEKO ,因此得 以將資源投資在較有潛力的種子上,同時夠避免模糊測試將資源不成比例的偏重於部 分種子上。
我們將 PEKO 能量規劃方法整合進 AFL++ 當中,在實驗中相較於現有的能量規 劃方式能更快找到漏洞,且在 binutil 中發現了 1 個新的 CVE。
Fuzz testing has become an integral part of software testing and vulnerability mining. Especially in vulnerability mining, human experts usually leverage a fuzzer to find a crash rapidly while conducting code audit or reverse engineering. Although current fuzz testing methods are efficient, they still unavoidably waste energy on trivial states when a program under test (PUT) is complex. We believe the waste of energy is mainly because a fuzzer lacks knowledge about a program. While it is challenging for a human expert to intervene in fuzzing processes, properly guiding a fuzzer would be the key to improving fuzzing performance.
This study introduces a power schedule based on a new software metric called Pro- cedure Error Key Omen (PEKO) to guide fuzzing processes. It drives the fuzzer to focus on possibly essential functions in a PUT by calculating the estimated PEKO value of the executed functions. PEKO values can be further fine-tuned by either human experts or external software analysis tools. Based on the feedback from humans and alternative external sources, the fuzzer can focus more on interesting parts of a PUT without wasting fuzzing resources.
We integrated our PEKO power schedule into the AFL++ fuzzer, which can reach vulnerabilities in our experiments more quickly than other power schedule and it found 1 CVE in nm-new.
顯示完整詮釋資料 統計資料

引用此條目

陳廷宇 (2021). PEKO: 基於軟體度量之模糊測試能量規劃. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/78063

BibTeX RIS

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

分享

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