Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds

About

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 .

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

Related benchmarks

TaskDatasetResultRank
Smart contract vulnerability detectionSolidiFI Large contracts
RE Failure Count0.00e+0
10
Vulnerability DetectionElysium source code
RE Error (Exp)6
5
Vulnerability DetectionReentrancy source code subset
RE-Exp125
5
Showing 3 of 3 rows

Other info

Follow for update