基於安全相關操作導引之多參數模糊測試
顯示簡易詮釋資料 統計資料| 欄位 | 內容 | 語言 |
|---|---|---|
dc.catalog.0080 |
241009 | |
dc.catalog.00818 |
a | |
dc.catalog.00818 |
d | |
dc.catalog.00818 |
| | |
dc.catalog.00818 |
| | |
dc.catalog.0087 |
2023 | |
dc.catalog.020 |
平裝 | |
dc.catalog.041 |
chi | |
dc.catalog.041 |
eng | |
dc.catalog.300c |
30 | |
dc.contributor.advisor |
黃世昆 | |
dc.contributor.advisor |
Huang, Shih-Kun | |
dc.contributor.author |
張逸軍 | |
dc.contributor.author |
Chang, Yi-Chun | |
dc.contributor.campus |
光復 | |
dc.contributor.college |
資訊學院 | |
dc.contributor.committee |
孔崇旭 | |
dc.contributor.committee |
葉肇鈞 | |
dc.contributor.committee |
黃世昆 | |
dc.contributor.committee |
Koong, Chorng-Shiuh | |
dc.contributor.committee |
Yeh, Chao-Chun | |
dc.contributor.committee |
Huang, Shih-Kun | |
dc.contributor.department |
資訊科學與工程研究所 | |
dc.contributor.dpcode |
CSAEG | |
dc.contributor.idpcode |
3551 | |
dc.contributor.studentid |
310551034 | |
dc.date.NCLavailable |
2023/10/20 | |
dc.date.USTavailable |
2023/10/20 | |
dc.date.issued |
2023 | |
dc.date.issuedROC |
112 | |
dc.date.paperavailable |
立即公開 | |
dc.date.schoolyear |
112 | |
dc.description.abstract |
隨著科技的不斷進步,軟體品質已經成為人們越來越注重的焦點,因為軟體中的任何一個缺陷都有可能為攻擊者提供潛在的攻擊機會,而自動化的測試通常有較高的效率和準確度,所以透過自動化的檢測工具來確保軟體的安全性及可靠性,是一件非常重要的事。 本研究以多參數模糊測試工具為基礎,結合安全性分支覆蓋率作為回饋,用以修改傳統模糊測試工具當中的輸入隊列選擇方式,並探討其影響,實作出新的多參數模糊測試工具SSG-Fuzz。透過多參數模糊測試的架構,使得我們可以同時對受測程式的各種參數組合進行測試,提高分支覆蓋率的同時,也在挖掘漏洞的能力上有顯著的提升,然而,除了提高分支覆蓋率之外,我們也希望可以針對那些更有可能產生漏洞的程式碼片段,進行更多的測試,因此我們以安全性分支覆蓋率為導向,檢查分支是否包含記憶體讀寫的相關操作,來作為分類分支的依據,並根據這樣的結果來修改我們測試資料的選擇策略。 最後,我們透過實驗證明,本篇論文所設計的 SSG-Fuzz,相較於現有的多參數模糊測試工具而言,不僅能夠保持相近的分支覆蓋率,還能夠在挖掘漏洞的能力上有所提升。在我們的研究過程中,總共在開源專案中發現了 9 個新的漏洞,並將這些漏洞回報給開發者,取得了 8 個 CVE 編號。 | |
dc.description.abstract |
With the continuous advancement of technology, software quality has become an increasingly significant focus for people. This is because any defect in software can potentially provide attackers with vulnerabilities. Automated testing is often more efficient and accurate, making it crucial to ensure the security and reliability of software through automated testing tools. This study is based on multi-argument fuzzing tools and incorporates security sensitive edge coverage as feedback to modify the seed selection method in traditional fuzz testing tools. We explore the impact of these modifications and implement a new multi-argument fuzzing tool called SSG-Fuzz. Through the architecture of multi-argument fuzz testing, we can simultaneously test various combinations of parameters in the target program, which not only enhances edge coverage but also significantly improves vulnerability discovery capabilities. However, in addition to increasing edge coverage, we also aim to conduct more testing on code segments that are more likely to produce vulnerabilities. Therefore, we orient our approach towards security sensitive edge coverage, checking whether branches involve memory read or write operations as the basis for categorizing edges, and modifying our seed selection strategy based on these results. Finally, through experiments, we demonstrate that the SSG-Fuzz designed in this paper, compared to existing multi-argument fuzzing tools, not only maintains a similar edge coverage but also enhances vulnerability discovery capabilities. Throughout our research, we discovered a total of 9 new vulnerabilities in open-source projects. Subsequently, we reported these vulnerabilities to the developers, and we obtained 8 CVE IDs. | |
dc.description.abstractopendate |
2023/10/20 | |
dc.description.degree |
碩士 | |
dc.description.tableofcontents |
中文摘要 i 英文摘要 ii 目錄 iii 圖目錄 v 表目錄 vi 1 Introduction 1 2 Background 3 2.1 模糊測試 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.2 AFL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2.1 簡介 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2.2 執行流程 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2.3 插樁 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2.4 分支覆蓋率 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2.5 輸入隊列 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2.6 變異 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 Related Work 9 3.1 SQ-Fuzz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1.1 簡介 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1.2 架構 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1.3 實作 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 Yuan-Fuzz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2.1 簡介 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3 TortoiseFuzz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3.1 簡介 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3.2 實作 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.4 MemFuzz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.4.1 簡介 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.4.2 架構 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.4.3 實作 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.5 yFuzz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.5.1 簡介 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.5.2 實作 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4 Design and Implement 14 4.1 簡介 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.2 架構 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.3 實作 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.3.1 取得安全性分支覆蓋率回饋的插樁 . . . . . . . . . . . . . . . . . . . . 15 4.3.2 利用安全性分支覆蓋率對輸入隊列的優先級排序進行改良 . . . . . . . 21 5 Evaluation 23 5.1 實驗環境 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.2 Research Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.2.1 RQ1: 分支覆蓋率之影響 . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.2.2 RQ2: Time to Crash . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.2.3 RQ3: 記憶體讀寫操作指令的執行次數 . . . . . . . . . . . . . . . . . . 29 5.2.4 RQ4: 挖掘程式漏洞的能力 . . . . . . . . . . . . . . . . . . . . . . . . 30 6 Conclusion 32 6.1 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6.1.1 安全性分支的優化 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6.1.2 應用在現有的不同模糊測試工具上 . . . . . . . . . . . . . . . . . . . . 33 6.1.3 與 AFL++ 之架構整合 . . . . . . . . . . . . . . . . . . . . . . . . . . 33 | |
dc.identifier.citation |
[1] Michal Zalewski. “american fuzzy lop”. URL: https://lcamtuf.coredump.cx/afl/. [2] Suhwan Song et al. “CrFuzz: Fuzzing multi-purpose programs through input validation”. In: Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 2020, pp. 690–700. [3] Dawei Wang et al. “CarpetFuzz: Automatic Program Option Constraint Extraction from Documentation for Fuzzing”. In: 2023. [4] Zong-Yuan Wu. “Seed Scheduling with K-means Clustering for Multi-Argument Fuzzing” (2021). [5] “GCC, the GNU Compiler Collection”. URL: https://gcc.gnu.org/. [6] Chris Lattner and Vikram Adve. “LLVM: A compilation framework for lifelong program analysis & transformation”. In: International Symposium on Code Generation and Optimization, 2004. CGO 2004. IEEE. 2004, pp. 75–86. [7] CHIEN-HSING WU. “SQ-Fuzz : Edge Coverage Guided Combinatorial Fuzz Testing” (2020). [8] Yanhao Wang et al. “Not All Coverage Measurements Are Equal: Fuzzing by Coverage Accounting for Input Prioritization”. URL: https://www.ndss-symposium.org/wp-content /uploads/2020/02/24422-paper.pdf . [9] Nicolas Coppik, Oliver Schwahn, and Neeraj Suri. “MEMFUZZ: Using Memory Accesses to Guide Fuzzing”. In: 2019 12th IEEE Conference on Software Testing, Validation and Verification (ICST). 2019. [10] Yuan Chang. “yFuzz: Data-Driven Fuzzing” (2021). [11] “SQ-Fuzz-fast”. URL:https://github.com/13579and2468/Wei-fuzz. [12] “Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools”. URL:https://git hub.com/axiomatic-systems/Bento4. [13] libjpeg-turbo. “libjpeg-turbo”. URL: https://github.com/libjpeg-turbo/libjpeg-turbo. [14] “A cross-platform x86 assembler with an Intel-like syntax”. URL: https://github.com/netwideassembler/nasm. [15] bminor. “GNU Binutils”. URL: https://github.com/bminor/binutils-gdb. [16] libtiff. “libtiff”. URL: https://gitlab.com/libtiff/libtiff . [17] xpdf. “xpdf”. URL: https://www.xpdfreader.com/. [18] “CarpetFuzz-experiments”. URL: https://github.com/waugustus/CarpetFuzz-experiments. [19] Andrea Fioraldi et al. “AFL++: Combining incremental steps of fuzzing research”. In: 14th {USENIX} Workshop on Offensive Technologies ({WOOT} 20). 2020. | |
dc.identifier.uri |
https://hdl.handle.net/20.500.14371/982 | |
dc.language.iso |
中文 | |
dc.relation.page |
35 | |
dc.subject.keyword |
模糊測試 | |
dc.subject.keyword |
多參數模糊測試 | |
dc.subject.keyword |
覆蓋率引導式模糊測試 | |
dc.subject.keyword |
fuzz testing | |
dc.subject.keyword |
multi-argument fuzzing | |
dc.subject.keyword |
coverage-guided fuzz testing | |
dc.title |
基於安全相關操作導引之多參數模糊測試 | zh-TW |
dc.title |
Security Sensitive Operations Guided Multi-Argument Fuzzing | en |
dc.type |
Thesis | zh-TW |
檔案
- 22Jd8yuU2.pdf (2.05 MB, Adobe PDF)
所屬典藏: 資訊科學與工程研究所