強化記憶體錯誤偵測以支援模糊測試

Enhanced Memory Error Detection for Fuzz Testing

檔案

  • 01.pdf (480.2 KB, Adobe PDF)

日期

2020

類型

語言

英文

摘要

模糊測試是一種軟體測試技術,被視為一種有效的軟體漏洞挖掘方法。模糊測試通常結合記憶體錯誤偵測工具,在程式運行期間持續檢查程式是否發生記憶體錯誤,在程式發生嚴重記憶體錯誤導致程式崩潰之前捕獲該錯誤。目前有許多記憶體錯誤偵測工具,像是 Valgrind、AddressSanitizer、MemorySanitizer 和 TheadSanitizer,這些不同的記憶體錯誤偵測工具有不同的實現方式,分別偵測不同種類的記憶體錯誤,其中 AddressSanitizer 最為廣泛運用。Google OSS-Fuzz project 是由 Google 發起的專案,提供開放原始碼程式持續有效的運行模糊測試,OSS-Fuzz project 就是採用 AddresssSanitizer 作為記憶體錯誤偵測工具。然而 AddressSanitizer 依然存在侷限性。例如無法偵測 C 語言結構內部發生的越界存取漏洞。
此篇論文基於 AddressSanitizer,改進了上述侷限性,提供偵測結構內部越界存取的能力。實驗結果顯示,本篇論文提出的方法成功偵測到 CVE-2018-1160 這個結構內部越界存取漏洞。此外,我們自行設計的實驗在程式中製造結構內部越界存取漏洞,分別比較原始的 AddressSanitizer 以及本篇論文的方法,結果顯示原始的 AddressSanitizer 僅能偵測到 20% 的漏洞,對比本篇論文的方法偵測到了將近 70% 的漏洞。性能開銷方面,本篇論文的方法僅產生約 1% 的性能開銷。另外,本篇論文透過對 Google OSS-Fuzz project 中的開放原始碼程式執行模糊測試,評估此篇論文方法的相容性。
Fuzz Testing is one of the most popular software testing techniques and is an effective method of discovering software vulnerability. It often combines memory error detection techniques to catch memory errors before the target program crashes. Currently, there are several memory-error debugging tools, including AddressSanitizer, MemorySanitizer, and ThreadSanitizer, to discover memory error bugs or data races in software testing. However, these state-of-the-art memory error debugging tools still have limitations. For instance, AddressSanitizer cannot detect the overflow occurring within structures.
In this paper, we propose a memory debugging tool that can detect out-of-bounds accesses within structures by extending AddressSanitizer. We can catch the overflow caused by insecure functions. The experiment result shows that our approach successfully detects the CVE-2018-1160, which is an intra-object-overflow vulnerability existed in Netatalk. Furthermore, we create intra-object-overflow vulnerabilities in the test program to evaluate the ability of our approach. The result shows that the original AddressSanitizer only detects 20% vulnerabilities, but our work detects 70% vulnerabilities. On performance overhead, our approach only causes 1% overhead compared to the original AddressSanitizer. To evaluate the compatibility, we launch Fuzz Testing on several open-source programs within Google OSS-Fuzz Project.
顯示完整詮釋資料 統計資料

引用此條目

Zhan, J.-J. (2020). Enhanced Memory Error Detection for Fuzz Testing. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/74017

BibTeX RIS

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

分享

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