Ethereum Blockchain Smart Contract Vulnerability Detection Using Deep Learning
Loading...
Date
2023
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
Institute of Electrical and Electronics Engineers Inc.
Open Access Color
Green Open Access
No
OpenAIRE Downloads
OpenAIRE Views
Publicly Funded
No
Abstract
Blockchain technology, employing advanced cryptography, stands as an optimal means to establish trust among unfamiliar online counterparts. It facilitates secure transactions and consensus among participants. Ethereum, a prominent blockchain network, extends this utility by introducing smart contracts. These are predefined programs containing data and methods for execution. Once deployed, these contracts remain unalterable due to blockchain's immutable nature. However, unlike conventional software that can be readily patched, they may harbor vulnerabilities. Smart contracts operate with the Ethereum cryptocurrency Ether, rendering fixes intricate and economically impactful. Static analyzers exist to spot vulnerabilities in smart contacts during development, but they are time-intensive. We propose a machine learning-based approach for detecting reentrancy vulnerabilities in smart contracts. Our system comprises three components: data preparation, Op2Vec, and an LSTM model. We collected 30,000 smart contracts, dividing them into two sets of 15,000 each for Op2Vec generation and LSTM training, respectively. We mapped opcode keywords to vector representations using a Skip-Gram algorithm, resulting in a 100-dimensional dictionary with 72 unique opcodes. Labeling was done using the Slither static analyzer, with 116 contracts identified as vulnerable and an additional 132 clean contracts for dataset balance. A Bidirectional LSTM (Bi-LSTM) model was devised by employing assembly data to detect flaws. The developed Bi-LSTM model demonstrated promise in reentrancy vulnerability detection, achieving a 96% accuracy rate in testing and reducing the analysis time to less than a fifth of that required by static analyzers. The codes and data are shared on GitHub as an open-source software package in a way that benefits everyone interested: https://github.com/miralabai/blockchain-vulnerability-detection. © 2023 IEEE.
Description
Keywords
Bi-LSTM, Blockchain, Op2Vec, Reentrancy, Smart Contracts, Vulnerability Detection
Fields of Science
Citation
WoS Q
Scopus Q

OpenCitations Citation Count
3
Source
ISAS 2023 - 7th International Symposium on Innovative Approaches in Smart Technologies, Proceedings -- 7th International Symposium on Innovative Approaches in Smart Technologies, ISAS 2023 -- 23 November 2023 through 25 November 2023 -- Istanbul -- 196776
Volume
Issue
Start Page
1
End Page
5
PlumX Metrics
Citations
Scopus : 3
Captures
Mendeley Readers : 11
SCOPUS™ Citations
3
checked on Apr 27, 2026
Page Views
90
checked on Apr 27, 2026
Google Scholar™


