This blog is a description and background of some recent work published at CCS’17. Our goal was to understand how susceptible onion service sites are to a particular set of traffic analysis attacks, called website fingerprinting attacks. Onion service sites are sites that are only accessible using Tor. We focus on particular onion services and determine which are more or less fingerprintable and what makes them so.
First I’ll provide some background on what a website fingerprinting attack looks like. The goal of the adversary in this attack is to uncover which webpage a user is visiting while only observing encrypted traffic, breaking the privacy awarded by Tor. We study this attack specifically on Tor onion services. Figure 1 shows an example of the setup of this attack in the context of this work. A user Alice is accessing DuckDuckGo. The connection between her computer and the router is encrypted. The adversary is observing her connection and can only see the encrypted data that is being sent (e.g. a request for a particular image that is on the site going out, and the image itself coming back). The adversary cannot see the content of these requests and replies, but he can observe patterns in the encrypted traffic (e.g. size and timing of the requests and replies). When the user is not around, he can connect to a set of onion services that he suspects Alice will visit and record these patterns. Later, when Alice accesses DuckDuckGo, the adversary can compare her visit to the set that he as recorded and can figure out that she is visiting DuckDuckGo.

The challenge of developing an attack lies mostly in this last sentence. The adversary needs to determine which set of sites to choose as suspect sites, determine which features in this pattern to examine, and then use supervised machine learning techniques to uncover which service Alice is visiting.
In this work we focus entirely on onion services. Due to their limited number and sensitive nature, onion service websites are particularly vulnerable to website fingerprinting attacks. Onion service connections can be reliably distinguished from other Tor connections (Kwon et.al. 2015), substantially reducing the number of potential sites that a user could be visiting and therefore reducing the number of sites that an adversary needs to consider by orders of magnitude. In addition, onion services are used to host sensitive content such as whistleblowing platforms and activist blogs, making website fingerprinting attacks on these sites particularly attractive and potentially very damaging.
Prior website fingerprinting research has taken the form of an arms-race, with most of the works focusing on developing more efficient and effective website fingerprinting attacks and defenses than their predecessors. Little attention has been paid to the scientific methodology used to evaluate such attacks and defenses. We aimed to take a step back from this arms race and address a flaw in the methodology of evaluating website fingerprinting systems: prior work only evaluated the overall effectiveness of attacks and defenses by looking at the average accuracy of an attack. Such evaluation biases our perception of how threatening the attacks are in the eyes of individual users. We should not only be concerned about how the attack performs on average but also how it performs for the specific websites the user visits. If you run an onion service, you are more concerned with the security of your particular onion service than how well an attack or defense works overall. If your site is naturally hidden against attacks, then you do not need to implement a defense. Conversely, your site may not be protected by a certain defense, despite the high overall protection of such defense.
We address this by looking into which of these onion sites are more susceptible to website fingerprinting attacks than others. In other words, which onion services had more or less identifying patterns. We start by analyzing three state-of-the-art website fingerprinting attacks, each of which uses a different set of features and a different classification technique on a dataset we collected of 482 Tor onion services, making this the largest analysis of this kind completed on onion services to date.
We identified high variance in the results obtained by the website fingerprinting state-of-the-art attacks across different onion websites: some sites have higher identification rates than others and, thus, are more vulnerable to website fingerprinting. We observe a partial overlap between the sites that are most misclassified across different classifiers. This indicates the errors of these classifiers are correlated to some extent and that some sites are hidden from all three attacks that we examined.
We also analyze the features exploited by the different website fingerprinting methods and discuss what makes onion service sites more or less easily identifiable, both in terms of their traffic traces as well as their webpage design. We find that larger sites (in terms of total download size) are all susceptible to website fingerprinting attacks, while some smaller sites are classified with other smaller sites as long as they are dynamic, in that they change in some way between visits.
We study misclassifications to understand how onion services sites can be redesigned to be less vulnerable to website fingerprinting attacks. We determine what website-level features, that is the features a onion service designer can change, are better predictors of fingerprintability. Our results inform the design of website fingerprinting countermeasures and their evaluation considering disparate impact across sites.
Thanks to my co-authors on this work, Marc Juarez, Gunes Acar, Rachel Greenstadt, and Claudia Diaz; Especially to Marc for helping with some of the writing of this blog.


