arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.16497cs.CRcs.SE
收藏

SAND:将 sanitization 与模糊测试解耦以实现低开销

SAND: Decoupling Sanitization from Fuzzing for Low Overhead

Ziqiao Kong, Shaohua Li, Heqing Huang, Zhendong Su

AI总结:

针对启用 sanitizer 的模糊测试开销高的问题,提出解耦 sanitization 与模糊测试循环的 SAND 框架,通过仅对“有趣”输入调用 sanitizer 程序,在 12 个真实程序上 24 小时内比基线工具发现更多漏洞且无遗漏。

摘要:

Sanitizer 为各类软件漏洞提供了鲁棒的测试预言机。对启用 sanitizer 的程序进行模糊测试是发现软件漏洞的最佳实践。由于 sanitizer 需要对目标程序进行大量插桩以插入运行时检查,启用 sanitizer 的程序比正常编译的程序具有更高的开销。本文提出 SAND,一种将 sanitization 与模糊测试循环解耦的新模糊测试框架。SAND 在正常编译的程序上执行模糊测试,仅当输入被判定为“有趣”时才调用启用 sanitizer 的程序。由于大多数生成的输入并不有趣(即不会触发漏洞),SAND 允许大部分模糊测试时间用于正常编译的程序。为识别有趣输入,我们引入执行模式以在正常编译的程序上进行实用的执行分析。我们基于 AFL++ 实现 SAND,并在 12 个真实世界程序上进行评估。广泛评估表明其有效性:24 小时内,与所有基线模糊测试器相比,SAND 显著发现更多漏洞且未遗漏任何漏洞。

英文摘要:

Sanitizers provide robust test oracles for various software vulnerabilities. Fuzzing on sanitizer-enabled programs has been the best practice to find software bugs. Since sanitizers need to heavily instrument a target program to insert run-time checks, sanitizer-enabled programs have much higher overhead compared to normally built programs. In this paper, we present SAND, a new fuzzing framework that decouples sanitization from the fuzzing loop. SAND performs fuzzing on a normally built program and only invokes sanitizer-enabled programs when input is shown to be interesting. Since most of the generated inputs are not interesting, i.e., not bug-triggering, SAND allows most of the fuzzing time to be spent on the normally built program. To identify interesting inputs, we introduce execution pattern for a practical execution analysis on the normally built program. We realize SAND on top of AFL++ and evaluate it on 12 real-world programs. Our extensive evaluation highlights its effectiveness: in 24 hours, compared to all the baseline fuzzers, SAND significantly discovers more bugs while not missing any.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑