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 language | English |
|---|---|
| Title of host publication | Proceedings of 2024 the 8th International Conference on Future Networks and Distributed Systems, ICFNDS 2024 |
| Publisher | Association for Computing Machinery |
| Pages | 915-922 |
| Number of pages | 8 |
| ISBN (Electronic) | 9798400711701 |
| DOIs | |
| State | Published - 2 Jul 2025 |
| Externally published | Yes |
| Event | 8th International Conference on Future Networks and Distributed Systems, ICFNDS 2024 - Marrakech, Morocco Duration: 11 Dec 2024 → 12 Dec 2024 |
Publication series
| Name | ACM International Conference Proceeding Series |
|---|
Conference
| Conference | 8th International Conference on Future Networks and Distributed Systems, ICFNDS 2024 |
|---|---|
| Country/Territory | Morocco |
| City | Marrakech |
| Period | 11/12/24 → 12/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