DeFiGuard: A Price Manipulation Detection Service in DeFi Using Graph Neural Networks

IF 5.5 2区 计算机科学 Q1 COMPUTER SCIENCE, INFORMATION SYSTEMS
Dabao Wang;Bang Wu;Xingliang Yuan;Lei Wu;Yajin Zhou;Helei Cui
{"title":"DeFiGuard: A Price Manipulation Detection Service in DeFi Using Graph Neural Networks","authors":"Dabao Wang;Bang Wu;Xingliang Yuan;Lei Wu;Yajin Zhou;Helei Cui","doi":"10.1109/TSC.2024.3489439","DOIUrl":null,"url":null,"abstract":"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 article introduces a novel detection service, \n<italic>DeFiGuard</i>\n, using Graph Neural Networks (GNNs). In this article, we propose cash flow graphs with four distinct features, which capture the trading behaviors from transactions. Moreover, \n<italic>DeFiGuard</i>\n integrates transaction parsing, graph construction, model training, and PMA detection. Evaluations on the collected transactions demonstrate that \n<italic>DeFiGuard</i>\n with GNN models outperforms the baseline MLP model and classical classification models in Accuracy, TPR, FPR, and AUC-ROC. The results of ablation studies suggest that the combination of the four proposed node features enhances \n<italic>DeFiGuard</i>\n ’s efficacy. Moreover, \n<italic>DeFiGuard</i>\n 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.","PeriodicalId":13255,"journal":{"name":"IEEE Transactions on Services Computing","volume":"17 6","pages":"3345-3358"},"PeriodicalIF":5.5000,"publicationDate":"2024-10-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Services Computing","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/10740038/","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0

Abstract

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 article introduces a novel detection service, DeFiGuard , using Graph Neural Networks (GNNs). In this article, 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 the collected transactions demonstrate that DeFiGuard with GNN models outperforms the baseline MLP model and classical classification models 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.
DeFiGuard:使用图神经网络的 DeFi 价格操纵检测服务
去中心化金融(DeFi)的繁荣揭示了潜在的风险,据报道,由于去中心化应用程序(DApps)的漏洞,2018年至2022年期间的损失超过32亿美元。一个重要的威胁是价格操纵攻击(PMA),它在交易执行期间改变资产价格。因此,PMA的损失超过5000万美元。为了解决高效PMA检测的迫切需求,本文介绍了一种新的检测服务,defigard,使用图神经网络(gnn)。在本文中,我们提出了具有四个不同特征的现金流图,它们从交易中捕捉交易行为。此外,defigard集成了事务解析、图构建、模型训练和PMA检测。对收集到的事务的评估表明,使用GNN模型的defigard在准确率、TPR、FPR和AUC-ROC方面优于基线MLP模型和经典分类模型。消融研究结果表明,结合上述四种淋巴结特征可增强DeFiGuard的疗效。此外,DeFiGuard将交易分类在0.892秒到5.317秒之间,为受害者(DApps和用户)提供了足够的时间来采取行动拯救他们脆弱的资金。总之,这项研究为使用gnn保护DeFi景观免受pma的影响迈出了重要的一步。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Services Computing
IEEE Transactions on Services Computing COMPUTER SCIENCE, INFORMATION SYSTEMS-COMPUTER SCIENCE, SOFTWARE ENGINEERING
CiteScore
11.50
自引率
6.20%
发文量
278
审稿时长
>12 weeks
期刊介绍: IEEE Transactions on Services Computing encompasses the computing and software aspects of the science and technology of services innovation research and development. It places emphasis on algorithmic, mathematical, statistical, and computational methods central to services computing. Topics covered include Service Oriented Architecture, Web Services, Business Process Integration, Solution Performance Management, and Services Operations and Management. The transactions address mathematical foundations, security, privacy, agreement, contract, discovery, negotiation, collaboration, and quality of service for web services. It also covers areas like composite web service creation, business and scientific applications, standards, utility models, business process modeling, integration, collaboration, and more in the realm of Services Computing.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信