Abstract
In the context of the rapid development of blockchain technology, smart contracts have also been widely used in the Internet of Things, finance, healthcare, and other fields. There has been an explosion in the number of smart contracts, and at the same time, the security of smart contracts has received widespread attention because of the financial losses caused by smart contract vulnerabilities. Existing analysis tools can detect many smart contract security vulnerabilities, but because they rely too heavily on hard rules defined by experts when detecting smart contract vulnerabilities, the time to perform the detection increases significantly as the complexity of the smart contract increases. In the present study, we propose a novel hybrid deep learning model named CBGRU that strategically combines different word embedding (Word2Vec, FastText) with different deep learning methods (LSTM, GRU, BiLSTM, CNN, BiGRU). The model extracts features through different deep learning models and combine these features for smart contract vulnerability detection. On the currently publicly available dataset SmartBugs Dataset-Wild, we demonstrate that the CBGRU hybrid model has great smart contract vulnerability detection performance through a series of experiments. By comparing the performance of the proposed model with that of past studies, the CBGRU model has better smart contract vulnerability detection performance.
Funding Information
  • National Key Research and Development Program of China (2021YFE0102100, 62172353, FNSRFP-2021-YB-48, YZU202003, XYDXX-108)
  • National Natural Science Foundation of China (2021YFE0102100, 62172353, FNSRFP-2021-YB-48, YZU202003, XYDXX-108)
  • Future Network Scientific Research Fund (2021YFE0102100, 62172353, FNSRFP-2021-YB-48, YZU202003, XYDXX-108)
  • Science and Technology Program of Yangzhou City (2021YFE0102100, 62172353, FNSRFP-2021-YB-48, YZU202003, XYDXX-108)
  • Six Talent Peaks Project in Jiangsu Province (2021YFE0102100, 62172353, FNSRFP-2021-YB-48, YZU202003, XYDXX-108)

This publication has 33 references indexed in Scilit: