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

Cornucopia:一个反馈引导的二进制文件生成框架

Cornucopia: A Framework for Feedback Guided Generation of Binaries

Vidush Singhal, Akul Abhilash Pillai, Charitha Saumya, Milind Kulkarni, Aravind Machiry

摘要:

二进制分析是许多安全和软件工程应用所需的重要能力。因此,有许多具有不同功能的二进制分析技术和工具。然而,测试这些工具需要一个大型的、不同的二进制数据集,以及相应的源代码级信息。在本文中,我们提出了聚宝盆,一个架构不可知的自动化框架,可以生成大量的二进制文件从相应的程序源,利用编译器优化和反馈引导学习。我们的评估表明,Cornucopia能够在四种架构(x86,x64,ARM,MIPS)上生成309K二进制文件,每个程序平均生成403个二进制文件,并且优于Bintuner,一种类似的技术。我们的实验揭示了LLVM优化调度程序导致编译器崩溃的问题($\sim$ 300)。我们使用Cornucopia生成的二进制文件对四个流行的二进制分析工具Angr、Ghidra、Idapro和Radare进行了评估,发现了这些工具存在的各种问题。具体来说,我们在Angr中发现了263个崩溃,在Idapro中发现了一个内存损坏问题。我们对分析结果的差异测试揭示了这些工具中的各种语义错误。我们还测试了机器学习工具Asmvec、Safe和Debin,这些工具声称可以捕获二进制语义,但在Cornucopia生成的二进制文件上表现不佳(例如,Debin F1得分从报告的63.1%下降到12.9%)。总之,我们详尽的评估表明,聚宝盆是一个有效的机制,以产生二进制有效地测试二进制分析技术。

英文摘要:

Binary analysis is an important capability required for many security and software engineering applications. Consequently, there are many binary analysis techniques and tools with varied capabilities. However, testing these tools requires a large, varied binary dataset with corresponding source-level information. In this paper, we present Cornucopia, an architecture agnostic automated framework that can generate a plethora of binaries from corresponding program source by exploiting compiler optimizations and feedback-guided learning. Our evaluation shows that Cornucopia was able to generate 309K binaries across four architectures (x86, x64, ARM, MIPS) with an average of 403 binaries for each program and outperforms Bintuner, a similar technique. Our experiments revealed issues with the LLVM optimization scheduler resulting in compiler crashes ($\sim$300). Our evaluation of four popular binary analysis tools Angr, Ghidra, Idapro, and Radare, using Cornucopia generated binaries, revealed various issues with these tools. Specifically, we found 263 crashes in Angr and one memory corruption issue in Idapro. Our differential testing on the analysis results revealed various semantic bugs in these tools. We also tested machine learning tools, Asmvec, Safe, and Debin, that claim to capture binary semantics and show that they perform poorly (For instance, Debin F1 score dropped to 12.9% from reported 63.1%) on Cornucopia generated binaries. In summary, our exhaustive evaluation shows that Cornucopia is an effective mechanism to generate binaries for testing binary analysis techniques effectively.

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

↑