评测大模型在密码学二进制逆向工程中的表现,发现人类仍占优。
CREBench: Evaluating Large Language Models in Cryptographic Binary Reverse Engineering

- 构建432个密码学二进制逆向挑战,覆盖3种漏洞场景和3级难度。
- 最先进模型仅达64.03分(满分100),旗标恢复率59%。
- 适合研究安全分析自动化、大模型在低层代码理解能力的学者。
逆向工程是软件安全的核心,尤其对处理敏感数据且易出漏洞的密码学程序至关重要,支持漏洞发现与恶意软件分析等任务。尽管重要,逆向工程仍高度依赖人工且需专业知识,大语言模型(LLMs)有望实现自动化。然而其在该领域的潜力尚未系统评估。为此,本文研究了大模型在密码学二进制逆向工程中的能力,提出CREBench基准,包含432个挑战,源自48个标准加密算法、3种不安全密钥使用场景及3个难度等级。每项挑战采用捕获旗帜(CTF)形式,要求模型分析底层加密逻辑并恢复正确输入。设计包含四个子任务的评估框架,从算法识别到正确旗标恢复。在八款前沿模型上评估,表现最佳的GPT-5.4得分为64.03/100,旗标恢复率为59%。同时建立人类专家基线为92.19分,显示人类在密码学逆向任务中仍具显著优势。代码与数据集开源于https://github.com/wangyu-ovo/CREBench。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。