Cross-Language Binary-Source Code Matching with Intermediate Representations

被引:10
|
作者
Gui, Yi [1 ]
Wan, Yao [1 ]
Zhang, Hongyu [2 ]
Huang, Huifang [3 ]
Sui, Yulei [4 ]
Xu, Guandong [4 ]
Shao, Zhiyuan [1 ]
Jin, Hai [1 ]
机构
[1] Huazhong Univ Sci & Technol, Natl Engn Res Ctr Big Data Technol & Syst, Sch Comp Sci & Technol,Cluster & Grid Comp Lab, Serv Comp Technol & Syst Lab, Wuhan, Peoples R China
[2] Univ Newcastle, Newcastle, NSW, Australia
[3] Huazhong Univ Sci & Technol, Sch Math & Stat, Wuhan, Peoples R China
[4] Univ Technol Sydney, Sch Comp Sci, Sydney, NSW, Australia
基金
中国国家自然科学基金;
关键词
Cross-language; clone detection; intermediate representation; binary code; code matching; deep learning;
D O I
10.1109/SANER53432.2022.00077
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:601 / 612
页数:12
相关论文
共 50 条
  • [31] What is the Source of Bilingual Cross-Language Activation in Deaf Bilinguals?
    Morford, Jill P.
    Occhino, Corrine
    Zirnstein, Megan
    Kroll, Judith F.
    Wilkinson, Erin
    Pinar, Pilar
    JOURNAL OF DEAF STUDIES AND DEAF EDUCATION, 2019, 24 (04): : 356 - 365
  • [32] A taxonomy of cross-language linking mechanisms in open source frameworks
    Philip Mayer
    Computing, 2017, 99 : 701 - 724
  • [33] A taxonomy of cross-language linking mechanisms in open source frameworks
    Mayer, Philip
    COMPUTING, 2017, 99 (07) : 701 - 724
  • [34] BinDeep: Binary to Source Code Matching Using Deep Learning
    Alrabaee, Saed
    Choo, Kim-Kwang Raymond
    Qbea'h, Mohammad
    Khasawneh, Mahmoud
    2021 IEEE 20TH INTERNATIONAL CONFERENCE ON TRUST, SECURITY AND PRIVACY IN COMPUTING AND COMMUNICATIONS (TRUSTCOM 2021), 2021, : 1100 - 1107
  • [35] Exploiting Representations from Statistical Machine Translation for Cross-Language Information Retrieval
    Ture, Ferhan
    Lin, Jimmy
    ACM TRANSACTIONS ON INFORMATION SYSTEMS, 2014, 32 (04) : 1 - 32
  • [36] Visual Replacements: Cross-Language Domain-Specific Representations in Structured Editors
    Beckmann, Tom
    Stachnik, Daniel
    Lincke, Jens
    Hirschfeld, Robert
    PROCEEDINGS OF THE 2ND ACM SIGPLAN INTERNATIONAL WORKSHOP ON PROGRAMMING ABSTRACTIONS AND INTERACTIVE NOTATIONS, TOOLS, AND ENVIRONMENTS, PAINT 2023, 2023, : 25 - 35
  • [37] Finding Source Code Clones in Intermediate Representations of Java']Java Bytecode
    Schaefer, Andre
    Heinze, Thomas S.
    Amme, Wolfram
    2023 IEEE 17TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES, IWSC 2023, 2023, : 37 - 43
  • [38] Combining Eye Tracking with Navigation Paths for Identification of Cross-Language Code Dependencies
    Konopka, Martin
    2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, : 1057 - 1059
  • [39] A Non-linear Semantic Mapping Technique for Cross-Language Sentence Matching
    Banchs, Rafael E.
    Costa-Jussa, Marta R.
    ADVANCES IN NATURAL LANGUAGE PROCESSING, 2010, 6233 : 57 - 66
  • [40] A practical tool for detecting cross-language code pairs with similar control structures
    Dai, Feng
    Chiba, Shigeru
    39TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2024, 2024, : 1301 - 1303