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 条
  • [1] Smart Contract Vulnerability Detection Based on Deep Learning and Multimodal Decision Fusion
    Deng, Weichu
    Wei, Huanchun
    Huang, Teng
    Cao, Cong
    Peng, Yun
    Hu, Xuan
    SENSORS, 2023, 23 (16)
  • [2] A Smart Contract Vulnerability Detection Method Based on Multimodal Feature Fusion and Deep Learning
    Li, Jinggang
    Lu, Gehao
    Gao, Yulian
    Gao, Feng
    MATHEMATICS, 2023, 11 (23)
  • [3] SGDL: Smart contract vulnerability generation via deep learning
    Chu, Hanting
    Zhang, Pengcheng
    Dong, Hai
    Xiao, Yan
    Ji, Shunhui
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024,
  • [4] An integrated deep learning model for Ethereum smart contract vulnerability detection
    Jain, Vikas Kumar
    Tripathi, Meenakshi
    INTERNATIONAL JOURNAL OF INFORMATION SECURITY, 2024, 23 (01) : 557 - 575
  • [5] An integrated deep learning model for Ethereum smart contract vulnerability detection
    Vikas Kumar Jain
    Meenakshi Tripathi
    International Journal of Information Security, 2024, 23 : 557 - 575
  • [6] Vulnerability Detection for Smart Contract via Backward Bayesian Active Learning
    Zhang, Jiale
    Tu, Liangqiong
    Cai, Jie
    Su, Xiaobing
    Li, Bin
    Chen, Weitong
    Wang, Yu
    APPLIED CRYPTOGRAPHY AND NETWORK SECURITY WORKSHOPS, ACNS 2022, 2022, 13285 : 66 - 83
  • [7] A Smart Contract Vulnerability Detection Model Based on Syntactic and Semantic Fusion Learning
    Han D.
    Li Q.
    Zhang L.
    Xu T.
    Wireless Communications and Mobile Computing, 2023, 2023
  • [8] DeepFusion: A Deep Learning Framework for the Fusion of Heterogeneous Sensory Data
    Xue, Hongfei
    Jiang, Wenjun
    Miao, Chenglin
    Yuan, Ye
    Ma, Fenglong
    Ma, Xin
    Wang, Yijiang
    Yao, Shuochao
    Xu, Wenyao
    Zhang, Aidong
    Su, Lu
    PROCEEDINGS OF THE 2019 THE TWENTIETH ACM INTERNATIONAL SYMPOSIUM ON MOBILE AD HOC NETWORKING AND COMPUTING (MOBIHOC '19), 2019, : 151 - 160
  • [9] A Smart Contract Vulnerability Detection Mechanism Based on Deep Learning and Expert Rules
    Liu, Zhenpeng
    Jiang, Mingxiao
    Zhang, Shengcong
    Zhang, Jialiang
    Liu, Yi
    IEEE ACCESS, 2023, 11 : 77990 - 77999
  • [10] A smart contract vulnerability detection method based on deep learning with opcode sequences
    Li, Peiqiang
    Wang, Guojun
    Xing, Xiaofei
    Zhu, Jinyao
    Gu, Wanyi
    Zhai, Guangxin
    PEER-TO-PEER NETWORKING AND APPLICATIONS, 2024, 17 (05) : 3222 - 3238