LookAhead:通过揭示对抗性合约来预防 DeFi 攻击
LookAhead: Preventing DeFi Attacks via Unveiling Adversarial Contracts
AI总结:
提出LookAhead框架,利用对抗性合约的代码语义和攻击模式训练机器学习分类器,以高F1分数和低误报率检测DeFi攻击。
摘要:
去中心化金融(DeFi)中智能合约漏洞的利用已导致超过30亿美元的财务损失。现有的防御机制主要侧重于检测和响应攻击者针对受害者合约执行的对交易性交易。然而,随着私有交易池的出现,交易直接发送给矿工而不首先出现在公共内存池中,当前的检测工具在有效识别攻击活动方面面临重大挑战。基于大多数攻击逻辑依赖于部署中间智能合约作为利用受害者合约的辅助组件这一事实,已提出了新的检测方法,专注于识别这些对抗性合约而非对抗性交易。然而,先前在此方向上的最先进方法未能产生足够令人满意的结果以用于实际部署。在本文中,我们提出了LookAhead,一种通过揭示对抗性合约来检测DeFi攻击的新框架。LookAhead利用对抗性智能合约中常见的攻击模式、代码语义和内在特征来训练基于机器学习(ML)的分类器,该分类器能够有效区分对抗性合约与良性合约,并及时预测不同类型的潜在攻击。在我们标注的数据集上的实验表明,LookAhead的F1分数高达0.8966,与先前最先进的解决方案相比提高了44.4%以上,而误报率(FPR)仅为0.16%。
英文摘要:
The exploitation of smart contract vulnerabilities in Decentralized Finance (DeFi) has resulted in financial losses exceeding 3 billion US dollars. Existing defense mechanisms primarily focus on detecting and reacting to adversarial transactions executed by attackers that target victim contracts. However, with the emergence of private transaction pools where transactions are sent directly to miners without first appearing in public mempools, current detection tools face significant challenges in identifying attack activities effectively. Based on the fact that most attack logic rely on deploying intermediate smart contracts as supporting components to the exploitation of victim contracts, novel detection methods have been proposed that focus on identifying these adversarial contracts instead of adversarial transactions. However, previous state-of-the-art approaches in this direction have failed to produce results satisfactory enough for real-world deployment. In this paper, we propose LookAhead, a new framework for detecting DeFi attacks via unveiling adversarial contracts. LookAhead leverages common attack patterns, code semantics and intrinsic characteristics found in adversarial smart contracts to train Machine Learning (ML)-based classifiers that can effectively distinguish adversarial contracts from benign ones and make timely predictions of different types of potential attacks. Experiments on our labeled datasets show that LookAhead achieves an F1-score as high as 0.8966, which represents an improvement of over 44.4% compared to the previous state-of-the-art solution, with a False Positive Rate (FPR) at only 0.16%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。