arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2104.08638cs.CRcs.PL
收藏

SAILFISH:几秒钟内检查智能合约状态不一致性错误

SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds

Priyanka Bose, Dipanjan Das, Yanju Chen, Yu Feng, Christopher Kruegel, Giovanni Vigna

摘要:

本文介绍了SAILFISH,这是一个可扩展的系统,用于自动发现智能合约中的状态不一致错误。为了使分析易于处理,我们引入了一种混合方法,包括(i)一个轻量级的探索阶段,大大减少了要分析的指令的数量,以及(ii)一个精确的细化阶段,该阶段基于符号评估,由我们新颖的值汇总分析指导,它生成额外的约束,以过度近似整个程序执行的副作用,从而确保符号评估的精度。我们开发了一个SAILFISH的原型,并评估了它检测两个状态不一致缺陷的能力,即,以太坊智能合约中的可重入性和交易顺序依赖性(TOD)。此外,我们还提出了其他类型智能合约缺陷的检测规则,SAILFISH可以扩展到检测。我们的实验证明了我们的混合方法的效率,以及价值摘要分析的好处。特别是,我们发现S SAILFISH在性能和精度方面优于五种最先进的智能合约分析器(SECURITY,MYTHRIL,OYENTE,SEREUM和VANDAL)。总的来说,SAILFISH在ETHERSCAN的89,853个智能合约中发现了47个以前未知的易受攻击的智能合约。

英文摘要:

This paper presents SAILFISH, a scalable system for automatically finding state-inconsistency bugs in smart contracts. To make the analysis tractable, we introduce a hybrid approach that includes (i) a light-weight exploration phase that dramatically reduces the number of instructions to analyze, and (ii) a precise refinement phase based on symbolic evaluation guided by our novel value-summary analysis, which generates extra constraints to over-approximate the side effects of whole-program execution, thereby ensuring the precision of the symbolic evaluation. We developed a prototype of SAILFISH and evaluated its ability to detect two state-inconsistency flaws, viz., reentrancy and transaction order dependence (TOD) in Ethereum smart contracts. Further, we present detection rules for other kinds of smart contract flaws that SAILFISH can be extended to detect. Our experiments demonstrate the efficiency of our hybrid approach as well as the benefit of the value summary analysis. In particular, we show that S SAILFISH outperforms five state-of-the-art smart contract analyzers (SECURITY, MYTHRIL, OYENTE, SEREUM and VANDAL ) in terms of performance, and precision. In total, SAILFISH discovered 47 previously unknown vulnerable smart contracts out of 89,853 smart contracts from ETHERSCAN .

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

↑