DL4SC: a novel deep learning-based vulnerability detection framework for smart contracts

被引:0
作者
Yang Liu
Chao Wang
Yan Ma
机构
[1] Shanghai Maritime University,Institute of Logistics Science and Engineering
[2] Nanjing University of Finance and Economics,School of Accounting
[3] National University of Singapore,School of Computing
来源
Automated Software Engineering | 2024年 / 31卷
关键词
Smart contract; Vulnerability detection; Machine learning; Transformer; CNN; SSA;
D O I
暂无
中图分类号
学科分类号
摘要
Smart contract is a new paradigm for the decentralized software system, which plays an important and key role in Blockchain-based application. The vulnerabilities in smart contracts are unacceptable, and some of which have caused significant economic losses. The machine learning, especially deep learning, is a very promising and potential approach to vulnerability detecting for smart contracts. At present, deep learning-based vulnerability detection methods have low accuracy, time-consuming, and too small application range. For dealing with these, we propose a novel deep learning-based vulnerability detection framework for smart contracts at opcode level, named as DL4SC. It orthogonally combines the Transformer encoder and CNN (convolutional neural networks) to detect vulnerabilities of smart contracts for the first time, and firstly exploit SSA (sparrow search algorithm) to automatically search model hyperparameters for vulnerability detection. We implement the framework DL4SC on deep learning platform Pytorch with Python, and compare it with existing works on the three public datasets and one dataset we collect. The experiment results show that DL4SC can accurately detect vulnerabilities of smart contracts, and performs better than state-of-the-art works for detecting vulnerabilities in smart contracts. The accuracy and F1-score of DL4SC are 95.29% and 95.68%, respectively.
引用
收藏
相关论文
共 143 条
[1]  
Cai J(2023)Combine sliced joint graph with graph neural networks for smart contract vulnerability detection J. Syst. Softw. 195 1978-1991
[2]  
Li B(2021)Al-SPSD: anti-leakage smart Ponzi schemes detection in blockchain Inf. Process. Manage. 58 276-282
[3]  
Zhang J(2023)Ctcnet: a cnn-transformer cooperation network for face image super-resolution IEEE Trans. Image Process. 32 2144-2156
[4]  
Sun X(2022)Deep learning-based malicious smart contract detection scheme for internet of things environment Comput. Electr. Eng. 97 1829-4629
[5]  
Chen B(2020)Smart contract vulnerability analysis and security audit IEEE Netw. 34 4611-13
[6]  
Fan S(2021)Transaction-based classification and detection approach for Ethereum smart contract Inf. Process. Manage 58 1-999
[7]  
Fu S(2021)Hunting vulnerable smart contracts via graph embedding based bytecode matching IEEE Trans. Inf. Forensics Secur. 16 984-1848
[8]  
Xu H(2022)Smart contract vulnerability detection model based on multi-task learning Sensors 22 1825-4396
[9]  
Cheng X(2023)Effuzz: efficient fuzzing by directed search for smart contracts Inf. Softw. Technol. 159 4380-32
[10]  
Gao G(2023)A novel extended multimodal AI framework towards vulnerability detection in smart contracts Inf. Sci. 636 19-4416