Please use this identifier to cite or link to this item: https://hdl.handle.net/11147/14553
Title: Ethereum Blockchain Smart Contract Vulnerability Detection Using Deep Learning
Authors: Demir,H.O.
Parlat,S.Z.
Gumus,A.
Keywords: Bi-LSTM
Blockchain
Op2Vec
Reentrancy
Smart Contracts
Vulnerability Detection
Publisher: Institute of Electrical and Electronics Engineers Inc.
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.
URI: https://doi.org/10.1109/ISAS60782.2023.10391797
https://hdl.handle.net/11147/14553
ISBN: 979-835038306-5
Appears in Collections:Scopus İndeksli Yayınlar Koleksiyonu / Scopus Indexed Publications Collection

Show full item record



CORE Recommender

SCOPUSTM   
Citations

1
checked on Jul 19, 2024

Page view(s)

8
checked on Jul 15, 2024

Google ScholarTM

Check




Altmetric


Items in GCRIS Repository are protected by copyright, with all rights reserved, unless otherwise indicated.