Skip to main content
QUICK REVIEW

[论文解读] Security Analysis Methods on Ethereum Smart Contract Vulnerabilities: A Survey

Purathani Praitheeshan, Lei Pan|arXiv (Cornell University)|Aug 22, 2019
Security and Verification in ComputingComputer Science被引用 91
一句话总结

本综述分析以太坊智能合约漏洞,评估主要攻击, 将漏洞映射到软件安全问题,并评审静态、动态和形式化验证分析工具。 它强调了以太坊漏洞检测的差距与未来方向。

ABSTRACT

Smart contracts are software programs featuring both traditional applications and distributed data storage on blockchains. Ethereum is a prominent blockchain platform with the support of smart contracts. The smart contracts act as autonomous agents in critical decentralized applications and hold a significant amount of cryptocurrency to perform trusted transactions and agreements. Millions of dollars as part of the assets held by the smart contracts were stolen or frozen through the notorious attacks just between 2016 and 2018, such as the DAO attack, Parity Multi-Sig Wallet attack, and the integer underflow/overflow attacks. These attacks were caused by a combination of technical flaws in designing and implementing software codes. However, many more vulnerabilities of less severity are to be discovered because of the scripting natures of the Solidity language and the non-updateable feature of blockchains. Hence, we surveyed 16 security vulnerabilities in smart contract programs, and some vulnerabilities do not have a proper solution. This survey aims to identify the key vulnerabilities in smart contracts on Ethereum in the perspectives of their internal mechanisms and software security vulnerabilities. By correlating 16 Ethereum vulnerabilities and 19 software security issues, we predict that many attacks are yet to be exploited. And we have explored many software tools to detect the security vulnerabilities of smart contracts in terms of static analysis, dynamic analysis, and formal verification. This survey presents the security problems in smart contracts together with the available analysis tools and the detection methods. We also investigated the limitations of the tools or analysis methods with respect to the identified security vulnerabilities of the smart contracts.

研究动机与目标

  • 识别与重大加密资产损失相关的主要以太坊智能合约漏洞。
  • 分析这些漏洞的利用方式及其对基于以太坊的系统的影响。
  • 调查现有的安全分析方法(静态、动态和形式化验证)及其有效性。
  • 将漏洞发现与软件安全问题相关联,揭示覆盖范围的差距和趋势。
  • 引导未来在漏洞检测和安全智能合约开发方面的研究方向。

提出的方法

  • 通过将16个以太坊漏洞映射到19个软件安全问题来对漏洞进行分类。
  • 将安全分析方法分为静态分析、动态分析和形式化验证进行审查和分类。
  • 调研用于漏洞检测与验证的工具与验证模型。
  • 分析工具和方法在对已识别的以太坊漏洞方面的局限性。
  • 综合来自重大攻击(如 DAO、Parity)的经验教训,提炼最佳实践和风险因素。

实验结果

研究问题

  • RQ1导致重大加密资产损失的以太坊智能合约的主要攻击有哪些?
  • RQ2智能合约中的漏洞在这些攻击中如何使攻击者得以利用?
  • RQ3在以太坊上存在哪些安全分析方法用于验证和核实智能合约问题?
  • RQ4所识别的漏洞如何映射到一般的软件安全问题,以及当前工具中存在哪些差距?
  • RQ5在以太坊智能合约安全领域,未来研究的推荐方向是什么?

主要发现

  • The DAO 攻击揭示了一个重入漏洞,其中递归调用耗尽资金。
  • Parity Multisig Wallet 攻击展示了公开库和 delegatecall 如何实现对资产的完全控制与冻结。
  • 整数溢出/下溢漏洞可能在没有编译器错误的情况下实现数值操作和资金损失;SafeMath.sol 可以降低这种风险。
  • 许多漏洞源于 Solidity 语言特性以及已部署合约的不可变性,这给部署后修复带来复杂性。
  • 本次调查将16个以太坊漏洞与19个软件安全问题相关联,以揭示当前工具和实践中的覆盖差距。
  • 安全分析工具覆盖静态、动态和形式化验证,每种在检测以太坊特定漏洞方面都存在特定的局限性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。