T-MGA: Temporal GNNs with Global Attention for Smart Contract Vulnerability Detection
Authors
Abstract
Smart contracts on public blockchains are immutable, making security vulnerabilities extremely costly once deployed. Reentrancy and timestamp dependency are among the most critical vulnerabilities, leading to significant financial losses in decentralized applications. For these vulnerabilities, existing detectors are often able to capture execution order, yet they typically aggregate node information in a uniform manner, which limits their ability to effectively emphasize security-critical execution paths in a structured and discriminative way. To address the challenge, we introduce an enhanced vulnerability detection framework, namely T-MGA. T-MGA integrates Temporal Message Propagation (TMP) with a Multi-Head Global Attention (MGA) mechanism to improve graph-level representation learning without increasing asymptotic complexity. By modeling smart contracts as temporal graphs, T-MGA effectively captures execution order, structural relations, and vulnerability-specific semantics while prioritizing security-critical nodes. The simulation results on a real-world Ethereum dataset demonstrate that the proposed approach outperforms state-of-the-art methods, achieving 92.65% accuracy for reentrancy and 88.92% accuracy for timestamp dependency. The results highlight the potential of the proposed method for efficient smart contract security auditing in large-scale blockchain systems.
Source: OpenAlex ↗ Suggested keywords
smart contract vulnerability detection
reentrancy vulnerability
temporal graph neural networks
Ethereum smart contracts
Automatically assigned by OpenAlex ↗ BibTeX
OpenAlex ↗@inproceedings{W7166815210,
author = {Syed Imran Hussain Shah and Yared Abera Ergu and Po-Ching Lin and Van-Linh Nguyen},
title = {{T-MGA: Temporal GNNs with Global Attention for Smart Contract Vulnerability Detection}},
booktitle = {IEEE International Conference on Blockchain and Cryptocurrency (ICBC)},
year = {2026},
month = {6},
pages = {1--9},
doi = {10.1109/icbc67748.2026.11575518},
url = {https://doi.org/10.1109/icbc67748.2026.11575518}
}