arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2212.11162cs.CR
收藏

Homo in Machina:通过隔间分析提升模糊测试覆盖率

Homo in Machina: Improving Fuzz Testing Coverage via Compartment Analysis

Joshua Bundt, Andrew Fasano, Brendan Dolan-Gavitt, William Robertson, Tim Leek

AI总结:

本文提出 HM-fuzzing 范式及隔间分析,结合全程序支配者与动态分析定位未覆盖程序区域以指导人工投入,在 OSS-Fuzz 七个项目上显著提升 AFL++ 覆盖率。

摘要:

模糊测试通常是自动化的,但也经常由专家加以增强:他们将自己插入工作流程中,以贪婪方式搜索缺陷。在本文中,我们提出 Homo in Machina,或称 HM-fuzzing,其中由分析来指导人工工作,从而使收益最大化。作为这一范式的一个示例,我们引入隔间分析。隔间分析使用全程序支配者分析来估计到达新代码的效用,并将其与一项动态分析相结合,该动态分析会标示出守护这些代码且覆盖率严重不足的边。由此产生一个按优先级排序的隔间列表;所谓隔间,是指程序中较大的、未被覆盖的部分,这些部分在语义上被划分,并且在当前所考虑的输入语料库下基本不可达。人类可以直接使用这种隔间分类和排序来集中人工精力,找到或构造输入,使这些隔间可用于未来的模糊测试。我们在 OSS-Fuzz 语料库中的七个项目上评估了隔间分析的效果,观察到相对于 AFL++ 的覆盖率提升最高达 94%,中位数为 13%。我们还进一步观察到,隔间的确定具有高度稳定性,因此可以在模糊测试活动早期完成,从而最大限度地提高产生影响的潜力。

英文摘要:

Fuzz testing is often automated, but also frequently augmented by experts who insert themselves into the workflow in a greedy search for bugs. In this paper, we propose Homo in Machina, or HM-fuzzing, in which analyses guide the manual efforts, maximizing benefit. As one example of this paradigm, we introduce compartment analysis. Compartment analysis uses a whole-program dominator analysis to estimate the utility of reaching new code, and combines this with a dynamic analysis indicating drastically under-covered edges guarding that code. This results in a prioritized list of compartments, i.e., large, uncovered parts of the program semantically partitioned and largely unreachable given the current corpus of inputs under consideration. A human can use this categorization and ranking of compartments directly to focus manual effort, finding or fashioning inputs that make the compartments available for future fuzzing. We evaluate the effect of compartment analysis on seven projects within the OSS-Fuzz corpus where we see coverage improvements over AFL++ as high as 94%, with a median of 13%. We further observe that the determination of compartments is highly stable and thus can be done early in a fuzzing campaign, maximizing the potential for impact.

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

↑