USENIX Security2020Top-tier venue
ETHBMC: A Bounded Model Checker for Smart Contracts
Joel Frank, Cornelius Aschermann, Thorsten Holz
Abstract
The introduction of smart contracts has significantly advanced the state-of-the-art in cryptocurrencies. Smart contracts are programs who live on the blockchain, governing the flow of money. However, the promise of monetary gain has attracted miscreants, resulting in spectacular hacks which resulted in the loss of millions worth of currency. In response, several powerful static analysis tools were developed to address these problems. We surveyed eight recently proposed static analyzers for Ethereum smart contracts and found that none of them captures all relevant features of the Ethereum ecosystem. For example, we discovered that a precise memory model is missing and inter-contract analysis is only partially supported. Based on these insights, we present the design and implementation of ETHBMC, a bounded model checker based on symbolic execution which provides a precise model of the Ethereum network. We demonstrate its capabilities in a series of experiments. First, we compare against the eight aforementioned tools, showing that even relatively simple toy examples can obstruct other analyzers. Further proving that precise modeling is indispensable, we leverage ETHBMC capabilities for automatic vulnerability scanning.We perform a large-scale analysis of roughly 2.2 million accounts currently active on the blockchain and automatically generate 5,905 valid inputs which trigger a vulnerability. From these, 1,989 can destroy a contract at will (so called suicidal contracts) and the rest can be used by an adversary to arbitrarily extract money. Finally, we compare our large-scale analysis against two previous analysis runs, finding significantly more inputs (22.8%) than previous approaches.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
42 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts cites Making Smart Contracts Smarter
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites Making Smart Contracts Smarter
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites Securify: Practical Security Analysis of Smart Contracts
- Understanding Security Issues in the NFT Ecosystem cites Making Smart Contracts Smarter
- Understanding Security Issues in the NFT Ecosystem cites SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
- Understanding Security Issues in the NFT Ecosystem cites Securify: Practical Security Analysis of Smart Contracts
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Making Smart Contracts Smarter
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds cites Securify: Practical Security Analysis of Smart Contracts
- EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts cites Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
- EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts cites Making Smart Contracts Smarter
- EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts cites Securify: Practical Security Analysis of Smart Contracts
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites Making Smart Contracts Smarter
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited cites Securify: Practical Security Analysis of Smart Contracts
- SmarTest: Effectively Hunting Vulnerable Transaction Sequences in Smart Contracts through Language Model-Guided Symbolic Execution cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- SmarTest: Effectively Hunting Vulnerable Transaction Sequences in Smart Contracts through Language Model-Guided Symbolic Execution cites Making Smart Contracts Smarter
- SmarTest: Effectively Hunting Vulnerable Transaction Sequences in Smart Contracts through Language Model-Guided Symbolic Execution cites Securify: Practical Security Analysis of Smart Contracts
- Securify: Practical Security Analysis of Smart Contracts cites Making Smart Contracts Smarter
Cited by top-tier papers42
- Understanding Security Issues in the NFT EcosystemDipanjan Das, Priyanka Bose, Nicola Ruaro, Christopher Kruegel et al.CCS 2022 · 173 citations
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply ExploitedDaniel Perez, Benjamin LivshitsUSENIX Security 2021 · 150 citations
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in SecondsPriyanka Bose, Dipanjan Das, Yanju Chen, Yu Feng et al.S&P 2022 · 142 citations
- SmarTest: Effectively Hunting Vulnerable Transaction Sequences in Smart Contracts through Language Model-Guided Symbolic ExecutionSunbeom So, Seongjoon Hong, Hakjoo OhUSENIX Security 2021 · 118 citations
- EVMPatch: Timely and Automated Patching of Ethereum Smart ContractsMichael Rodler, Wenting Li, Ghassan O. Karame, Lucas DaviUSENIX Security 2021 · 103 citations
Builds on9
- Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
- Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
- Driller: Augmenting Fuzzing Through Selective Symbolic ExecutionNick Stephens, John Grosen, Christopher Salls, Andrew Dutcher et al.NDSS 2016 · 1,021 citations
- teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 citations
- Sereum: Protecting Existing Smart Contracts Against Re-Entrancy AttacksMichael Rodler, Wenting Li, Ghassan O. Karame, Lucas DaviNDSS 2019 · 298 citations
Related papers
- Symbolic value-flow static analysis: deep, precise, complete modeling of Ethereum smart contractsYannis Smaragdakis, Neville Grech, Sifis Lagouvardos, Konstantinos Triantafyllou et al.OOPSLA 2021 · 18 citations
- eTainter: detecting gas-related vulnerabilities in smart contractsAsem Ghaleb, Julia Rubin, Karthik PattabiramanISSTA 2022 · 57 citations
- Ethainter: a smart contract security analyzer for composite vulnerabilitiesLexi Brent, Neville Grech, Sifis Lagouvardos, Bernhard Scholz et al.PLDI 2020 · 163 citations
- The Art of The Scam: Demystifying Honeypots in Ethereum Smart ContractsChristof Ferreira Torres, Mathis Steichen, Radu StateUSENIX Security 2019 · 239 citations
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contractsThomas Durieux, João F. Ferreira, Rui Abreu, Pedro CruzICSE 2020 · 373 citations
