PeAR:一种用于仅二进制模糊测试的静态二进制重写框架
PeAR: A Static Binary Rewriting Framework for Binary-Only Fuzzing
AI总结:
本文提出PeAR框架,利用静态二进制重写实现准确、可扩展的二进制模糊测试,支持延迟初始化、持久模式和共享内存模糊测试,在FUZZBENCH上达到88%的插桩成功率,吞吐量提升4倍,覆盖率与编译器插桩相当。
摘要:
仅二进制模糊测试是发现闭源软件漏洞的关键技术。由于无法访问源代码,模糊器必须依赖静态或动态二进制插桩来获取覆盖率引导。实践中,大多数模糊器倾向于动态二进制插桩(DBI),接受运行时开销以避免静态二进制插桩(SBI)在准确性和可靠性方面的挑战。我们表明这些担忧是没有根据的,并且使用现成框架可以实现准确、可扩展的SBI。基于这些框架,我们开发了PeAR,一个可扩展的仅二进制模糊测试框架。我们通过实现多个现代模糊器特性(包括延迟初始化、持久模式和共享内存模糊测试)展示了PeAR的多功能性。我们在FUZZBENCH基准测试上进行了4.25 CPU年的模糊测试评估,发现PeAR:(i)成功插桩了88%的FUZZBENCH目标,与基于SBI的最佳模糊器相当;(ii)在使用持久模式和共享内存模糊测试时,实现了4倍的中位数吞吐量提升;(iii)获得了与编译器插桩相当的覆盖率。我们的结果表明,SBI是一种实用且有效的仅二进制模糊测试技术,现代二进制重写框架可以以高粒度应用复杂插桩,且性能影响可忽略不计。
英文摘要:
Binary-only fuzzing is a key technique for finding bugs in close-source software. Without access to source code, the fuzzer must rely on static or dynamic binary instrumentation for coverage guidance. In practice, most fuzzers favor dynamic binary instrumentation (DBI), accepting runtime overhead to avoid the perceived accuracy and soundness challenges associated with static binary instrumentation (SBI). We show that these concerns are unwarranted, and that accurate, scalable~SBI is achievable using off-the-shelf frameworks. Building on these frameworks, we develop PeAR, an extensible binary-only fuzzing framework. We demonstrate PeAR's versatility by implementing several modern fuzzer features -- including, deferred initialization, persistent mode, and shared-memory fuzzing. We evaluate PeAR over 4.25 CPU-yrs of fuzzing on the FUZZBENCH benchmark and find that PeAR: (i) successfully instruments 88% of FUZZBENCH targets, comparable to the best SBI-based fuzzers; (ii) achieves a median throughput improvement of 4x when using persistent mode and shared memory fuzzing; and (iii) attains coverage comparable to compiler-based instrumentation. Our results show that SBI is a practical and effective technique for binary-only fuzzing, and that modern binary rewriting frameworks can apply complex instrumentation with high granularity and negligible performance compromise.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。