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

大语言模型能否解码二进制代码?对大型语言模型在伪代码解码中的系统分析

Can LLMs Deobfuscate Binary Code? A Systematic Analysis of Large Language Models into Pseudocode Deobfuscation

University of Science and Technology of China(中国科学技术大学);Singapore Management University(新加坡管理大学);University of Alberta(阿尔伯塔大学)

Li Hu, Xiuwei Shang, Jieke Shi, Shaoyin Cheng, Junqi Zhang, Gangyang Li, Zhou Yang, Weiming Zhang, David Lo

AI总结:

本文系统评估了大语言模型在二进制解码中的有效性,提出BinDeObfBench基准测试,发现解码性能更依赖推理能力和领域知识,任务特定的监督微调优于广泛领域预训练。

摘要:

二进制代码的解码仍然是逆向工程中的基本挑战,因为混淆技术被广泛用于阻碍分析和隐藏程序逻辑。尽管大语言模型(LLMs)在从混淆二进制中恢复语义方面显示出潜力,但对其有效性的系统评估仍然不足。在本工作中,我们提出了BinDeObfBench,这是首个全面评估LLM在不同转换阶段(预编译、编译时和后编译阶段)的二进制解码能力的基准测试。我们的评估显示,解码性能更多依赖于推理能力和领域专业知识,而非模型规模。任务特定的监督微调始终优于广泛领域预训练。推理模型在严重混淆下仍能保持鲁棒性,能够跨不同指令集架构(ISAs)和优化级别进行泛化。上下文学习对标准模型有益,但对推理模型的提升有限。总体而言,我们的研究突显了任务特定微调和推理驱动策略的重要性,并将BinDeObfBench定位为未来二进制解码工作的基础。

英文摘要:

Deobfuscating binary code remains a fundamental challenge in reverse engineering, as obfuscation is widely used to hinder analysis and conceal program logic. Although large language models (LLMs) have shown promise in recovering semantics from obfuscated binaries, a systematic evaluation of their effectiveness is still lacking. In this work, we present BinDeObfBench, the first comprehensive benchmark for assessing LLM-based binary deobfuscation across diverse transformations spanning pre-compilation, compile-time, and post-compilation stages. Our evaluation shows that deobfuscation performance depends more on reasoning capability and domain expertise than on model scale, and that task-specific supervised fine-tuning consistently outperforms broad domain pre-training. Reasoning models can maintain robustness under severe obfuscation, generalize across different instruction set architectures (ISAs) and optimization levels. In-context learning benefits standard models but yields limited gains for reasoning models. Overall, our study highlights the importance of task-specific fine-tuning and reasoning-driven strategies, and positions BinDeObfBench as a basis for future work in binary deobfuscation.

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

↑