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

基于图中心性分析的模糊种子调度算法

Effective Seed Scheduling for Fuzzing with Graph Centrality Analysis

Dongdong She, Abhishek Shah, Suman Jana

摘要:

种子调度,种子被选择的顺序,可以极大地影响模糊器的性能。现有的方法调度种子的历史变异数据的基础上,但忽略了底层的控制流图(CFG)的结构。检查CFG可以通过揭示突变种子的潜在边缘覆盖增益来帮助种子调度。一个理想的策略将基于从种子到突变的所有可达和可行边的计数来调度种子,但是沿着所有边计算可行性是非常昂贵的。因此,种子调度策略必须接近该计数。我们观察到近似计数应该具有3个属性-(i)如果有更多的边缘可从种子到达,它应该增加;(ii)如果突变历史信息表明边缘难以到达或远离当前访问的边缘,它应该减少;(iii)它应该有效地计算大型CFG。我们观察到,图分析的中心性度量自然提供了这三个属性,因此可以有效地近似通过突变种子到达未访问边缘的可能性。因此,我们构建了一个称为边缘水平图的图,该图将种子连接到其最近的未访问节点,并计算种子节点的中心性以测量突变种子的潜在边缘覆盖增益。我们实现了我们的方法在K-调度器和比较与许多流行的种子调度策略。我们发现,K-调度器增加了25.89%的熵和边缘覆盖率相比,下一个最好的基于AFL的种子调度器,在12个谷歌FuzzBench程序的算术平均值为4.21%的功能覆盖率。它还发现了3个以前未知的错误,比下一个最好的基于AFL的种子调度程序。

英文摘要:

Seed scheduling, the order in which seeds are selected, can greatly affect the performance of a fuzzer. Existing approaches schedule seeds based on their historical mutation data, but ignore the structure of the underlying Control Flow Graph (CFG). Examining the CFG can help seed scheduling by revealing the potential edge coverage gain from mutating a seed. An ideal strategy will schedule seeds based on a count of all reachable and feasible edges from a seed through mutations, but computing feasibility along all edges is prohibitively expensive. Therefore, a seed scheduling strategy must approximate this count. We observe that an approximate count should have 3 properties -- (i) it should increase if there are more edges reachable from a seed; (ii) it should decrease if mutation history information suggests an edge is hard to reach or is located far away from currently visited edges; and (iii) it should be efficient to compute over large CFGs. We observe that centrality measures from graph analysis naturally provide these three properties and therefore can efficiently approximate the likelihood of reaching unvisited edges by mutating a seed. We therefore build a graph called the edge horizon graph that connects seeds to their closest unvisited nodes and compute the seed node's centrality to measure the potential edge coverage gain from mutating a seed. We implement our approach in K-scheduler and compare with many popular seed scheduling strategies. We find that K-scheduler increases feature coverage by 25.89% compared to Entropic and edge coverage by 4.21% compared to the next-best AFL-based seed scheduler, in arithmetic mean on 12 Google FuzzBench programs. It also finds 3 more previously-unknown bugs than the next-best AFL-based seed scheduler.

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

↑