您身边的反编译器中不可思议的收缩上下文……
The Incredible Shrinking Context... in a Decompiler Near You
AI总结:
针对以太坊虚拟机智能合约的二进制代码反编译问题,提出基于静态分析的反编译器Shrknr,通过收缩上下文敏感性技术,在可扩展性、完整性和精度上大幅超越现有技术,如覆盖更多合约和代码、降低不精确指标。
摘要:
二进制代码反编译已成为以太坊虚拟机(EVM)智能合约领域中一个至关重要的应用。主要的新型反编译器几乎每年都会出现并受到欢迎,用于多种逆向工程或工具构建目的。从技术上讲,该问题是基础性的:它包括从高度优化的延续传递风格(CPS)表示中恢复高级控制流。在架构上,反编译器可以使用静态分析或符号执行技术构建。我们提出Shrknr,一种基于静态分析的反编译器,它超越了最先进的Elipmoc反编译器。Shrknr在所有重要维度(可扩展性、完整性、精度)上都实现了相对于现有技术的大幅改进。所采用的主要技术是静态分析上下文的一种新变体:收缩上下文敏感性。收缩上下文敏感性对静态分析上下文进行深度削减,主动“遗忘”控制流历史,以便为进一步的精确推理留出空间。我们将Shrknr与最先进的反编译器(基于静态分析和符号执行的)进行了比较。在标准基准测试集中,Shrknr可扩展到超过99.5%的合约(相比之下,现有技术约为95%),覆盖(即到达并成功反编译)的代码多67%,并将关键不精确指标降低了65%以上。
英文摘要:
Decompilation of binary code has arisen as a highly-important application in the space of Ethereum VM (EVM) smart contracts. Major new decompilers appear nearly every year and attain popularity, for a multitude of reverse-engineering or tool-building purposes. Technically, the problem is fundamental: it consists of recovering high-level control flow from a highly-optimized continuation-passing-style (CPS) representation. Architecturally, decompilers can be built using either static analysis or symbolic execution techniques. We present Shrknr, a static-analysis-based decompiler succeeding the state-of-the-art Elipmoc decompiler. Shrknr manages to achieve drastic improvements relative to the state of the art, in all significant dimensions: scalability, completeness, precision. Chief among the techniques employed is a new variant of static analysis context: shrinking context sensitivity. Shrinking context sensitivity performs deep cuts in the static analysis context, eagerly "forgetting" control-flow history, in order to leave room for further precise reasoning. We compare Shrnkr to state-of-the-art decompilers, both static-analysis- and symbolic-execution-based. In a standard benchmark set, Shrnkr scales to over 99.5% of contracts (compared to ~95%), covers (i.e., reaches and manages to decompile) 67% more code, and reduces key imprecision metrics by over 65%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。