Abstract
This research presents the first major security analysis of the BRC20 transfer mechanism, identifying a critical vulnerability known as the BRC20 Pinning Attack. By exploiting the protocol's non-atomic, two-step transfer process, an adversary can freeze the liquidity of inscription-based tokens in hot wallets. The study demonstrates that over 90% of Bitcoin-based inscription tokens are susceptible to this functional blockage, which was validated through a coordinated test that locked Binance’s ORDI hot wallet for 3.5 hours.
Introduction
BRC20 tokens, such as ORDI, have gained significant market traction by utilizing Ordinal Theory to inscribe data directly onto individual Bitcoin satoshis. Unlike account-based models found in Ethereum, BRC20 relies on a unique state management system embedded within the Bitcoin blockchain. However, this design introduces a fundamental flaw in how tokens are moved between users.
The Two-Step Transfer Mechanism
A BRC20 transfer is not an atomic action. Instead, it requires two sequential on-chain transactions:
- Tx1 (Inscribe): The sender inscribes a "transfer request" into a satoshi, sending it to themselves. This action moves tokens from the available balance to a transferable balance.
- Tx2 (Execute): The sender transmits the inscribed satoshi to the recipient to finalize the transfer and update the recipient's balance.
As shown in Figure 3, the protocol introduces a "Temporary state" where tokens are locked in a "Transferable" status. If the second transaction (Tx2) is delayed, these tokens remain unusable by the sender and are not yet accessible to the recipient.
The BRC20 Pinning Attack
The "pinning" attack exploits the lack of atomicity between Tx1 and Tx2. An attacker initiates a transfer but manipulates the transaction fees such that Tx1 is confirmed quickly by miners, while Tx2 remains stuck in the mempool due to an insufficient fee.
During the attack (Figure 6), the target wallet's liquidity is exhausted as its "Available" balance is converted into "Transferable" balance that cannot be "Executed." This creates a "locked balance" state. Because Bitcoin does not natively bundle these transactions, the attacker can effectively "pin" the second transaction in the mempool indefinitely during periods of high congestion.
Methodology and Real-World Validation
The research team employed theoretical modeling and local simulations using Bitcoin Core (v27.0) to test various fee strategies. To validate the threat, they conducted a "responsible disclosure" test with Binance. By targeting the exchange's ORDI hot wallet, the researchers successfully induced a 3.5-hour suspension of withdrawals. Analysis of mempool data from February 2023 to April 2024 confirmed that Tx2 typically requires a fee 3 to 5 times higher than Tx1 to ensure prompt confirmation, a gap that attackers can easily exploit.
Key Results and Impact
- Systemic Vulnerability: The attack is a protocol-level design flaw, not a software bug. It affects over 90% of inscription tokens, including SATS and RATS.
- High Success Rate: Simulations showed an 81.06% success rate in high-congestion environments with minimal attempts.
- EVM Immunity: EVM-based inscriptions (e.g., Ethscriptions) are immune because Ethereum allows data embedding within a single atomic transaction.
Conclusion and Future Work
While the BRC20 pinning attack does not result in the direct theft of funds, it causes significant functional disruption and financial opportunity costs. The researchers proposed a "mempool-aware dynamic fee policy" which reduced pinning duration by 63.2% in tests. Future work will focus on investigating similar vulnerabilities in Partially Signed Bitcoin Transactions (PSBTs) and developing protocol-level fixes to enable atomic transfers without compromising the native Bitcoin architecture.
Summary updated