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

重新审视ARM二进制上的轻量级编译器来源恢复

Revisiting Lightweight Compiler Provenance Recovery on ARM Binaries

Georgia Tech(佐治亚理工学院);Vanderbilt University(范德堡大学)

Jason Kim, Daniel Genkin, Kevin Leach

AI总结:

本文针对ARM二进制程序,提出一种基于操作码和寄存器特征的浅层学习模型,高效恢复编译器配置属性,达到超过99%的准确率,训练加速583倍、推理加速3826倍,并揭示先前未发现的过拟合问题。

摘要:

二进制程序的行为在很大程度上受编译器如何构建其源代码的影响。尽管大多数编译器配置细节在编译过程中被抽象化,但恢复这些细节对于未知二进制程序上的逆向工程和程序理解任务(如代码相似性检测)非常有用。我们观察到,先前的工作已在x86-64二进制程序上对此进行了深入探索。然而,对于日益普遍的ARM二进制程序,相关研究却十分有限。\n\n在本文中,我们将先前的工作扩展为一个浅层学习模型,该模型能够高效且准确地恢复ARM二进制程序的编译器配置属性。我们将先前在x86-64二进制程序上有效的操作码和寄存器派生特征应用于ARM二进制程序。此外,我们将这项工作与Pizzolotto等人提出的近期架构无关的深度学习模型进行比较,该模型的数据集和代码均可公开获取。\n\n我们观察到,轻量级特征在ARM二进制程序上是可复现的。我们实现了超过99%的准确率,与最先进的深度学习方法相当,同时在训练期间实现了583倍的加速,在推理期间实现了3826倍的加速。最后,我们还讨论了先前工作中未被发现的过拟合问题。

英文摘要:

A binary's behavior is greatly influenced by how the compiler builds its source code. Although most compiler configuration details are abstracted away during compilation, recovering them is useful for reverse engineering and program comprehension tasks on unknown binaries, such as code similarity detection. We observe that previous work has thoroughly explored this on x86-64 binaries. However, there has been limited investigation of ARM binaries, which are increasingly prevalent. In this paper, we extend previous work with a shallow-learning model that efficiently and accurately recovers compiler configuration properties for ARM binaries. We apply opcode and register-derived features, that have previously been effective on x86-64 binaries, to ARM binaries. Furthermore, we compare this work with Pizzolotto et al., a recent architecture-agnostic model that uses deep learning, whose dataset and code are available. We observe that the lightweight features are reproducible on ARM binaries. We achieve over 99% accuracy, on par with state-of-the-art deep learning approaches, while achieving a 583-times speedup during training and 3,826-times speedup during inference. Finally, we also discuss findings of overfitting that was previously undetected in prior work.

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

↑