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 条
  • [31] Not so Immutable: Upgradeability of Smart Contracts on Ethereum
    Salehi, Mehdi
    Clark, Jeremy
    Mannan, Mohammad
    FINANCIAL CRYPTOGRAPHY AND DATA SECURITY. FC 2022 INTERNATIONAL WORKSHOPS, 2023, 13412 : 539 - 554
  • [32] 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
  • [33] Library Usage Detection in Ethereum Smart Contracts
    Hefele, Alexander
    Gallersdoerfer, Ulrich
    Matthes, Florian
    ON THE MOVE TO MEANINGFUL INTERNET SYSTEMS: OTM 2019 CONFERENCES, 2019, 11877 : 310 - 317
  • [34] A Modeling and Verification Framework for Ethereum Smart Contracts
    Valentini, Simone
    Braghin, Chiara
    Riccobene, Elvinia
    RIGOROUS STATE-BASED METHODS, ABZ 2024, 2024, 14759 : 201 - 207
  • [35] 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
  • [36] Fitting and Regression for Distributions of Ethereum Smart Contracts
    Alharby, Maher
    van Moorsel, Aad
    2020 2ND CONFERENCE ON BLOCKCHAIN RESEARCH & APPLICATIONS FOR INNOVATIVE NETWORKS AND SERVICES (BRAINS), 2020, : 248 - 255
  • [37] A Survey of Attacks on Ethereum Smart Contracts (SoK)
    Atzei, Nicola
    Bartoletti, Massimo
    Cimoli, Tiziana
    PRINCIPLES OF SECURITY AND TRUST (POST 2017), 2017, 10204 : 164 - 186
  • [38] Detection and Analysis of Ethereum Energy Smart Contracts
    Lashkari, Bahareh
    Musilek, Petr
    APPLIED SCIENCES-BASEL, 2023, 13 (10):
  • [39] SmartCheck: Static Analysis of Ethereum Smart Contracts
    Tikhomirov, Sergei
    Voskresenskaya, Ekaterina
    Ivanitskiy, Ivan
    Takhaviev, Ramil
    Marchenko, Evgeny
    Alexandrov, Yaroslav
    2018 IEEE/ACM 1ST INTERNATIONAL WORKSHOP ON EMERGING TRENDS IN SOFTWARE ENGINEERING FOR BLOCKCHAIN (WETSEB), 2018, : 9 - 16
  • [40] Recycling Smart Contracts: Compression of the Ethereum Blockchain
    Pontiveros, Beltran Borja Fiz
    Norvill, Robert
    State, Radu
    2018 9TH IFIP INTERNATIONAL CONFERENCE ON NEW TECHNOLOGIES, MOBILITY AND SECURITY (NTMS), 2018,