Vulnerability Detection In Blockchain Smart Contracts Through Machine Learning

The proliferation of blockchain technology and smart contracts has introduced unprecedented opportunities for decentralized applications, but it also presents significant security challenges. This research addresses critical vulnerabilities in smart contracts, particularly integer overflow, delegatecall, timestamp dependency and reentrancy by integrating machine learning techniques and secure contract programming practices. We propose a hybrid approach combining an advanced Graph Attention Network (GATv2) integrated with an LSTM-based architecture for detecting vulnerabilities and a robust Solidity implementation to mitigate reentrancy attacks. The detection framework processes smart contracts as graphs, capturing both structural and sequential dependencies using attention mechanisms and positional encoding, achieving high accuracy across multiple vulnerability types. On the prevention front, the secure contract employs monitoring the difference between the balance of the contract and the balances of the participants to effectively block recursive exploits. The proposed solution is validated through real-world smart contract data and simulation of reentrancy attacks using an attacker contract. Our findings highlight the potential of combining machine learning with secure coding principles to enhance the security of blockchain-based systems, paving the way for more resilient decentralized applications.

Authors

Institutions

Publication Details

Published
2025-03-14
DOI
https://doi.org/10.1109/icoact63339.2025.11004818
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Vulnerability Detection In Blockchain Smart Contracts Through Machine Learning

J. Harshith, Mannar Mannan, S K Ranjitha, Darshan Prashad S G et al.
3 links
Blockchain Technology Applications and Security
article

Vulnerability Detection In Blockchain Smart Contracts Through Machine Learning

J. Harshith, Mannar Mannan, S K Ranjitha, Darshan Prashad S G, Gowtham Sai G
article en

Abstract

The proliferation of blockchain technology and smart contracts has introduced unprecedented opportunities for decentralized applications, but it also presents significant security challenges. This research addresses critical vulnerabilities in smart contracts, particularly integer overflow, delegatecall, timestamp dependency and reentrancy by integrating machine learning techniques and secure contract programming practices. We propose a hybrid approach combining an advanced Graph Attention Network (GATv2) integrated with an LSTM-based architecture for detecting vulnerabilities and a robust Solidity implementation to mitigate reentrancy attacks. The detection framework processes smart contracts as graphs, capturing both structural and sequential dependencies using attention mechanisms and positional encoding, achieving high accuracy across multiple vulnerability types. On the prevention front, the secure contract employs monitoring the difference between the balance of the contract and the balances of the participants to effectively block recursive exploits. The proposed solution is validated through real-world smart contract data and simulation of reentrancy attacks using an attacker contract. Our findings highlight the potential of combining machine learning with secure coding principles to enhance the security of blockchain-based systems, paving the way for more resilient decentralized applications.

PES University (IN)
Openalex Percentile: Top 84%
Blockchain Technology Applications and Security
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.