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 条
  • [11] Evaluation of Tools for Analyzing Smart Contracts in Distributed Ledger Technologies
    Kirillov, Denis
    Iakushkin, Oleg
    Korkhov, Vladimir
    Petrunin, Vadim
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2019, PT II: 19TH INTERNATIONAL CONFERENCE, SAINT PETERSBURG, RUSSIA, JULY 1-4, 2019, PROCEEDINGS, PART II, 2019, 11620 : 522 - 536
  • [12] The Eye of Horus: Spotting and Analyzing Attacks on Ethereum Smart Contracts
    Torres, Christof Ferreira
    Iannillo, Antonio Ken
    Gervais, Arthur
    State, Radu
    FINANCIAL CRYPTOGRAPHY AND DATA SECURITY, FC 2021, PT I, 2021, 12674 : 33 - 52
  • [13] MadMax: Analyzing the Out-of-Gas World of Smart Contracts
    Grech, Neville
    Kong, Michael
    Jurisevic, Anton
    Brent, Lexi
    Scholz, Bernhard
    Smaragdakis, Yannis
    COMMUNICATIONS OF THE ACM, 2020, 63 (10) : 87 - 95
  • [14] Interpretation of Contracts and Smart Contracts: Smart Interpretation or Interpretation of Smart Contracts?
    Cannarsa, Michel
    EUROPEAN REVIEW OF PRIVATE LAW, 2018, 26 (06): : 773 - 785
  • [15] Towards Analyzing the Complexity Landscape of Solidity Based Ethereum Smart Contracts
    Hegedus, Peter
    2018 IEEE/ACM 1ST INTERNATIONAL WORKSHOP ON EMERGING TRENDS IN SOFTWARE ENGINEERING FOR BLOCKCHAIN (WETSEB), 2018, : 35 - 39
  • [16] Towards Analyzing the Complexity Landscape of Solidity Based Ethereum Smart Contracts
    Hegedus, Peter
    TECHNOLOGIES, 2019, 7 (01)
  • [17] Smart Contracts Contracts
    Bartoletti, Massimo
    FRONTIERS IN BLOCKCHAIN, 2020, 3
  • [18] Smart contracts in Spain; the regulation of smart contracts
    Legeren-Molina, Antonio
    REVISTA DE DERECHO CIVIL, 2018, 5 (02): : 193 - 241
  • [19] VERISMART: A Highly Precise Safety Verifier for Ethereum Smart Contracts
    So, Sunbeom
    Lee, Myungho
    Park, Jisu
    Lee, Heejo
    Oh, Hakjoo
    2020 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP 2020), 2020, : 1678 - 1694
  • [20] A lightweight approach to smart contracts supporting safety, security, and privacy
    Owe, Olaf
    Fazeldehkordi, Elahe
    JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING, 2022, 127