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 条
  • [21] Dynamic stacking ensemble for cross-language code smell detection
    Aljamaan, Hamoud
    PeerJ Computer Science, 2024, 10
  • [22] Next-Generation Intermediate Representations for Binary Code Analysis
    M. A. Solovev
    M. G. Bakulin
    M. S. Gorbachev
    D. V. Manushin
    V. A. Padaryan
    S. S. Panasenko
    Programming and Computer Software, 2019, 45 : 424 - 437
  • [23] Towards Building Lexical Ontology via Cross-Language Matching
    Abu Helou, Mamoun
    Palmonari, Matteo
    Jarrar, Mustafa
    Fellbaum, Christiane
    PROCEEDINGS OF THE SEVENTH GLOBAL WORDNET CONFERENCE, GWC 2014, 2014, : 346 - 354
  • [24] Next-Generation Intermediate Representations for Binary Code Analysis
    Solovev, M. A.
    Bakulin, M. G.
    Gorbachev, M. S.
    Manushin, D., V
    Padaryan, V. A.
    Panasenko, S. S.
    PROGRAMMING AND COMPUTER SOFTWARE, 2019, 45 (07) : 424 - 437
  • [25] Linking gestural representations to syllable count judgments: A cross-language test
    Popescu, Anisia
    Chitoran, Ioana
    LABORATORY PHONOLOGY, 2022, 13 (01): : 1 - 48
  • [26] On a different plane: Cross-language effects on the conceptual representations of within-language homonyms
    Fontes, Ana B. Areas Da Luz
    Schwartz, Ana I.
    LANGUAGE AND COGNITIVE PROCESSES, 2010, 25 (04): : 508 - 532
  • [27] Cross-language Code Coupling Detection: A Preliminary Study on Android Applications
    Shen, Bo
    Zhang, Wei
    Yu, Ailun
    Wei, Zhao
    Liang, Guangtai
    Zhao, Haiyan
    Jin, Zhi
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2021), 2021, : 378 - 389
  • [28] C4: Contrastive Cross-Language Code Clone Detection
    Tao, Chenning
    Zhan, Qi
    Hu, Xing
    Xia, Xin
    30TH IEEE/ACM INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2022), 2022, : 413 - 424
  • [29] Leveraging Compiler Intermediate Representation for Multi- and Cross-Language Verification
    Garzella, Jack J.
    Baranowski, Marek
    He, Shaobo
    Rakamaric, Zvonimir
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2020, 2020, 11990 : 90 - 111
  • [30] TCCCD: Triplet-Based Cross-Language Code Clone Detection
    Fang, Yong
    Zhou, Fangzheng
    Xu, Yijia
    Liu, Zhonglin
    APPLIED SCIENCES-BASEL, 2023, 13 (21):