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

FishFuzz:撒大网捕捉更深层次的漏洞

FishFuzz: Throwing Larger Nets to Catch Deeper Bugs

Han Zheng, Jiayuan Zhang, Yuhang Huang, Zezhong Ren, He Wang, Chunjie Cao, Yuqing Zhang, Flavio Toffalini, Mathias Payer

摘要:

灰盒模糊测试是在开发过程中发现bug的事实标准。模糊器执行许多输入以最大化可到达的代码量。最近,Directed Greybox Fuzzers(DGF)提出了一种超越“仅仅”覆盖的替代策略:通过选择“更接近”的种子来驱动测试朝向特定的代码目标。DGF经历不同的阶段:探索(即,到达感兴趣的位置)和利用(即,触发bug)。在实践中,DGF利用覆盖率直接衡量勘探,而开采量充其量是通过在不同目标之间交替来间接衡量的。具体地,我们观察到现有DGF中的两个限制:(i)它们在它们的距离度量中缺乏精度,即,将多个路径和目标平均为单个分数(以决定优先化哪些种子),以及(ii)它们以循环方式将能量分配给种子,而不调整目标的优先级(应当丢弃穷尽探索的目标)。我们提出了FishFuzz,它从拖网捕鱼中汲取灵感:首先撒一张宽网,刮取高覆盖率,然后慢慢地把它拉进去,以最大限度地收获。我们的模糊的核心是一种新的种子选择策略,建立在两个概念:(i)一种新的多距离度量,其精度是独立的目标的数量,和(ii)一个动态的目标排名,自动丢弃耗尽的目标。这种策略使FishFuzz能够无缝扩展到数万个目标,并在探索和开发阶段之间动态交替。我们通过利用所有消毒剂标签作为目标来评估FishFuzz。将FishFuzz与现代DGF和覆盖率引导的模糊器进行广泛比较,结果表明FishFuzz与直接竞争对手相比达到了更高的覆盖率,重现了现有的错误(速度提高了70.2%),并最终在44个程序中发现了25个新错误(18个CVE)。

英文摘要:

Greybox fuzzing is the de-facto standard to discover bugs during development. Fuzzers execute many inputs to maximize the amount of reached code. Recently, Directed Greybox Fuzzers (DGFs) propose an alternative strategy that goes beyond "just" coverage: driving testing toward specific code targets by selecting "closer" seeds. DGFs go through different phases: exploration (i.e., reaching interesting locations) and exploitation (i.e., triggering bugs). In practice, DGFs leverage coverage to directly measure exploration, while exploitation is, at best, measured indirectly by alternating between different targets. Specifically, we observe two limitations in existing DGFs: (i) they lack precision in their distance metric, i.e., averaging multiple paths and targets into a single score (to decide which seeds to prioritize), and (ii) they assign energy to seeds in a round-robin fashion without adjusting the priority of the targets (exhaustively explored targets should be dropped). We propose FishFuzz, which draws inspiration from trawl fishing: first casting a wide net, scraping for high coverage, then slowly pulling it in to maximize the harvest. The core of our fuzzer is a novel seed selection strategy that builds on two concepts: (i) a novel multi-distance metric whose precision is independent of the number of targets, and (ii) a dynamic target ranking to automatically discard exhausted targets. This strategy allows FishFuzz to seamlessly scale to tens of thousands of targets and dynamically alternate between exploration and exploitation phases. We evaluate FishFuzz by leveraging all sanitizer labels as targets. Extensively comparing FishFuzz against modern DGFs and coverage-guided fuzzers shows that FishFuzz reached higher coverage compared to the direct competitors, reproduces existing bugs (70.2% faster), and finally discovers 25 new bugs (18 CVEs) in 44 programs.

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

↑