[Paper Review] Bitcoin over Tor isn't a good idea
This paper demonstrates that using Bitcoin over Tor creates serious security vulnerabilities, enabling low-resource attackers to perform stealthy man-in-the-middle attacks that control transaction relaying, link user pseudonyms across sessions, and enable double-spending when colluding with a mining pool. The attack exploits Bitcoin's reputation-based DoS protection and Tor's exit node architecture, with estimated costs under $2,500/month.
Bitcoin is a decentralized P2P digital currency in which coins are generated by a distributed set of miners and transaction are broadcasted via a peer-to-peer network. While Bitcoin provides some level of anonymity (or rather pseudonymity) by encouraging the users to have any number of random-looking Bitcoin addresses, recent research shows that this level of anonymity is rather low. This encourages users to connect to the Bitcoin network through anonymizers like Tor and motivates development of default Tor functionality for popular mobile SPV clients. In this paper we show that combining Tor and Bitcoin creates an attack vector for the deterministic and stealthy man-in-the-middle attacks. A low-resource attacker can gain full control of information flows between all users who chose to use Bitcoin over Tor. In particular the attacker can link together user's transactions regardless of pseudonyms used, control which Bitcoin blocks and transactions are relayed to the user and can \ delay or discard user's transactions and blocks. In collusion with a powerful miner double-spending attacks become possible and a totally virtual Bitcoin reality can be created for such set of users. Moreover, we show how an attacker can fingerprint users and then recognize them and learn their IP address when they decide to connect to the Bitcoin network directly.
Motivation & Objective
- To investigate the security risks of combining Bitcoin with Tor, particularly regarding anonymity and transaction integrity.
- To expose how attackers can exploit Bitcoin's DoS protection mechanism and Tor's exit node architecture to isolate users and manipulate transaction flow.
- To demonstrate a fingerprinting technique that tracks users across Tor sessions using 'address cookies' and reveals their IP when they connect directly.
- To evaluate the feasibility and cost of such attacks, showing they can be executed with minimal resources and low financial investment.
- To propose practical countermeasures to mitigate the identified threats in Bitcoin over Tor deployments.
Proposed method
- Exploiting Bitcoin's peer reputation system to force peers to ban Tor exit nodes, thereby routing all Bitcoin-over-Tor traffic through attacker-controlled exit relays.
- Using a Sybil attack with 100+ attacker-controlled Bitcoin peers to maintain persistent control over user traffic and enforce routing through malicious nodes.
- Implementing a fingerprinting technique via 'address cookies' stored in the client's address database, enabling cross-session user correlation even when using Tor or hidden services.
- Leveraging Tor's stream isolation and exit node behavior to create stealthy, low-bandwidth man-in-the-middle attacks that remain undetected.
- Simulating and verifying the attack in real networks using controlled clients, confirming the feasibility of traffic control and transaction manipulation.
- Proposing countermeasures such as randomizing DoS protection, authenticating Bitcoin traffic, and maintaining a trusted list of onion addresses for Bitcoin peers.
Experimental results
Research questions
- RQ1Can an attacker gain full control over Bitcoin traffic for users connecting via Tor by exploiting the reputation-based DoS protection mechanism?
- RQ2To what extent can an attacker link multiple Bitcoin pseudonyms of the same user across different sessions when using Bitcoin over Tor?
- RQ3How feasible is a double-spending attack when an attacker controls Bitcoin traffic for Tor users and colludes with a mining pool?
- RQ4What is the computational and financial cost of mounting such an attack, and can it be executed with minimal resources?
- RQ5Can users be fingerprinted across sessions using client-side storage mechanisms like 'address cookies', and can this lead to IP exposure when they exit Tor?
Key findings
- An attacker with just 1-3% of Tor exit bandwidth and 1,000–1,500 lightweight Bitcoin peers can fully control the information flow for all Bitcoin-over-Tor users.
- The attack enables the attacker to link all transactions of a user across different pseudonyms, regardless of the use of multiple addresses.
- By colluding with a mining pool controlling 10–20% of the network hashrate, the attacker can create a fake blockchain that appears valid to Bitcoin-over-Tor users.
- The estimated cost of the attack is below $2,500 per month, achievable through 6 high-bandwidth Tor exit relays and strategic peer injection.
- Users can be fingerprinted via 'address cookies' stored in the client's address database, allowing tracking across sessions and IP exposure upon direct connection to the Bitcoin network.
- The attack remains stealthy and undetectable by standard monitoring tools due to its low bandwidth usage and integration with existing protocol behaviors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.