Cross-Architecture Binary Code Similarity-Detection Method Based on Contextual Information
With the rapid growth of software scale, binary code similarity detection is of great significance in security analysis tasks, such as malicious code detection and vulnerability mining. However, due to differences in instruction sets and inconsistent intermediate languages used by different compilers, with existing methods it is difficult to effectively implement cross-architecture detection. To address the problem of insufficient cross-architecture feature extraction in existing methods, we propose a cross-architecture binary code similarity-detection method based on contextual information. We design an assembly instruction-classification method that maps instructions implementing the same function under different architectures to the same semantic space, and makes the model learn the common features of semantically similar instructions under different architectures more efficiently through comparative learning to better capture semantic context information. In order to better capture the contextual structural information between basic blocks, we introduce graph attention neural networks to reduce the interference of noisy nodes that contain fewer instructions. The combination of semantic contextual information as well as structural contextual information ultimately improves the detection accuracy. Experimental results show that compared with existing methods, the proposed method has better performance in accuracy, precision, recall and F1-score.
Authors
- Su‐Juan Qin (ORCID: https://orcid.org/0000-0002-6405-6711)
- Xingyu Zeng (ORCID: https://orcid.org/0009-0007-8224-4461)
- Qiaoyan Wen (ORCID: https://orcid.org/0000-0001-7142-9726)
- Yujie Yang (ORCID: https://orcid.org/0000-0002-2958-990X)
Institutions
- Beijing University of Posts and Telecommunications (CN)
Publication Details
- Journal
- Applied Sciences
- Published
- 2025-08-28
- DOI
- https://doi.org/10.3390/app15179458
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China