Latest / CyberPodcast / How Website Fingerprinting Can Break Tor Anonymity | Paper Breakdown #12 | CyberPodcast
Transcript
- 0:00Welcome to today's Explainer. We are heading straight to the
- 0:02very edges of cryptography and network security.
- 0:06You know, we often think of advanced anonymity networks as
- 0:08these impenetrable fortresses. But what happens when brilliant
- 0:11minds start looking for the invisible cracks in those walls?
- 0:14Today we're going to unpack a really fascinating research
- 0:17paper by Yi Shi and Kanta Matsura from the University of
- 0:20Tokyo, And we're looking at their highly technical attempts
- 0:23to completely break the anonymity of the Tor network.
- 0:26Let's start with a very specific #512 In the world of Tor, 512
- 0:31bytes is the fixed size of a data cell.
- 0:34This standard, uniform block of data is literally the
- 0:36foundational building block of Tors supposedly impenetrable
- 0:39shield. Everything you send, everything
- 0:41you receive, it's all chopped up and packed into these identical
- 0:44512 byte boxes to completely obscure what they actually are.
- 0:48So let's dive into this Does perfect online anonymity
- 0:52actually exist? Or is this 512 byte shield
- 0:55really just an illusion of mathematics, one that can be
- 0:58completely shattered by a dedicated, clever observer?
- 1:01To figure that out, here's our road map for this explainer.
- 1:04We'll kick things off with the illusion of privacy, examine the
- 1:07absolute limits of traditional fingerprinting, dig deep into
- 1:11the technical explanation of the attack itself, evaluate the real
- 1:14world results, and finally weigh the possible countermeasures.
- 1:18Let's get right to it Section 1 the illusion of privacy.
- 1:23Let's establish Tor's gold standard.
- 1:25To understand how to break a system, we first need to
- 1:28strictly define the battlefield through its technical defenses.
- 1:31Tor, which stands for The Onion Router, is a low latency
- 1:35anonymity system. It protects user identities
- 1:38using multi hop encrypted connections.
- 1:40But the two absolutely crucial technical features for our deep
- 1:44dive today are multiplexing, which is combining multiple
- 1:47connections into one single stream, and its use of those
- 1:50quantized 512 byte data cells we just talked about.
- 1:54Look at the stark contrast between standard web browsing
- 1:57and Tor browsing. Normally when you visit a
- 1:59website, your browser downloads an HTML file, maybe some images,
- 2:02a video, all via separate TCP connections.
- 2:06An observer on the network can easily see the exact file sizes
- 2:09crossing the wire, but with Tor it's a totally different story.
- 2:12All those separate requests are multiplexed into a single TCP
- 2:16stream and chopped into those identical 512 byte cells.
- 2:20The unique distinct file sizes of a web page are just
- 2:23completely hidden behind this uniform wall of data.
- 2:26Moving on to Section 2, the limit of fingerprinting, let's
- 2:31look through the attacker's eyes.
- 2:33Fingerprinting itself is actually quite an old concept.
- 2:36Back in 2003, a researcher named HINTS proved that you could
- 2:40identify a website just by looking at the unique
- 2:43combination of file sizes it sends to a user.
- 2:46If a site sends a 1300 byte file, a 500 byte file, and a
- 2:4932,000 byte file, well, that specific combination is its
- 2:53fingerprint. But against Tor's multiplexed
- 2:55architecture and fixed 512 byte cells, that conventional HINTS
- 2:59method totally fails. You literally can't measure
- 3:02exact file sizes anymore, because everything just looks
- 3:05like a continuous, unbroken stream of identically sized
- 3:07blocks. But here's the thing about
- 3:10attackers. They adapt.
- 3:12The researchers behind this paper designed a highly
- 3:14realistic threat model. Unlike end to end confirmation
- 3:17attacks, which require an attacker to impossibly control
- 3:20both the entry and exit points of the entire global Tor
- 3:22network, this adversary only needs to occupy the entry point.
- 3:26That's it. From there, they just observe
- 3:28the traffic flowing from the user in a simple 2 responder
- 3:31scenario. Let's say the user is visiting
- 3:33either Alice or Bob. The attacker starts with a
- 3:36simple 1/2 probability of guessing correctly, and this
- 3:39brilliantly illustrates how the threat model actually scales up.
- 3:42Instead of just Alice and Bob, what if the user is visiting one
- 3:45of N possible responders? The adversary just uses the
- 3:49anonymity system themselves beforehand to visit these N
- 3:52responders and build a profile. Because the attacker only needs
- 3:55to monitor the user's entry point, this attack requires
- 3:57vastly fewer resources than trying to be some omnipotent
- 4:00global eavesdropper. Section 3.
- 4:03The technical explanation of the attack.
- 4:05This right here is the core breakthrough.
- 4:08Since the attacker cannot use file sizes at all, they have to
- 4:11shift their focus entirely to packet intervals.
- 4:14Let's walk through this methodology methodically.
- 4:16Step 1. The attacker observes the
- 4:18traffic flow right at the entry router.
- 4:21Step 2, they identify the outflow packets.
- 4:23That's the data sent from the user out to the network.
- 4:26Step three, they count all the continuous inflow packets that
- 4:29arrive between those outflows. This uninterrupted sequence of
- 4:32incoming data, That is exactly what the researchers precisely
- 4:35define as an interval. Let's give these intervals some
- 4:38real world meaning. If you observe a short interval,
- 4:41say just one or two inflow packets, before the user sends
- 4:43another outflow packet, that usually represents a small
- 4:47protocol transaction or a basic acknowledgement.
- 4:49But long intervals, like 5 or more continuous packets, that
- 4:53means a larger file is being transferred.
- 4:55It's ultimately filling up the data buffer, which is known as
- 4:58the TCP sliding window, before the user's machine is forced to
- 5:01send an acknowledgement back. These spaces between packets
- 5:05essentially act as a structural fingerprint for websites,
- 5:08literally turning the rhythm of the traffic into a detectable
- 5:10signature. Now let's look at the math and
- 5:13see how this builds into an incredibly effective attack.
- 5:16The attacker turns a live traffic flow into a mathematical
- 5:19vector labeled V Each element in this vector V sub I represents
- 5:24the number of intervals that contained exactly I packets.
- 5:28They then compare the users live traffic vector against a pre
- 5:31recorded fingerprint vector F that the attacker already built
- 5:34earlier. They apply a weight W based on
- 5:36the total number of intervals and then calculate a similarity
- 5:39score S using the specific formula outlined here.
- 5:43The website fingerrint with the highest similarity score that is
- 5:46the attacker's best calculated guess for what the user is
- 5:48currently browsing. Section 4 Evaluation An real
- 5:52world results. Let's see how this math holds U
- 5:54in the wild. The researchers tested this
- 5:57theory on the Alexa top 20 sites in Japan.
- 6:00Look at the success rate trend here.
- 6:02When the target pool of websites N is small, say at n = 5, the
- 6:07success rate is extraordinarily high.
- 6:09But as the number of target websites scales up to 1015 and
- 6:1320, the success rate drops off significantly.
- 6:16So why does the accuracy drop so sharply in a live network
- 6:20environment? Well, there are practical
- 6:22limitations that cause the false positive and false negative
- 6:24rates to spike. First, tours multiplexing means
- 6:28the interval data points are fundamentally limited.
- 6:30Second, dynamic content completely ruins stable
- 6:33fingerprints. Think about YouTube constantly
- 6:35changing its video recommendations, or websites
- 6:37serving different banner ads every refresh. 3rd, a lot of
- 6:41modern home pages just have very similar architectural layouts.
- 6:44And finally, standard practical network noise just gets in the
- 6:47way of clean interval reading. So the crucial take away here is
- 6:51this. Theoretically and practically,
- 6:53this interval attack can reliably single out a user's
- 6:56destination from a pool of about 20 to 40 specific web pages.
- 7:00Beyond that point, the noise overtakes the signal, but think
- 7:04about the real world implications of that.
- 7:06If an attacker just wants to know if you are visiting one
- 7:08specific whistle blowing site or a specific medical forum out of
- 7:11a targeted watch list of 30 sites, this low resource attack
- 7:15is dangerously effective. Finally, Section 5,
- 7:19countermeasures and defenses. Can we actually fix this?
- 7:22We can start by immediately dismissing some superficial
- 7:25fixes. You might be thinking, well, why
- 7:28not just change the torso size from 5:12 to 10/24 bytes?
- 7:32Actually, scratch that, it won't work.
- 7:34Modifying the fixed cell size won't stop the attack because
- 7:37the underlying TCP architecture remains exactly the same.
- 7:40It still wraps data into 1500 byte Ethernet packets, so the
- 7:43intervals wouldn't even change. OK, what about forcing odd
- 7:47requests like having users turn off scripts or manually block
- 7:50images? Sure, while that breaks the
- 7:52fingerprint, it relies on users actively disabling features.
- 7:55You simply cannot base system security on the hope that users
- 7:57will behave perfectly. The most technically viable
- 8:00defense is something called defensive dropping.
- 8:03This involves injecting dummy packets directly into the
- 8:06traffic stream that are specifically programmed to be
- 8:08dropped before they ever reach the destination.
- 8:11The security benefit here is incredibly high.
- 8:13It completely disrupts the attackers interval mapping,
- 8:16throwing off those exact vector calculations we explored
- 8:18earlier. However, you have to weigh that
- 8:21against the resource cost. Flooding the network with fake
- 8:23traffic is cripplingly prohibitive for a low latency
- 8:26network like Tor that relies entirely on volunteer bandwidth.
- 8:30Which brings us to a really uncomfortable trade off.
- 8:32To truly defeat a sophisticated fingerprinting attack like this,
- 8:36you have to inject so much random noise that the network
- 8:38slows to an absolute crawl. So we'll leave you with this
- 8:41provocative thought. Is absolute, mathematically
- 8:44perfect online privacy actually worth a crippled, unusable
- 8:48network? Or do we just have to accept
- 8:50that as long as data flows and patterns, someone, somewhere is
- 8:53going to find a way to read them?
- 8:55Thank you for joining us for today's Exlainer and keep
- 8:57questioning the limits of technology.