Full text

Turn on search term navigation

© The Author(s) 2025. This work is published under http://creativecommons.org/licenses/by-nc-nd/4.0/ (the "License"). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.

Abstract

Smart contracts have revolutionized decentralized applications by automating agreement enforcement on blockchain platforms. However, detecting vulnerabilities in smart contract interactions remains challenging due to complex state interdependencies. This paper presents a novel approach using multi-agent Reinforcement Learning (MARL) to identify smart contract vulnerabilities. We integrate a Hierarchical Graph Attention Network (HGAT) into a Multi-Agent Actor-Critic framework, decomposing vulnerability detection into complementary policies: a high-level policy encoding historical interactions and a low-level policy capturing structured actions within contract state spaces. By modeling interactions as multistep reasoning paths, our MARL framework effectively navigates complex transaction sequences and resolves semantic ambiguities across different contract states. Experimental evaluations on real-world blockchain datasets demonstrate significant improvements in detecting multiple vulnerability types. For reentrancy attacks, our model achieves 93.8% accuracy and an 89.8% F1 score. The framework also performs strongly in detecting front running (88.9% accuracy), denial-of-service attacks (91.2% accuracy), and unchecked low-level vulnerabilities (91.6% accuracy), outperforming existing approaches across all vulnerability categories.

Details

Title
A graph attention network-based multi-agent reinforcement learning framework for robust detection of smart contract vulnerabilities
Author
Adjei, Philip Kwaku 1   VIAFID ORCID Logo  ; Zhiguang, Qin 1 ; Obiri, Isaac Amankona 2   VIAFID ORCID Logo  ; Badjie, Ansu 2   VIAFID ORCID Logo  ; Cobblah, Christian Nii Aflah 2   VIAFID ORCID Logo  ; Alqahtani, Ali 3   VIAFID ORCID Logo  ; Gu, Yeong Hyeon 4   VIAFID ORCID Logo  ; Al-antari, Mugahed A. 4   VIAFID ORCID Logo 

 School of Information and Software Engineering, University of Electronic Science and Technology of China (UESTC), 611731, Chengdu, China (ROR: https://ror.org/04qr3zq92) (GRID: grid.54549.39) (ISNI: 0000 0004 0369 4060) 
 School of Computer Science and Engineering, University of Electronic Science and Technology of China (UESTC), 611731, Chengdu, China (ROR: https://ror.org/04qr3zq92) (GRID: grid.54549.39) (ISNI: 0000 0004 0369 4060) 
 Center for Artificial Intelligence and Computer Science Department, King Khalid University, 61421, Abha, Saudi Arabia (ROR: https://ror.org/052kwzs30) (GRID: grid.412144.6) (ISNI: 0000 0004 1790 7100) 
 Department of Artificial Intelligence and Data Science, College of AI Convergence, Daeyang AI Center, Sejong University, 05006, Seoul, Republic of Korea (ROR: https://ror.org/00aft1q37) (GRID: grid.263333.4) (ISNI: 0000 0001 0727 6358) 
Pages
29810
Section
Article
Publication year
2025
Publication date
2025
Publisher
Nature Publishing Group
e-ISSN
20452322
Source type
Scholarly Journal
Language of publication
English
ProQuest document ID
3239564137
Copyright
© The Author(s) 2025. This work is published under http://creativecommons.org/licenses/by-nc-nd/4.0/ (the "License"). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.