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

S$^2$F: 原则化混合测试与模糊测试、符号执行和采样

S$^2$F: Principled Hybrid Testing With Fuzzing, Symbolic Execution, and Sampling

College of Computer Science and Electronic Engineering, Hunan University(湖南大学计算机科学与电子工程学院);National University of Defense Technology(国防科技大学)

Lianjing Wang, Yufeng Zhang, Kenli Li, Zhenbang Chen, Xu Zhou, Pengfei Wang, Guangning Song, Ji Wang

AI总结:

S$^2$F通过结合模糊测试、符号执行和采样,提升混合测试效率,发现更多崩溃。

摘要:

混合测试结合模糊测试、符号执行和采样在测试效率上优于单独技术。然而,最先进的混合测试工具并未充分利用符号执行和采样在两个关键方面的能力。首先,最先进的混合测试工具使用定制化的符号执行引擎,这些引擎倾向于过度修剪分支,导致大量时间浪费在等待模糊器的种子上,并错过发现崩溃的机会。其次,现有方法未将采样应用于适当的分支,因此无法利用采样的全部能力。为了解决这两个限制,我们提出了一种新的混合测试架构,结合传统符号执行的精度和定制化符号执行引擎的可扩展性。基于这一架构,我们提出了几条将模糊测试、符号执行和采样的结合原则。我们实现我们的方法于混合测试工具S$^2$F。为了评估其有效性,我们在15个真实世界程序上进行了广泛的实验。实验结果表明,S$^2$F优于最先进的工具,平均在边缘覆盖上提高了6.14%,在发现崩溃方面提高了32.6%。值得注意的是,我们的工具在真实世界程序中发现了三个此前未知的崩溃。

英文摘要:

Hybrid testing that integrates fuzzing, symbolic execution, and sampling has demonstrated superior testing efficiency compared to individual techniques. However, the state-of-the-art (SOTA) hybrid testing tools do not fully exploit the capabilities of symbolic execution and sampling in two key aspects. First, the SOTA hybrid testing tools employ tailored symbolic execution engines that tend to over-prune branches, leading to considerable time wasted waiting for seeds from the fuzzer and missing opportunities to discover crashes. Second, existing methods do not apply sampling to the appropriate branches and therefore cannot utilize the full capability of sampling. To address these two limitations, we propose a novel hybrid testing architecture that combines the precision of conventional symbolic execution with the scalability of tailored symbolic execution engines. Based on this architecture, we propose several principles for combining fuzzing, symbolic execution, and sampling. We implement our method in a hybrid testing tool S$^2$F. To evaluate its effectiveness, we conduct extensive experiments on 15 real-world programs. Experimental results demonstrate that S$^2$F outperforms the SOTA tool, achieving an average improvement of 6.14% in edge coverage and 32.6% in discovered crashes. Notably, our tool uncovers three previously unknown crashes in real-world programs.

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

↑