Latest / CyberPodcast / How Low-Cost Traffic Analysis Can Break Tor | Paper Breakdown #16 | CyberPodcast
Transcript
- 0:00Welcome everyone, to this explainer.
- 0:02Today we are taking on a genuinely fascinating technical
- 0:05autopsy of one of the most famous privacy tools on the
- 0:08entire Internet, the Tor network.
- 0:10We're going to look right under the hood of a system design for
- 0:13absolute, unbreakable privacy. Using a groundbreaking research
- 0:17paper that somehow managed to safely dissect exactly what kind
- 0:21of traffic is actually flowing through these hidden channels,
- 0:23we are getting deeply technical. Today.
- 0:26We're breaking down network architecture protocol
- 0:28vulnerabilities and looking at some honestly brilliant
- 0:30detective work by network researchers.
- 0:32OK, let's dive into this. So here is our road map for this
- 0:36technical deep dive. One, how Tor works, 2.
- 0:40Deep packet inspection, 3. The BitTorrent anomaly, 4.
- 0:44The hijacking technique, 5. Tor as Sox proxy.
- 0:48And finally, six network geography.
- 0:51All right, Section 1, How Tor works.
- 0:54Let's establish that baseline architecture.
- 0:57As you probably know, the network relies on a concept
- 0:59called onion routing. When a client wants to
- 1:02communicate over Tor, they don't just connect directly to their
- 1:04destination, right? Instead, they select a circuit
- 1:07of intermediate nodes, typically three of them, an entry node, a
- 1:10middle node, and an exit node. Now, the absolute genius here is
- 1:15the encryption. Actually, think of it exactly
- 1:17like a set of nesting dolls. The original message is
- 1:20encrypted 3 times over in layers as the data passes through the
- 1:24circuit. Each node only holds the
- 1:26cryptographic key to peel back one single layer of encryption.
- 1:30Therefore, each intermediate node only knows the identity of
- 1:33the node immediately before it and the one right after it.
- 1:36It is only the final node in the chain, the exit node, that can
- 1:40strip away the very last layer of encryption to recover the
- 1:43original message and send it out to the open Internet.
- 1:46Moving on to Section 2, deep acket inspection, or how we
- 1:50actually analyze the payload, because that final exit node is
- 1:54a literal bridge to the open Internet.
- 1:56Well, it's the only place in the whole architecture where the
- 1:59actual traffic payload can be observed.
- 2:02To look at this, the researchers deployed a technique called Deep
- 2:04Acket Inspection, or DPI. Unlike your simple port based
- 2:08classification, which really just looks at the outer envelope
- 2:11of a data packet, DPI digs deep inside the packet.
- 2:15It analyzes both the header and the payload content to see what
- 2:18application is running. Now, to do this safely and most
- 2:22importantly, ethically, the researchers set up six of their
- 2:25very own global Tor exit nodes. As traffic left their nodes,
- 2:29they used a modified open source tool called Open DPI to
- 2:32categorize the data. Crucially, and this is a big
- 2:35deal for maintaining strict privacy standards, they
- 2:37explicitly anonymized and stripped away all original
- 2:40destination IP addresses on the fly before they extracted any
- 2:44payload data whatsoever. Which brings us to Section 3,
- 2:48the BitTorrent anomaly and the unmasking of unknown traffic.
- 2:53With this DPI engine running safely on their exit nodes for a
- 2:5623 day period, they collected massive amounts of data and
- 3:00almost immediately a major technical anomaly OED up.
- 3:03When we look at the traffic size they observed standard web
- 3:06browsing, Http://traffic took up the largest chunk at about
- 3:0936.4%. Unencorrected clear text
- 3:12BitTorrent traffic made-up almost 25% of the bandwidth,
- 3:16which by the way, is a massive load for a network design for
- 3:18low latency web browsing. But so the crucial point is that
- 3:22a massive 25.47% of the total network bandwidth was entirely
- 3:27unknown. The DPI engine literally
- 3:29couldn't identify it and get this despite taking up 1/4 of
- 3:33the network's entire data capacity.
- 3:35This unknown traffic was generated by less than 6% of the
- 3:38total network connections. But before we solve the mystery
- 3:41of that huge block of unknown traffic, let's take a really
- 3:44quick look at the Http://web traffic they actually could
- 3:47identify. Now you might assume this high
- 3:49latency, heavily encrypted network would be used primarily
- 3:52for simple text based communication, but the data
- 3:55proves otherwise. Applications make up 18% and
- 3:58flash and video make up 13.5%. This is a highly selfish,
- 4:02bandwidth heavy use of the network.
- 4:03It severely punishes users who actually need Tor for critical
- 4:06low latency safety. People are out there actively
- 4:09pushing rich media through a network that inherently
- 4:11penalizes latency by routing data through three separate
- 4:14global nodes. Let's get to the good stuff in
- 4:17Section 4, the hijacking technique.
- 4:20To figure out what was hiding in those unidentified packets, the
- 4:23researchers had to get creative. They strongly suspected the
- 4:26unknown traffic was encrypted BitTorrent, but they needed
- 4:28solid proof to get it. We quickly need to understand
- 4:31the standard BitTorrent protocol flow.
- 4:34When a client, let's call her Alice, wants to download a file,
- 4:37she first sends an announce message to a central server
- 4:40called a tracker. The tracker responds with a list
- 4:42of IP addresses of other peers who already have pieces of the
- 4:45file. Alice then reaches out to those
- 4:48peers directly, initiates A handshake, and begins
- 4:50downloading the actual data. Now, within that initial
- 4:54announce message Alice sends to the tracker, there is a critical
- 4:57piece of data called an info hash.
- 4:59This is a unique cryptographic identifier for the specific
- 5:03torrent file she wants. The structural vulnerability
- 5:06here is that historically this specific communication with the
- 5:09tracker and the info hash itself is sent completely unencrypted
- 5:13over the network, even if the subsequent peer-to-peer download
- 5:16is fully encrypted. The researchers exploited this
- 5:19exact unencrypted tracker communication.
- 5:22How? By using a classic man in the
- 5:24middle attack directly at their exit notes.
- 5:27And this brilliantly illustrates their technical creativity.
- 5:30When a Tor user asked a tracker for peers, the researchers
- 5:33intercepted the trackers unencrypted response.
- 5:36They rewrote the peer list on the fly, injecting the IP
- 5:39address of a machine they controlled right at the very
- 5:42top. The Tor user would then
- 5:43unwittingly initiate their handshake with the researchers
- 5:46controlled machine. By receiving that direct
- 5:49handshake, the researchers machine could instantly detect
- 5:51if the incoming connection was using BitTorrent protocol
- 5:54encryption. The results?
- 5:56They proved that a staggering five, 2.78% of BitTorrent
- 5:59handshakes were encrypted. That massive 25% block of
- 6:03unknown traffic was indeed encrypted.
- 6:05Peer-to-peer file sharing mystery solved.
- 6:07By taking those unencrypted info hashes and resolving them
- 6:10against public torrent databases, the researchers could
- 6:13see exactly what was driving this massive network load and
- 6:16look at this word cloud. The top 30 most popular
- 6:19downloads were heavily dominated by copyright protected media.
- 6:22Blockbuster films like Sherlock Holmes, massive video games like
- 6:25Mass Effect, popular television shows.
- 6:27The data irrefutably proved that a really significant portion of
- 6:31the Tor network's bandwidth is just being swallowed up by users
- 6:34anonymously sharing copyrighted entertainment.
- 6:37On to Section 5. Tor as SOCKS proxy or how users
- 6:41are completely bypassing the architecture.
- 6:44So heavy peer-to-peer file sharing isn't the only way the
- 6:47network architecture is being manipulated.
- 6:49As we discussed, Tors anonymity relies on a three hop circuit,
- 6:53but the researchers discovered that thousands of clients were
- 6:56intentionally bypassing this completely.
- 6:59Instead of a three hop circuit, users were creating a one hop
- 7:01tunnel directly to the exit node.
- 7:04By doing this, the user is trading their deep multi layer
- 7:07anonymity for a high speed encrypted single HO connection.
- 7:11Essentially, they aren't treating the Tor exit node as an
- 7:13anonymous router at all, but simply as a free encryted SOCS
- 7:16proxy to bypass cororate firewalls or hide their I with
- 7:20minimal latency. The researchers figured out a
- 7:23really clever mathematical way to diagnose this one hop abuse.
- 7:26In a normal 3 hop circuit, the exit node receives a specific
- 7:30control message called a relay under score begin cell.
- 7:33This cell instructs the exit node to connect to the final
- 7:36website, and it usually comes from the middle node in the
- 7:38circuit. Because the IP addresses of
- 7:40legitimate Tor middle nodes are public knowledge, the logic
- 7:43becomes super simple. If an exit node receives a relay
- 7:45under score begin control cell directly from an IP that is not
- 7:49on that public list. Well, it mathematically exposes
- 7:52that the user has bypassed the network and established a direct
- 7:55one hop tunnel. During their test, they found
- 7:57over 150 unique hosts continuously abusing their exit
- 8:01nodes in this exact manner. Finally, let's hit section 6,
- 8:05the geography of the network. Where are these clients actually
- 8:09coming from? When you think of Tor, you
- 8:11probably picture whistleblowers or political dissonance and
- 8:14heavily censored regions. But by analyzing the entry
- 8:16points, the data tells a very different story.
- 8:19The heaviest usage is actually concentrated in Western nations.
- 8:23Germany leads at nearly 15%, followed by the United States at
- 8:26nearly 13%. The researchers know that this
- 8:29high concentration in Western nations strongly correlates with
- 8:32countries that have aggressive anti piracy and strict copyright
- 8:35enforcement laws, which perfectly aligns with our
- 8:38earlier discovery regarding the massive volume of BIT torrent
- 8:41media piracy. Now, to help users in countries
- 8:43that actively block public Tor nodes, the network provides
- 8:46bridges, unlisted entry points. To prevent governments from
- 8:50finding and blocking these bridges, they're supposed to be
- 8:52handed out very sparingly. But the researchers found a
- 8:55glaring technical flaw in the distribution system.
- 8:58The server handing out bridge IPS lacked a simple capture to
- 9:01verify human users, and incredibly, it didn't even block
- 9:04requests coming from Tor exit nodes themselves.
- 9:06Because of this massive architectural oversight, the
- 9:09researchers were able to write an automated script that used
- 9:11the Tor network itself to rapidly harvest thousands of
- 9:14hidden bridge IP addresses. This proved that a determined
- 9:17adversary could easily map and block these secret network
- 9:20entrances. So this deep technical autopsy
- 9:23reveals a really complex ecosystem.
- 9:26A network built for ultimate privacy is simultaneously
- 9:29carrying massive loads of encrypted piracy, acting as a
- 9:32hijacked proxy service, and suffering from structural
- 9:35distribution flaws. It leaves us with a fascinating
- 9:38architectural paradox to ponder today.
- 9:40When you engineer a system that prioritizes absolute,
- 9:43unbreakable anonymity above all else, does that design
- 9:46inherently guarantee the technical abuse of the network?
- 9:49It is a deeply complex trade off between privacy, freedom, and
- 9:53systemic misuse. Thank you so much for joining me
- 9:56on this explainer and keep questioning the technology
- 9:58behind the curtain.