[Paper Review] One Bad Apple Spoils the Bunch: Exploiting P2P Applications to Trace and Profile Tor Users
This paper demonstrates that insecure peer-to-peer (P2P) applications like BitTorrent on Tor can be exploited to trace and profile users of secure, anonymized applications. By hijacking BitTorrent tracker responses or leveraging DHT statistical patterns, the authors traced 10,000 Tor users over 23 days, revealing that 193% more streams—including 27% of HTTP streams—could be linked to these users due to Tor’s stream multiplexing, exposing a critical privacy vulnerability in anonymity networks.
Tor is a popular low-latency anonymity network. However, Tor does not protect against the exploitation of an insecure application to reveal the IP address of, or trace, a TCP stream. In addition, because of the linkability of Tor streams sent together over a single circuit, tracing one stream sent over a circuit traces them all. Surprisingly, it is unknown whether this linkability allows in practice to trace a significant number of streams originating from secure (i.e., proxied) applications. In this paper, we show that linkability allows us to trace 193% of additional streams, including 27% of HTTP streams possibly originating from "secure" browsers. In particular, we traced 9% of Tor streams carried by our instrumented exit nodes. Using BitTorrent as the insecure application, we design two attacks tracing BitTorrent users on Tor. We run these attacks in the wild for 23 days and reveal 10,000 IP addresses of Tor users. Using these IP addresses, we then profile not only the BitTorrent downloads but also the websites visited per country of origin of Tor users. We show that BitTorrent users on Tor are over-represented in some countries as compared to BitTorrent users outside of Tor. By analyzing the type of content downloaded, we then explain the observed behaviors by the higher concentration of pornographic content downloaded at the scale of a country. Finally, we present results suggesting the existence of an underground BitTorrent ecosystem on Tor.
Motivation & Objective
- To investigate whether insecure P2P applications on Tor can be used to trace and profile users of secure applications.
- To evaluate the real-world feasibility and scale of the 'bad apple' attack, where one insecure application compromises the anonymity of all streams on a shared Tor circuit.
- To analyze the geographic and behavioral profiles of Tor users based on traced IP addresses, particularly focusing on BitTorrent and web browsing patterns.
- To assess the sociological and technical factors behind high Tor usage in specific countries, especially regarding content type.
- To propose and evaluate defenses against the bad apple attack in modern anonymity networks.
Proposed method
- Instrumented six Tor exit nodes to monitor and manipulate BitTorrent traffic using tracker response hijacking and DHT-based timing analysis.
- Launched attacks in the wild for 23 days, collecting only non-nominative data (ASN and country) to comply with ethical standards.
- Used the IP addresses of traced BitTorrent users to correlate and profile their web browsing behavior across different countries.
- Analyzed the type of content downloaded to explain country-level disparities in Tor usage, particularly focusing on pornographic content.
- Evaluated potential defenses such as application-specific circuits, port-based isolation, and single-stream circuits, noting their limitations.
- Validated the attack's scalability and impact by measuring the number of additional streams linked via the bad apple effect.
Experimental results
Research questions
- RQ1Can insecure P2P applications on Tor be exploited to trace and profile users of secure, anonymized applications?
- RQ2To what extent does Tor’s stream multiplexing across circuits enable the linking of non-P2P traffic to users who use insecure applications?
- RQ3What are the geographic and behavioral profiles of BitTorrent users on Tor, and how do they differ from non-Tor BitTorrent users?
- RQ4Does the high concentration of certain content types—particularly pornographic material—explain regional disparities in Tor adoption?
- RQ5What are the practical limitations and trade-offs of proposed defenses against the bad apple attack in real-world anonymity networks?
Key findings
- The bad apple attack allowed the tracing of 193% more streams than BitTorrent streams alone, including 27% of HTTP streams possibly originating from secure browsers.
- Over a 23-day period, the attacks revealed 10,000 IP addresses of Tor users, making this the largest known attack on Tor in terms of traced users.
- 9% of all Tor streams carried by the instrumented exit nodes were traced, demonstrating the attack’s significant real-world impact.
- BitTorrent users on Tor are over-represented in certain countries compared to non-Tor BitTorrent users, primarily due to higher national-level downloads of pornographic content.
- The study provides evidence for the existence of an underground BitTorrent ecosystem on Tor, suggesting coordinated or hidden usage patterns.
- Defenses such as single-stream circuits or application-specific isolation are technically challenging to implement due to OS-level limitations and potential bypass attacks.
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.