Saved in:
Bibliographic Details
Main Authors: Shou, Chaofan, Ke, Yuanyu, Yang, Yupeng, Su, Qi, Dadosh, Or, Eli, Assaf, Benchimol, David, Lu, Doudou, Tong, Daniel, Chen, Dex, Tan, Zoey, Chia, Jacob, Sen, Koushik, Lee, Wenke
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2409.06213
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929494040772608
author Shou, Chaofan
Ke, Yuanyu
Yang, Yupeng
Su, Qi
Dadosh, Or
Eli, Assaf
Benchimol, David
Lu, Doudou
Tong, Daniel
Chen, Dex
Tan, Zoey
Chia, Jacob
Sen, Koushik
Lee, Wenke
author_facet Shou, Chaofan
Ke, Yuanyu
Yang, Yupeng
Su, Qi
Dadosh, Or
Eli, Assaf
Benchimol, David
Lu, Doudou
Tong, Daniel
Chen, Dex
Tan, Zoey
Chia, Jacob
Sen, Koushik
Lee, Wenke
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_06213
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle BACKRUNNER: Mitigating Smart Contract Attacks in the Real World
Shou, Chaofan
Ke, Yuanyu
Yang, Yupeng
Su, Qi
Dadosh, Or
Eli, Assaf
Benchimol, David
Lu, Doudou
Tong, Daniel
Chen, Dex
Tan, Zoey
Chia, Jacob
Sen, Koushik
Lee, Wenke
Cryptography and Security
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.
title BACKRUNNER: Mitigating Smart Contract Attacks in the Real World
topic Cryptography and Security
url https://arxiv.org/abs/2409.06213