A Comparative Analysis of Hybrid Deep Learning Models for Reentrancy Vulnerability Detection in Ethereum Smart Contracts

  • Ahsan Adeleke Akoshile
  • , Olamide Jogunola*
  • , Mohammad Hammoudeh
  • , Tooska Dargahi
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Recent research has exposed significant security vulnerabilities within smart contracts that run on blockchain. Threats, such as, reentrancy attacks, where malicious actors exploit recursive function calls in a smart contract, pose a critical threat. This led to substantial financial losses in organisations. Traditional vulnerability detection methods, largely based on static analysis, showed limitations in effectively identifying reentrancy issues, often yielding high false positive rates and missing complex execution paths. This paper analyses hybrid deep learning models for reentrancy vulnerability detection in Ethereum smart contracts, introducing a unique approach that combines semantic and syntactic feature extraction. Specifically, our approach integrates CodeBERT embeddings for deep semantic insights with pattern-based feature vectors that capture Solidity constructs that are vulnerable to reentrancy attacks. Five hybrid models are evaluated, each selected to provide insights into structural and sequential dependencies within code. Findings highlighted the novelty of using multimodal feature integration in vulnerability detection, with models like Autoencoder-LSTM and CodeBERT-Transformer Encoder achieving high accuracy of 98.3% and 98.01%, respectively, demonstrating the effectiveness of hybrid architectures for capturing complex vulnerability patterns. This comparative study advances the smart contract security field, showcasing each model’s strengths and trade-offs, and providing practical guidance for deploying deep learning-based vulnerability detection within blockchain ecosystems.

Original languageEnglish
Title of host publicationProceedings of 2024 the 8th International Conference on Future Networks and Distributed Systems, ICFNDS 2024
PublisherAssociation for Computing Machinery
Pages915-922
Number of pages8
ISBN (Electronic)9798400711701
DOIs
StatePublished - 2 Jul 2025
Externally publishedYes
Event8th International Conference on Future Networks and Distributed Systems, ICFNDS 2024 - Marrakech, Morocco
Duration: 11 Dec 202412 Dec 2024

Publication series

NameACM International Conference Proceeding Series

Conference

Conference8th International Conference on Future Networks and Distributed Systems, ICFNDS 2024
Country/TerritoryMorocco
CityMarrakech
Period11/12/2412/12/24

Bibliographical note

Publisher Copyright:
© 2024 Copyright held by the owner/author(s)

Keywords

  • Convolutional neural networks
  • Deep learning
  • Feature extraction
  • Recurrent neural networks
  • Security
  • Smart contracts
  • Solidity

ASJC Scopus subject areas

  • Human-Computer Interaction
  • Computer Networks and Communications
  • Computer Vision and Pattern Recognition
  • Software

Fingerprint

Dive into the research topics of 'A Comparative Analysis of Hybrid Deep Learning Models for Reentrancy Vulnerability Detection in Ethereum Smart Contracts'. Together they form a unique fingerprint.

Cite this