HEBCS: A High-Efficiency Binary Code Search Method
Open Access
- 16 August 2023
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 12 (16) , 3464
Abstract
Binary code search is a technique that involves finding code with similarity to a given code within a code database. It finds extensive application in scenarios such as vulnerability queries and code defect analysis. While many existing methods employ advanced machine learning models for similarity analysis, their lack of interpretability and low efficiency in dealing with large-scale functions still remain challenges. To address these issues, we propose a high-efficiency binary code search method called HEBCS. It employs an interpretable approach to extract function-level features and transforms each feature into a locality-sensitive hash representation. Then, the hashes of these features are combined to form the hash of the function. By leveraging the pigeonhole principle, HEBCS enables efficient storage and retrieval of functions, ensuring high execution efficiency even in the presence of large-scale data. Furthermore, we compare HEBCS with a classic method and a state-of-the-art method, demonstrating that HEBCS achieves significantly higher search efficiency while maintaining a comparable accuracy, recall and F1-score. In real-world vulnerability query applications, HEBCS demonstrated promising results. Its effectiveness in large-scale binary function searches suggests significant potential for practical applications.Keywords
Funding Information
- National Key Research and Development Program of China (2020YFB2010900, 224200510002)
- Program for Innovation Leading Scientists and Technicians of Zhongyuan (2020YFB2010900, 224200510002)
This publication has 25 references indexed in Scilit:
- VulSeeker: a semantic learning based vulnerability seeker for cross-platform binary2018
- A deep learning approach to program similarity2018
- BinMatch: A Semantics-Based Hybrid Approach on Binary Code Clone Analysis2018
- FirmUp2018
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection2017
- Scalable Graph-based Bug Search for Firmware Images2016
- XGBoost2016
- discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code2016
- Detecting near-duplicates for web crawling2007
- Approximate nearest neighbors1998