增强神经网络以反编译优化的二进制文件
Boosting Neural Networks to Decompile Optimized Binaries
摘要:
反编译旨在将低级程序语言(LPL)(例如,二进制文件)转换成其功能等效的高级程序语言(HPL)(例如,C/C++)。它是软件安全的核心技术,特别是在漏洞发现和恶意软件分析方面。近年来,随着神经机器翻译(NMT)模型在自然语言处理(NLP)中的成功应用,研究者们试图借用NMT的思想构建神经反编译器。他们将反编译过程表述为LPL和HPL之间的翻译问题,旨在减少开发反编译工具所需的人力成本,并提高其通用性。然而,最先进的基于学习的反编译器不能很好地处理编译器优化的二进制文件。由于现实世界中的二进制文件大多是编译器优化的,因此不考虑优化的二进制文件的反编译器实际意义有限。在本文中,我们提出了一种新的基于学习的方法NeurDP,目标是编译器优化的二进制文件。NeurDP使用图神经网络(GNN)模型将LPL转换为中间表示(IR),从而弥合了源代码和优化二进制之间的差距。我们还设计了一个优化的翻译单元(OTU),将功能分割成更小的代码片段,以获得更好的翻译性能。对包含各种类型语句的数据集的评估结果表明,NeurDP可以反编译优化的二进制文件,准确率比最先进的神经反编译框架高出45.21%。
英文摘要:
Decompilation aims to transform a low-level program language (LPL) (eg., binary file) into its functionally-equivalent high-level program language (HPL) (e.g., C/C++). It is a core technology in software security, especially in vulnerability discovery and malware analysis. In recent years, with the successful application of neural machine translation (NMT) models in natural language processing (NLP), researchers have tried to build neural decompilers by borrowing the idea of NMT. They formulate the decompilation process as a translation problem between LPL and HPL, aiming to reduce the human cost required to develop decompilation tools and improve their generalizability. However, state-of-the-art learning-based decompilers do not cope well with compiler-optimized binaries. Since real-world binaries are mostly compiler-optimized, decompilers that do not consider optimized binaries have limited practical significance. In this paper, we propose a novel learning-based approach named NeurDP, that targets compiler-optimized binaries. NeurDP uses a graph neural network (GNN) model to convert LPL to an intermediate representation (IR), which bridges the gap between source code and optimized binary. We also design an Optimized Translation Unit (OTU) to split functions into smaller code fragments for better translation performance. Evaluation results on datasets containing various types of statements show that NeurDP can decompile optimized binaries with 45.21% higher accuracy than state-of-the-art neural decompilation frameworks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。