Asteria-Pro: Enhancing Deep Learning-based Binary Code Similarity Detection by Incorporating Domain Knowledge

被引:0
|
作者
Yang, Shouguo [1 ,2 ]
Dong, Chaopeng [1 ,2 ]
Xiao, Yang [1 ,2 ]
Cheng, Yiran [1 ,2 ]
Shi, Zhiqiang [1 ,2 ]
Li, Zhi [1 ,2 ]
Sun, Limin [1 ,2 ]
机构
[1] Chinese Acad Sci, Inst Informat Engn, 19 Shucun Rd, Beijing 100085, Peoples R China
[2] Univ Chinese Acad Sci, Sch Cyber Secur, 1 Yanqihu East Rd, Beijing 101408, Peoples R China
基金
国家重点研发计划; 中国国家自然科学基金;
关键词
Binary code similarity detection; pre-fitering; re-ranking; abstract syntactic tree; graph neural network; SEARCH;
D O I
10.1145/3604611
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Widespread code reuse allows vulnerabilities to proliferate among a vast variety of firmware. There is an urgent need to detect these vulnerable codes effectively and efficiently. By measuring code similarities, AI-based binary code similarity detection is applied to detecting vulnerable code at scale. Existing studies have proposed various function features to capture the commonality for similarity detection. Nevertheless, the significant code syntactic variability induced by the diversity of IoT hardware architectures diminishes the accuracy of binary code similarity detection. In our earlier study and the tool Asteria, we adopted a Tree-LSTM network to summarize function semantics as function commonality, and the evaluation result indicates an advanced performance. However, it still has utility concerns due to excessive time costs and inadequate precision while searching for large-scale firmware bugs. To this end, we propose a novel deep learning-enhancement architecture by incorporating domain knowledge-based pre-filtration and re-ranking modules, and we develop a prototype named ASTERIA-PRO based on Asteria. The pre-filtration module eliminates dissimilar functions, thus reducing the subsequent deep learning-model calculations. The re-ranking module boosts the rankings of vulnerable functions among candidates generated by the deep learning model. Our evaluation indicates that the pre-filtration module cuts the calculation time by 96.9%, and the re-ranking module improves MRR and Recall by 23.71% and 36.4%, respectively. By incorporating these modules, ASTERIA-PRO outperforms existing state-of-the-art approaches in the bug search task by a significant margin. Furthermore, our evaluation shows that embedding baseline methods with pre-filtration and re-ranking modules significantly improves their precision. We conduct a large-scale real-world firmware bug search, and ASTERIA-PRO manages to detect 1,482 vulnerable functions with a high precision 91.65%.
引用
收藏
页数:40
相关论文
共 50 条
  • [1] Asteria: Deep Learning-based AST-Encoding for Cross-platform Binary Code Similarity Detection
    Yang, Shouguo
    Cheng, Long
    Zeng, Yicheng
    Lang, Zhe
    Zhu, Hongsong
    Shi, Zhiqiang
    51ST ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS (DSN 2021), 2021, : 224 - 236
  • [2] A Review of Deep Learning-Based Binary Code Similarity Analysis
    Du, Jiang
    Wei, Qiang
    Wang, Yisen
    Sun, Xiangjie
    ELECTRONICS, 2023, 12 (22)
  • [3] Deep Learning-Based Program-Wide Binary Code Similarity for Smart Contracts
    Zhuang, Yuan
    Wang, Baobao
    Sun, Jianguo
    Liu, Haoyang
    Yang, Shuqi
    Ma, Qingan
    CMC-COMPUTERS MATERIALS & CONTINUA, 2023, 74 (01): : 1011 - 1024
  • [4] BinDeep: A deep learning approach to binary code similarity detection
    Tian, Donghai
    Jia, Xiaoqi
    Ma, Rui
    Liu, Shuke
    Liu, Wenjing
    Hu, Changzhen
    EXPERT SYSTEMS WITH APPLICATIONS, 2021, 168
  • [5] Deep Learning-Based Code Refactoring: A Review of Current Knowledge
    Naik, Purnima
    Nelaballi, Salomi
    Pusuluri, Venkata Sai
    Kim, Dae-Kyoo
    SSRN, 2022,
  • [6] Deep Learning-Based Code Refactoring: A Review of Current Knowledge
    Naik, Purnima
    Nelaballi, Salomi
    Pusuluri, Venkata Sai
    Kim, Dae-Kyoo
    JOURNAL OF COMPUTER INFORMATION SYSTEMS, 2024, 64 (02) : 314 - 328
  • [7] Practical Binary Code Similarity Detection with BERT-based Transferable Similarity Learning
    Ahn, Sunwoo
    Ahn, Seonggwan
    Koo, Hyungjoon
    Paek, Yunheung
    PROCEEDINGS OF THE 38TH ANNUAL COMPUTER SECURITY APPLICATIONS CONFERENCE, ACSAC 2022, 2022, : 361 - 374
  • [8] A parallel deep learning-based code clone detection model
    Zhang, Xiangping
    Liu, Jianxun
    Shi, Min
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2023, 181
  • [9] COCL: An Intelligent Framework for Enhancing Deep Learning-Based Vulnerability Detection
    Li, Wenxuan
    Dou, Shihan
    Wu, Yueming
    Li, Chenxi
    Liu, Yang
    IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2024, 20 (03) : 4953 - 4961
  • [10] ENHANCING SCALABILITY OF VIRTUAL METROLOGY: A DEEP LEARNING-BASED APPROACH FOR DOMAIN ADAPTATION
    Gentner, Natalie
    Kyek, Andreas
    Yang, Yao
    Carletti, Mattia
    Susto, Gian Antonio
    2020 WINTER SIMULATION CONFERENCE (WSC), 2020, : 1898 - 1909