arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.06341cs.CR
收藏

EF/CF:面向漏洞利用生成的高性能智能合约模糊测试

EF/CF: High Performance Smart Contract Fuzzing for Exploit Generation

Michael Rodler, David Paaßen, Wenting Li, Lukas Bernhard, Thorsten Holz, Ghassan Karame, Lucas Davi

AI总结:

本文提出高性能以太坊智能合约模糊测试器 EF/CF,通过将字节码转译为 C++ 并利用结构感知变异与 ABI 生成有效输入,高效检测重入等复杂漏洞并自动生成窃取以太币的交易序列。

摘要:

智能合约正越来越多地用于管理大量高价值加密货币账户。对于检测给定合约中安全漏洞的自动化、高效且全面的方法存在强烈需求。虽然文献中提出了大量智能合约分析方法,但现有方案并未应对合约日益增长的复杂性。在当今越来越由复杂性和相互依赖关系定义的智能合约中,现有分析工具存在误报和漏报问题。为了将精确分析扩展到现代智能合约,我们引入了 EF/CF,一个面向以太坊智能合约的高性能模糊测试器。与先前工作相比,EF/CF 以极高的模糊测试吞吐率高效且精确地建模复杂智能合约交互,例如重入和跨合约交互。为实现这一目标,EF/CF 将智能合约字节码转译为原生 C++ 代码,从而能够复用现有的、经过优化的模糊测试工具链。此外,EF/CF 通过采用面向智能合约交易序列的结构感知变异引擎,并利用合约的 ABI 生成有效的交易输入,提高了模糊测试效率。在综合评估中,我们表明与最先进的方法(包括其他模糊测试器、符号/混合执行以及混合方法)相比,EF/CF 在不牺牲准确性的情况下对复杂合约具有更好的可扩展性。此外,我们表明 EF/CF 能够自动生成利用重入漏洞窃取以太币的交易序列。

英文摘要:

Smart contracts are increasingly being used to manage large numbers of high-value cryptocurrency accounts. There is a strong demand for automated, efficient, and comprehensive methods to detect security vulnerabilities in a given contract. While the literature features a plethora of analysis methods for smart contracts, the existing proposals do not address the increasing complexity of contracts. Existing analysis tools suffer from false alarms and missed bugs in today's smart contracts that are increasingly defined by complexity and interdependencies. To scale accurate analysis to modern smart contracts, we introduce EF/CF, a high-performance fuzzer for Ethereum smart contracts. In contrast to previous work, EF/CF efficiently and accurately models complex smart contract interactions, such as reentrancy and cross-contract interactions, at a very high fuzzing throughput rate. To achieve this, EF/CF transpiles smart contract bytecode into native C++ code, thereby enabling the reuse of existing, optimized fuzzing toolchains. Furthermore, EF/CF increases fuzzing efficiency by employing a structure-aware mutation engine for smart contract transaction sequences and using a contract's ABI to generate valid transaction inputs. In a comprehensive evaluation, we show that EF/CF scales better -- without compromising accuracy -- to complex contracts compared to state-of-the-art approaches, including other fuzzers, symbolic/concolic execution, and hybrid approaches. Moreover, we show that EF/CF can automatically generate transaction sequences that exploit reentrancy bugs to steal Ether.

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

↑