ContractCheck: Checking Ethereum Smart Contracts in Fine-Grained Level

被引:0
|
作者
Wang, Xite [1 ]
Tian, Senping [1 ]
Cui, Wei [1 ,2 ]
机构
[1] South China Univ Technol, Sch Automat Sci & Engn, Guangzhou 510641, Peoples R China
[2] Pazhou Lab, Guangzhou 510330, Peoples R China
基金
中国国家自然科学基金;
关键词
Smart contracts; blockchain security; vulnerability detection; neural network; FRAMEWORK;
D O I
10.1109/TSE.2024.3400294
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The blockchain has been the main computing scenario for smart contracts, and the decentralized infrastructure of the blockchain is effectively implemented in a de-trusted and executable environment. However, vulnerabilities in smart contracts are particularly vulnerable to exploitation by malicious attackers and have always been a key issue in blockchain security. Existing traditional tools are inefficient in detecting vulnerabilities and have a high rate of false positives when detecting contracts. Some neural network methods have improved the detection efficiency, but they are not competent for fine-grained (code line level) vulnerability detection. We propose the ContractCheck model for detecting contract vulnerabilities based on neural network methods. ContractCheck extracts fine-grained segments from the abstract syntax tree (AST) and function call graph of smart contract source code. Furthermore, the segments are parsed into token flow retaining semantic information as uint, which are used to generate numerical vector sequences that can be trained using neural network methods. We conduct multiple rounds of experiments using a dataset constructed from 36,885 smart contracts and identified the optimal ContractCheck model structure by employing the Fasttext embedding vector algorithm and constructing a composite model using CNN and BiGRU for training the network. Evaluation on other datasets demonstrates that ContractCheck exhibits significant improvement in contract-level detection performance compared to other methods, with an increase of 23.60% in F1 score over the best existing method. Particularly, it achieves fine-grained detection based on neural network methods. The cases provide indicate that ContractCheck can effectively assist developers in accurately locating the presence of vulnerabilities, thereby enhancing the security of Ethereum smart contracts.
引用
收藏
页码:1789 / 1806
页数:18
相关论文
共 50 条
  • [1] Model checking smart contracts for Ethereum
    Osterland, Thomas
    Rose, Thomas
    [J]. PERVASIVE AND MOBILE COMPUTING, 2020, 63
  • [2] ATL Model Checking for Analysis of Ethereum Smart Contracts
    Nam W.
    Kil H.
    [J]. Transactions of the Korean Institute of Electrical Engineers, 2021, 70 (12): : 2006 - 2014
  • [3] Modular safety checking for fine-grained concurrency
    Calcagno, Cristiano
    Parkinson, Matthew
    Vafeiadis, Viktor
    [J]. STATIC ANALYSIS, PROCEEDINGS, 2007, 4634 : 233 - +
  • [4] Fine-grained interoperability through mirrors and contracts
    Gray, KE
    Findler, RB
    Flatt, M
    [J]. ACM SIGPLAN NOTICES, 2005, 40 (10) : 231 - 245
  • [5] Towards a Dynamic Testing Approach for Checking the Correctness of Ethereum Smart Contracts
    Hammami, Mohamed Amin
    Lahami, Mariam
    Maalej, Afef Jmal
    [J]. RISKS AND SECURITY OF INTERNET AND SYSTEMS, CRISIS 2022, 2023, 13857 : 85 - 100
  • [6] Machine translation-based fine-grained comments generation for solidity smart contracts
    Shi, Chaochen
    Xiang, Yong
    Yu, Jiangshan
    Sood, Keshav
    Gao, Longxiang
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 153
  • [7] Confidential Ethereum Smart Contracts
    Yuan, Michael Juntao
    Hynes, Nick
    Long, Ju
    [J]. IT PROFESSIONAL, 2022, 24 (06) : 54 - 58
  • [8] Fine-Grained Crowdsourcing for Fine-Grained Recognition
    Jia Deng
    Krause, Jonathan
    Li Fei-Fei
    [J]. 2013 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2013, : 580 - 587
  • [9] Dynamic fine-grained access control for smart contracts based on improved attribute-based signature
    Xiangyu, Wu
    Xuehui, Du
    Qiantao, Yang
    Aodi, Liu
    Wenjuan, Wang
    [J]. Journal of Supercomputing, 2025, 81 (01):
  • [10] Predicting next changes at the fine-grained level
    Murakami, Hiroaki
    Hotta, Keisuke
    Higo, Yoshiki
    Kusumoto, Shinji
    [J]. Proceedings - Asia-Pacific Software Engineering Conference, APSEC, 2014, 1 : 119 - 126