DeFiScanner: Spotting DeFi Attacks Exploiting Logic Vulnerabilities on Blockchain

被引:8
作者
Wang, Bin [1 ,3 ]
Yuan, Xiaohan [1 ]
Duan, Li [1 ]
Ma, Hongliang [2 ]
Su, Chunhua [4 ,5 ]
Wang, Wei [1 ]
机构
[1] Beijing Jiaotong Univ, Beijing Key Lab Secur & Privacy Intelligent Transp, Beijing 100044, Peoples R China
[2] Shihezi Univ, Sch Informat Sci & Technol, Shihezi 832003, Peoples R China
[3] Zhejiang Key Lab Multidimens Percept Technol Appli, Hangzhou 310053, Peoples R China
[4] Univ Aizu, Dept Comp Sci & Engn, Aizu Wakamatsu 9658580, Japan
[5] Univ Aizu, Div Comp Sci, Aizu Wakamatsu 9658580, Japan
基金
中国国家自然科学基金;
关键词
Attacks detection; blockchain; decentralized finance; deep learning;
D O I
10.1109/TCSS.2022.3228122
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
With the rapid development of decentralized financial (DeFi), the total value locked (TVL) in DeFi continues to increase. A big number of adversaries exploit logic vulnerabilities to attack DeFi applications for profit, such as flash loan attacks and price manipulation attacks. However, the current vulnerability detection tools for smart contracts cannot be directly used to detect the logic vulnerabilities generated by the combination of different protocols. How to characterize and detect DeFi attacks that exploited logic vulnerabilities is a big challenge. In this work, we propose a deep-learning-based attack detection system on DeFi, called DeFiScanner, in which we design a novel neural network that includes a global model, a local model, and a fusion model to characterize DeFi attacks. First, the unstructured emitted events are automatically and efficiently normalized. Second, the transaction-related features of normalized emitted events are enriched with the global model and the semantic features of emitted events are extracted with the local model. Finally, the transaction-related features and the semantic features of emitted events are fused efficiently with the fusion model to detect DeFi attacks. We collect a dataset that consists of 50 910 real-world DeFi transactions on Ethereum (ETH). The extensive experimental results demonstrate the effectiveness of DeFiScanner. The true positive rate (TPR) and the area under the receiver operating characteristic (ROC) curve of the system reach 0.91 and 0.97, respectively.
引用
收藏
页码:1577 / 1588
页数:12
相关论文
共 71 条
[1]  
Aave. Aave, US
[2]  
Adams H., 2021, Tech. rep.
[3]  
Aigner A.A, 2021, ARXIV
[4]  
[Anonymous], DYDX MATCHING SPECIF
[5]  
[Anonymous], CHEESE BANK INCIDENT
[6]  
[Anonymous], AKROPOLIS INCIDENT
[7]  
[Anonymous], WAVES EXCHANGE
[8]  
[Anonymous], BZX HACK
[9]  
[Anonymous], SERUM WHITE PAPER
[10]  
[Anonymous], OPYN INCIDENT