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 条
  • [1] Analyzing Smart Contracts With MadMax
    Livshits, Benjamin
    COMMUNICATIONS OF THE ACM, 2020, 63 (10) : 86 - 86
  • [2] Analyzing Financial Smart Contracts for Blockchain
    Vinayak, Muskan
    Panesar, Har Amrit Pal Singh
    dos Santos, Saulo
    Thulasiram, Ruppa K.
    Thulasiraman, Parimala
    Appadoo, S. S.
    IEEE 2018 INTERNATIONAL CONGRESS ON CYBERMATICS / 2018 IEEE CONFERENCES ON INTERNET OF THINGS, GREEN COMPUTING AND COMMUNICATIONS, CYBER, PHYSICAL AND SOCIAL COMPUTING, SMART DATA, BLOCKCHAIN, COMPUTER AND INFORMATION TECHNOLOGY, 2018, : 1701 - 1706
  • [3] A Survey of Tools for Analyzing Ethereum Smart Contracts
    di Angelo, Monika
    Salzer, Gernot
    2019 IEEE INTERNATIONAL CONFERENCE ON DECENTRALIZED APPLICATIONS AND INFRASTRUCTURES (DAPPCON), 2019, : 69 - 78
  • [4] Safety Guards for Ethereum Smart Contracts
    Amirmohseni, Morteza
    Nogoorani, Sadegh Dorri
    ISECURE-ISC INTERNATIONAL JOURNAL OF INFORMATION SECURITY, 2024, 16 (01): : 37 - 53
  • [5] VerX: Safety Verification of Smart Contracts
    Permenev, Anton
    Dimitrov, Dimitar
    Tsankov, Petar
    Drachsler-Cohen, Dana
    Vechev, Martin
    2020 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP 2020), 2020, : 1661 - 1677
  • [6] Tutorial: Analyzing, Exploiting, and Patching Smart Contracts in Ethereum
    Giesen, Jens-Rene
    Andreina, Sebastien
    Rodler, Michael
    Karame, Ghassan O.
    Davi, Lucas
    2022 IEEE SECURE DEVELOPMENT CONFERENCE (SECDEV 2022), 2022, : 3 - 4
  • [7] Smart Money Wasting: Analyzing Gas Cost Drivers of Ethereum Smart Contracts
    Severin, Benedikt
    Hesenius, Marc
    Blum, Florian
    Hettmer, Michael
    Gruhn, Volker
    2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2022), 2022, : 293 - 304
  • [8] SAFEVM: A Safety Verifier for Ethereum Smart Contracts
    Albert, Elvira
    Correas, Jesus
    Gordillo, Pablo
    Roman-Diez, Guillermo
    Rubio, Albert
    PROCEEDINGS OF THE 28TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS (ISSTA '19), 2019, : 386 - 389
  • [9] The Eye of Horus: Spotting and Analyzing Attacks on Ethereum Smart Contracts
    Ferreira Torres, Christof
    Iannillo, Antonio Ken
    Gervais, Arthur
    State, Radu
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2021, 12674 LNCS : 33 - 52
  • [10] Modeling and Analyzing Smart Contracts using Predicate Transition Nets
    He, Xudong
    COMPANION OF THE 2020 IEEE 20TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY, AND SECURITY (QRS-C 2020), 2020, : 108 - 115