Litcius/Paper detail

Fast Cross-Platform Binary Code Similarity Detection Framework Based on CFGs Taking Advantage of NLP and Inductive GNN

Jinxue Peng, Yong Wang, Jingfeng Xue, Zhenyan Liu

2024Chinese Journal of Electronics12 citationsDOIOpen Access PDF

Abstract

Cross-platform binary code similarity detection aims at detecting whether two or more pieces of binary code are similar or not. Existing approaches that combine control flow graphs (CFGs)-based function representation and graph convolutional network (GCN)-based similarity analysis are the best-performing ones. Due to a large amount of convolutional computation and the loss of structural information, the use of convolution networks will inevitably bring problems such as high overhead and sometimes inaccuracy. To address these issues, we propose a fast cross-platform binary code similarity detection framework that takes advantage of natural language processing (NLP) and inductive graph neural network (GNN) for basic blocks embedding and function representation respectively by simulating extracting structural features and temporal features. GNN's node-centric and small batch is a suitable training way for large CFGs, it can greatly reduce computational overhead. Various NLP basic block embedding models and GNNs are evaluated. Experimental results show that the scheme with long short term memory (LSTM) for basic blocks embedding and inductive learning-based GraphSAGE(GAE) for function representation outperforms the state-of-the-art works. In our framework, we can take only 45% overhead. Improve efficiency significantly with a small performance trade-off.

Topics & Concepts

Computer scienceSimilarity (geometry)Code (set theory)Binary numberArtificial intelligenceNatural language processingPattern recognition (psychology)MathematicsProgramming languageArithmeticImage (mathematics)Set (abstract data type)Software Engineering ResearchSoftware Testing and Debugging TechniquesWeb Data Mining and Analysis