arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.07360cs.SE
收藏

BinMetric:面向大型语言模型的综合二进制分析基准

BinMetric: A Comprehensive Binary Analysis Benchmark for Large Language Models

Xiuwei Shang, Guoqiang Chen, Shaoyin Cheng, Benlong Wu, Li Hu, Gangyang Li, Weiming Zhang, Nenghai Yu

AI总结:

针对二进制分析缺乏标准化 LLM 评测的问题,本文提出涵盖 6 类任务、20 个开源项目和 1,000 个问题的 BinMetric 基准,并实证评估多款主流 LLM,揭示其优势及在二进制提升与汇编综合上的不足。

摘要:

二进制分析在软件安全中仍然至关重要,它能够在无法访问源代码的情况下洞察编译后的程序。随着大型语言模型(LLM)在各类语言理解与生成任务中持续表现出色,它们在解码复杂二进制数据结构方面的潜力也日益明显。然而,该领域缺乏标准化基准,限制了对 LLM 二进制分析能力的评估与比较,并阻碍了研究和实际应用的进展。为弥补这一差距,我们推出 BinMetric,这是一个专门用于评估大型语言模型在二进制分析任务上表现的综合基准。BinMetric 包含来自 20 个真实开源项目的 1,000 个问题,涵盖反编译、代码摘要、汇编指令生成等 6 项实用二进制分析任务,反映了真实的逆向工程场景。我们基于该基准开展实证研究,考察多种最先进 LLM 的二进制分析能力,揭示它们在该领域的优势与局限。研究结果表明,尽管 LLM 展现出强大潜力,但挑战依然存在,尤其是在精确的二进制提升和汇编综合方面。总之,BinMetric 在衡量 LLM 的二进制分析能力方面迈出了重要一步,建立了新的基准排行榜;我们的研究也为这些 LLM 未来在软件安全领域的发展提供了宝贵洞见。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑