CodeCMR: Cross-Modal Retrieval For Function-Level Binary Source Code Matching
Zeping Yu, Wenxin Zheng, Jiaqi Wang, Qiyi Tang, Sen Nie, Shi Wu
摘要
Binary source code matching, especially on function-level, has a critical role in the field of computer security. Given binary code only, finding the corresponding source code improves the accuracy and efficiency in reverse engineering. Given source code only, related binary code retrieval contributes to known vulnerabilities confirmation. However, due to the vast difference between source and binary code, few studies have investigated binary source code matching. Previously published studies focus on code literals extraction such as strings and integers, then utilize traditional matching algorithms such as the Hungarian algorithm for code matching. Nevertheless, these methods have limitations on function-level, because they ignore the potential semantic features of code and a lot of code lacks sufficient code literals. Also, these methods indicate a need for expert experience for useful feature identification and feature engineering, which is timeconsuming. This paper proposes an end-to-end cross-modal retrieval network for binary source code matching, which achieves higher accuracy and requires less expert experience. We adopt Deep Pyramid Convolutional Neural Network (DPCNN) for source code feature extraction and Graph Neural Network (GNN) for binary code feature extraction. We also exploit neural network-based models to capture code literals, including strings and integers. Furthermore, we implement "norm weighted sampling" for negative sampling. We evaluate our model on two datasets, where it outperforms other methods significantly.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Code is not Natural Language: Unlock the Power of Semantics-Oriented Graph Representation for Binary Code Similarity Detection 引用了 Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection
- Code is not Natural Language: Unlock the Power of Semantics-Oriented Graph Representation for Binary Code Similarity Detection 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- Code is not Natural Language: Unlock the Power of Semantics-Oriented Graph Representation for Binary Code Similarity Detection 引用了 Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
- Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection 引用了 Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
- BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matching 引用了 Identifying Open-Source License Violation and 1-day Security Risk at Large Scale
- BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matching 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matching 引用了 Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
- Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- Automated Detection of Password Leakage from Public GitHub Repositories 引用了 Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection
- CLAP: Learning Transferable Binary Code Representations with Natural Language Supervision 引用了 Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection
- CLAP: Learning Transferable Binary Code Representations with Natural Language Supervision 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
引用它的顶会 Paper23
- Code is not Natural Language: Unlock the Power of Semantics-Oriented Graph Representation for Binary Code Similarity DetectionHaojie He, Xingwei Lin, Ziang Weng, Ruijie Zhao 等USENIX Security 2024 · 66 次引用
- CCTEST: Testing and Repairing Code Completion SystemsZongjie Li, Chaozheng Wang, Zhibo Liu, Haoxuan Wang 等ICSE 2023 · 49 次引用
- BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code MatchingLing Jiang, Junwen An, Huihui Huang, Qiyi Tang 等ICSE 2024 · 43 次引用
- Automated Detection of Password Leakage from Public GitHub RepositoriesRunhan Feng, Ziyang Yan, Shiyan Peng, Yuanyuan ZhangICSE 2022 · 36 次引用
- CLAP: Learning Transferable Binary Code Representations with Natural Language SupervisionHao Wang, Zeyu Gao, Chao Zhang, Zihan Sha 等ISSTA 2024 · 32 次引用
它引用的 Paper6
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity DetectionXiaojun Xu, Chang Liu, Qian Feng, Heng Yin 等CCS 2017 · 682 次引用
- Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity DetectionZeping Yu, Rui Cao, Qiyi Tang, Sen Nie 等AAAI 2020 · 265 次引用
- Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function PairsFei Zuo, Xiaopeng Li, Patrick Young, Lannan Luo 等NDSS 2019 · 262 次引用
- Identifying Open-Source License Violation and 1-day Security Risk at Large ScaleRuian Duan, Ashish Bijlani, Meng Xu, Taesoo Kim 等CCS 2017 · 126 次引用
- Cross-Batch Memory for Embedding LearningXun Wang, Haozhi Zhang, Weilin Huang, Matthew R. ScottCVPR 2020
相关 Paper
- SigmaDiff: Semantics-Aware Deep Graph Matching for Pseudocode DiffingLian Gao, Yu Qu, Sheng Yu, Yue Duan 等NDSS 2024
- VulHawk: Cross-architecture Vulnerability Detection with Entropy-based Binary Code SearchZhenhao Luo, Pengfei Wang, Baosheng Wang, Yong Tang 等NDSS 2023
- VulCNN: An Image-inspired Scalable Vulnerability Detection SystemYueming Wu, Deqing Zou, Shihan Dou, Wei Yang 等ICSE 2022 · 141 次引用
- REVDECODE: Enhancing Binary Function Matching with Context-Aware Graph Representations and Relevance DecodingTongwei Ren, Ronghan Che, Guin Gilman, Lorenzo De Carli 等USENIX Security 2025
- BinAug: Enhancing Binary Similarity Analysis with Low-Cost Input RepairingWai Kin Wong, Huaijin Wang, Zongjie Li, Shuai WangICSE 2024 · 4 次引用
