Graph attention network vulnerability detection model with global feature augmentation for smart contracts

1Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

Smart contracts are self-executing programs on blockchains, critical for enabling efficient, secure, and reliable data exchange and value transfer. However, as their application scenarios expand, reliability issues have become a major bottleneck for blockchain development. Existing vulnerability detection methods often model smart contract source code as graph structures and use Graph Neural Networks (GNNs) for feature learning. Yet these methods over-rely on static execution flow features and ignore dynamic behavioral information of contract accounts in real runtime environments, limiting their ability to capture dynamic patterns and semantic details of contracts. To address these challenges, this paper proposes a graph attention network vulnerability detection model with global feature augmentation for smart contracts (GaGAT). Specifically, we first model key functions and variables in the contract source code as nodes, and execution flows as edges to construct a base contract graph. Then, we innovatively introduce global virtual nodes that integrate two types of information: contract categories and contract account behavioral features, including balance changes, Ether inflow/outflow, daily transaction frequency and single transaction duration. After contract graph contraction and feature transformation, we generate a feature matrix as input to the GaGAT model. Subsequently, we conduct vulnerability detection. Through a series of experiments, we provide empirical evidence of the superior performance of our proposed method compared to existing approaches in detecting six different categories of vulnerabilities.This study provides a new paradigm for cross-modal feature fusion for smart contract security analysis.

Cite

CITATION STYLE

APA

Li, M., Zhu, Y., Liu, Y., Li, Z., & Huang, J. (2025). Graph attention network vulnerability detection model with global feature augmentation for smart contracts. Journal of Cloud Computing, 14(1). https://doi.org/10.1186/s13677-025-00798-x

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free