Smart Contract Vulnerability Detection Based on Multi-Scale Encoders

被引:4
作者
Guo, Junjun [1 ]
Lu, Long [1 ]
Li, Jingkui [1 ]
机构
[1] Xian Technol Univ, Sch Comp Sci & Engn, Xian 710021, Peoples R China
关键词
smart contract; deep learning; multi-scale; vulnerability detection; BLOCKCHAIN; CHALLENGES; TOOLS;
D O I
10.3390/electronics13030489
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Vulnerabilities in smart contracts may trigger serious security events, and the detection of smart contract vulnerabilities has become a significant problem. In this paper, to solve the limitations of current deep learning-based vulnerability detection methods in extracting various code critical features, using the multi-scale cascade encoder architecture as the backbone, we propose a novel Multi-Scale Encoder Vulnerability Detection (MEVD) approach to hit well-known high-risk vulnerabilities in smart contracts. Firstly, we use the gating mechanism to design a unique Surface Feature Encoder (SFE) to enrich the semantic information of code features. Then, by combining a Base Transformer Encoder (BTE) and a Detail CNN Encoder (DCE), we introduce a dual-branch encoder to capture the global structure and local detail features of the smart contract code, respectively. Finally, to focus the model's attention on vulnerability-related characteristics, we employ the Deep Residual Shrinkage Network (DRSN). Experimental results on three types of high-risk vulnerability datasets demonstrate performance compared to state-of-the-art methods, and our method achieves an average detection accuracy of 90%.
引用
收藏
页数:19
相关论文
共 40 条
[1]  
Alharby Maher., 2017, Blockchain Based Smart Contracts: A Systematic Mapping Study, P125
[2]   Verification of smart contracts: A survey [J].
Almakhour, Mouhamad ;
Sliman, Layth ;
Samhat, Abed Ellatif ;
Mellouk, Abdelhamid .
PERVASIVE AND MOBILE COMPUTING, 2020, 67
[3]   Blockchain technology in the energy sector: A systematic review of challenges and opportunities [J].
Andoni, Merlinda ;
Robu, Valentin ;
Flynn, David ;
Abram, Simone ;
Geach, Dale ;
Jenkins, David ;
McCallum, Peter ;
Peacock, Andrew .
RENEWABLE & SUSTAINABLE ENERGY REVIEWS, 2019, 100 :143-174
[4]   A Survey of Attacks on Ethereum Smart Contracts (SoK) [J].
Atzei, Nicola ;
Bartoletti, Massimo ;
Cimoli, Tiziana .
PRINCIPLES OF SECURITY AND TRUST (POST 2017), 2017, 10204 :164-186
[5]   Challenges of Blockchain Technology Adoption for e-Government: A Systematic Literature Review [J].
Barubara, F. Rizal ;
Ubacht, Jolien ;
Janssen, Marijn .
PROCEEDINGS OF THE 19TH ANNUAL INTERNATIONAL CONFERENCE ON DIGITAL GOVERNMENT RESEARCH (DGO 2018): GOVERNANCE IN THE DATA AGE, 2018, :648-656
[6]   Combine sliced joint graph with graph neural networks for smart contract vulnerability detection? [J].
Cai, Jie ;
Li, Bin ;
Zhang, Jiale ;
Sun, Xiaobing ;
Chen, Bing .
JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 195
[7]   A survey on smart contract vulnerabilities: Data sources, detection and repair [J].
Chu, Hanting ;
Zhang, Pengcheng ;
Dong, Hai ;
Xiao, Yan ;
Ji, Shunhui ;
Li, Wenrui .
INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 159
[8]   RepVGG: Making VGG-style ConvNets Great Again [J].
Ding, Xiaohan ;
Zhang, Xiangyu ;
Ma, Ningning ;
Han, Jungong ;
Ding, Guiguang ;
Sun, Jian .
2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, :13728-13737
[9]   Empirical Review of Automated Analysis Tools on 47,587 Ethereum Smart Contracts [J].
Durieux, Thomas ;
Ferreira, Joao F. ;
Abreu, Rui ;
Cruz, Pedro .
2020 ACM/IEEE 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2020), 2020, :530-541
[10]  
Duy PT, 2023, Arxiv, DOI arXiv:2309.08474