Affiliation:
1. School of Computer Science and Engineering, Xi’an Technological University, Xi’an 710021, China
Abstract
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%.
Funder
Key Research and Development Project in Shaanxi Province of China
Shaanxi Provincial Education Department
Reference40 articles.
1. Alharby, M., and Moorsel, A.V. (2017, January 26–27). Blockchain Based Smart Contracts: A Systematic Mapping Study. Proceedings of the Fourth International Conference on Computer Science and Information Technology (CSIT-2017), Dubai, United Arab Emirates.
2. Smart Contract Privacy Protection Using AI in Cyber-Physical Systems: Tools, Techniques and Challenges;Gupta;IEEE Access,2020
3. Blockchain Technology in the Energy Sector: A Systematic Review of Challenges and Opportunities;Andoni;Renew. Sustain. Energy Rev.,2019
4. Blockchain-Based Solutions for Agri-Food Supply Chains: A Survey;Mirabelli;Int. J. Simul. Process Model.,2021
5. Blockchain in Healthcare and Health Sciences—A Scoping Review;Hasselgren;Int. J. Med. Inform.,2020