How Far Have We Gone in Binary Code Understanding Using Large Language Models
Authors:
- 6 October 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-12
Abstract
Binary code analysis plays a pivotal role in various software security applications, such as software maintenance, malware detection, software vulnerability discovery, patch analysis, etc. However, unlike source code, understanding binary code is challenging for reverse engineers due to the absence of semantic information. Therefore, automated tools are needed to assist human players in interpreting binary code. In recent years, two groups of technologies have shown promising prospects: (1) Deep learning-based technologies have demonstrated competitive results in tasks related to binary code understanding, furthermore, (2) Large Language Models (LLMs) have been extensively pre-trained at the source-code level for tasks such as code understanding and generation. This makes participants wonder about the ability of LLMs in binary code understanding. In this work, we propose a benchmark to evaluate the effectiveness of LLMs in real-world reverse engineering scenarios. The benchmark covers two key binary code understanding tasks, including function name recovery and binary code summarization. We gain valuable insights into their capabilities and limitations through extensive evaluations of popular LLMs using our benchmark. Our evaluations reveal that existing LLMs can understand binary code to a certain extent, thereby improving the efficiency of binary code analysis. Our results highlight the great potential of the LLMs in advancing the field of binary code understanding.Keywords
All Related Versions
Funding Information
- Natural Science Foundation of China (U20B2047,62072421,62002334,62102386,62121002)
This publication has 26 references indexed in Scilit:
- Structured information extraction from scientific text with large language modelsNature Communications, 2024
- Data science opportunities of large language models for neuroscience and biomedicineNeuron, 2024
- HexT5: Unified Pre-Training for Stripped Binary Code Information Inference2023
- Investigating Neural-based Function Name Reassignment from the Perspective of Binary Code Representation2023
- Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binaries2023
- Revisiting Binary Code Similarity Analysis Using Interpretable Feature Engineering and Lessons LearnedIEEE Transactions on Software Engineering, 2022
- StochFuzz: Sound and Cost-effective Fuzzing of Stripped Binaries by Incremental and Stochastic Rewriting2021
- Exploration, Analysis, and Manipulation of Source Code Using srcML2015
- Towards automatically generating summary comments for Java methods2010
- The Meteor metric for automatic evaluation of machine translationMachine Translation, 2009