BinMetric: A Comprehensive Binary Analysis Benchmark for Large Language Models
Preprint
Abstract
Binary analysis remains pivotal in software security, offering insights into compiled programs without source code access. As large language models (LLMs) continue to excel in diverse language understanding and generation tasks, their potential in decoding complex binary data structures becomes evident. However, the lack of standardized benchmarks in this domain limits the assessment and comparison of LLM's capabilities in binary analysis and hinders the progress of research and practical applications. To bridge this gap, we introduce BinMetric, a comprehensive benchmark designed specifically to evaluate the performance of large language models on binary analysis tasks. BinMetric comprises 1,000 questions derived from 20 real-world open-source projects across 6 practical binary analysis tasks, including decompilation, code summarization, assembly instruction generation, etc., which reflect actual reverse engineering scenarios. Our empirical study on this benchmark investigates the binary analysis capabilities of various state-of-the-art LLMs, revealing their strengths and limitations in this field. The findings indicate that while LLMs show strong potential, challenges still exist, particularly in the areas of precise binary lifting and assembly synthesis. In summary, BinMetric makes a significant step forward in measuring the binary analysis capabilities of LLMs, establishing a new benchmark leaderboard, and our study provides valuable insights for the future development of these LLMs in software security.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Models2024
- Large Language Models for Software Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology, 2024
- CLAP: Learning Transferable Binary Code Representations with Natural Language Supervision2024
- CoderUJB: An Executable and Unified Java Benchmark for Practical Programming Scenarios2024
- Asteria-Pro: Enhancing Deep Learning-based Binary Code Similarity Detection by Incorporating Domain KnowledgeACM Transactions on Software Engineering and Methodology, 2023
- Beyond the C: Retargetable Decompilation using Neural Machine Translation2022
- Neural reverse engineering of stripped binaries using augmented control flow graphsProceedings of the ACM on Programming Languages, 2020
- Exploration, Analysis, and Manipulation of Source Code Using srcML2015
- The Meteor metric for automatic evaluation of machine translationMachine Translation, 2009
- An empirical examination of the reverse engineering process for binary filesComputers & Security, 2006