CREBench:评估大语言模型在密码二进制逆向工程中的能力
CREBench: Evaluating Large Language Models in Cryptographic Binary Reverse Engineering
AI总结:
本文提出CREBench基准,通过432个基于密码算法的挑战评估大语言模型在密码二进制逆向工程中的性能,发现GPT-5.4在该任务中表现优异,人类专家仍具优势。
摘要:
逆向工程(RE)在软件安全中至关重要,尤其是在处理敏感数据且易受漏洞影响的加密程序中。它支持关键任务,如漏洞发现和恶意软件分析。尽管其重要性,RE仍耗时且需要大量专业知识,使大语言模型(LLMs)成为自动化该过程的潜在解决方案。然而,它们在RE中的能力仍系统性地被忽视。为解决这一差距,我们研究了LLMs在加密二进制RE中的能力,并引入了CREBench基准,该基准包含432个挑战,这些挑战基于48种标准加密算法、3种不安全的加密密钥使用场景和3种难度级别。每个挑战都遵循Capture-the-Flag(CTF)RE挑战的模式,要求模型分析底层加密逻辑并恢复正确输入。我们设计了一个包含四个子任务的评估框架,从算法识别到正确旗帜恢复。我们对八个前沿LLMs进行了CREBench的评估。GPT-5.4,表现最好的模型,达到100分的64.03分,并在59%的挑战中恢复旗帜。我们还建立了强大的人类专家基准为92.19分,表明在加密RE任务中,人类仍保持优势。我们的代码和数据集可在https://github.com/wangyu-ovo/CREBench获取。
英文摘要:
Reverse engineering (RE) is central to software security, particularly for cryptographic programs that handle sensitive data and are highly prone to vulnerabilities. It supports critical tasks such as vulnerability discovery and malware analysis. Despite its importance, RE remains labor-intensive and requires substantial expertise, making large language models (LLMs) a potential solution for automating the process. However, their capabilities for RE remain systematically underexplored. To address this gap, we study the cryptographic binary RE capabilities of LLMs and introduce CREBench, a benchmark comprising 432 challenges built from 48 standard cryptographic algorithms, 3 insecure crypto key usage scenarios, and 3 difficulty levels. Each challenge follows a Capture-the-Flag (CTF) RE challenge, requiring the model to analyze the underlying cryptographic logic and recover the correct input. We design an evaluation framework comprising four sub-tasks, from algorithm identification to correct flag recovery. We evaluate eight frontier LLMs on CREBench. GPT-5.4, the best-performing model, achieves 64.03 out of 100 and recovers the flag in 59\% of challenges. We also establish a strong human expert baseline of 92.19 points, showing that humans maintain an advantage in cryptographic RE tasks. Our code and dataset are available at https://github.com/wangyu-ovo/CREBench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。