arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.08325cs.PLcs.LG
收藏

神经反编译

Towards Neural Decompilation

Technion(以色列理工学院);Bar Ilan University(巴伊兰大学)

Omer Katz, Yuval Olshaker, Yoav Goldberg, Eran Yahav

摘要:

我们解决的问题,自动反编译,转换一个程序在低层次的表示回到一个更高层次的人类可读的程序设计语言。反编译问题对于安全研究人员来说是极其重要的。通过源代码查找漏洞和了解恶意软件的操作方式要容易得多。反编译的重要性激发了手工制作的基于规则的反编译器的构建。这种反编译器是由专家设计的,用于检测低级代码中的特定控制流结构和习惯用法,并将其提升到源代码级别。在这些模型中支持额外语言或新语言功能的成本非常高。提出了一种基于神经机器翻译的反编译方法。其主要思想是从给定的编译器中自动学习反编译器。给定一个从源语言S到目标语言T的编译器,我们的方法自动训练一个反编译器,可以将T翻译(反编译)回S。我们使用我们的框架来反编译LLVM IR和x86汇编到C代码,成功率很高。使用我们的LLVM和x86实例化,我们能够分别成功地反编译超过97%和88%的基准测试。

英文摘要:

We address the problem of automatic decompilation, converting a program in low-level representation back to a higher-level human-readable programming language. The problem of decompilation is extremely important for security researchers. Finding vulnerabilities and understanding how malware operates is much easier when done over source code. The importance of decompilation has motivated the construction of hand-crafted rule-based decompilers. Such decompilers have been designed by experts to detect specific control-flow structures and idioms in low-level code and lift them to source level. The cost of supporting additional languages or new language features in these models is very high. We present a novel approach to decompilation based on neural machine translation. The main idea is to automatically learn a decompiler from a given compiler. Given a compiler from a source language S to a target language T , our approach automatically trains a decompiler that can translate (decompile) T back to S . We used our framework to decompile both LLVM IR and x86 assembly to C code with high success rates. Using our LLVM and x86 instantiations, we were able to successfully decompile over 97% and 88% of our benchmarks respectively.

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

↑