arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.01763cs.SEcs.AI
收藏

基于上下文的反编译:迈向可重新执行性的一步

Context-Guided Decompilation: A Step Towards Re-executability

Vanderbilt University(范德堡大学)

Xiaohan Wang, Yuxin Hu, Kevin Leach

AI总结:

本文提出ICL4Decomp框架,利用上下文学习指导LLM生成可重新执行的源代码,提升反编译的可执行性与鲁棒性。

摘要:

二进制反编译在软件安全分析、逆向工程和恶意软件理解中扮演着重要角色,尤其是在源代码不可用时。然而,现有的反编译技术往往无法生成能够成功重新编译和重新执行的源代码,特别是对于优化后的二进制文件。近年来,大型语言模型(LLMs)的进步使得神经方法能够应用于反编译,但生成的代码通常只是语义上合理,而非真正可执行的,限制了其实际可靠性。这些不足源于编译器优化和编译代码中语义线索的丢失,而LLMs在没有上下文指导的情况下难以恢复。为了解决这一挑战,我们提出了ICL4Decomp,一种混合反编译框架,利用上下文学习(ICL)来引导LLMs生成可重新执行的源代码。我们评估了我们的方法在多个数据集、优化级别和编译器上的表现,证明了在可重新执行性方面比最先进的反编译方法提高了约40%,同时保持了鲁棒性。

英文摘要:

Binary decompilation plays an important role in software security analysis, reverse engineering, and malware understanding when source code is unavailable. However, existing decompilation techniques often fail to produce source code that can be successfully recompiled and re-executed, particularly for optimized binaries. Recent advances in large language models (LLMs) have enabled neural approaches to decompilation, but the generated code is typically only semantically plausible rather than truly executable, limiting their practical reliability. These shortcomings arise from compiler optimizations and the loss of semantic cues in compiled code, which LLMs struggle to recover without contextual guidance. To address this challenge, we propose ICL4Decomp, a hybrid decompilation framework that leverages in-context learning (ICL) to guide LLMs toward generating re-executable source code. We evaluate our method across multiple datasets, optimization levels, and compilers, demonstrating around 40\% improvement in re-executability over state-of-the-art decompilation methods while maintaining robustness.

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

↑