Lune

NDSS2018Top-tier venue

ZEUS: Analyzing Safety of Smart Contracts

Sukrit Kalra, Seep Goel, Mohan Dhawan, Subodh Sharma

Abstract

A smart contract is hard to patch for bugs once it is deployed, irrespective of the money it holds. A recent bug caused losses worth around 50millionofcryptocurrency.WepresentZEUS−aframeworktoverifythecorrectnessandvalidatethefairnessofsmartcontracts.Weconsidercorrectnessasadherencetosafeprogrammingpractices,whilefairnessisadherencetoagreeduponhigher−levelbusinesslogic.ZEUSleveragesbothabstractinterpretationandsymbolicmodelchecking,alongwiththepowerofconstrainedhornclausestoquicklyverifycontractsforsafety.WehavebuiltaprototypeofZEUSforEthereumandFabricblockchainplatforms,andevaluateditwithover22.4Ksmartcontracts.Ourevaluationindicatesthatabout94.6%ofcontracts(containingcryptocurrencyworthmorethan50 million of cryptocurrency. We present ZEUS-a framework to verify the correctness and validate the fairness of smart contracts. We consider correctness as adherence to safe programming practices, while fairness is adherence to agreed upon higher-level business logic. ZEUS leverages both abstract interpretation and symbolic model checking, along with the power of constrained horn clauses to quickly verify contracts for safety. We have built a prototype of ZEUS for Ethereum and Fabric blockchain platforms, and evaluated it with over 22.4K smart contracts. Our evaluation indicates that about 94.6\% of contracts (containing cryptocurrency worth more than 0.5 billion) are vulnerable. ZEUS is sound with zero false negatives and has a low false positive rate, with an order of magnitude improvement in analysis time as compared to prior art.

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.

85 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • 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
  • Town Crier: An Authenticated Data Feed for Smart Contracts cites The Ring of Gyges: Investigating the Future of Criminal Smart Contracts
  • Making Smart Contracts Smarter cites Town Crier: An Authenticated Data Feed for Smart Contracts
  • Making Smart Contracts Smarter cites The Ring of Gyges: Investigating the Future of Criminal Smart Contracts
  • Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites Making Smart Contracts Smarter
  • Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites Securify: Practical Security Analysis of Smart Contracts
  • sFuzz: an efficient adaptive fuzzer for solidity smart contracts cites Making Smart Contracts Smarter
  • Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites Making Smart Contracts Smarter
  • Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites Securify: Practical Security Analysis of Smart Contracts
  • Securify: Practical Security Analysis of Smart Contracts cites Hawk: The Blockchain Model of Cryptography and Privacy-Preserving Smart Contracts
  • Securify: Practical Security Analysis of Smart Contracts cites Making Smart Contracts Smarter
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers85

  1. Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
  2. Empirical review of automated analysis tools on 47, 587 Ethereum smart contractsThomas Durieux, João F. Ferreira, Rui Abreu, Pedro CruzICSE 2020 · 373 citations
  3. Sereum: Protecting Existing Smart Contracts Against Re-Entrancy AttacksMichael Rodler, Wenting Li, Ghassan O. Karame, Lucas DaviNDSS 2019 · 298 citations
  4. Learning to Fuzz from Symbolic Execution with Application to Smart ContractsJingxuan He, Mislav Balunovic, Nodar Ambroladze, Petar Tsankov et al.CCS 2019 · 288 citations
  5. sFuzz: an efficient adaptive fuzzer for solidity smart contractsTai D. Nguyen, Long H. Pham, Jun Sun, Yun Lin et al.ICSE 2020 · 260 citations

Builds on4

  1. Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
  2. Hawk: The Blockchain Model of Cryptography and Privacy-Preserving Smart ContractsAhmed E. Kosba, Andrew Miller, Elaine Shi, Zikai Wen et al.S&P 2016 · 2,201 citations
  3. Town Crier: An Authenticated Data Feed for Smart ContractsFan Zhang, Ethan Cecchetti, Kyle Croman, Ari Juels et al.CCS 2016 · 668 citations
  4. The Ring of Gyges: Investigating the Future of Criminal Smart ContractsAri Juels, Ahmed E. Kosba, Elaine ShiCCS 2016 · 199 citations

Related papers

  1. FairChecker: Detecting Fund-Stealing Bugs in DeFi Protocols via Fairness ValidationYi Sun, Zhuo Zhang, Xiangyu ZhangICSE 2025
  2. Towards automated verification of smart contract fairnessYe Liu, Yi Li, Shang-Wei Lin, Rong ZhaoFSE 2020 · 33 citations
  3. VERISMART: A Highly Precise Safety Verifier for Ethereum Smart ContractsSunbeom So, Myungho Lee, Jisu Park, Heejo Lee et al.S&P 2020 · 133 citations
  4. Towards Finding Accounting Errors in Smart ContractsBrian ZhangICSE 2024 · 8 citations
  5. ETHBMC: A Bounded Model Checker for Smart ContractsJoel Frank, Cornelius Aschermann, Thorsten HolzUSENIX Security 2020
Dusk over the sea between two cliffs drawn in fine vertical lines