DeepFusion: Smart Contract Vulnerability Detection Via Deep Learning and Data Fusion

被引:0
|
作者
Chu, Hanting [1 ]
Zhang, Pengcheng [1 ]
Dong, Hai [2 ]
Xiao, Yan [3 ]
Ji, Shunhui [1 ]
机构
[1] Hohai Univ, Coll Comp Sci & Software Engn, Nanjing 211100, Peoples R China
[2] RMIT Univ, Sch Comp Technol, Melbourne, Vic 3000, Australia
[3] NUS Univ, Sch Comp, Singapore 119077, Singapore
基金
中国国家自然科学基金;
关键词
Smart contracts; Data mining; Security; Codes; Predictive models; Syntactics; Computer languages; Arithmetic; Accuracy; Training; Abstraction syntax tree (AST); data fusion; program slicing; smart contract; vulnerability detection; ATTACKS;
D O I
10.1109/TR.2024.3480010
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Given that smart contracts execute transactions worth hundreds of millions of dollars daily, the issue of smart contract security has attracted considerable attention over the past few years. Traditional methods for detecting vulnerabilities heavily rely on manually developed rules and features, leading to the problems of low accuracy, high false positives, and poor scalability. Although deep learning-inspired approaches were designed to alleviate the problem, most of them rely on monothetic features, which may result in information incompetence during the learning process. Furthermore, the lack of available labeled vulnerability datasets is also a major limitation. To address these issues, we collect and construct a dataset of five labeled smart contract vulnerabilities, and propose DeepFusion, a vulnerability detection method that fuses code representation information, including program slice information and abstraction syntax tree (AST) structured information. First, we develop automated tools to extract contract vulnerability slicing information from source code, and extract structured information from source code-converted AST. Second, code features and global structured features are fused into the data. Finally, the fused data are input into the Bidirectional Long Short-Term Memory+ Attention (BiLSTM+ATT) model for smart contract vulnerability detection. The BiLSTM model can capture long-term dependencies in both directions and is more suitable for processing serialized information generated by DeepFusion, while the attention mechanism can highlight the characteristic information of vulnerabilities. We conducted experiments via collecting a real smart contract dataset. The experimental results show that our method significantly outperforms the existing methods in detecting the vulnerabilities of reentrancy, timestamp dependence, integer overflow and underflow, Use tx.origin for authentication, and Unprotected Self-destruct Instruction by 6.36%, 6.42%, 16.5%, 21.29%, and 25.05%, respectively. To the best of our knowledge, the latter two vulnerabilities are the first to be detected using deep learning methods.
引用
收藏
页数:15
相关论文
共 50 条
  • [21] Smart Contract Vulnerability Detection Technique: A Survey
    Qian P.
    Liu Z.-G.
    He Q.-M.
    Huang B.-T.
    Tian D.-Z.
    Wang X.
    Ruan Jian Xue Bao/Journal of Software, 2022, 33 (08): : 3059 - 3085
  • [22] Smart Contract Vulnerability Detection Model Based on Multi-Task Learning
    Huang, Jing
    Zhou, Kuo
    Xiong, Ao
    Li, Dongmeng
    SENSORS, 2022, 22 (05)
  • [23] VSCL: Automating Vulnerability Detection in Smart Contracts with Deep Learning
    Mi, Feng
    Wang, Zhuoyi
    Zhao, Chen
    Guo, Jinghui
    Ahmed, Fawaz
    Khan, Latifur
    2021 IEEE INTERNATIONAL CONFERENCE ON BLOCKCHAIN AND CRYPTOCURRENCY (ICBC), 2021,
  • [24] Hierarchical Contextual Embedding with Hybrid Deep Ensemble for IoT Smart Contract Vulnerability Detection
    Rakheeba Taseen
    Nimrita Koul
    SN Computer Science, 6 (3)
  • [25] Deep learning-based solution for smart contract vulnerabilities detection
    Xueyan Tang
    Yuying Du
    Alan Lai
    Ze Zhang
    Lingzhi Shi
    Scientific Reports, 13
  • [26] Deep learning-based solution for smart contract vulnerabilities detection
    Tang, Xueyan
    Du, Yuying
    Lai, Alan
    Zhang, Ze
    Shi, Lingzhi
    SCIENTIFIC REPORTS, 2023, 13 (01)
  • [27] CrossFuzz: Cross-contract fuzzing for smart contract vulnerability detection
    Yang, Huiwen
    Gu, Xiguo
    Chen, Xiang
    Zheng, Liwei
    Cui, Zhanqi
    SCIENCE OF COMPUTER PROGRAMMING, 2024, 234
  • [28] A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning
    Zhang, Lejun
    Wang, Jinlong
    Wang, Weizheng
    Jin, Zilong
    Zhao, Chunhui
    Cai, Zhennao
    Chen, Huiling
    SENSORS, 2022, 22 (09)
  • [29] Smart Contract Vulnerability Detection Techniques for Hyperledger Fabric
    Centre for Development of Advanced Computing, Applied Artificial Intelligence Group, Maharashtra, Pune, India
    IEEE Int. Conf. Converg. Technol., I2CT, 2023,
  • [30] A Survey of Vulnerability Detection Techniques by Smart Contract Tools
    Khan, Zulfiqar Ali
    Namin, Akbar Siami
    IEEE ACCESS, 2024, 12 : 70870 - 70910