arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.08950cs.CRcs.CLcs.PL
收藏

超越C:使用神经机器翻译的可重定向反编译

Beyond the C: Retargetable Decompilation using Neural Machine Translation

New York University(纽约大学)

Iman Hosseini, Brendan Dolan-Gavitt

摘要:

反编译问题是计算机软件逆向工程中的一个重要工具。最近,研究人员提出使用神经机器翻译技术来自动化反编译过程。虽然这些技术有望针对更广泛的源代码和汇编语言,但迄今为止,它们主要针对C代码。在本文中,我们认为,现有的神经反编译器已经取得了更高的准确性,在需要特定于语言的领域知识,如令牌和解析器建立一个抽象的语法树(AST)的源语言,这增加了支持新语言的开销的成本。我们探索一个不同的权衡,在可能的范围内,对待汇编和源语言作为纯文本,并表明,这使我们能够建立一个反编译器,很容易重定向到新的语言。我们评估了我们的原型反编译器,超越C(BTC),Go,Fortran,OCaml和C,并检查参数的影响,如标记化和训练数据选择对反编译的质量,发现它实现了相当的反编译结果与以前的工作在神经反编译领域的知识显着较少。我们将发布我们的训练数据、经过训练的反编译模型和代码,以帮助鼓励未来对与语言无关的反编译进行研究。

英文摘要:

The problem of reversing the compilation process, decompilation, is an important tool in reverse engineering of computer software. Recently, researchers have proposed using techniques from neural machine translation to automate the process in decompilation. Although such techniques hold the promise of targeting a wider range of source and assembly languages, to date they have primarily targeted C code. In this paper we argue that existing neural decompilers have achieved higher accuracy at the cost of requiring language-specific domain knowledge such as tokenizers and parsers to build an abstract syntax tree (AST) for the source language, which increases the overhead of supporting new languages. We explore a different tradeoff that, to the extent possible, treats the assembly and source languages as plain text, and show that this allows us to build a decompiler that is easily retargetable to new languages. We evaluate our prototype decompiler, Beyond The C (BTC), on Go, Fortran, OCaml, and C, and examine the impact of parameters such as tokenization and training data selection on the quality of decompilation, finding that it achieves comparable decompilation results to prior work in neural decompilation with significantly less domain knowledge. We will release our training data, trained decompilation models, and code to help encourage future research into language-agnostic decompilation.

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

↑