跳到主要导航 跳到搜索 跳到主要内容

FlashShield: Detecting Flash Loan Attacks in DeFi Using Hypergraph Neural Network

  • Xinpeng Huang
  • , Wangjie Qiu*
  • , Wanqing Jie
  • , Qing Xia
  • , Qinnan Zhang
  • , Yuqiang Sun
  • , Maoyi Xie
  • , Yang Liu
  • , Zhiming Zheng
  • *此作品的通讯作者
  • Beihang University
  • Zhongguancun Laboratory
  • CAS - Institute of Software
  • Nanyang Technological University

科研成果: 期刊稿件文章同行评审

摘要

The rapid growth of decentralized finance (DeFi) has spurred innovation but also exposed blockchain systems to severe security threats. As of November 2025, cumulative losses from blockchain security incidents have exceeded {\}36.89 billion. Flash loan attacks account for 135 reported cases and rank fourth among all attack methods. Existing detection approaches either analyze contract source code, which is unavailable for many deployed contracts, or use transaction pattern matching tailored to specific scenarios, and therefore generalize poorly to diverse flash loan attacks. In this paper, we present FlashShield, a general flash loan attack detection framework based on Hypergraph Neural Networks (HGNNs). We construct comprehensive datasets containing attack and benign transactions across multiple chains, and systematically analyze flash loan attack mechanisms along four DeFi protocol layers: code implementation, business logic, economic mechanisms, and cross protocol interactions. FlashShield represents each transaction as a hypergraph of transfer actions and semantic relations, and employs a hybrid architecture that integrates spectral, spatial, and original features together with both node level and graph level representations. Experiments show that FlashShield improves recall by 29% over leading methods and identifies 43 previously unknown malicious or suspicious activities (18 confirmed flash loan-related exploits and 25 suspected address poisoning incidents), demonstrating its effectiveness and scalability for automated DeFi security monitoring.

指纹

探究 'FlashShield: Detecting Flash Loan Attacks in DeFi Using Hypergraph Neural Network' 的科研主题。它们共同构成独一无二的指纹。

引用此