Stealthy traffic analysis of low-latency anonymous communication using throughput fingerprinting

Prateek Mittal, Ahmed Khurshid, Joshua Juen, Matthew Caesar, Nikita Borisov

Abstract

Anonymity systems such as Tor aim to enable users to communicate in a manner that is untraceable by adversaries that control a small number of machines. To provide efficient service to users, these anonymity systems make full use of forwarding capacity when sending traffic between intermediate relays. In this paper, we show that doing this leaks information about the set of Tor relays in a circuit (path). We present attacks that, with high confidence and based solely on throughput information, can (a) reduce the attacker's uncertainty about the bottleneck relay of any Tor circuit whose throughput can be observed, (b) exactly identify the guard relay(s) of a Tor user when circuit throughput can be observed over multiple connections, and (c) identify whether two concurrent TCP connections belong to the same Tor user, breaking unlinkability. Our attacks are stealthy, and cannot be readily detected by a user or by Tor relays. We validate our attacks using experiments over the live Tor network. We find that the attacker can substantially reduce the entropy of a bottleneck relay distribution of a Tor circuit whose throughput can be observed—the entropy gets reduced by a factor of 2 in the median case. Such information leaks from a single Tor circuit can be combined over multiple connections to exactly identify a user's guard relay(s). Finally, we are also able to link two connections from the same initiator with a crossover error rate of less than 1.5% in under 5 minutes. Our attacks are also more accurate and require fewer resources than previous attacks on Tor.

TL;DR

Tor’s efficiency is its own worst enemy. By passively observing or lightly probing network throughput—a technique called "throughput fingerprinting"—attackers can identify the specific relays a user is using and link supposedly separate connections to the same person. These attacks are "stealthy" because they don't require malicious traffic injection, making them nearly impossible for users or relay operators to detect.

What Problem Does This Paper Address?

Anonymity networks like Tor are designed to hide a user's identity by routing traffic through three random relays: a guard, a middle, and an exit. Traditionally, researchers thought an attacker needed to control both ends of a circuit to deanonymize a user. Later "active" attacks (like circuit clogging) showed that an attacker could modulate traffic to see which relays reacted, but these are "noisy" and can be detected by the network.

The authors tackle a critical question: Can an attacker deanonymize Tor users using only passive observation or ordinary, "stealthy" network behavior? They exploit the fact that Tor relays are highly heterogeneous—some are fast, many are slow. This variance creates a unique "throughput fingerprint" that leaks information about which relays are handling a specific user's traffic.

Methods

The researchers introduce three primary attack vectors based on Throughput Fingerprinting:

Attack scenarios: (a) throughput fingerprinting, (b) statistical disclosure for guard discovery, and (c) stream linkability.
  1. Bottleneck Identification: They use the Pearson correlation coefficient to compare the throughput of a "target" flow (e.g., a file download) with "probe" flows they create themselves. If the attacker’s probe through a specific relay matches the target's throughput pattern, that relay is likely the bottleneck in the user's circuit.
  2. Statistical Disclosure for Guard Discovery: Since users keep the same "guard" relay for long periods while other relays in the circuit change, the authors combined observations over multiple circuit reformulations. The relay that consistently appears in the "anonymity set" of potential bottlenecks is eventually revealed as the guard.
  3. Stream Linkability: Tor often multiplexes multiple TCP connections (streams) over a single circuit. The authors discovered a "batching effect" caused by Tor’s internal flow control (which sends data in 50-cell increments). By analyzing throughput at a micro-scale (0.5 to 2-second intervals), they can identify the unique mutually exclusive pattern of two streams sharing a circuit, proving they belong to the same user.

Key Insights and Ideas

  • Heterogeneity is a Vulnerability: The "aha moment" is that Tor's load balancing isn't perfect. About 38% of relays have capacities below 100 KBps. These slow relays act as natural "signatures" for any circuit they belong to.
Distribution of observed capacity and throughput across Tor relays, highlighting the network's heterogeneity.
  • Stealth is Key: Unlike previous "clogging" attacks that required massive traffic spikes, these attacks use "one-hop probes"—acting like a perfectly normal Tor client. This makes the attack indistinguishable from legitimate network use.
  • The Batching "Smoking Gun": The discovery that Tor’s flow control creates a "negative correlation" at small time scales is brilliant. When one stream is "filling its window," the other must wait. This creates a rhythmic, mutually exclusive throughput pattern that is a dead giveaway for linked streams.

Key Results

  • Entropy Reduction: For a single observed circuit, the attacker can reduce the uncertainty (entropy) of the bottleneck relay by a factor of 2 in the median case.
  • Guard Identification: The attack successfully identified the user's guard relay in all experimental cases, regardless of whether the guard was slow (82 KBps) or very fast (17.4 MBps).
  • High Precision Linking: The stream linkability attack achieved a crossover error rate of less than 1.5% in under five minutes of observation. This is a massive improvement over previous latency-based attacks, which had error rates around 17%.
  • Interactive Traffic: Even with bursty, non-bulk traffic, the attack maintained a true positive rate of over 50% with nearly zero false positives.

Limitations and Future Work

  • Bulk Traffic Throttling: The authors noted that newer versions of Tor (at the time) began throttling bulk traffic after 300 seconds. While they found workarounds (like opening new probe circuits), aggressive throttling could complicate the attack.
  • Network Scale: While the math holds, scaling the attack to monitor every relay in the Tor network simultaneously would require significant bandwidth (estimated at ~464 MBps), though this is well within the reach of a nation-state or a large botnet.
  • Countermeasures: The paper suggests that Tor could defend against this by injecting "chaff" (spurious traffic) to mask throughput correlations or by implementing better load balancing to eliminate the "bottleneck signatures" provided by slow relays.

Summary updated

BibTeX
@inproceedings{mittal2011stealthy,
  author = {Prateek Mittal and Ahmed Khurshid and Joshua Juen and Matthew Caesar and Nikita Borisov},
  title = {{Stealthy traffic analysis of low-latency anonymous communication using throughput fingerprinting}},
  booktitle = {CCS},
  year = {2011},
  url = {https://openreview.net/forum?id=PBQRSTMJJJ},
}
Figure