Towards Automated Reentrancy Detection for Smart Contracts Based on Sequential Models

被引:97
|
作者
Qian, Peng [1 ]
Liu, Zhenguang [1 ]
He, Qinming [2 ]
Zimmermann, Roger [3 ]
Wang, Xun [1 ]
机构
[1] Zhejiang Gongshang Univ, Sch Comp & Informat Engn, Hangzhou 310018, Peoples R China
[2] Zhejiang Univ, Dept Comp Sci, Hangzhou 310027, Peoples R China
[3] Natl Univ Singapore, Sch Comp, Singapore 117417, Singapore
基金
中国国家自然科学基金;
关键词
Blockchain; smart contract; deep learning; sequential models; vulnerability detection;
D O I
10.1109/ACCESS.2020.2969429
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In the last decade, smart contract security issues lead to tremendous losses, which has attracted increasing public attention both in industry and in academia. Researchers have embarked on efforts with logic rules, symbolic analysis, and formal analysis to achieve encouraging results in smart contract vulnerability detection tasks. However, the existing detection tools are far from satisfactory. In this paper, we attempt to utilize the deep learning-based approach, namely bidirectional long-short term memory with attention mechanism (BLSTM-ATT), aiming to precisely detect reentrancy bugs. Furthermore, we propose contract snippet representations for smart contracts, which contributes to capturing essential semantic information and control flow dependencies. Our extensive experimental studies on over 42,000 real-world smart contracts show that our proposed model and contract snippet representations significantly outperform state-of-the-art methods. In addition, this work proves that it is practical to apply deep learning-based technology on smart contract vulnerability detection, which is able to promote future research towards this area.
引用
收藏
页码:19685 / 19695
页数:11
相关论文
共 50 条
  • [1] ReDetect: Reentrancy Vulnerability Detection in Smart Contracts with High Accuracy
    Yu, Rutao
    Shu, Jiangang
    Yan, Dekai
    Jia, Xiaohua
    2021 17TH INTERNATIONAL CONFERENCE ON MOBILITY, SENSING AND NETWORKING (MSN 2021), 2021, : 412 - 419
  • [2] Turn the Rudder: A Beacon of Reentrancy Detection for Smart Contracts on Ethereum
    Zheng, Zibin
    Zhang, Neng
    Su, Jianzhong
    Zhong, Zhijie
    Ye, Mingxi
    Chen, Jiachi
    2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ICSE, 2023, : 295 - 306
  • [3] A bytecode-based integrated detection and repair method for reentrancy vulnerabilities in smart contracts
    Feng Z.
    Feng Y.
    He H.
    Zhang W.
    Zhang Y.
    IET Blockchain, 2024, 4 (03): : 235 - 251
  • [4] An Attention-based Wide and Deep Neural Network for Reentrancy Vulnerability Detection in Smart Contracts
    Osei, Samuel Banning
    Huang, Rubing
    Ma, Zhongchen
    JOURNAL OF SYSTEMS AND SOFTWARE, 2025, 223
  • [5] ContractWard: Automated Vulnerability Detection Models for Ethereum Smart Contracts
    Wang, Wei
    Song, Jingjing
    Xu, Guangquan
    Li, Yidong
    Wang, Hao
    Su, Chunhua
    IEEE TRANSACTIONS ON NETWORK SCIENCE AND ENGINEERING, 2021, 8 (02): : 1133 - 1144
  • [6] ReGuard: Finding Reentrancy Bugs in Smart Contracts
    Liu, Chao
    Liu, Han
    Cao, Zhao
    Chen, Zhong
    Chen, Bangdao
    Roscoe, Bill
    PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING - COMPANION (ICSE-COMPANION, 2018, : 65 - 68
  • [7] Reentrancy Vulnerability Identification in Ethereum Smart Contracts
    Samreen, Noama Fatima
    Alalfi, Manar H.
    PROCEEDINGS OF THE 2020 IEEE 3RD INTERNATIONAL WORKSHOP ON BLOCKCHAIN ORIENTED SOFTWARE ENGINEERING (IWBOSE '20), 2020, : 22 - 29
  • [8] ReDefender: Detecting Reentrancy Vulnerabilities in Smart Contracts Automatically
    Li, Bixin
    Pan, Zhenyu
    Hu, Tianyuan
    IEEE TRANSACTIONS ON RELIABILITY, 2022, 71 (02) : 984 - 999
  • [9] Towards an Automated Verification Approach for ERC-Based Smart Contracts
    Ben Fekih, Rim
    Lahami, Mariam
    El Eze, Mohamed Salem
    Bradai, Salina
    Jrnaiel, Mohamed
    SERVICE-ORIENTED COMPUTING, ICSOC 2024, PT II, 2025, 15405 : 331 - 338
  • [10] An Automated Approach towards Smart Healthcare with Blockchain and Smart Contracts
    Haque, Akm Bahalul
    Muniat, Ayman
    Ullah, Parisha Rafiq
    Mushsharat, Shimin
    2021 IEEE INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION, AND INTELLIGENT SYSTEMS (ICCCIS), 2021, : 250 - 255