Home / Journals / CMC / Online First / doi:10.32604/cmc.2025.070930
Special Issues
Table of Content

Open Access

ARTICLE

Smart Contract Vulnerability Detection Based on Symbolic Execution and Graph Neural Networks

Haoxin Sun1, Xiao Yu1,*, Jiale Li1, Yitong Xu1, Jie Yu1, Huanhuan Li1, Yuanzhang Li2, Yu-An Tan2
1 School of Computer Science and Technology, Shandong University of Technology, Zibo, 250000, China
2 School of Computer Science, Beijing Institute of Technology, Beijing, 100081, China
* Corresponding Author: Xiao Yu. Email: email

Computers, Materials & Continua https://doi.org/10.32604/cmc.2025.070930

Received 28 July 2025; Accepted 28 September 2025; Published online 03 November 2025

Abstract

Since the advent of smart contracts, security vulnerabilities have remained a persistent challenge, compromsing both the reliability of contract execution and the overall stability of the virtual currency market. Consequently, the academic community has devoted increasing attention to these security risks. However, conventional approaches to vulnerability detection frequently exhibit limited accuracy. To address this limitation, the present study introduces a novel vulnerability detection framework called GNNSE that integrates symbolic execution with graph neural networks (GNNs). The proposed method first constructs semantic graphs to comprehensively capture the control flow and data flow dependencies within smart contracts. These graphs are subsequently processed using GNNs to efficiently identify contracts with a high likelihood of vulnerabilities. For these high-risk contracts, symbolic execution is employed to perform fine-grained, path-level analysis, thereby improving overall detection precision. Experimental results on a dataset comprising 10,079 contracts demonstrate that the proposed method achieves detection precisions of 93.58% for reentrancy vulnerabilities and 92.73% for timestamp-dependent vulnerabilities.

Keywords

Smart contracts; graph neural networks; symbolic execution; vulnerability detection
  • 994

    View

  • 796

    Download

  • 0

    Like

Share Link