Open Access iconOpen Access

ARTICLE

crossmark

Vulnerability Detection of Ethereum Smart Contract Based on SolBERT-BiGRU-Attention Hybrid Neural Model

by Guangxia Xu1,*, Lei Liu2, Jingnan Dong3

1 Cyberspace Institute of Advanced Technology, Guangzhou University, Guangzhou, 510006, China
2 School of Software Engineering, Chongqing University of Posts and Telecommunications, Chongqing, 400065, China
3 School of Computer Science and Technology, Chongqing University of Posts and Telecommunications, Chongqing, 400065, China

* Corresponding Author: Guangxia Xu. Email: email

(This article belongs to the Special Issue: Emerging Trends on Blockchain: Architecture and Dapp Ecosystem)

Computer Modeling in Engineering & Sciences 2023, 137(1), 903-922. https://doi.org/10.32604/cmes.2023.026627

Abstract

In recent years, with the great success of pre-trained language models, the pre-trained BERT model has been gradually applied to the field of source code understanding. However, the time cost of training a language model from zero is very high, and how to transfer the pre-trained language model to the field of smart contract vulnerability detection is a hot research direction at present. In this paper, we propose a hybrid model to detect common vulnerabilities in smart contracts based on a lightweight pre-trained language model BERT and connected to a bidirectional gate recurrent unit model. The downstream neural network adopts the bidirectional gate recurrent unit neural network model with a hierarchical attention mechanism to mine more semantic features contained in the source code of smart contracts by using their characteristics. Our experiments show that our proposed hybrid neural network model SolBERT-BiGRU-Attention is fitted by a large number of data samples with smart contract vulnerabilities, and it is found that compared with the existing methods, the accuracy of our model can reach 93.85%, and the Micro-F1 Score is 94.02%.

Keywords


Cite This Article

APA Style
Xu, G., Liu, L., Dong, J. (2023). Vulnerability detection of ethereum smart contract based on solbert-bigru-attention hybrid neural model. Computer Modeling in Engineering & Sciences, 137(1), 903-922. https://doi.org/10.32604/cmes.2023.026627
Vancouver Style
Xu G, Liu L, Dong J. Vulnerability detection of ethereum smart contract based on solbert-bigru-attention hybrid neural model. Comput Model Eng Sci. 2023;137(1):903-922 https://doi.org/10.32604/cmes.2023.026627
IEEE Style
G. Xu, L. Liu, and J. Dong, “Vulnerability Detection of Ethereum Smart Contract Based on SolBERT-BiGRU-Attention Hybrid Neural Model,” Comput. Model. Eng. Sci., vol. 137, no. 1, pp. 903-922, 2023. https://doi.org/10.32604/cmes.2023.026627



cc Copyright © 2023 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 1166

    View

  • 1074

    Download

  • 1

    Like

Share Link