跨语言二进制-中间表示的Source Code匹配
Cross-Language Binary-Source Code Matching with Intermediate Representations
摘要:
二进制源代码匹配在许多安全和软件工程相关任务中起着重要作用,例如恶意软件检测、逆向工程和脆弱性评估。目前,已经提出了几种通过联合学习二进制代码和源代码在公共向量空间中的嵌入来进行二进制-源代码匹配的方法。尽管付出了很多努力,但现有方法的目标是匹配用单个程序设计语言编写的二进制代码和源代码。然而,在实践中,软件应用程序通常以不同的程序设计语言编写,以满足不同的要求和计算平台。在维护多语言和多平台应用程序时,跨程序设计语言匹配二进制代码和源代码会带来额外的挑战。为此,本文阐述了跨语言二进制源代码匹配问题,并为这个新问题开发了一个新的数据集。我们提出了一种新的方法XLIR,这是一个基于transformer的神经网络通过学习二进制和源代码的中间表示。为了验证XLIR的有效性,在我们策划的数据集上,对跨语言二进制源代码匹配和跨语言源代码匹配两个任务进行了全面的实验。实验结果和分析表明,我们提出的XLIR与中间表示显着优于其他国家的最先进的模型在这两个任务。
英文摘要:
Binary-source code matching plays an important role in many security and software engineering related tasks such as malware detection, reverse engineering and vulnerability assessment. Currently, several approaches have been proposed for binary-source code matching by jointly learning the embeddings of binary code and source code in a common vector space. Despite much effort, existing approaches target on matching the binary code and source code written in a single programming language. However, in practice, software applications are often written in different programming languages to cater for different requirements and computing platforms. Matching binary and source code across programming languages introduces additional challenges when maintaining multi-language and multi-platform applications. To this end, this paper formulates the problem of cross-language binary-source code matching, and develops a new dataset for this new problem. We present a novel approach XLIR, which is a Transformer-based neural network by learning the intermediate representations for both binary and source code. To validate the effectiveness of XLIR, comprehensive experiments are conducted on two tasks of cross-language binary-source code matching, and cross-language source-source code matching, on top of our curated dataset. Experimental results and analysis show that our proposed XLIR with intermediate representations significantly outperforms other state-of-the-art models in both of the two tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。