用有监督机器学习改进反编译器推断的类型信息
Improving type information inferred by decompilers with supervised machine learning
摘要:
在软件逆向工程中,反编译是从二进制文件恢复源代码的过程。当需要理解或分析源代码不可用的软件时,使用反编译器。尽管现有的反编译器通常获得与二进制文件具有相同行为的源代码,但源代码通常很难解释,并且肯定与程序员编写的原始代码不同。大规模的代码库可以用来构建有监督的机器学习模型,以改进现有的反编译器。在本文中,我们构建了不同的分类模型,这些模型能够推断函数返回的高级类型,其准确性明显高于现有的反编译器。我们自动检测C源代码,以允许二进制模式与其相应的高级构造相关联。一个数据集是由一系列真正的开源应用程序加上大量的合成程序创建的。我们的系统能够以79.1%的F1度量预测函数返回类型,而最好的反编译器获得30%的F1度量。此外,我们记录的二进制模式,我们的分类器,允许他们除了在现有的反编译器的实现。
英文摘要:
In software reverse engineering, decompilation is the process of recovering source code from binary files. Decompilers are used when it is necessary to understand or analyze software for which the source code is not available. Although existing decompilers commonly obtain source code with the same behavior as the binaries, that source code is usually hard to interpret and certainly differs from the original code written by the programmer. Massive codebases could be used to build supervised machine learning models aimed at improving existing decompilers. In this article, we build different classification models capable of inferring the high-level type returned by functions, with significantly higher accuracy than existing decompilers. We automatically instrument C source code to allow the association of binary patterns with their corresponding high-level constructs. A dataset is created with a collection of real open-source applications plus a huge number of synthetic programs. Our system is able to predict function return types with a 79.1% F1-measure, whereas the best decompiler obtains a 30% F1-measure. Moreover, we document the binary patterns used by our classifier to allow their addition in the implementation of existing decompilers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。