Automated Inference on Financial Security of Ethereum Smart Contracts

被引:0
|
作者
Wang, Wansen [1 ]
Huang, Wenchao [1 ]
Meng, Zhaoyi [2 ]
Xiong, Yan [1 ]
Miao, Fuyou [1 ]
Fang, Xianjin [3 ]
Tu, Caichang [1 ]
Ji, Renjie [1 ]
机构
[1] Univ Sci & Technol China, Hefei, Peoples R China
[2] Anhui Univ, Hefei, Peoples R China
[3] Anhui Univ Sci & Technol, Hefei, Peoples R China
基金
国家重点研发计划; 中国国家自然科学基金;
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Nowadays millions of Ethereum smart contracts are created per year and become attractive targets for financially motivated attackers. However, existing analyzers are not sufficient to analyze the financial security of a large number of contracts precisely. In this paper, we propose and implement FASVERIF, an automated inference system for fine-grained analysis of smart contracts. FASVERIF automatically generates models to be verified against security properties of smart contracts. Besides, different from existing approaches of formal verifications, our inference system also automatically generates the security properties. Specifically, we propose two types of security properties, invariant properties and equivalence properties, which can be used to detect various types of finance-related vulnerabilities and can be automatically generated based on our statistical analysis. As a result, FASVERIF can automatically process source code of smart contracts, and uses formal methods whenever possible to simultaneously maximize its accuracy. We also prove the soundness of verifying our properties using our translated model based on a custom semantics of Solidity. We evaluate FASVERIF on a vulnerabilities dataset of 549 contracts by comparing it with other automatic tools. Our evaluation shows that FASVERIF greatly outperforms the representative tools using different technologies, with respect to accuracy and coverage of types of vulnerabilities. We also evaluate FASVERIF on a real-world dataset of 1700 contracts, and find 13 contracts with bugs that can still be leveraged by adversaries online.
引用
收藏
页码:3367 / 3383
页数:17
相关论文
共 50 条
  • [1] Security Vulnerabilities in Ethereum Smart Contracts
    Dika, Ardit
    Nowostawski, Mariusz
    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, : 955 - 962
  • [2] Security Vulnerabilities in Ethereum Smart Contracts
    Mense, Alexander
    Flatscher, Markus
    IIWAS2018: THE 20TH INTERNATIONAL CONFERENCE ON INFORMATION INTEGRATION AND WEB-BASED APPLICATIONS & SERVICES, 2014, : 375 - 380
  • [3] A security framework for Ethereum smart contracts
    Lopez Vivar, Antonio
    Sandoval Orozco, Ana Lucila
    Garcia Villalba, Luis Javier
    COMPUTER COMMUNICATIONS, 2021, 172 : 119 - 129
  • [4] Using Automated Reasoning Techniques for Enhancing the Efficiency and Security of (Ethereum) Smart Contracts
    Albert, Elvira
    Gordillo, Pablo
    Hernandez-Cerezo, Alejandro
    Rodriguez-Nunez, Clara
    Rubio, Albert
    AUTOMATED REASONING, IJCAR 2022, 2022, 13385 : 3 - 7
  • [5] Security Issues of Smart Contracts in Ethereum Platforms
    Krupa, Tomas
    Ries, Michal
    Kotuliak, Ivan
    Kostal, Kristi'an
    Bencel, Rastislav
    PROCEEDINGS OF THE 28TH CONFERENCE OF OPEN INNOVATIONS ASSOCIATION FRUCT, 2021, : 208 - 214
  • [6] An Extensive Security Analysis on Ethereum Smart Contracts
    Ashouri, Mohammadreza
    SECURITY AND PRIVACY IN COMMUNICATION NETWORKS, SECURECOMM 2021, PT I, 2021, 398 : 144 - 163
  • [7] EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts
    Rodler, Michael
    Li, Wenting
    Karame, Ghassan O.
    Davi, Lucas
    PROCEEDINGS OF THE 30TH USENIX SECURITY SYMPOSIUM, 2021, : 1289 - 1306
  • [8] A Semantic Framework for the Security Analysis of Ethereum Smart Contracts
    Grishchenko, Ilya
    Maffei, Matteo
    Schneidewind, Clara
    PRINCIPLES OF SECURITY AND TRUST, POST 2018, 2018, 10804 : 243 - 269
  • [9] Smart Contracts: Security Patterns in the Ethereum Ecosystem and Solidity
    Woehrer, Maximilian
    Zdun, Uwe
    2018 IEEE 1ST INTERNATIONAL WORKSHOP ON BLOCKCHAIN ORIENTED SOFTWARE ENGINEERING (IWBOSE), 2018, : 2 - 8
  • [10] Review of Automated Vulnerability Analysis of Smart Contracts on Ethereum
    Rameder, Heidelinde
    di Angelo, Monika
    Salzer, Gernot
    FRONTIERS IN BLOCKCHAIN, 2022, 5