Skip to main navigation Skip to search Skip to main content

Smart Contract Vulnerability Detection via Heterogeneous Graph Representation and Dual Attention Mechanisms

  • Yingying Qu
  • , Jiangtao Cui
  • , Haotian Chi
  • , Haijun Geng
  • , Shunrong Jiang
  • , Xiaojiang Du
  • , Weizhi Meng
  • China University of Mining and Technology
  • Shanxi University
  • Lancaster University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

In recent years, smart contracts have been widely used in decentralized finance (DeFi), digital asset management, and other blockchain applications. However, security vulnerabilities in smart contracts can result in severe financial losses. Even heterogeneous graph neural network based vulnerability detection methods can learn vulnerability patterns, they consider only a limited set of smart contract properties. Besides, they fail to fully leverage the heterogeneous nature of the graph during feature extraction, restricting their detection performance. To address these challenges, we propose RHGDA-SVD, a method based on rich heterogeneous graph representations and a dual attention mechanism for smart contract vulnerability detection. Specifically, we extends the control flow graph (CFG) by incorporating data dependencies, function calls, and contract inheritance, thereby constructing a heterogeneous graph with enriched smart contract semantics. During feature extraction, RHGDA-SVD employs a dual attention mechanism, capturing the contribution of both intra-type and inter-type nodes to vulnerability detection. Experimental results show that RHGDA-SVD outperforms ten state-of-the-art methods on a dataset aggregated from three data sources. It achieves the highest F1-score across seven high-risk vulnerabilities, with the maximum improvement reaching up to 34.02%.

Original languageEnglish
Title of host publicationGLOBECOM 2025 - 2025 IEEE Global Communications Conference
Pages2916-2921
Number of pages6
ISBN (Electronic)9798331577810
DOIs
StatePublished - 2025
Event2025 IEEE Global Communications Conference, GLOBECOM 2025 - Taipei, Taiwan, Province of China
Duration: 8 Dec 202512 Dec 2025

Publication series

NameProceedings - IEEE Global Communications Conference, GLOBECOM
ISSN (Print)2334-0983
ISSN (Electronic)2576-6813

Conference

Conference2025 IEEE Global Communications Conference, GLOBECOM 2025
Country/TerritoryTaiwan, Province of China
CityTaipei
Period8/12/2512/12/25

Keywords

  • Dual Attention Mechanism
  • Heterogeneous Graphs
  • Smart Contracts
  • Vulnerability Detection

Fingerprint

Dive into the research topics of 'Smart Contract Vulnerability Detection via Heterogeneous Graph Representation and Dual Attention Mechanisms'. Together they form a unique fingerprint.

Cite this