DeFiGuard:一个利用图神经网络的 DeFi 价格操纵检测服务
DeFiGuard: A Price Manipulation Detection Service in DeFi using Graph Neural Networks
AI总结:
针对 DeFi 价格操纵攻击,本文提出基于现金流图与 GNN 的检测服务 DeFiGuard,集成交易解析、构图、训练和检测,并在真实交易数据上验证其性能与实时性。
摘要:
去中心化金融(DeFi)的繁荣揭示了潜在风险:2018 年至 2022 年间,因去中心化应用(DApps)漏洞造成的报告损失超过 32 亿美元。其中一个重大威胁是价格操纵攻击(PMA),它在交易执行期间改变资产价格,由此造成超过 5000 万美元的损失。为满足对高效 PMA 检测的迫切需求,本文提出一种使用图神经网络(GNN)的新型检测服务 DeFiGuard。本文提出具有四种不同特征的现金流图,用于从交易中捕捉交易行为。此外,DeFiGuard 集成了交易解析、图构建、模型训练和 PMA 检测。在包含 208 笔 PMA 交易和 2,080 笔非 PMA 交易的数据集上进行评估,结果表明采用 GNN 模型的 DeFiGuard 在准确率、TPR、FPR 和 AUC-ROC 方面均优于基线。消融研究结果表明,所提出的四种节点特征的组合提升了 DeFiGuard 的效能。此外,DeFiGuard 在 0.892 至 5.317 秒内完成交易分类,为受害者(DApps 和用户)采取行动抢救其脆弱资金提供了充足时间。总之,本研究为利用 GNN 保护 DeFi 生态免受 PMA 侵害迈出了重要一步。
英文摘要:
The prosperity of Decentralized Finance (DeFi) unveils underlying risks, with reported losses surpassing 3.2 billion USD between 2018 and 2022 due to vulnerabilities in Decentralized Applications (DApps). One significant threat is the Price Manipulation Attack (PMA) that alters asset prices during transaction execution. As a result, PMA accounts for over 50 million USD in losses. To address the urgent need for efficient PMA detection, this paper introduces a novel detection service, DeFiGuard, using Graph Neural Networks (GNNs). In this paper, we propose cash flow graphs with four distinct features, which capture the trading behaviors from transactions. Moreover, DeFiGuard integrates transaction parsing, graph construction, model training, and PMA detection. Evaluations on a dataset of 208 PMA and 2,080 non-PMA transactions show that DeFiGuard with GNN models outperforms the baseline in Accuracy, TPR, FPR, and AUC-ROC. The results of ablation studies suggest that the combination of the four proposed node features enhances DeFiGuard's efficacy. Moreover, DeFiGuard classifies transactions within 0.892 to 5.317 seconds, which provides sufficient time for the victims (DApps and users) to take action to rescue their vulnerable funds. In conclusion, this research offers a significant step towards safeguarding the DeFi landscape from PMAs using GNNs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。