Smart Contract Security Detection Based on Graph Neural Network

As the core component of blockchain applications, smart contracts are increasingly scrutinized for their security. Among various vulnerabilities, infinite loop flaws pose significant threats due to their hidden nature and potential for exhausting system resources. This paper proposes a static detection method based on Graph Convolutional Networks (GCNs), which transforms smart contracts into control flow and data flow graphs. Through graph-based modeling and vectorized encoding, semantic features such as loop structures and function dependencies are effectively captured. An improved GCN architecture is employed to identify potential infinite execution patterns through neighborhood aggregation and graph-level representation learning. Experimental results demonstrate that the proposed method achieves high accuracy and F1-score across real-world contract datasets, offering an effective and scalable solution for smart contract vulnerability analysis.

Authors

Publication Details

Journal
Theory and Practice of Science and Technology
Published
2025-01-01
DOI
https://doi.org/10.47297/taposatwsp2633-456948.20250608
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

Smart Contract Security Detection Based on Graph Neural Network

Su Ziteng
Theory and Practice of Science and Technology
Blockchain Technology Applications and Security
article

Smart Contract Security Detection Based on Graph Neural Network

Su Ziteng
article en

Abstract

As the core component of blockchain applications, smart contracts are increasingly scrutinized for their security. Among various vulnerabilities, infinite loop flaws pose significant threats due to their hidden nature and potential for exhausting system resources. This paper proposes a static detection method based on Graph Convolutional Networks (GCNs), which transforms smart contracts into control flow and data flow graphs. Through graph-based modeling and vectorized encoding, semantic features such as loop structures and function dependencies are effectively captured. An improved GCN architecture is employed to identify potential infinite execution patterns through neighborhood aggregation and graph-level representation learning. Experimental results demonstrate that the proposed method achieves high accuracy and F1-score across real-world contract datasets, offering an effective and scalable solution for smart contract vulnerability analysis.

Theory and Practice of Science and TechnologyVol. 6(8)
Openalex Percentile: Top 54%
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.