Fus: Combining Semantic and Structural Graph Information for Binary Code Similarity Detection
Binary code similarity detection (BCSD) plays an important role in software security. Recent deep learning-based methods have made great progress. Existing methods based on a single feature, such as semantics or graph structure, struggle to handle changes caused by the architecture or compilation environment. Methods fusing semantics and graph structure suffer from insufficient learning of the function, resulting in low accuracy and robustness. To address this issue, we proposed Fus, a method that integrates semantic information from the pseudo-C code and structural features from the Abstract Syntax Tree (AST). The pseudo-C code and AST are robust against compilation and architectural changes and can represent the function well. Our approach consists of three steps. First, we preprocess the assembly code to obtain the pseudo-C code and AST for each function. Second, we employ a Siamese network with CodeBERT models to extract semantic embeddings from the pseudo-C code and Tree-Structured Long Short-Term Memory (Tree LSTM) to encode the AST. Finally, function similarity is computed by summing the respective semantic and structural similarities. The evaluation results show that our method outperforms the state-of-the-art methods in most scenarios. Especially in large-scale scenarios, its performance is remarkable. In the vulnerability search task, Fus achieves the highest recall. It demonstrates the accuracy and robustness of our method.
Authors
- Zulie Pan (ORCID: https://orcid.org/0000-0001-5775-5824)
- Taiyan Wang (ORCID: https://orcid.org/0009-0007-0533-4404)
- Lu Yu (ORCID: https://orcid.org/0000-0002-4600-8273)
- Yanlin Li (ORCID: https://orcid.org/0009-0000-7135-8972)
Institutions
- Anhui University (CN)
- National University of Defense Technology (CN)
Publication Details
- Journal
- Electronics
- Published
- 2025-09-24
- DOI
- https://doi.org/10.3390/electronics14193781
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National University of Defense Technology