Secure Smart Contracts: Enhancing Vulnerability Detection With Graph and Tokenization Analysis

Blockchain smart contracts can be easily integrated into any DApp because they function automatically and cannot be altered. But the existence of important weaknesses, like reentrancy attacks, integer overflow, underflows, and access control problems, puts these contracts at a considerable risk in terms of reliability and security. To effectively detect the vulnerabilities, smart contract's code needs to be preprocessed into a strong representation that will be properly analyzed by the deep learning models. In this study, we offer a hybrid deep learning model combining the use of Graph Neural Networks (GNNs) and CodeBERT that can effectively be ensured through a dedicated preprocessing pipeline. Our model involves: (1) First, smart contract code is graphically converted by employing Recursive Depth First Traversal (RDFT) and Iterative Depth First Traversal (IDFT) algorithms to allow code structure along with relationships to be preserved; (2) The WordPiece tokenizer is used in smart contracts to comprehend semantics better; and (3) The Slither static analysis tool is incorporated to facilitate the marking of weaknesses. Finally, we examine different graph construction algorithms focusing on accuracy and computational ability while concluding that IDFT is most helpful in completing this task. The proposed preprocessing pipeline enables precise identifi- cation of vulnerable functions, variables, and line numbers while preparing the data for hybrid model training. This work lays a foundation for advancing automated vulnerability detection, contributing to a more secure blockchain ecosystem.

Authors

Publication Details

Published
2025-03-21
DOI
https://doi.org/10.1109/comp-sif65618.2025.10969955
Citations
5
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
16.23
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Secure Smart Contracts: Enhancing Vulnerability Detection With Graph and Tokenization Analysis

B. R. Arun Kumar, A. Menaka Gowda, B.N. Lakshmi, Mahadeshwara Prasad et al.
5 citations
Blockchain Technology Applications and Security
16.23
article

Secure Smart Contracts: Enhancing Vulnerability Detection With Graph and Tokenization Analysis

B. R. Arun Kumar, A. Menaka Gowda, B.N. Lakshmi, Mahadeshwara Prasad, Dharshan B Sangolli, Y V Likhith
article en
5 citations

Abstract

Blockchain smart contracts can be easily integrated into any DApp because they function automatically and cannot be altered. But the existence of important weaknesses, like reentrancy attacks, integer overflow, underflows, and access control problems, puts these contracts at a considerable risk in terms of reliability and security. To effectively detect the vulnerabilities, smart contract's code needs to be preprocessed into a strong representation that will be properly analyzed by the deep learning models. In this study, we offer a hybrid deep learning model combining the use of Graph Neural Networks (GNNs) and CodeBERT that can effectively be ensured through a dedicated preprocessing pipeline. Our model involves: (1) First, smart contract code is graphically converted by employing Recursive Depth First Traversal (RDFT) and Iterative Depth First Traversal (IDFT) algorithms to allow code structure along with relationships to be preserved; (2) The WordPiece tokenizer is used in smart contracts to comprehend semantics better; and (3) The Slither static analysis tool is incorporated to facilitate the marking of weaknesses. Finally, we examine different graph construction algorithms focusing on accuracy and computational ability while concluding that IDFT is most helpful in completing this task. The proposed preprocessing pipeline enables precise identifi- cation of vulnerable functions, variables, and line numbers while preparing the data for hybrid model training. This work lays a foundation for advancing automated vulnerability detection, contributing to a more secure blockchain ecosystem.

Openalex Percentile: Top 1%
Blockchain Technology Applications and Security
16.23
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.