SmartPattern: A Machine Learning Framework for Detecting Reentrancy Vulnerabilities in Blockchain Smart Contracts

This study introduces SmartPattern, a novel machine learning-based framework to detect reentrancy attacks in smart contracts, a critical threat to blockchain security. Analyzing 40,000 smart contract, SmartPattern achieves 94% detection accuracy with Random Forest and Support Vector Classifier, outperforming Bidirectional Encoder Representations Transformers embeddings, which produced inconsistent accuracies of 84% and 78% Random Forest and Support Vector Classifier, respectively. Unlike traditional tools like Slither, which rely on static analysis and predefined heuristics, SmartPattern overcomes limitations related to dynamic invocation patterns and non-linear state changes. By leveraging machine learning models and targeted pattern recognition, SmartPattern effectively detects obfuscated attack patterns and generalizes to unseen vulnerabilities. This scalable, automated framework significantly enhances blockchain security by safeguarding billions of dollars in digital assets and promoting trust in decentralized ecosystems. The results demonstrate that SmartPattern is a viable alternative to state-of-the-art models, including those using Graph Convolutional Networks, and provides a comprehensive solution for fortifying smart contract ecosystems against reentrancy attacks.

Authors

Institutions

Publication Details

Published
2025-03-19
DOI
https://doi.org/10.1109/ciss64860.2025.10944738
Citations
2
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
6.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SmartPattern: A Machine Learning Framework for Detecting Reentrancy Vulnerabilities in Blockchain Smart Contracts

Peter Taiwo, Opeyemi Adeniran, Temitope Ezekiel Ajibola
2 citations
Blockchain Technology Applications and Security
6.49
article

SmartPattern: A Machine Learning Framework for Detecting Reentrancy Vulnerabilities in Blockchain Smart Contracts

Peter Taiwo, Opeyemi Adeniran, Temitope Ezekiel Ajibola
article en
2 citations

Abstract

This study introduces SmartPattern, a novel machine learning-based framework to detect reentrancy attacks in smart contracts, a critical threat to blockchain security. Analyzing 40,000 smart contract, SmartPattern achieves 94% detection accuracy with Random Forest and Support Vector Classifier, outperforming Bidirectional Encoder Representations Transformers embeddings, which produced inconsistent accuracies of 84% and 78% Random Forest and Support Vector Classifier, respectively. Unlike traditional tools like Slither, which rely on static analysis and predefined heuristics, SmartPattern overcomes limitations related to dynamic invocation patterns and non-linear state changes. By leveraging machine learning models and targeted pattern recognition, SmartPattern effectively detects obfuscated attack patterns and generalizes to unseen vulnerabilities. This scalable, automated framework significantly enhances blockchain security by safeguarding billions of dollars in digital assets and promoting trust in decentralized ecosystems. The results demonstrate that SmartPattern is a viable alternative to state-of-the-art models, including those using Graph Convolutional Networks, and provides a comprehensive solution for fortifying smart contract ecosystems against reentrancy attacks.

Morgan State University (US)
Reduced inequalities
Openalex Percentile: Top 4%
Blockchain Technology Applications and Security
6.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.