BACKRUNNER:在现实世界中缓解智能合约攻击
BACKRUNNER: Mitigating Smart Contract Attacks in the Real World
AI总结:
针对智能合约攻击抢跑保护易被绕过的问题,本文提出抢占式劫持与攻击后跑方法,并实现BACKRUNNER框架,在历史攻击和真实事件中挽救巨额资产。
摘要:
由于智能合约中的漏洞,已有数十亿美元损失。为应对这一问题,研究人员提出了攻击抢跑保护,旨在通过在恶意交易之前插入“白帽”交易来抢占先机,从而保护资产。本文证明,现有的抢跑保护在现实场景中已经失效。具体而言,我们收集了158笔近期的现实世界攻击交易,发现其中141笔能够绕过最先进的抢跑保护。我们系统分析了这些攻击,并说明现有抢跑技术的内在局限如何阻碍其在现实世界中保护宝贵资产。随后,我们提出一种新方法,包括:1)抢占式劫持,以及2)攻击后跑,该方法规避了现有局限,并可在攻击前后帮助保护资产。我们的方法在攻击前后将攻击中使用的漏洞利用适配到相同或类似的合约,以保护资产。我们将漏洞利用适配概念化为程序修复问题,并应用成熟技术,将该方法实现为一个完整框架BACKRUNNER。在2023年以往攻击上运行时,BACKRUNNER能够成功挽救超过4.10亿美元。在现实世界中,它已在两个月内的28起独立事件中帮助挽救了价值超过1120万美元的资产。
英文摘要:
Billions of dollars have been lost due to vulnerabilities in smart contracts. To counteract this, researchers have proposed attack frontrunning protections designed to preempt malicious transactions by inserting "whitehat" transactions ahead of them to protect the assets. In this paper, we demonstrate that existing frontrunning protections have become ineffective in real-world scenarios. Specifically, we collected 158 recent real-world attack transactions and discovered that 141 of them can bypass state-of-the-art frontrunning protections. We systematically analyze these attacks and show how inherent limitations of existing frontrunning techniques hinder them from protecting valuable assets in the real world. We then propose a new approach involving 1) preemptive hijack, and 2) attack backrunning, which circumvent the existing limitations and can help protect assets before and after an attack. Our approach adapts the exploit used in the attack to the same or similar contracts before and after the attack to safeguard the assets. We conceptualize adapting exploits as a program repair problem and apply established techniques to implement our approach into a full-fledged framework, BACKRUNNER. Running on previous attacks in 2023, BACKRUNNER can successfully rescue more than \$410M. In the real world, it has helped rescue over \$11.2M worth of assets in 28 separate incidents within two months.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。