Simplify the math to round up to the next multiple of some value.
[tor/rransom.git] / doc / design-paper / challenges.tex
blob6949693bf013677841d9e6a07b20f56135872436
1 \documentclass{llncs}
3 \usepackage{url}
4 \usepackage{amsmath}
5 \usepackage{epsfig}
7 \setlength{\textwidth}{5.9in}
8 \setlength{\textheight}{8.4in}
9 \setlength{\topmargin}{.5cm}
10 \setlength{\oddsidemargin}{1cm}
11 \setlength{\evensidemargin}{1cm}
13 \newenvironment{tightlist}{\begin{list}{$\bullet$}{
14 \setlength{\itemsep}{0mm}
15 \setlength{\parsep}{0mm}
16 % \setlength{\labelsep}{0mm}
17 % \setlength{\labelwidth}{0mm}
18 % \setlength{\topsep}{0mm}
19 }}{\end{list}}
21 \begin{document}
23 \title{Challenges in deploying low-latency anonymity (DRAFT)}
25 \author{Roger Dingledine\inst{1} \and
26 Nick Mathewson\inst{1} \and
27 Paul Syverson\inst{2}}
28 \institute{The Free Haven Project \email{<\{arma,nickm\}@freehaven.net>} \and
29 Naval Research Laboratory \email{<syverson@itd.nrl.navy.mil>}}
31 \maketitle
32 \pagestyle{plain}
34 \begin{abstract}
35 There are many unexpected or unexpectedly difficult obstacles to
36 deploying anonymous communications. Drawing on our experiences deploying
37 Tor (the second-generation onion routing network), we describe social
38 challenges and technical issues that must be faced
39 in building, deploying, and sustaining a scalable, distributed, low-latency
40 anonymity network.
41 \end{abstract}
43 \section{Introduction}
44 % Your network is not practical unless it is sustainable and distributed.
45 Anonymous communication is full of surprises. This paper discusses some
46 unexpected challenges arising from our experiences deploying Tor, a
47 low-latency general-purpose anonymous communication system. We will discuss
48 some of the difficulties we have experienced and how we have met them (or how
49 we plan to meet them, if we know). We also discuss some less
50 troublesome open problems that we must nevertheless eventually address.
51 %We will describe both those future challenges that we intend to explore and
52 %those that we have decided not to explore and why.
54 Tor is an overlay network for anonymizing TCP streams over the
55 Internet~\cite{tor-design}. It addresses limitations in earlier Onion
56 Routing designs~\cite{or-ih96,or-jsac98,or-discex00,or-pet00} by adding
57 perfect forward secrecy, congestion control, directory servers, data
58 integrity, configurable exit policies, and location-hidden services using
59 rendezvous points. Tor works on the real-world Internet, requires no special
60 privileges or kernel modifications, requires little synchronization or
61 coordination between nodes, and provides a reasonable trade-off between
62 anonymity, usability, and efficiency.
64 We deployed the public Tor network in October 2003; since then it has
65 grown to over a hundred volunteer-operated nodes
66 and as much as 80 megabits of
67 average traffic per second. Tor's research strategy has focused on deploying
68 a network to as many users as possible; thus, we have resisted designs that
69 would compromise deployability by imposing high resource demands on node
70 operators, and designs that would compromise usability by imposing
71 unacceptable restrictions on which applications we support. Although this
72 strategy has
73 drawbacks (including a weakened threat model, as discussed below), it has
74 made it possible for Tor to serve many thousands of users and attract
75 funding from diverse sources whose goals range from security on a
76 national scale down to individual liberties.
78 In~\cite{tor-design} we gave an overall view of Tor's
79 design and goals. Here we describe some policy, social, and technical
80 issues that we face as we continue deployment.
81 Rather than providing complete solutions to every problem, we
82 instead lay out the challenges and constraints that we have observed while
83 deploying Tor. In doing so, we aim to provide a research agenda
84 of general interest to projects attempting to build
85 and deploy practical, usable anonymity networks in the wild.
87 %While the Tor design paper~\cite{tor-design} gives an overall view its
88 %design and goals,
89 %this paper describes the policy and technical issues that Tor faces as
90 %we continue deployment. Rather than trying to provide complete solutions
91 %to every problem here, we lay out the assumptions and constraints
92 %that we have observed through deploying Tor in the wild. In doing so, we
93 %aim to create a research agenda for others to
94 %help in addressing these issues.
95 % Section~\ref{sec:what-is-tor} gives an
96 %overview of the Tor
97 %design and ours goals. Sections~\ref{sec:crossroads-policy}
98 %and~\ref{sec:crossroads-design} go on to describe the practical challenges,
99 %both policy and technical respectively,
100 %that stand in the way of moving
101 %from a practical useful network to a practical useful anonymous network.
103 %\section{What Is Tor}
104 \section{Background}
105 Here we give a basic overview of the Tor design and its properties, and
106 compare Tor to other low-latency anonymity designs.
108 \subsection{Tor, threat models, and distributed trust}
109 \label{sec:what-is-tor}
111 %Here we give a basic overview of the Tor design and its properties. For
112 %details on the design, assumptions, and security arguments, we refer
113 %the reader to the Tor design paper~\cite{tor-design}.
115 Tor provides \emph{forward privacy}, so that users can connect to
116 Internet sites without revealing their logical or physical locations
117 to those sites or to observers. It also provides \emph{location-hidden
118 services}, so that servers can support authorized users without
119 giving an effective vector for physical or online attackers.
120 Tor provides these protections even when a portion of its
121 infrastructure is compromised.
123 To connect to a remote server via Tor, the client software learns a signed
124 list of Tor nodes from one of several central \emph{directory servers}, and
125 incrementally creates a private pathway or \emph{circuit} of encrypted
126 connections through authenticated Tor nodes on the network, negotiating a
127 separate set of encryption keys for each hop along the circuit. The circuit
128 is extended one node at a time, and each node along the way knows only the
129 immediately previous and following nodes in the circuit, so no individual Tor
130 node knows the complete path that each fixed-sized data packet (or
131 \emph{cell}) will take.
132 %Because each node sees no more than one hop in the
133 %circuit,
134 Thus, neither an eavesdropper nor a compromised node can
135 see both the connection's source and destination. Later requests use a new
136 circuit, to complicate long-term linkability between different actions by
137 a single user.
139 Tor also helps servers hide their locations while
140 providing services such as web publishing or instant
141 messaging. Using ``rendezvous points'', other Tor users can
142 connect to these authenticated hidden services, neither one learning the
143 other's network identity.
145 Tor attempts to anonymize the transport layer, not the application layer.
146 This approach is useful for applications such as SSH
147 where authenticated communication is desired. However, when anonymity from
148 those with whom we communicate is desired,
149 application protocols that include personally identifying information need
150 additional application-level scrubbing proxies, such as
151 Privoxy~\cite{privoxy} for HTTP\@. Furthermore, Tor does not relay arbitrary
152 IP packets; it only anonymizes TCP streams and DNS requests
153 %, and only supports
154 %connections via SOCKS
155 (but see Section~\ref{subsec:tcp-vs-ip}).
157 Most node operators do not want to allow arbitrary TCP traffic. % to leave
158 %their server.
159 To address this, Tor provides \emph{exit policies} so
160 each exit node can block the IP addresses and ports it is unwilling to allow.
161 Tor nodes advertise their exit policies to the directory servers, so that
162 clients can tell which nodes will support their connections.
164 As of January 2005, the Tor network has grown to around a hundred nodes
165 on four continents, with a total capacity exceeding 1Gbit/s. Appendix A
166 shows a graph of the number of working nodes over time, as well as a
167 graph of the number of bytes being handled by the network over time.
168 The network is now sufficiently diverse for further development
169 and testing; but of course we always encourage new nodes
170 to join.
172 Tor research and development has been funded by ONR and DARPA
173 for use in securing government
174 communications, and by the Electronic Frontier Foundation for use
175 in maintaining civil liberties for ordinary citizens online. The Tor
176 protocol is one of the leading choices
177 for the anonymizing layer in the European Union's PRIME directive to
178 help maintain privacy in Europe.
179 The AN.ON project in Germany
180 has integrated an independent implementation of the Tor protocol into
181 their popular Java Anon Proxy anonymizing client.
182 % This wide variety of
183 %interests helps maintain both the stability and the security of the
184 %network.
186 \medskip
187 \noindent
188 {\bf Threat models and design philosophy.}
189 The ideal Tor network would be practical, useful and anonymous. When
190 trade-offs arise between these properties, Tor's research strategy has been
191 to remain useful enough to attract many users,
192 and practical enough to support them. Only subject to these
193 constraints do we try to maximize
194 anonymity.\footnote{This is not the only possible
195 direction in anonymity research: designs exist that provide more anonymity
196 than Tor at the expense of significantly increased resource requirements, or
197 decreased flexibility in application support (typically because of increased
198 latency). Such research does not typically abandon aspirations toward
199 deployability or utility, but instead tries to maximize deployability and
200 utility subject to a certain degree of structural anonymity (structural because
201 usability and practicality affect usage which affects the actual anonymity
202 provided by the network \cite{econymics,back01}).}
203 %{We believe that these
204 %approaches can be promising and useful, but that by focusing on deploying a
205 %usable system in the wild, Tor helps us experiment with the actual parameters
206 %of what makes a system ``practical'' for volunteer operators and ``useful''
207 %for home users, and helps illuminate undernoticed issues which any deployed
208 %volunteer anonymity network will need to address.}
209 Because of our strategy, Tor has a weaker threat model than many designs in
210 the literature. In particular, because we
211 support interactive communications without impractically expensive padding,
212 we fall prey to a variety
213 of intra-network~\cite{back01,attack-tor-oak05,flow-correlation04} and
214 end-to-end~\cite{danezis:pet2004,SS03} anonymity-breaking attacks.
216 Tor does not attempt to defend against a global observer. In general, an
217 attacker who can measure both ends of a connection through the Tor network
218 % I say 'measure' rather than 'observe', to encompass murdoch-danezis
219 % style attacks. -RD
220 can correlate the timing and volume of data on that connection as it enters
221 and leaves the network, and so link communication partners.
222 Known solutions to this attack would seem to require introducing a
223 prohibitive degree of traffic padding between the user and the network, or
224 introducing an unacceptable degree of latency (but see Section
225 \ref{subsec:mid-latency}). Also, it is not clear that these methods would
226 work at all against a minimally active adversary who could introduce timing
227 patterns or additional traffic. Thus, Tor only attempts to defend against
228 external observers who cannot observe both sides of a user's connections.
231 Against internal attackers who sign up Tor nodes, the situation is more
232 complicated. In the simplest case, if an adversary has compromised $c$ of
233 $n$ nodes on the Tor network, then the adversary will be able to compromise
234 a random circuit with probability $\frac{c^2}{n^2}$ (since the circuit
235 initiator chooses hops randomly). But there are
236 complicating factors:
237 (1)~If the user continues to build random circuits over time, an adversary
238 is pretty certain to see a statistical sample of the user's traffic, and
239 thereby can build an increasingly accurate profile of her behavior. (See
240 Section~\ref{subsec:helper-nodes} for possible solutions.)
241 (2)~An adversary who controls a popular service outside the Tor network
242 can be certain to observe all connections to that service; he
243 can therefore trace connections to that service with probability
244 $\frac{c}{n}$.
245 (3)~Users do not in fact choose nodes with uniform probability; they
246 favor nodes with high bandwidth or uptime, and exit nodes that
247 permit connections to their favorite services.
248 (See Section~\ref{subsec:routing-zones} for discussion of larger
249 adversaries and our dispersal goals.)
251 % I'm trying to make this paragraph work without reference to the
252 % analysis/confirmation distinction, which we haven't actually introduced
253 % yet, and which we realize isn't very stable anyway. Also, I don't want to
254 % deprecate these attacks if we can't demonstrate that they don't work, since
255 % in case they *do* turn out to work well against Tor, we'll look pretty
256 % foolish. -NM
257 More powerful attacks may exist. In \cite{hintz-pet02} it was
258 shown that an attacker who can catalog data volumes of popular
259 responder destinations (say, websites with consistent data volumes) may not
260 need to
261 observe both ends of a stream to learn source-destination links for those
262 responders.
263 Similarly, latencies of going through various routes can be
264 cataloged~\cite{back01} to connect endpoints.
265 % Also, \cite{kesdogan:pet2002} takes the
266 % attack another level further, to narrow down where you could be
267 % based on an intersection attack on subpages in a website. -RD
268 It has not yet been shown whether these attacks will succeed or fail
269 in the presence of the variability and volume quantization introduced by the
270 Tor network, but it seems likely that these factors will at best delay
271 rather than halt the attacks in the cases where they succeed.
272 Along similar lines, the same paper suggests a ``clogging
273 attack'' in which the throughput on a circuit is observed to slow
274 down when an adversary clogs the right nodes with his own traffic.
275 To determine the nodes in a circuit this attack requires the ability
276 to continuously monitor the traffic exiting the network on a circuit
277 that is up long enough to probe all network nodes in binary fashion.
278 % Though somewhat related, clogging and interference are really different
279 % attacks with different assumptions about adversary distribution and
280 % capabilities as well as different techniques. -pfs
281 Murdoch and Danezis~\cite{attack-tor-oak05} show a practical
282 interference attack against portions of
283 the fifty node Tor network as deployed in mid 2004.
284 An outside attacker can actively trace a circuit through the Tor network
285 by observing changes in the latency of his
286 own traffic sent through various Tor nodes. This can be done
287 simultaneously at multiple nodes; however, like clogging,
288 this attack only reveals
289 the Tor nodes in the circuit, not initiator and responder addresses,
290 so it is still necessary to discover the endpoints to complete an
291 effective attack. Increasing the size and diversity of the Tor network may
292 help counter these attacks.
294 %discuss $\frac{c^2}{n^2}$, except how in practice the chance of owning
295 %the last hop is not $c/n$ since that doesn't take the destination (website)
296 %into account. so in cases where the adversary does not also control the
297 %final destination we're in good shape, but if he *does* then we'd be better
298 %off with a system that lets each hop choose a path.
300 %Isn't it more accurate to say ``If the adversary _always_ controls the final
301 % dest, we would be just as well off with such as system.'' ? If not, why
302 % not? -nm
303 % Sure. In fact, better off, since they seem to scale more easily. -rd
305 %Murdoch and Danezis describe an attack
306 %\cite{attack-tor-oak05} that lets an attacker determine the nodes used
307 %in a circuit; yet s/he cannot identify the initiator or responder,
308 %e.g., client or web server, through this attack. So the endpoints
309 %remain secure, which is the goal. It is conceivable that an
310 %adversary could attack or set up observation of all connections
311 %to an arbitrary Tor node in only a few minutes. If such an adversary
312 %were to exist, s/he could use this probing to remotely identify a node
313 %for further attack. Of more likely immediate practical concern
314 %an adversary with active access to the responder traffic
315 %wants to keep a circuit alive long enough to attack an identified
316 %node. Thus it is important to prevent the responding end of the circuit
317 %from keeping it open indefinitely.
318 %Also, someone could identify nodes in this way and if in their
319 %jurisdiction, immediately get a subpoena (if they even need one)
320 %telling the node operator(s) that she must retain all the active
321 %circuit data she now has.
322 %Further, the enclave model, which had previously looked to be the most
323 %generally secure, seems particularly threatened by this attack, since
324 %it identifies endpoints when they're also nodes in the Tor network:
325 %see Section~\ref{subsec:helper-nodes} for discussion of some ways to
326 %address this issue.
328 \medskip
329 \noindent
330 {\bf Distributed trust.}
331 In practice Tor's threat model is based on
332 dispersal and diversity.
333 Our defense lies in having a diverse enough set of nodes
334 to prevent most real-world
335 adversaries from being in the right places to attack users,
336 by distributing each transaction
337 over several nodes in the network. This ``distributed trust'' approach
338 means the Tor network can be safely operated and used by a wide variety
339 of mutually distrustful users, providing sustainability and security.
340 %than some previous attempts at anonymizing networks.
342 No organization can achieve this security on its own. If a single
343 corporation or government agency were to build a private network to
344 protect its operations, any connections entering or leaving that network
345 would be obviously linkable to the controlling organization. The members
346 and operations of that agency would be easier, not harder, to distinguish.
348 Instead, to protect our networks from traffic analysis, we must
349 collaboratively blend the traffic from many organizations and private
350 citizens, so that an eavesdropper can't tell which users are which,
351 and who is looking for what information. %By bringing more users onto
352 %the network, all users become more secure~\cite{econymics}.
353 %[XXX I feel uncomfortable saying this last sentence now. -RD]
354 %[So, I took it out. I think we can do without it. -PFS]
355 The Tor network has a broad range of users, including ordinary citizens
356 concerned about their privacy, corporations
357 who don't want to reveal information to their competitors, and law
358 enforcement and government intelligence agencies who need
359 to do operations on the Internet without being noticed.
360 Naturally, organizations will not want to depend on others for their
361 security. If most participating providers are reliable, Tor tolerates
362 some hostile infiltration of the network. For maximum protection,
363 the Tor design includes an enclave approach that lets data be encrypted
364 (and authenticated) end-to-end, so high-sensitivity users can be sure it
365 hasn't been read or modified. This even works for Internet services that
366 don't have built-in encryption and authentication, such as unencrypted
367 HTTP or chat, and it requires no modification of those services.
369 \subsection{Related work}
370 Tor differs from other deployed systems for traffic analysis resistance
371 in its security and flexibility. Mix networks such as
372 Mixmaster~\cite{mixmaster-spec} or its successor Mixminion~\cite{minion-design}
373 gain the highest degrees of anonymity at the expense of introducing highly
374 variable delays, making them unsuitable for applications such as web
375 browsing. Commercial single-hop
376 proxies~\cite{anonymizer} can provide good performance, but
377 a single compromise can expose all users' traffic, and a single-point
378 eavesdropper can perform traffic analysis on the entire network.
379 %Also, their proprietary implementations place any infrastructure that
380 %depends on these single-hop solutions at the mercy of their providers'
381 %financial health as well as network security.
382 The Java
383 Anon Proxy~\cite{web-mix} provides similar functionality to Tor but
384 handles only web browsing rather than all TCP\@.
385 %Some peer-to-peer file-sharing overlay networks such as
386 %Freenet~\cite{freenet} and Mute~\cite{mute}
387 The Freedom
388 network from Zero-Knowledge Systems~\cite{freedom21-security}
389 was even more flexible than Tor in
390 transporting arbitrary IP packets, and also supported
391 pseudonymity in addition to anonymity; but it had
392 a different approach to sustainability (collecting money from users
393 and paying ISPs to run Tor nodes), and was eventually shut down due to financial
394 load. Finally, %potentially more scalable
395 % [I had added 'potentially' because the scalability of these designs
396 % is not established, and I am uncomfortable making the
397 % bolder unmodified assertion. Roger took 'potentially' out.
398 % Here's an attempt at more neutral wording -pfs]
399 peer-to-peer designs that are intended to be more scalable,
400 for example Tarzan~\cite{tarzan:ccs02} and
401 MorphMix~\cite{morphmix:fc04}, have been proposed in the literature but
402 have not been fielded. These systems differ somewhat
403 in threat model and presumably practical resistance to threats.
404 Note that MorphMix differs from Tor only in
405 node discovery and circuit setup; so Tor's architecture is flexible
406 enough to contain a MorphMix experiment.
407 We direct the interested reader
408 to~\cite{tor-design} for a more in-depth review of related work.
410 %XXXX six-four. crowds. i2p.
412 %XXXX
413 %have a serious discussion of morphmix's assumptions, since they would
414 %seem to be the direct competition. in fact tor is a flexible architecture
415 %that would encompass morphmix, and they're nearly identical except for
416 %path selection and node discovery. and the trust system morphmix has
417 %seems overkill (and/or insecure) based on the threat model we've picked.
418 % this para should probably move to the scalability / directory system. -RD
419 % Nope. Cut for space, except for small comment added above -PFS
421 \section{Social challenges}
423 Many of the issues the Tor project needs to address extend beyond
424 system design and technology development. In particular, the
425 Tor project's \emph{image} with respect to its users and the rest of
426 the Internet impacts the security it can provide.
427 With this image issue in mind, this section discusses the Tor user base and
428 Tor's interaction with other services on the Internet.
430 \subsection{Communicating security}
432 Usability for anonymity systems
433 contributes to their security, because usability
434 affects the possible anonymity set~\cite{econymics,back01}.
435 Conversely, an unusable system attracts few users and thus can't provide
436 much anonymity.
438 This phenomenon has a second-order effect: knowing this, users should
439 choose which anonymity system to use based in part on how usable
440 and secure
441 \emph{others} will find it, in order to get the protection of a larger
442 anonymity set. Thus we might supplement the adage ``usability is a security
443 parameter''~\cite{back01} with a new one: ``perceived usability is a
444 security parameter.'' From here we can better understand the effects
445 of publicity on security: the more convincing your
446 advertising, the more likely people will believe you have users, and thus
447 the more users you will attract. Perversely, over-hyped systems (if they
448 are not too broken) may be a better choice than modestly promoted ones,
449 if the hype attracts more users~\cite{usability-network-effect}.
451 So it follows that we should come up with ways to accurately communicate
452 the available security levels to the user, so she can make informed
453 decisions. JAP aims to do this by including a
454 comforting `anonymity meter' dial in the software's graphical interface,
455 giving the user an impression of the level of protection for her current
456 traffic.
458 However, there's a catch. For users to share the same anonymity set,
459 they need to act like each other. An attacker who can distinguish
460 a given user's traffic from the rest of the traffic will not be
461 distracted by anonymity set size. For high-latency systems like
462 Mixminion, where the threat model is based on mixing messages with each
463 other, there's an arms race between end-to-end statistical attacks and
464 counter-strategies~\cite{statistical-disclosure,minion-design,e2e-traffic,trickle02}.
465 But for low-latency systems like Tor, end-to-end \emph{traffic
466 correlation} attacks~\cite{danezis:pet2004,defensive-dropping,SS03}
467 allow an attacker who can observe both ends of a communication
468 to correlate packet timing and volume, quickly linking
469 the initiator to her destination.
471 Like Tor, the current JAP implementation does not pad connections
472 apart from using small fixed-size cells for transport. In fact,
473 JAP's cascade-based network topology may be more vulnerable to these
474 attacks, because its network has fewer edges. JAP was born out of
475 the ISDN mix design~\cite{isdn-mixes}, where padding made sense because
476 every user had a fixed bandwidth allocation and altering the timing
477 pattern of packets could be immediately detected. But in its current context
478 as an Internet web anonymizer, adding sufficient padding to JAP
479 would probably be prohibitively expensive and ineffective against a
480 minimally active attacker.\footnote{Even if JAP could
481 fund higher-capacity nodes indefinitely, our experience
482 suggests that many users would not accept the increased per-user
483 bandwidth requirements, leading to an overall much smaller user base. But
484 see Section~\ref{subsec:mid-latency}.} Therefore, since under this threat
485 model the number of concurrent users does not seem to have much impact
486 on the anonymity provided, we suggest that JAP's anonymity meter is not
487 accurately communicating security levels to its users.
489 On the other hand, while the number of active concurrent users may not
490 matter as much as we'd like, it still helps to have some other users
491 on the network. We investigate this issue next.
493 \subsection{Reputability and perceived social value}
494 Another factor impacting the network's security is its reputability:
495 the perception of its social value based on its current user base. If Alice is
496 the only user who has ever downloaded the software, it might be socially
497 accepted, but she's not getting much anonymity. Add a thousand
498 activists, and she's anonymous, but everyone thinks she's an activist too.
499 Add a thousand
500 diverse citizens (cancer survivors, privacy enthusiasts, and so on)
501 and now she's harder to profile.
503 Furthermore, the network's reputability affects its operator base: more people
504 are willing to run a service if they believe it will be used by human rights
505 workers than if they believe it will be used exclusively for disreputable
506 ends. This effect becomes stronger if node operators themselves think they
507 will be associated with their users' disreputable ends.
509 So the more cancer survivors on Tor, the better for the human rights
510 activists. The more malicious hackers, the worse for the normal users. Thus,
511 reputability is an anonymity issue for two reasons. First, it impacts
512 the sustainability of the network: a network that's always about to be
513 shut down has difficulty attracting and keeping adequate nodes.
514 Second, a disreputable network is more vulnerable to legal and
515 political attacks, since it will attract fewer supporters.
517 While people therefore have an incentive for the network to be used for
518 ``more reputable'' activities than their own, there are still trade-offs
519 involved when it comes to anonymity. To follow the above example, a
520 network used entirely by cancer survivors might welcome file sharers
521 onto the network, though of course they'd prefer a wider
522 variety of users.
524 Reputability becomes even more tricky in the case of privacy networks,
525 since the good uses of the network (such as publishing by journalists in
526 dangerous countries) are typically kept private, whereas network abuses
527 or other problems tend to be more widely publicized.
529 The impact of public perception on security is especially important
530 during the bootstrapping phase of the network, where the first few
531 widely publicized uses of the network can dictate the types of users it
532 attracts next.
533 As an example, some U.S.~Department of Energy
534 penetration testing engineers are tasked with compromising DoE computers
535 from the outside. They only have a limited number of ISPs from which to
536 launch their attacks, and they found that the defenders were recognizing
537 attacks because they came from the same IP space. These engineers wanted
538 to use Tor to hide their tracks. First, from a technical standpoint,
539 Tor does not support the variety of IP packets one would like to use in
540 such attacks (see Section~\ref{subsec:tcp-vs-ip}). But aside from this,
541 we also decided that it would probably be poor precedent to encourage
542 such use---even legal use that improves national security---and managed
543 to dissuade them.
545 %% "outside of academia, jap has just lost, permanently". (That is,
546 %% even though the crime detection issues are resolved and are unlikely
547 %% to go down the same way again, public perception has not been kind.)
549 \subsection{Sustainability and incentives}
550 One of the unsolved problems in low-latency anonymity designs is
551 how to keep the nodes running. ZKS's Freedom network
552 depended on paying third parties to run its servers; the JAP project's
553 bandwidth depends on grants to pay for its bandwidth and
554 administrative expenses. In Tor, bandwidth and administrative costs are
555 distributed across the volunteers who run Tor nodes, so we at least have
556 reason to think that the Tor network could survive without continued research
557 funding.\footnote{It also helps that Tor is implemented with free and open
558 source software that can be maintained by anybody with the ability and
559 inclination.} But why are these volunteers running nodes, and what can we
560 do to encourage more volunteers to do so?
562 We have not formally surveyed Tor node operators to learn why they are
563 running nodes, but
564 from the information they have provided, it seems that many of them run Tor
565 nodes for reasons of personal interest in privacy issues. It is possible
566 that others are running Tor nodes to protect their own
567 anonymity, but of course they are
568 hardly likely to tell us specifics if they are.
569 %Significantly, Tor's threat model changes the anonymity incentives for running
570 %a node. In a high-latency mix network, users can receive additional
571 %anonymity by running their own node, since doing so obscures when they are
572 %injecting messages into the network. But, anybody observing all I/O to a Tor
573 %node can tell when the node is generating traffic that corresponds to
574 %none of its incoming traffic.
576 %I didn't buy the above for reason's subtle enough that I just cut it -PFS
577 Tor exit node operators do attain a degree of
578 ``deniability'' for traffic that originates at that exit node. For
579 example, it is likely in practice that HTTP requests from a Tor node's IP
580 will be assumed to be from the Tor network.
581 More significantly, people and organizations who use Tor for
582 anonymity depend on the
583 continued existence of the Tor network to do so; running a node helps to
584 keep the network operational.
585 %\item Local Tor entry and exit nodes allow users on a network to run in an
586 % `enclave' configuration. [XXXX need to resolve this. They would do this
587 % for E2E encryption + auth?]
590 %We must try to make the costs of running a Tor node easily minimized.
591 Since Tor is run by volunteers, the most crucial software usability issue is
592 usability by operators: when an operator leaves, the network becomes less
593 usable by everybody. To keep operators pleased, we must try to keep Tor's
594 resource and administrative demands as low as possible.
596 Because of ISP billing structures, many Tor operators have underused capacity
597 that they are willing to donate to the network, at no additional monetary
598 cost to them. Features to limit bandwidth have been essential to adoption.
599 Also useful has been a ``hibernation'' feature that allows a Tor node that
600 wants to provide high bandwidth, but no more than a certain amount in a
601 giving billing cycle, to become dormant once its bandwidth is exhausted, and
602 to reawaken at a random offset into the next billing cycle. This feature has
603 interesting policy implications, however; see
604 the next section below.
605 Exit policies help to limit administrative costs by limiting the frequency of
606 abuse complaints (see Section~\ref{subsec:tor-and-blacklists}). We discuss
607 technical incentive mechanisms in Section~\ref{subsec:incentives-by-design}.
609 %[XXXX say more. Why else would you run a node? What else can we do/do we
610 % already do to make running a node more attractive?]
611 %[We can enforce incentives; see Section 6.1. We can rate-limit clients.
612 % We can put "top bandwidth nodes lists" up a la seti@home.]
614 \subsection{Bandwidth and file-sharing}
615 \label{subsec:bandwidth-and-file-sharing}
616 %One potentially problematical area with deploying Tor has been our response
617 %to file-sharing applications.
618 Once users have configured their applications to work with Tor, the largest
619 remaining usability issue is performance. Users begin to suffer
620 when websites ``feel slow.''
621 Clients currently try to build their connections through nodes that they
622 guess will have enough bandwidth. But even if capacity is allocated
623 optimally, it seems unlikely that the current network architecture will have
624 enough capacity to provide every user with as much bandwidth as she would
625 receive if she weren't using Tor, unless far more nodes join the network.
627 %Limited capacity does not destroy the network, however. Instead, usage tends
628 %towards an equilibrium: when performance suffers, users who value performance
629 %over anonymity tend to leave the system, thus freeing capacity until the
630 %remaining users on the network are exactly those willing to use that capacity
631 %there is.
633 Much of Tor's recent bandwidth difficulties have come from file-sharing
634 applications. These applications provide two challenges to
635 any anonymizing network: their intensive bandwidth requirement, and the
636 degree to which they are associated (correctly or not) with copyright
637 infringement.
639 High-bandwidth protocols can make the network unresponsive,
640 but tend to be somewhat self-correcting as lack of bandwidth drives away
641 users who need it. Issues of copyright violation,
642 however, are more interesting. Typical exit node operators want to help
643 people achieve private and anonymous speech, not to help people (say) host
644 Vin Diesel movies for download; and typical ISPs would rather not
645 deal with customers who draw menacing letters
646 from the MPAA\@. While it is quite likely that the operators are doing nothing
647 illegal, many ISPs have policies of dropping users who get repeated legal
648 threats regardless of the merits of those threats, and many operators would
649 prefer to avoid receiving even meritless legal threats.
650 So when letters arrive, operators are likely to face
651 pressure to block file-sharing applications entirely, in order to avoid the
652 hassle.
654 But blocking file-sharing is not easy: popular
655 protocols have evolved to run on non-standard ports to
656 get around other port-based bans. Thus, exit node operators who want to
657 block file-sharing would have to find some way to integrate Tor with a
658 protocol-aware exit filter. This could be a technically expensive
659 undertaking, and one with poor prospects: it is unlikely that Tor exit nodes
660 would succeed where so many institutional firewalls have failed. Another
661 possibility for sensitive operators is to run a restrictive node that
662 only permits exit connections to a restricted range of ports that are
663 not frequently associated with file sharing. There are increasingly few such
664 ports.
666 Other possible approaches might include rate-limiting connections, especially
667 long-lived connections or connections to file-sharing ports, so that
668 high-bandwidth connections do not flood the network. We might also want to
669 give priority to cells on low-bandwidth connections to keep them interactive,
670 but this could have negative anonymity implications.
672 For the moment, it seems that Tor's bandwidth issues have rendered it
673 unattractive for bulk file-sharing traffic; this may continue to be so in the
674 future. Nevertheless, Tor will likely remain attractive for limited use in
675 file-sharing protocols that have separate control and data channels.
677 %[We should say more -- but what? That we'll see a similar
678 % equilibriating effect as with bandwidth, where sensitive ops switch to
679 % middleman, and we become less useful for file-sharing, so the file-sharing
680 % people back off, so we get more ops since there's less file-sharing, so the
681 % file-sharers come back, etc.]
683 %XXXX
684 %in practice, plausible deniability is hypothetical and doesn't seem very
685 %convincing. if ISPs find the activity antisocial, they don't care *why*
686 %your computer is doing that behavior.
688 \subsection{Tor and blacklists}
689 \label{subsec:tor-and-blacklists}
691 It was long expected that, alongside legitimate users, Tor would also
692 attract troublemakers who exploit Tor to abuse services on the
693 Internet with vandalism, rude mail, and so on.
694 Our initial answer to this situation was to use ``exit policies''
695 to allow individual Tor nodes to block access to specific IP/port ranges.
696 This approach aims to make operators more willing to run Tor by allowing
697 them to prevent their nodes from being used for abusing particular
698 services. For example, all Tor nodes currently block SMTP (port 25),
699 to avoid being used for spam.
701 Exit policies are useful, but they are insufficient: if not all nodes
702 block a given service, that service may try to block Tor instead.
703 While being blockable is important to being good netizens, we would like
704 to encourage services to allow anonymous access. Services should not
705 need to decide between blocking legitimate anonymous use and allowing
706 unlimited abuse.
708 This is potentially a bigger problem than it may appear.
709 On the one hand, services should be allowed to refuse connections from
710 sources of possible abuse.
711 But when a Tor node administrator decides whether he prefers to be able
712 to post to Wikipedia from his IP address, or to allow people to read
713 Wikipedia anonymously through his Tor node, he is making the decision
714 for others as well. (For a while, Wikipedia
715 blocked all posting from all Tor nodes based on IP addresses.) If
716 the Tor node shares an address with a campus or corporate NAT,
717 then the decision can prevent the entire population from posting.
718 This is a loss for both Tor
719 and Wikipedia: we don't want to compete for (or divvy up) the
720 NAT-protected entities of the world.
722 Worse, many IP blacklists are coarse-grained: they ignore Tor's exit
723 policies, partly because it's easier to implement and partly
724 so they can punish
725 all Tor nodes. One IP blacklist even bans
726 every class C network that contains a Tor node, and recommends banning SMTP
727 from these networks even though Tor does not allow SMTP at all. This
728 strategic decision aims to discourage the
729 operation of anything resembling an open proxy by encouraging its neighbors
730 to shut it down to get unblocked themselves. This pressure even
731 affects Tor nodes running in middleman mode (disallowing all exits) when
732 those nodes are blacklisted too.
734 Problems of abuse occur mainly with services such as IRC networks and
735 Wikipedia, which rely on IP blocking to ban abusive users. While at first
736 blush this practice might seem to depend on the anachronistic assumption that
737 each IP is an identifier for a single user, it is actually more reasonable in
738 practice: it assumes that non-proxy IPs are a costly resource, and that an
739 abuser can not change IPs at will. By blocking IPs which are used by Tor
740 nodes, open proxies, and service abusers, these systems hope to make
741 ongoing abuse difficult. Although the system is imperfect, it works
742 tolerably well for them in practice.
744 Of course, we would prefer that legitimate anonymous users be able to
745 access abuse-prone services. One conceivable approach would require
746 would-be IRC users, for instance, to register accounts if they want to
747 access the IRC network from Tor. In practice this would not
748 significantly impede abuse if creating new accounts were easily automatable;
749 this is why services use IP blocking. To deter abuse, pseudonymous
750 identities need to require a significant switching cost in resources or human
751 time. Some popular webmail applications
752 impose cost with Reverse Turing Tests, but this step may not deter all
753 abusers. Freedom used blind signatures to limit
754 the number of pseudonyms for each paying account, but Tor has neither the
755 ability nor the desire to collect payment.
757 We stress that as far as we can tell, most Tor uses are not
758 abusive. Most services have not complained, and others are actively
759 working to find ways besides banning to cope with the abuse. For example,
760 the Freenode IRC network had a problem with a coordinated group of
761 abusers joining channels and subtly taking over the conversation; but
762 when they labelled all users coming from Tor IPs as ``anonymous users,''
763 removing the ability of the abusers to blend in, the abuse stopped.
765 %The use of squishy IP-based ``authentication'' and ``authorization''
766 %has not broken down even to the level that SSNs used for these
767 %purposes have in commercial and public record contexts. Externalities
768 %and misplaced incentives cause a continued focus on fighting identity
769 %theft by protecting SSNs rather than developing better authentication
770 %and incentive schemes \cite{price-privacy}. Similarly we can expect a
771 %continued use of identification by IP number as long as there is no
772 %workable alternative.
774 %[XXX Mention correct DNS-RBL implementation. -NM]
776 \section{Design choices}
778 In addition to social issues, Tor also faces some design trade-offs that must
779 be investigated as the network develops.
781 \subsection{Transporting the stream vs transporting the packets}
782 \label{subsec:stream-vs-packet}
783 \label{subsec:tcp-vs-ip}
785 Tor transports streams; it does not tunnel packets.
786 It has often been suggested that like the old Freedom
787 network~\cite{freedom21-security}, Tor should
788 ``obviously'' anonymize IP traffic
789 at the IP layer. Before this could be done, many issues need to be resolved:
791 \begin{enumerate}
792 \setlength{\itemsep}{0mm}
793 \setlength{\parsep}{0mm}
794 \item \emph{IP packets reveal OS characteristics.} We would still need to do
795 IP-level packet normalization, to stop things like TCP fingerprinting
796 attacks. %There likely exist libraries that can help with this.
797 This is unlikely to be a trivial task, given the diversity and complexity of
798 TCP stacks.
799 \item \emph{Application-level streams still need scrubbing.} We still need
800 Tor to be easy to integrate with user-level application-specific proxies
801 such as Privoxy. So it's not just a matter of capturing packets and
802 anonymizing them at the IP layer.
803 \item \emph{Certain protocols will still leak information.} For example, we
804 must rewrite DNS requests so they are delivered to an unlinkable DNS server
805 rather than the DNS server at a user's ISP; thus, we must understand the
806 protocols we are transporting.
807 \item \emph{The crypto is unspecified.} First we need a block-level encryption
808 approach that can provide security despite
809 packet loss and out-of-order delivery. Freedom allegedly had one, but it was
810 never publicly specified.
811 Also, TLS over UDP is not yet implemented or
812 specified, though some early work has begun~\cite{dtls}.
813 \item \emph{We'll still need to tune network parameters.} Since the above
814 encryption system will likely need sequence numbers (and maybe more) to do
815 replay detection, handle duplicate frames, and so on, we will be reimplementing
816 a subset of TCP anyway---a notoriously tricky path.
817 \item \emph{Exit policies for arbitrary IP packets mean building a secure
818 IDS\@.} Our node operators tell us that exit policies are one of
819 the main reasons they're willing to run Tor.
820 Adding an Intrusion Detection System to handle exit policies would
821 increase the security complexity of Tor, and would likely not work anyway,
822 as evidenced by the entire field of IDS and counter-IDS papers. Many
823 potential abuse issues are resolved by the fact that Tor only transports
824 valid TCP streams (as opposed to arbitrary IP including malformed packets
825 and IP floods), so exit policies become even \emph{more} important as
826 we become able to transport IP packets. We also need to compactly
827 describe exit policies so clients can predict
828 which nodes will allow which packets to exit.
829 \item \emph{The Tor-internal name spaces would need to be redesigned.} We
830 support hidden service {\tt{.onion}} addresses (and other special addresses,
831 like {\tt{.exit}} which lets the user request a particular exit node),
832 by intercepting the addresses when they are passed to the Tor client.
833 Doing so at the IP level would require a more complex interface between
834 Tor and the local DNS resolver.
835 \end{enumerate}
837 This list is discouragingly long, but being able to transport more
838 protocols obviously has some advantages. It would be good to learn which
839 items are actual roadblocks and which are easier to resolve than we think.
841 To be fair, Tor's stream-based approach has run into
842 stumbling blocks as well. While Tor supports the SOCKS protocol,
843 which provides a standardized interface for generic TCP proxies, many
844 applications do not support SOCKS\@. For them we already need to
845 replace the networking system calls with SOCKS-aware
846 versions, or run a SOCKS tunnel locally, neither of which is
847 easy for the average user. %---even with good instructions.
848 Even when applications can use SOCKS, they often make DNS requests
849 themselves before handing an IP address to Tor, which advertises
850 where the user is about to connect.
851 We are still working on more usable solutions.
853 %So to actually provide good anonymity, we need to make sure that
854 %users have a practical way to use Tor anonymously. Possibilities include
855 %writing wrappers for applications to anonymize them automatically; improving
856 %the applications' support for SOCKS; writing libraries to help application
857 %writers use Tor properly; and implementing a local DNS proxy to reroute DNS
858 %requests to Tor so that applications can simply point their DNS resolvers at
859 %localhost and continue to use SOCKS for data only.
861 \subsection{Mid-latency}
862 \label{subsec:mid-latency}
864 Some users need to resist traffic correlation attacks. Higher-latency
865 mix-networks introduce variability into message
866 arrival times: as timing variance increases, timing correlation attacks
867 require increasingly more data~\cite{e2e-traffic}. Can we improve Tor's
868 resistance without losing too much usability?
870 We need to learn whether we can trade a small increase in latency
871 for a large anonymity increase, or if we'd end up trading a lot of
872 latency for only a minimal security gain. A trade-off might be worthwhile
873 even if we
874 could only protect certain use cases, such as infrequent short-duration
875 transactions. % To answer this question
876 We might adapt the techniques of~\cite{e2e-traffic} to a lower-latency mix
877 network, where the messages are batches of cells in temporally clustered
878 connections. These large fixed-size batches can also help resist volume
879 signature attacks~\cite{hintz-pet02}. We could also experiment with traffic
880 shaping to get a good balance of throughput and security.
881 %Other padding regimens might supplement the
882 %mid-latency option; however, we should continue the caution with which
883 %we have always approached padding lest the overhead cost us too much
884 %performance or too many volunteers.
886 We must keep usability in mind too. How much can latency increase
887 before we drive users away? We've already been forced to increase
888 latency slightly, as our growing network incorporates more DSL and
889 cable-modem nodes and more nodes in distant continents. Perhaps we can
890 harness this increased latency to improve anonymity rather than just
891 reduce usability. Further, if we let clients label certain circuits as
892 mid-latency as they are constructed, we could handle both types of traffic
893 on the same network, giving users a choice between speed and security---and
894 giving researchers a chance to experiment with parameters to improve the
895 quality of those choices.
897 \subsection{Enclaves and helper nodes}
898 \label{subsec:helper-nodes}
900 It has long been thought that users can improve their anonymity by
901 running their own node~\cite{tor-design,or-ih96,or-pet00}, and using
902 it in an \emph{enclave} configuration, where all their circuits begin
903 at the node under their control. Running Tor clients or servers at
904 the enclave perimeter is useful when policy or other requirements
905 prevent individual machines within the enclave from running Tor
906 clients~\cite{or-jsac98,or-discex00}.
908 Of course, Tor's default path length of
909 three is insufficient for these enclaves, since the entry and/or exit
910 % [edit war: without the ``and/'' the natural reading here
911 % is aut rather than vel. And the use of the plural verb does not work -pfs]
912 themselves are sensitive. Tor thus increments path length by one
913 for each sensitive endpoint in the circuit.
914 Enclaves also help to protect against end-to-end attacks, since it's
915 possible that traffic coming from the node has simply been relayed from
916 elsewhere. However, if the node has recognizable behavior patterns,
917 an attacker who runs nodes in the network can triangulate over time to
918 gain confidence that it is in fact originating the traffic. Wright et
919 al.~\cite{wright03} introduce the notion of a \emph{helper node}---a
920 single fixed entry node for each user---to combat this \emph{predecessor
921 attack}.
923 However, the attack in~\cite{attack-tor-oak05} shows that simply adding
924 to the path length, or using a helper node, may not protect an enclave
925 node. A hostile web server can send constant interference traffic to
926 all nodes in the network, and learn which nodes are involved in the
927 circuit (though at least in the current attack, he can't learn their
928 order). Using randomized path lengths may help some, since the attacker
929 will never be certain he has identified all nodes in the path unless
930 he probes the entire network, but as
931 long as the network remains small this attack will still be feasible.
933 Helper nodes also aim to help Tor clients, because choosing entry and exit
934 points
935 randomly and changing them frequently allows an attacker who controls
936 even a few nodes to eventually link some of their destinations. The goal
937 is to take the risk once and for all about choosing a bad entry node,
938 rather than taking a new risk for each new circuit. (Choosing fixed
939 exit nodes is less useful, since even an honest exit node still doesn't
940 protect against a hostile website.) But obstacles remain before
941 we can implement helper nodes.
942 For one, the literature does not describe how to choose helpers from a list
943 of nodes that changes over time. If Alice is forced to choose a new entry
944 helper every $d$ days and $c$ of the $n$ nodes are bad, she can expect
945 to choose a compromised node around
946 every $dc/n$ days. Statistically over time this approach only helps
947 if she is better at choosing honest helper nodes than at choosing
948 honest nodes. Worse, an attacker with the ability to DoS nodes could
949 force users to switch helper nodes more frequently, or remove
950 other candidate helpers.
952 %Do general DoS attacks have anonymity implications? See e.g. Adam
953 %Back's IH paper, but I think there's more to be pointed out here. -RD
954 % Not sure what you want to say here. -NM
956 %Game theory for helper nodes: if Alice offers a hidden service on a
957 %server (enclave model), and nobody ever uses helper nodes, then against
958 %George+Steven's attack she's totally nailed. If only Alice uses a helper
959 %node, then she's still identified as the source of the data. If everybody
960 %uses a helper node (including Alice), then the attack identifies the
961 %helper node and also Alice, and knows which one is which. If everybody
962 %uses a helper node (but not Alice), then the attacker figures the real
963 %source was a client that is using Alice as a helper node. [How's my
964 %logic here?] -RD
966 % Not sure about the logic. For the attack to work with helper nodes, the
967 %attacker needs to guess that Alice is running the hidden service, right?
968 %Otherwise, how can he know to measure her traffic specifically? -NM
970 % In the Murdoch-Danezis attack, the adversary measures all servers. -RD
972 %point to routing-zones section re: helper nodes to defend against
973 %big stuff.
975 \subsection{Location-hidden services}
976 \label{subsec:hidden-services}
978 % This section is first up against the wall when the revolution comes.
980 Tor's \emph{rendezvous points}
981 let users provide TCP services to other Tor users without revealing
982 the service's location. Since this feature is relatively recent, we describe
983 here
984 a couple of our early observations from its deployment.
986 First, our implementation of hidden services seems less hidden than we'd
987 like, since they build a different rendezvous circuit for each user,
988 and an external adversary can induce them to
989 produce traffic. This insecurity means that they may not be suitable as
990 a building block for Free Haven~\cite{freehaven-berk} or other anonymous
991 publishing systems that aim to provide long-term security, though helper
992 nodes, as discussed above, would seem to help.
994 \emph{Hot-swap} hidden services, where more than one location can
995 provide the service and loss of any one location does not imply a
996 change in service, would help foil intersection and observation attacks
997 where an adversary monitors availability of a hidden service and also
998 monitors whether certain users or servers are online. The design
999 challenges in providing such services without otherwise compromising
1000 the hidden service's anonymity remain an open problem;
1001 however, see~\cite{move-ndss05}.
1003 In practice, hidden services are used for more than just providing private
1004 access to a web server or IRC server. People are using hidden services
1005 as a poor man's VPN and firewall-buster. Many people want to be able
1006 to connect to the computers in their private network via secure shell,
1007 and rather than playing with dyndns and trying to pierce holes in their
1008 firewall, they run a hidden service on the inside and then rendezvous
1009 with that hidden service externally.
1011 News sites like Bloggers Without Borders (www.b19s.org) are advertising
1012 a hidden-service address on their front page. Doing this can provide
1013 increased robustness if they use the dual-IP approach we describe
1014 in~\cite{tor-design},
1015 but in practice they do it to increase visibility
1016 of the Tor project and their support for privacy, and to offer
1017 a way for their users, using unmodified software, to get end-to-end
1018 encryption and authentication to their website.
1020 \subsection{Location diversity and ISP-class adversaries}
1021 \label{subsec:routing-zones}
1023 Anonymity networks have long relied on diversity of node location for
1024 protection against attacks---typically an adversary who can observe a
1025 larger fraction of the network can launch a more effective attack. One
1026 way to achieve dispersal involves growing the network so a given adversary
1027 sees less. Alternately, we can arrange the topology so traffic can enter
1028 or exit at many places (for example, by using a free-route network
1029 like Tor rather than a cascade network like JAP). Lastly, we can use
1030 distributed trust to spread each transaction over multiple jurisdictions.
1031 But how do we decide whether two nodes are in related locations?
1033 Feamster and Dingledine defined a \emph{location diversity} metric
1034 in~\cite{feamster:wpes2004}, and began investigating a variant of location
1035 diversity based on the fact that the Internet is divided into thousands of
1036 independently operated networks called {\em autonomous systems} (ASes).
1037 The key insight from their paper is that while we typically think of a
1038 connection as going directly from the Tor client to the first Tor node,
1039 actually it traverses many different ASes on each hop. An adversary at
1040 any of these ASes can monitor or influence traffic. Specifically, given
1041 plausible initiators and recipients, and given random path selection,
1042 some ASes in the simulation were able to observe 10\% to 30\% of the
1043 transactions (that is, learn both the origin and the destination) on
1044 the deployed Tor network (33 nodes as of June 2004).
1046 The paper concludes that for best protection against the AS-level
1047 adversary, nodes should be in ASes that have the most links to other ASes:
1048 Tier-1 ISPs such as AT\&T and Abovenet. Further, a given transaction
1049 is safest when it starts or ends in a Tier-1 ISP\@. Therefore, assuming
1050 initiator and responder are both in the U.S., it actually \emph{hurts}
1051 our location diversity to use far-flung nodes in
1052 continents like Asia or South America.
1053 % it's not just entering or exiting from them. using them as the middle
1054 % hop reduces your effective path length, which you presumably don't
1055 % want because you chose that path length for a reason.
1057 % Not sure I buy that argument. Two end nodes in the right ASs to
1058 % discourage linking are still not known to each other. If some
1059 % adversary in a single AS can bridge the middle node, it shouldn't
1060 % therefore be able to identify initiator or responder; although it could
1061 % contribute to further attacks given more assumptions.
1062 % Nonetheless, no change to the actual text for now.
1064 Many open questions remain. First, it will be an immense engineering
1065 challenge to get an entire BGP routing table to each Tor client, or to
1066 summarize it sufficiently. Without a local copy, clients won't be
1067 able to safely predict what ASes will be traversed on the various paths
1068 through the Tor network to the final destination. Tarzan~\cite{tarzan:ccs02}
1069 and MorphMix~\cite{morphmix:fc04} suggest that we compare IP prefixes to
1070 determine location diversity; but the above paper showed that in practice
1071 many of the Mixmaster nodes that share a single AS have entirely different
1072 IP prefixes. When the network has scaled to thousands of nodes, does IP
1073 prefix comparison become a more useful approximation? % Alternatively, can
1074 %relevant parts of the routing tables be summarized centrally and delivered to
1075 %clients in a less verbose format?
1076 %% i already said "or to summarize is sufficiently" above. is that not
1077 %% enough? -RD
1079 Second, we can take advantage of caching certain content at the
1080 exit nodes, to limit the number of requests that need to leave the
1081 network at all. What about taking advantage of caches like Akamai or
1082 Google~\cite{shsm03}? (Note that they're also well-positioned as global
1083 adversaries.)
1085 Third, if we follow the recommendations in~\cite{feamster:wpes2004}
1086 and tailor path selection
1087 to avoid choosing endpoints in similar locations, how much are we hurting
1088 anonymity against larger real-world adversaries who can take advantage
1089 of knowing our algorithm?
1091 Fourth, can we use this knowledge to figure out which gaps in our network
1092 most affect our robustness to this class of attack, and go recruit
1093 new nodes with those ASes in mind?
1095 %Tor's security relies in large part on the dispersal properties of its
1096 %network. We need to be more aware of the anonymity properties of various
1097 %approaches so we can make better design decisions in the future.
1099 \subsection{The Anti-censorship problem}
1100 \label{subsec:china}
1102 Citizens in a variety of countries, such as most recently China and
1103 Iran, are blocked from accessing various sites outside
1104 their country. These users try to find any tools available to allow
1105 them to get around these firewalls. Some anonymity networks, such as
1106 Six-Four~\cite{six-four}, are designed specifically with this goal in
1107 mind; others like the Anonymizer~\cite{anonymizer} are paid by sponsors
1108 such as Voice of America to encourage Internet
1109 freedom. Even though Tor wasn't
1110 designed with ubiquitous access to the network in mind, thousands of
1111 users across the world are now using it for exactly this purpose.
1112 % Academic and NGO organizations, peacefire, \cite{berkman}, etc
1114 Anti-censorship networks hoping to bridge country-level blocks face
1115 a variety of challenges. One of these is that they need to find enough
1116 exit nodes---servers on the `free' side that are willing to relay
1117 traffic from users to their final destinations. Anonymizing
1118 networks like Tor are well-suited to this task since we have
1119 already gathered a set of exit nodes that are willing to tolerate some
1120 political heat.
1122 The other main challenge is to distribute a list of reachable relays
1123 to the users inside the country, and give them software to use those relays,
1124 without letting the censors also enumerate this list and block each
1125 relay. Anonymizer solves this by buying lots of seemingly-unrelated IP
1126 addresses (or having them donated), abandoning old addresses as they are
1127 `used up,' and telling a few users about the new ones. Distributed
1128 anonymizing networks again have an advantage here, in that we already
1129 have tens of thousands of separate IP addresses whose users might
1130 volunteer to provide this service since they've already installed and use
1131 the software for their own privacy~\cite{koepsell:wpes2004}. Because
1132 the Tor protocol separates routing from network discovery \cite{tor-design},
1133 volunteers could configure their Tor clients
1134 to generate node descriptors and send them to a special directory
1135 server that gives them out to dissidents who need to get around blocks.
1137 Of course, this still doesn't prevent the adversary
1138 from enumerating and preemptively blocking the volunteer relays.
1139 Perhaps a tiered-trust system could be built where a few individuals are
1140 given relays' locations. They could then recommend other individuals
1141 by telling them
1142 those addresses, thus providing a built-in incentive to avoid letting the
1143 adversary intercept them. Max-flow trust algorithms~\cite{advogato}
1144 might help to bound the number of IP addresses leaked to the adversary. Groups
1145 like the W3C are looking into using Tor as a component in an overall system to
1146 help address censorship; we wish them success.
1148 %\cite{infranet}
1150 \section{Scaling}
1151 \label{sec:scaling}
1153 Tor is running today with hundreds of nodes and tens of thousands of
1154 users, but it will certainly not scale to millions.
1155 Scaling Tor involves four main challenges. First, to get a
1156 large set of nodes, we must address incentives for
1157 users to carry traffic for others. Next is safe node discovery, both
1158 while bootstrapping (Tor clients must robustly find an initial
1159 node list) and later (Tor clients must learn about a fair sample
1160 of honest nodes and not let the adversary control circuits).
1161 We must also detect and handle node speed and reliability as the network
1162 becomes increasingly heterogeneous: since the speed and reliability
1163 of a circuit is limited by its worst link, we must learn to track and
1164 predict performance. Finally, we must stop assuming that all points on
1165 the network can connect to all other points.
1167 \subsection{Incentives by Design}
1168 \label{subsec:incentives-by-design}
1170 There are three behaviors we need to encourage for each Tor node: relaying
1171 traffic; providing good throughput and reliability while doing it;
1172 and allowing traffic to exit the network from that node.
1174 We encourage these behaviors through \emph{indirect} incentives: that
1175 is, by designing the system and educating users in such a way that users
1176 with certain goals will choose to relay traffic. One
1177 main incentive for running a Tor node is social: volunteers
1178 altruistically donate their bandwidth and time. We encourage this with
1179 public rankings of the throughput and reliability of nodes, much like
1180 seti@home. We further explain to users that they can get
1181 deniability for any traffic emerging from the same address as a Tor
1182 exit node, and they can use their own Tor node
1183 as an entry or exit point with confidence that it's not run by an adversary.
1184 Further, users may run a node simply because they need such a network
1185 to be persistently available and usable, and the value of supporting this
1186 exceeds any countervening costs.
1187 Finally, we can encourage operators by improving the usability and feature
1188 set of the software:
1189 rate limiting support and easy packaging decrease the hassle of
1190 maintaining a node, and our configurable exit policies allow each
1191 operator to advertise a policy describing the hosts and ports to which
1192 he feels comfortable connecting.
1194 To date these incentives appear to have been adequate. As the system scales
1195 or as new issues emerge, however, we may also need to provide
1196 \emph{direct} incentives:
1197 providing payment or other resources in return for high-quality service.
1198 Paying actual money is problematic: decentralized e-cash systems are
1199 not yet practical, and a centralized collection system not only reduces
1200 robustness, but also has failed in the past (the history of commercial
1201 anonymizing networks is littered with failed attempts). A more promising
1202 option is to use a tit-for-tat incentive scheme, where nodes provide better
1203 service to nodes that have provided good service for them.
1205 Unfortunately, such an approach introduces new anonymity problems.
1206 There are many surprising ways for nodes to game the incentive and
1207 reputation system to undermine anonymity---such systems are typically
1208 designed to encourage fairness in storage or bandwidth usage, not
1209 fairness of provided anonymity. An adversary can attract more traffic
1210 by performing well or can target individual users by selectively
1211 performing, to undermine their anonymity. Typically a user who
1212 chooses evenly from all nodes is most resistant to an adversary
1213 targeting him, but that approach hampers the efficient use
1214 of heterogeneous nodes.
1216 %When a node (call him Steve) performs well for Alice, does Steve gain
1217 %reputation with the entire system, or just with Alice? If the entire
1218 %system, how does Alice tell everybody about her experience in a way that
1219 %prevents her from lying about it yet still protects her identity? If
1220 %Steve's behavior only affects Alice's behavior, does this allow Steve to
1221 %selectively perform only for Alice, and then break her anonymity later
1222 %when somebody (presumably Alice) routes through his node?
1224 A possible solution is a simplified approach to the tit-for-tat
1225 incentive scheme based on two rules: (1) each node should measure the
1226 service it receives from adjacent nodes, and provide service relative
1227 to the received service, but (2) when a node is making decisions that
1228 affect its own security (such as building a circuit for its own
1229 application connections), it should choose evenly from a sufficiently
1230 large set of nodes that meet some minimum service
1231 threshold~\cite{casc-rep}. This approach allows us to discourage
1232 bad service
1233 without opening Alice up as much to attacks. All of this requires
1234 further study.
1236 \subsection{Trust and discovery}
1237 \label{subsec:trust-and-discovery}
1239 The published Tor design is deliberately simplistic in how
1240 new nodes are authorized and how clients are informed about Tor
1241 nodes and their status.
1242 All nodes periodically upload a signed description
1243 of their locations, keys, and capabilities to each of several well-known {\it
1244 directory servers}. These directory servers construct a signed summary
1245 of all known Tor nodes (a ``directory''), and a signed statement of which
1246 nodes they
1247 believe to be operational then (a ``network status''). Clients
1248 periodically download a directory to learn the latest nodes and
1249 keys, and more frequently download a network status to learn which nodes are
1250 likely to be running. Tor nodes also operate as directory caches, to
1251 lighten the bandwidth on the directory servers.
1253 To prevent Sybil attacks (wherein an adversary signs up many
1254 purportedly independent nodes to increase her network view),
1255 this design
1256 requires the directory server operators to manually
1257 approve new nodes. Unapproved nodes are included in the directory,
1258 but clients
1259 do not use them at the start or end of their circuits. In practice,
1260 directory administrators perform little actual verification, and tend to
1261 approve any Tor node whose operator can compose a coherent email.
1262 This procedure
1263 may prevent trivial automated Sybil attacks, but will do little
1264 against a clever and determined attacker.
1266 There are a number of flaws in this system that need to be addressed as we
1267 move forward. First,
1268 each directory server represents an independent point of failure: any
1269 compromised directory server could start recommending only compromised
1270 nodes.
1271 Second, as more nodes join the network, %the more unreasonable it
1272 %becomes to expect clients to know about them all.
1273 directories
1274 become infeasibly large, and downloading the list of nodes becomes
1275 burdensome.
1276 Third, the validation scheme may do as much harm as it does good. It
1277 does not prevent clever attackers from mounting Sybil attacks,
1278 and it may deter node operators from joining the network---if
1279 they expect the validation process to be difficult, or they do not share
1280 any languages in common with the directory server operators.
1282 We could try to move the system in several directions, depending on our
1283 choice of threat model and requirements. If we did not need to increase
1284 network capacity to support more users, we could simply
1285 adopt even stricter validation requirements, and reduce the number of
1286 nodes in the network to a trusted minimum.
1287 But, we can only do that if we can simultaneously make node capacity
1288 scale much more than we anticipate to be feasible soon, and if we can find
1289 entities willing to run such nodes, an equally daunting prospect.
1291 In order to address the first two issues, it seems wise to move to a system
1292 including a number of semi-trusted directory servers, no one of which can
1293 compromise a user on its own. Ultimately, of course, we cannot escape the
1294 problem of a first introducer: since most users will run Tor in whatever
1295 configuration the software ships with, the Tor distribution itself will
1296 remain a single point of failure so long as it includes the seed
1297 keys for directory servers, a list of directory servers, or any other means
1298 to learn which nodes are on the network. But omitting this information
1299 from the Tor distribution would only delegate the trust problem to each
1300 individual user. %, most of whom are presumably less informed about how to make
1301 %trust decisions than the Tor developers.
1302 A well publicized, widely available, authoritatively and independently
1303 endorsed and signed list of initial directory servers and their keys
1304 is a possible solution. But, setting that up properly is itself a large
1305 bootstrapping task.
1307 %Network discovery, sybil, node admission, scaling. It seems that the code
1308 %will ship with something and that's our trust root. We could try to get
1309 %people to build a web of trust, but no. Where we go from here depends
1310 %on what threats we have in mind. Really decentralized if your threat is
1311 %RIAA; less so if threat is to application data or individuals or...
1313 \subsection{Measuring performance and capacity}
1314 \label{subsec:performance}
1316 One of the paradoxes with engineering an anonymity network is that we'd like
1317 to learn as much as we can about how traffic flows so we can improve the
1318 network, but we want to prevent others from learning how traffic flows in
1319 order to trace users' connections through the network. Furthermore, many
1320 mechanisms that help Tor run efficiently
1321 require measurements about the network.
1323 Currently, nodes try to deduce their own available bandwidth (based on how
1324 much traffic they have been able to transfer recently) and include this
1325 information in the descriptors they upload to the directory. Clients
1326 choose servers weighted by their bandwidth, neglecting really slow
1327 servers and capping the influence of really fast ones.
1329 This is, of course, eminently cheatable. A malicious node can get a
1330 disproportionate amount of traffic simply by claiming to have more bandwidth
1331 than it does. But better mechanisms have their problems. If bandwidth data
1332 is to be measured rather than self-reported, it is usually possible for
1333 nodes to selectively provide better service for the measuring party, or
1334 sabotage the measured value of other nodes. Complex solutions for
1335 mix networks have been proposed, but do not address the issues
1336 completely~\cite{mix-acc,casc-rep}.
1338 Even with no cheating, network measurement is complex. It is common
1339 for views of a node's latency and/or bandwidth to vary wildly between
1340 observers. Further, it is unclear whether total bandwidth is really
1341 the right measure; perhaps clients should instead be considering nodes
1342 based on unused bandwidth or observed throughput.
1343 %How to measure performance without letting people selectively deny service
1344 %by distinguishing pings. Heck, just how to measure performance at all. In
1345 %practice people have funny firewalls that don't match up to their exit
1346 %policies and Tor doesn't deal.
1348 %Network investigation: Is all this bandwidth publishing thing a good idea?
1349 %How can we collect stats better? Note weasel's smokeping, at
1350 %http://seppia.noreply.org/cgi-bin/smokeping.cgi?target=Tor
1351 %which probably gives george and steven enough info to break tor?
1353 And even if we can collect and use this network information effectively,
1354 we must ensure
1355 that it is not more useful to attackers than to us. While it
1356 seems plausible that bandwidth data alone is not enough to reveal
1357 sender-recipient connections under most circumstances, it could certainly
1358 reveal the path taken by large traffic flows under low-usage circumstances.
1360 \subsection{Non-clique topologies}
1362 Tor's comparatively weak threat model may allow easier scaling than
1363 other
1364 designs. High-latency mix networks need to avoid partitioning attacks, where
1365 network splits let an attacker distinguish users in different partitions.
1366 Since Tor assumes the adversary cannot cheaply observe nodes at will,
1367 a network split may not decrease protection much.
1368 Thus, one option when the scale of a Tor network
1369 exceeds some size is simply to split it. Nodes could be allocated into
1370 partitions while hampering collaborating hostile nodes from taking over
1371 a single partition~\cite{casc-rep}.
1372 Clients could switch between
1373 networks, even on a per-circuit basis.
1374 %Future analysis may uncover
1375 %other dangers beyond those affecting mix-nets.
1377 More conservatively, we can try to scale a single Tor network. Likely
1378 problems with adding more servers to a single Tor network include an
1379 explosion in the number of sockets needed on each server as more servers
1380 join, and increased coordination overhead to keep each users' view of
1381 the network consistent. As we grow, we will also have more instances of
1382 servers that can't reach each other simply due to Internet topology or
1383 routing problems.
1385 %include restricting the number of sockets and the amount of bandwidth
1386 %used by each node. The number of sockets is determined by the network's
1387 %connectivity and the number of users, while bandwidth capacity is determined
1388 %by the total bandwidth of nodes on the network. The simplest solution to
1389 %bandwidth capacity is to add more nodes, since adding a Tor node of any
1390 %feasible bandwidth will increase the traffic capacity of the network. So as
1391 %a first step to scaling, we should focus on making the network tolerate more
1392 %nodes, by reducing the interconnectivity of the nodes; later we can reduce
1393 %overhead associated with directories, discovery, and so on.
1395 We can address these points by reducing the network's connectivity.
1396 Danezis~\cite{danezis:pet2003} considers
1397 the anonymity implications of restricting routes on mix networks and
1398 recommends an approach based on expander graphs (where any subgraph is likely
1399 to have many neighbors). It is not immediately clear that this approach will
1400 extend to Tor, which has a weaker threat model but higher performance
1401 requirements: instead of analyzing the
1402 probability of an attacker's viewing whole paths, we will need to examine the
1403 attacker's likelihood of compromising the endpoints.
1405 Tor may not need an expander graph per se: it
1406 may be enough to have a single central subnet that is highly connected, like
1407 an Internet backbone. % As an
1408 %example, assume fifty nodes of relatively high traffic capacity. This
1409 %\emph{center} forms a clique. Assume each center node can
1410 %handle 200 connections to other nodes (including the other ones in the
1411 %center). Assume every noncenter node connects to three nodes in the
1412 %center and anyone out of the center that they want to. Then the
1413 %network easily scales to c. 2500 nodes with commensurate increase in
1414 %bandwidth.
1415 There are many open questions: how to distribute connectivity information
1416 (presumably nodes will learn about the central nodes
1417 when they download Tor), whether central nodes
1418 will need to function as a `backbone', and so on. As above,
1419 this could reduce the amount of anonymity available from a mix-net,
1420 but for a low-latency network where anonymity derives largely from
1421 the edges, it may be feasible.
1423 %In a sense, Tor already has a non-clique topology.
1424 %Individuals can set up and run Tor nodes without informing the
1425 %directory servers. This allows groups to run a
1426 %local Tor network of private nodes that connects to the public Tor
1427 %network. This network is hidden behind the Tor network, and its
1428 %only visible connection to Tor is at those points where it connects.
1429 %As far as the public network, or anyone observing it, is concerned,
1430 %they are running clients.
1432 \section{The Future}
1433 \label{sec:conclusion}
1435 Tor is the largest and most diverse low-latency anonymity network
1436 available, but we are still in the beginning stages of deployment. Several
1437 major questions remain.
1439 First, will our volunteer-based approach to sustainability work in the
1440 long term? As we add more features and destabilize the network, the
1441 developers spend a lot of time keeping the server operators happy. Even
1442 though Tor is free software, the network would likely stagnate and die at
1443 this stage if the developers stopped actively working on it. We may get
1444 an unexpected boon from the fact that we're a general-purpose overlay
1445 network: as Tor grows more popular, other groups who need an overlay
1446 network on the Internet are starting to adapt Tor to their needs.
1448 Second, Tor is only one of many components that preserve privacy online.
1449 For applications where it is desirable to
1450 keep identifying information out of application traffic, someone must build
1451 more and better protocol-aware proxies that are usable by ordinary people.
1453 Third, we need to gain a reputation for social good, and learn how to
1454 coexist with the variety of Internet services and their established
1455 authentication mechanisms. We can't just keep escalating the blacklist
1456 standoff forever.
1458 Fourth, the current Tor
1459 architecture does not scale even to handle current user demand. We must
1460 find designs and incentives to let some clients relay traffic too, without
1461 sacrificing too much anonymity.
1463 These are difficult and open questions. Yet choosing not to solve them
1464 means leaving most users to a less secure network or no anonymizing
1465 network at all.
1467 \bibliographystyle{plain} \bibliography{tor-design}
1469 \clearpage
1470 \appendix
1472 \begin{figure}[t]
1473 %\unitlength=1in
1474 \centering
1475 %\begin{picture}(6.0,2.0)
1476 %\put(3,1){\makebox(0,0)[c]{\epsfig{figure=graphnodes,width=6in}}}
1477 %\end{picture}
1478 \mbox{\epsfig{figure=graphnodes,width=5in}}
1479 \caption{Number of Tor nodes over time, through January 2005. Lowest
1480 line is number of exit
1481 nodes that allow connections to port 80. Middle line is total number of
1482 verified (registered) Tor nodes. The line above that represents nodes
1483 that are running but not yet registered.}
1484 \label{fig:graphnodes}
1485 \end{figure}
1487 \begin{figure}[t]
1488 \centering
1489 \mbox{\epsfig{figure=graphtraffic,width=5in}}
1490 \caption{The sum of traffic reported by each node over time, through
1491 January 2005. The bottom
1492 pair show average throughput, and the top pair represent the largest 15
1493 minute burst in each 4 hour period.}
1494 \label{fig:graphtraffic}
1495 \end{figure}
1497 \end{document}
1499 %Making use of nodes with little bandwidth, or high latency/packet loss.
1501 %Running Tor nodes behind NATs, behind great-firewalls-of-China, etc.
1502 %Restricted routes. How to propagate to everybody the topology? BGP
1503 %style doesn't work because we don't want just *one* path. Point to
1504 %Geoff's stuff.