Lune

NDSS2018Top-tier venue

ZEUS: Analyzing Safety of Smart Contracts

Sukrit Kalra, Seep Goel, Mohan Dhawan, Subodh Sharma

2018Year
595Citations
84Top-tier citations

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.650 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 about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 567347ac-68d7-4c94-a99b-47351995bbeb

Cited by top-tier papers84

Ask how each one uses it

Builds on4

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines