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 条
  • [21] EAOS: Exposing attacks in smart contracts through analyzing opcode sequences with operands
    Li, Peiqiang
    Wang, Guojun
    Xing, Xiaofei
    Zhu, Jinyao
    Gu, Wanyi
    Zhang, Yuheng
    COMPUTER NETWORKS, 2025, 257
  • [22] Future Contracts: Smart Contracts
    Kashyap, Sistla
    Pathak, Pankaj
    CARDIOMETRY, 2022, (24): : 729 - 736
  • [23] Smart contracts
    De Filippi, Primavera
    Wray, Chris
    Sileno, Giovanni
    INTERNET POLICY REVIEW, 2021, 10 (02):
  • [24] Smart contracts
    Meitinger T.H.
    Informatik-Spektrum, 2017, 40 (4) : 371 - 375
  • [25] Intelligent contracts: Making smart contracts smart for blockchain intelligence
    Ouyang, Liwei
    Zhang, Wenwen
    Wang, Fei-Yue
    COMPUTERS & ELECTRICAL ENGINEERING, 2022, 104
  • [26] Consolidating Smart Contracts with Behavioral Contracts
    Wei, Guannan
    Xie, Danning
    Zhang, Wuqi
    Yuan, Yongwei
    Zhang, Zhuo
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (PLDI):
  • [27] On Observing Contracts: Deontic Contracts Meet Smart Contracts
    Azzopardi, Shaun
    Pace, Gordon J.
    Schapachnik, Fernando
    LEGAL KNOWLEDGE AND INFORMATION SYSTEMS (JURIX 2018), 2018, 313 : 21 - 30
  • [28] Blockchain, Smart Contracts and law: Smart Contracts as risk for computer scientists
    Hoffmann T.
    Skwarek V.
    Informatik-Spektrum, 2019, 42 (03) : 197 - 204
  • [29] Aplos: Smart Contracts Made Smart
    Bandara, Eranga
    Ng, Wee Keong
    Ranasinghe, Nalin
    De Zoysa, Kasun
    BLOCKCHAIN AND TRUSTWORTHY SYSTEMS, BLOCKSYS 2019, 2020, 1156 : 431 - 445
  • [30] Smart Contracts for Smart Supply Chains
    Prause, Gunnar
    IFAC PAPERSONLINE, 2019, 52 (13): : 2501 - 2506