BinQuery: A Novel Framework for Natural Language-Based Binary Code Retrieval
Binary Function Retrieval (BFR) is crucial in reverse engineering for identifying specific functions in binary code, especially those associated with malicious behavior or vulnerabilities. Traditional BFR methods rely on heuristics, often lacking the efficiency and adaptability needed for large-scale or diverse binary analysis tasks. To address these challenges, we present BinQuery, a Natural Language-based BFR (NL-based BFR) framework that uses natural language queries to retrieve relevant binary functions with improved flexibility and precision. BinQuery introduces innovative techniques to bridge information gaps between binary code and natural language, achieves fine-grained alignment for enhanced retrieval accuracy, and leverages Large Language Models (LLMs) to refine queries and generate diverse descriptions. Our extensive experiments indicate that BinQuery surpasses current state-of-the-art methods, achieving a 42.55% increase in recall@1 and a 4× improvement in performance on comparable benchmarks.
Authors
- Bolun Zhang (ORCID: https://orcid.org/0009-0003-1287-096X)
- Kai Chen (ORCID: https://orcid.org/0000-0002-5624-2987)
- Chao Zhang (ORCID: https://orcid.org/0000-0001-7894-8828)
- Hao Wang (ORCID: https://orcid.org/0000-0002-0536-5039)
- Zeyu Gao (ORCID: https://orcid.org/0009-0003-2318-9061)
- S. Qin (ORCID: https://orcid.org/0000-0001-6059-4689)
- Beibei Zhao (ORCID: https://orcid.org/0009-0007-6066-8044)
- Yingqian Cui (ORCID: https://orcid.org/0009-0000-2377-7646)
Institutions
- Chinese Academy of Sciences (CN)
- Institute of Information Engineering (CN)
- University of Chinese Academy of Sciences (CN)
- Tsinghua University (CN)
Publication Details
- Journal
- Proceedings of the ACM on software engineering.
- Published
- 2025-06-22
- DOI
- https://doi.org/10.1145/3728927
- Citations
- 1
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 3.25