BRC20 Snipping Attack

Minfeng Qi 1,∗ , Qin Wang 2,∗ , Ningran Li 3 , Shiping Chen 2 , Tianqing Zhu 1 · 2025

Read BRC20 Snipping Attack by Minfeng Qi 1,∗ , Qin Wang 2,∗ , Ningran Li 3 , Shiping Chen 2 , Tianqing Zhu 1 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2501-11942.txt.

Introduction

Minfeng Qi and co-authors reveal a sniping attack on BRC20 token markets, in a 2025 paper. BRC20 tokens trade on top of the Bitcoin network. Open markets there use partly signed Bitcoin transactions to post sell offers. Buyers then compete, and the highest bidder should win.

The attack breaks that fairness rule. An attacker watches the public mempool for a pending buy. The attacker copies its details, finishes the signature, and pays a higher fee. Miners then confirm the attacker's version first, stealing the purchase. The team built and tested the attack on real market flows. Their findings warn market designers to rethink how such sales are posted. Traders also learn where the risk sits.

Catalog record

CREATORMinfeng Qi 1,∗ , Qin Wang 2,∗ , Ningran Li 3 , Shiping Chen 2 , Tianqing Zhu 1
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE85 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2501-11942

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

BRC20 Snipping Attack Thanks: ∗ Equal contribution Minfeng Qi 1,∗ , Qin Wang 2,∗ , Ningran Li 3 , Shiping Chen 2 , Tianqing Zhu 1 Abstract . In this paper, we introduce and implement BRC20 sniping attack . Our attack manipulates the BRC20 token transfers in open markets and disrupts the fairness among bidding participants. The long-standing principle of "highest bidder wins" is rendered ineffective. Typically, open BRC20 token markets rely on Partially Signed Bitcoin Transactions (PSBT) to broadcast selling intents and wait for buying auctions. Our attack targets the BRC20 buying process (i.e., transfer) by injecting a front-running transaction to complete the full signature of the PSBT. At its core, the attack exploits the mempool’s fee-based transaction selection mechanism to snipe the victim transaction, replicate metadata, and front-run the legesmate transction. This attack applies to platforms using PSBT for BRC20 token transfers, including popular Bitcoin exchanges and marketplaces (e.g., Magic Eden, Unisat, Gate.io, OKX). We implemented and tested the attack on a Bitcoin testnet (regtest), validating its effectiveness through multiple experimental rounds. Results show that the attacker consistently replaces legitimate transactions by submitting higher-fee PSBTs. We have also made responsible disclosures to the mentioned exchanges. 1. Introduction Since mid-2024, the Bitcoin network has witnessed ( 1 ) a sharp rise in so-called mempool snipping , a fee-based form of transaction front-running that threatens to disrupt ordinary users’ ability to participate in Ordinals ( 2 ) and BRC20 trading ( 3 , 4 , 5 , 6 , 7 , 8 ) . At its core, mempool snipping relies on the attacker’s capacity to monitor unconfirmed transactions and outbid legitimate buyers by submitting higher-fee alternatives. No direct loss of funds is reported for users who experience this phenomenon, while the damage manifests in a degraded marketplace. Participants may be repeatedly outbid and ultimately deterred from engaging in token purchases. According to data shared by community members, this practice is no longer a rare occurrence. The Wizards of Ord “Snipes” Discord channel ( 9 ) recorded 220 daily snipes in one instance, amounting to 3.9 BTC (approximately $247,000), and similar activity levels have been reported consistently over the course of several weeks. High-profile figures have encountered similar setbacks. For instance, on July 10, an individual affiliated with the Bored Ape Yacht Club engaged in what community members termed a “sniping battle,” ultimately forfeiting over $5,800 in fees without succeeding in the attempted purchase of an Ape Hoodie Ordinal ( 10 ) . Another indicative incident occurred during the highly anticipated OrdiBots mint ( 11 ) , which had garnered substantial attention among Ordinals enthusiasts. The enthusiasm quickly soured when numerous participants experienced mempool sniping throughout the launch. Despite widespread awareness of mempool sniping, the technical underpinnings of Ordinals and BRC20 transfers have yet to be fully examined in the context of fee-driven front-running. At the heart of these trading workflows lies the partially signed Bitcoin transaction (PSBT) mechanism, which enables sellers to broadcast sale data and buyers to finalize the purchase. This convenience, however, introduces an opening for adversaries to intercept, modify, or outbid legitimate transactions before they reach confirmation, a phenomenon we term the BRC20 snipping attack . Evidence: A poll ( 12 ) conducted by Magisat’s founder on June 12 revealed that, out of 229 respondents, 73% confirmed having been sniped at least once while attempting to secure Ordinal assets. In this paper, we present a deep dive into how BRC20 token transfers via PSBT are susceptible to sniping. ① We conduct the first formal treatment of the PSBT-based BRC20 transfer process, which is the key process for building open marketplaces within the Bitcoin ecosystem. BRC20 tokens, unlike Ethereum-based tokens ( 13 , 14 , 15 ) , lack native smart contract support. Instead, BRC20s rely on Bitcoin’s UTXO (Unspent Transaction Output) model. This necessitates a structured transfer mechanism to handle token movements while preserving the system integrity. The PSBT standard (BIP-174 ( 16 ) ) provides a means to separate transaction creation and signing across multiple parties, making it a cornerstone for implementing BRC20 token marketplaces. However, this introduces vulnerabilities as incomplete transactions are visible and manipulable before their finalization. Our analysis formalizes the BRC20 transfer workflow through PSBT by decomposing its phases: seller initialization, buyer signing, and network broadcast. We introduce a mathematical model capturing the dependencies between transaction inputs, outputs, and the metadata inscribed in PSBTs. By detailing how token transfer inscriptions (e.g., JSON-based metadata) are integrated into the Bitcoin blockchain, we identify the system’s reliance on mempool transparency and fee-driven prioritization. ② We propose a new attack we term BRC20 snipping attact , where partial/incompleted PSBTs can be replicated with a higher fee, displacing legitimate transactions within the mempool from malicious buyers. Our sniping attack exploits the transparent nature of the mempool and the predictable workflow of PSBT-based transactions. In our attack, the adversary monitors the mempool for unconfirmed BRC20 transactions, identifies partially signed PSBTs containing token transfer instructions, and crafts a competing transaction. By replicating the legitimate transaction’s core details and outbidding it with a higher fee, the attacker ensures their transaction is prioritized for block inclusion, effectively invalidating the original. Our attack not only disrupts the fairness of BRC20 marketplaces but also undermines user confidence in their reliability. More importantly, the damage can amplify significantly as our attack is widely applicable (details in Table 2 ). It is important to note that we do NOT claim novelty in the concept of mempool sniping, as extensively discussed in prior works. However, our study is the first to investigate the sniping attack specifically within the context of BRC20 token transfers and the PSBT protocol. The complexities introduced by these additional protocols pose greater analytical challenges compared to simpler mempool injection or traditional front-running attacks. Our attack, despite such complexity, demonstrates a fully operational implementation. For better understanding, we also summarize relevant (mempool) attack vectors in Table 1 . ③ We implement and validata our attack in a controlled environment. We conduct a detailed local experiment that simulates real-world conditions of network congestion, fee competition, and opportunistic adversaries. We developed a controlled environment using Bitcoin’s regtest mode. We emulate real-world scenarios, including mempool congestion, varying transaction fees, and adversarial behaviors. We created a local marketplace for BRC20 tokens and implemented the attack by crafting sniping transactions with varying fee levels. Our experiments show that attackers with minimal resources can consistently outbid legitimate buyers, achieving block inclusion for their malicious transactions. We measured the success rate of the attack under different network conditions and fee strategies, confirming its reliability. Additionally, we tracked the impact on token balances, demonstrating how the attacker successfully redirected tokens to their control while rendering the legitimate transaction invalid. These findings validate the attack’s practicality. ④ We present our suggestion for mitigation . We propose three mitigation strategies: (i) adding mempool protection, (ii) enabling dynamic fee escalation, and (iii) implementing a fee-locking mechanism. For instance, the advanced fee-locking mechanism embeds a maximum fee commitment within the PSBT, preventing attackers from arbitrarily escalating fees. This mechanism leverages cryptographic commitments to ensure that only transactions adhering to the agreed-upon fee structure are accepted by the network. We also explore the feasibility of integrating dynamic

Read the complete text