ZEUS: Analyzing Safety of Smart Contracts

被引:360
|
作者
Kalra, Sukrit [1 ]
Goel, Seep [1 ]
Dhawan, Mohan [1 ]
Sharma, Subodh [2 ]
机构
[1] IBM Res, New Delhi, India
[2] IIT Delhi, New Delhi, India
关键词
D O I
10.14722/ndss.2018.23082
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 $50 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.
引用
收藏
页数:15
相关论文
共 50 条
  • [31] Smart Contracts for Certified and Sustainable Safety-Critical Continuous Monitoring Applications
    Elia, Nicola
    Barchi, Francesco
    Parisi, Emanuele
    Pompianu, Livio
    Carta, Salvatore
    Bartolini, Andrea
    Acquaviva, Andrea
    ADVANCES IN DATABASES AND INFORMATION SYSTEMS, ADBIS 2022, 2022, 13389 : 377 - 391
  • [32] Towards Automated Safety Vetting of Smart Contracts in Decentralized Applications<bold> </bold>
    Duan, Yue
    Zhao, Xin
    Pan, Yu
    Li, Shucheng
    Li, Minghao
    Xu, Fengyuan
    Zhang, Mu
    PROCEEDINGS OF THE 2022 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, CCS 2022, 2022, : 921 - 935
  • [33] Smart Contracts: A Synoposis
    Tissaoui, Linda
    Liu, Joyling
    Marcotte, Dan M.
    EUROPEAN REVIEW OF PRIVATE LAW, 2018, 26 (06): : 943 - 949
  • [34] Transforming Public Procurement Contracts Into Smart Contracts
    Debono, Pauline
    INTERNATIONAL JOURNAL OF INFORMATION TECHNOLOGY PROJECT MANAGEMENT, 2019, 10 (02) : 16 - 28
  • [35] The Treewidth of Smart Contracts
    Chatterjee, Krishnendu
    Goharshady, Amir Kafshdar
    Goharshady, Ehsan Kafshdar
    SAC '19: PROCEEDINGS OF THE 34TH ACM/SIGAPP SYMPOSIUM ON APPLIED COMPUTING, 2019, : 400 - 408
  • [36] Declarative Smart Contracts
    Chen, Haoxian
    Whitters, Gerald
    Amiri, Mohammad Javad
    Wang, Yuepeng
    Loo, Boon Thau
    PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 281 - 293
  • [37] Cryptocurrencies are (smart) contracts
    Geiregat, Simon
    COMPUTER LAW & SECURITY REVIEW, 2018, 34 (05) : 1144 - 1149
  • [38] The Limits of Smart Contracts
    Frankenreiter, Jens
    JOURNAL OF INSTITUTIONAL AND THEORETICAL ECONOMICS-ZEITSCHRIFT FUR DIE GESAMTE STAATSWISSENSCHAFT, 2019, 175 (01): : 149 - 162
  • [39] Standardizing Smart Contracts
    Capocasale, Vittorio
    Perboli, Guido
    IEEE ACCESS, 2022, 10 : 91203 - 91212
  • [40] Smart Contracts in the Cloud
    Bathen, Luis Angel D.
    Jadav, Divyesh
    SILICON VALLEY CYBERSECURITY CONFERENCE, SVCC 2022, 2022, 1683 : 74 - 89