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

GraphBinMatch:用于跨语言二进制与源代码匹配的基于图的相似度学习

GraphBinMatch: Graph-based Similarity Learning for Cross-Language Binary and Source Code Matching

Ali TehraniJamsaz, Hanze Chen, Ali Jannesari

AI总结:

针对跨语言二进制与源代码匹配的难题,提出基于图神经网络学习代码相似度的GraphBinMatch方法,在多项匹配任务上F1分数较最先进方法提升达15%。

摘要:

将二进制代码与源代码进行匹配(反之亦然)在计算机安全、软件工程和逆向工程等不同领域有着各种应用。尽管存在一些试图通过匹配源代码与二进制代码来加速逆向工程过程的方法,但其中大多数都针对单一编程语言而设计。然而在现实生活中,程序是根据需求使用不同的编程语言开发的。因此,跨语言二进制到源代码匹配最近受到了更多关注。尽管如此,由于在跨编程语言解决二进制代码与源代码匹配问题时存在固有困难,现有方法仍难以实现精确预测。在本文中,我们解决了跨语言二进制源代码匹配问题。我们提出了GraphBinMatch,这是一种基于图神经网络的方法,用于学习二进制代码与源代码之间的相似度。我们在多个任务上评估了GraphBinMatch,例如跨语言二进制到源代码匹配和跨语言源到源匹配。我们还评估了该方法在单语言二进制到源代码匹配上的性能。实验结果表明,GraphBinMatch显著优于现有最先进方法,F1分数提升高达15%。

英文摘要:

Matching binary to source code and vice versa has various applications in different fields, such as computer security, software engineering, and reverse engineering. Even though there exist methods that try to match source code with binary code to accelerate the reverse engineering process, most of them are designed to focus on one programming language. However, in real life, programs are developed using different programming languages depending on their requirements. Thus, cross-language binary-to-source code matching has recently gained more attention. Nonetheless, the existing approaches still struggle to have precise predictions due to the inherent difficulties when the problem of matching binary code and source code needs to be addressed across programming languages. In this paper, we address the problem of cross-language binary source code matching. We propose GraphBinMatch, an approach based on a graph neural network that learns the similarity between binary and source codes. We evaluate GraphBinMatch on several tasks, such as cross-language binary-to-source code matching and cross-language source-to-source matching. We also evaluate our approach performance on single-language binary-to-source code matching. Experimental results show that GraphBinMatch outperforms state-of-the-art significantly, with improvements as high as 15% over the F1 score.

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

↑