add a hidden-services section
[tor.git] / doc / design-paper / challenges.tex
blob4dea199f5e237a65c25e067244ac824aa39222b8
1 \documentclass{llncs}
3 \usepackage{url}
4 \usepackage{amsmath}
5 \usepackage{epsfig}
7 \newenvironment{tightlist}{\begin{list}{$\bullet$}{
8 \setlength{\itemsep}{0mm}
9 \setlength{\parsep}{0mm}
10 % \setlength{\labelsep}{0mm}
11 % \setlength{\labelwidth}{0mm}
12 % \setlength{\topsep}{0mm}
13 }}{\end{list}}
15 \begin{document}
17 \title{Challenges in practical low-latency stream anonymity (DRAFT)}
19 \author{Roger Dingledine and Nick Mathewson}
20 \institute{The Free Haven Project\\
21 \email{\{arma,nickm\}@freehaven.net}}
23 \maketitle
24 \pagestyle{empty}
26 \begin{abstract}
27 foo
28 \end{abstract}
30 \section{Introduction}
32 Tor is a low-latency anonymous communication overlay network designed
33 to be practical and usable for protecting TCP streams over the
34 Internet~\cite{tor-design}. We have been operating a publicly deployed
35 Tor network since October 2003 that has grown to over a hundred volunteer
36 nodes and sometimes as much as 80 megabits of average traffic per second.
38 Tor has a weaker threat model than many anonymity designs in the
39 literature, because our foremost goal is to deploy a
40 practical and useful network for interactive (low-latency) communications.
41 Subject to this restriction, we try to
42 provide as much anonymity as we can. In particular, because we
43 support interactive communications without impractically expensive padding,
44 we fall prey to a variety
45 of intra-network~\cite{attack-tor-oak05,flow-correlation04,bar} and
46 end-to-end~\cite{danezis-pet2004,SS03} anonymity-breaking attacks.
48 Tor is secure so long as adversaries are unable to
49 observe connections as they both enter and leave the Tor network.
50 Therefore, Tor's defense lies in having a diverse enough set of servers
51 that most real-world
52 adversaries are unlikely to be in the right places to attack users.
53 Specifically,
54 Tor aims to resist observers and insiders by distributing each transaction
55 over several nodes in the network. This ``distributed trust'' approach
56 means the Tor network can be safely operated and used by a wide variety
57 of mutually distrustful users, providing more sustainability and security
58 than some previous attempts at anonymizing networks.
59 The Tor network has a broad range of users, including ordinary citizens
60 concerned about their privacy, corporations
61 who don't want to reveal information to their competitors, and law
62 enforcement and government intelligence agencies who need
63 to do operations on the Internet without being noticed.
65 Tor research and development has been funded by the U.S. Navy, for use
66 in securing government
67 communications, and also by the Electronic Frontier Foundation, for use
68 in maintaining civil liberties for ordinary citizens online. The Tor
69 protocol is one of the leading choices
70 to be the anonymizing layer in the European Union's PRIME directive to
71 help maintain privacy in Europe. The University of Dresden in Germany
72 has integrated an independent implementation of the Tor protocol into
73 their popular Java Anon Proxy anonymizing client. This wide variety of
74 interests helps maintain both the stability and the security of the
75 network.
77 %awk
78 Tor's principal research strategy, in attempting to deploy a network that is
79 practical, useful, and anonymous, has been to insist, when trade-offs arise
80 between these properties, on remaining useful enough to attract many users,
81 and practical enough to support them. Subject to these
82 constraints, we aim to maximize anonymity. This is not the only possible
83 direction in anonymity research: designs exist that provide more anonymity
84 than Tor at the expense of significantly increased resource requirements, or
85 decreased flexibility in application support (typically because of increased
86 latency). Such research does not typically abandon aspirations towards
87 deployability or utility, but instead tries to maximize deployability and
88 utility subject to a certain degree of inherent anonymity (inherent because
89 usability and practicality affect usage which affects the actual anonymity
90 provided by the network \cite{back01,econymics}). We believe that these
91 approaches can be promising and useful, but that by focusing on deploying a
92 usable system in the wild, Tor helps us experiment with the actual parameters
93 of what makes a system ``practical'' for volunteer operators and ``useful''
94 for home users, and helps illuminate undernoticed issues which any deployed
95 volunteer anonymity network will need to address.
97 While~\cite{tor-design} gives an overall view of the Tor design and goals,
98 this paper describes the policy and technical issues that Tor faces as
99 we continue deployment. Rather than trying to provide complete solutions
100 to every problem here, we lay out the assumptions and constraints
101 that we have observed through deploying Tor in the wild. In doing so, we
102 aim to create a research agenda for others to
103 help in addressing these issues. Section~\ref{sec:what-is-tor} gives an
104 overview of the Tor
105 design and ours goals. Sections~\ref{sec:crossroads-policy}
106 and~\ref{sec:crossroads-design} go on to describe the practical challenges,
107 both policy and technical respectively, that stand in the way of moving
108 from a practical useful network to a practical useful anonymous network.
110 %\section{What Is Tor}
111 \section{Distributed trust: safety in numbers}
112 \label{sec:what-is-tor}
114 Here we give a basic overview of the Tor design and its properties. For
115 details on the design, assumptions, and security arguments, we refer
116 the reader to the Tor design paper~\cite{tor-design}.
118 Tor provides \emph{forward privacy}, so that users can connect to
119 Internet sites without revealing their logical or physical locations
120 to those sites or to observers. It also provides \emph{location-hidden
121 services}, so that critical servers can support authorized users without
122 giving adversaries an effective vector for physical or online attacks.
123 The design provides this protection even when a portion of its own
124 infrastructure is controlled by an adversary.
126 To create a private network pathway with Tor, the user's software (client)
127 incrementally builds a \emph{circuit} of encrypted connections through
128 servers on the network. The circuit is extended one hop at a time, and
129 each server along the way knows only which server gave it data and which
130 server it is giving data to. No individual server ever knows the complete
131 path that a data packet has taken. The client negotiates a separate set
132 of encryption keys for each hop along the circuit to ensure that each
133 hop can't trace these connections as they pass through.
135 Once a circuit has been established, many kinds of data can be exchanged
136 and several different sorts of software applications can be deployed over
137 the Tor network. Because each server sees no more than one hop in the
138 circuit, neither an eavesdropper nor a compromised server can use traffic
139 analysis to link the connection's source and destination. Tor only works
140 for TCP streams and can be used by any application with SOCKS support.
142 For efficiency, the Tor software uses the same circuit for connections
143 that happen within the same minute or so. Later requests are given a new
144 circuit, to prevent long-term linkability between different actions by
145 a single user.
147 Tor also makes it possible for users to hide their locations while
148 offering various kinds of services, such as web publishing or an instant
149 messaging server. Using Tor ``rendezvous points'', other Tor users can
150 connect to these hidden services, each without knowing the other's network
151 identity.
153 Tor attempts to anonymize the transport layer, not the application layer, so
154 application protocols that include personally identifying information need
155 additional application-level scrubbing proxies, such as
156 Privoxy~\cite{privoxy} for HTTP. Furthermore, Tor does not permit arbitrary
157 IP packets; it only anonymizes TCP and DNS, and only supports connections via
158 SOCKS (see Section~\ref{subsec:tcp-vs-ip}).
160 Tor differs from other deployed systems for traffic analysis resistance
161 in its security and flexibility. Mix networks such as
162 Mixmaster~\cite{mixmaster-spec} or its successor Mixminion~\cite{minion-design}
163 gain the highest degrees of anonymity at the expense of introducing highly
164 variable delays, thus making them unsuitable for applications such as web
165 browsing that require quick response times. Commercial single-hop
166 proxies~\cite{anonymizer} present a single point of failure, where
167 a single compromise can expose all users' traffic, and a single-point
168 eavesdropper can perform traffic analysis on the entire network.
169 Also, their proprietary implementations place any infrastucture that
170 depends on these single-hop solutions at the mercy of their providers'
171 financial health as well as network security.
173 No organization can achieve this security on its own. If a single
174 corporation or government agency were to build a private network to
175 protect its operations, any connections entering or leaving that network
176 would be obviously linkable to the controlling organization. The members
177 and operations of that agency would be easier, not harder, to distinguish.
179 Instead, to protect our networks from traffic analysis, we must
180 collaboratively blend the traffic from many organizations and private
181 citizens, so that an eavesdropper can't tell which users are which,
182 and who is looking for what information. By bringing more users onto
183 the network, all users become more secure~\cite{econymics}.
185 Naturally, organizations will not want to depend on others for their
186 security. If most participating providers are reliable, Tor tolerates
187 some hostile infiltration of the network. For maximum protection,
188 the Tor design includes an enclave approach that lets data be encrypted
189 (and authenticated) end-to-end, so high-sensitivity users can be sure it
190 hasn't been read or modified. This even works for Internet services that
191 don't have built-in encryption and authentication, such as unencrypted
192 HTTP or chat, and it requires no modification of those services to do so.
194 As of January 2005, the Tor network has grown to around a hundred servers
195 on four continents, with a total capacity exceeding 1Gbit/s. Appendix A
196 shows a graph of the number of working servers over time, as well as a
197 graph of the number of bytes being handled by the network over time. At
198 this point the network is sufficiently diverse for further development
199 and testing; but of course we always encourage and welcome new servers
200 to join the network.
202 %Tor doesn't try to provide steg (but see Section~\ref{subsec:china}), or
203 %the other non-goals listed in tor-design.
205 Tor is not the only anonymity system that aims to be practical and useful.
206 Commercial single-hop proxies~\cite{anonymizer}, as well as unsecured
207 open proxies around the Internet~\cite{open-proxies}, can provide good
208 performance and some security against a weaker attacker. Dresden's Java
209 Anon Proxy~\cite{web-mix} provides similar functionality to Tor but only
210 handles web browsing rather than arbitrary TCP\@. Also, JAP's network
211 topology uses cascades (fixed routes through the network); since without
212 end-to-end padding it is just as vulnerable as Tor to end-to-end timing
213 attacks, its dispersal properties are therefore worse than Tor's.
214 %Some peer-to-peer file-sharing overlay networks such as
215 %Freenet~\cite{freenet} and Mute~\cite{mute}
216 Zero-Knowledge Systems' commercial Freedom
217 network~\cite{freedom21-security} was even more flexible than Tor in
218 that it could transport arbitrary IP packets, and it also supported
219 pseudonymous access rather than just anonymous access; but it had
220 a different approach to sustainability (collecting money from users
221 and paying ISPs to run servers), and has shut down due to financial
222 load. Finally, more scalable designs like Tarzan~\cite{tarzan:ccs02} and
223 MorphMix~\cite{morphmix:fc04} have been proposed in the literature, but
224 have not yet been fielded. We direct the interested reader to Section
225 2 of~\cite{tor-design} for a more indepth review of related work.
227 %six-four. crowds. i2p.
230 have a serious discussion of morphmix's assumptions, since they would
231 seem to be the direct competition. in fact tor is a flexible architecture
232 that would encompass morphmix, and they're nearly identical except for
233 path selection and node discovery. and the trust system morphmix has
234 seems overkill (and/or insecure) based on the threat model we've picked.
235 % this para should probably move to the scalability / directory system. -RD
237 \section{Threat model}
238 \label{sec:threat-model}
240 Tor does not attempt to defend against a global observer. Any adversary who
241 can see a user's connection to the Tor network, and who can see the
242 corresponding connection as it exits the Tor network, can use the timing
243 correlation between the two connections to confirm the user's chosen
244 communication partners. Defeating this attack would seem to require
245 introducing a prohibitive degree of traffic padding between the user and the
246 network, or introducing an unacceptable degree of latency (but see
247 Section \ref{subsec:mid-latency}).
248 And, it is not clear that padding works at all if we assume a
249 minimally active adversary that merely modifies the timing of packets
250 to or from the user. Thus, Tor only attempts to defend against
251 external observers who cannot observe both sides of a user's
252 connection.
254 Against internal attackers, who sign up Tor servers, the situation is more
255 complicated. In the simplest case, if an adversary has compromised $c$ of
256 $n$ servers on the Tor network, then the adversary will be able to compromise
257 a random circuit with probability $\frac{c^2}{n^2}$ (since the circuit
258 initiator chooses hops randomly). But there are
259 complicating factors:
260 \begin{tightlist}
261 \item If the user continues to build random circuits over time, an adversary
262 is pretty certain to see a statistical sample of the user's traffic, and
263 thereby can build an increasingly accurate profile of her behavior. (See
264 \ref{subsec:helper-nodes} for possible solutions.)
265 \item If an adversary controls a popular service outside of the Tor network,
266 he can be certain of observing all connections to that service; he
267 therefore will trace connections to that service with probability
268 $\frac{c}{n}$.
269 \item Users do not in fact choose servers with uniform probability; they
270 favor servers with high bandwidth, and exit servers that permit connections
271 to their favorite services.
272 \end{tightlist}
274 %discuss $\frac{c^2}{n^2}$, except how in practice the chance of owning
275 %the last hop is not $c/n$ since that doesn't take the destination (website)
276 %into account. so in cases where the adversary does not also control the
277 %final destination we're in good shape, but if he *does* then we'd be better
278 %off with a system that lets each hop choose a path.
280 %Isn't it more accurate to say ``If the adversary _always_ controls the final
281 % dest, we would be just as well off with such as system.'' ? If not, why
282 % not? -nm
283 % Sure. In fact, better off, since they seem to scale more easily. -rd
285 In practice Tor's threat model is based entirely on the goal of
286 dispersal and diversity. Murdoch and Danezis describe an attack
287 \cite{attack-tor-oak05} that lets an attacker determine the nodes used
288 in a circuit; yet s/he cannot identify the initiator or responder,
289 e.g., client or web server, through this attack. So the endpoints
290 remain secure, which is the goal. On the other hand we can imagine an
291 adversary that could attack or set up observation of all connections
292 to an arbitrary Tor node in only a few minutes. If such an adversary
293 were to exist, s/he could use this probing to remotely identify a node
294 for further attack. Also, the enclave model seems particularly
295 threatened by this attack, since it identifies endpoints when they're
296 also nodes in the Tor network: see Section~\ref{subsec:helper-nodes}
297 for discussion of some ways to address this issue.
299 [*****Suppose an adversary with active access to the responder traffic
300 wants to keep a circuit alive long enough to attack an identified
301 node. Could s/he do this without the overt cooperation of the client
302 proxy? More immediately, someone could identify nodes in this way and
303 if in their jurisdiction, immediately get a subpoena (if they even
304 need one) and tell the node operator(s) that she must retain all the
305 active circuit data she now has at that moment. That \emph{can} be
306 done in real time.********** We should say something about this
307 here or later in the paper -pfs]
309 see \ref{subsec:routing-zones} for discussion of larger
310 adversaries and our dispersal goals.
312 [this section will get written once the rest of the paper is farther along]
314 \section{Crossroads: Policy issues}
315 \label{sec:crossroads-policy}
317 Many of the issues the Tor project needs to address are not just a
318 matter of system design or technology development. In particular, the
319 Tor project's \emph{image} with respect to its users and the rest of
320 the Internet impacts the security it can provide.
322 As an example to motivate this section, some U.S.~Department of Enery
323 penetration testing engineers are tasked with compromising DoE computers
324 from the outside. They only have a limited number of ISPs from which to
325 launch their attacks, and they found that the defenders were recognizing
326 attacks because they came from the same IP space. These engineers wanted
327 to use Tor to hide their tracks. First, from a technical standpoint,
328 Tor does not support the variety of IP packets one would like to use in
329 such attacks (see Section~\ref{subsec:tcp-vs-ip}). But aside from this,
330 we also decided that it would probably be poor precedent to encourage
331 such use---even legal use that improves national security---and managed
332 to dissuade them.
334 With this image issue in mind, this section discusses the Tor user base and
335 Tor's interaction with other services on the Internet.
337 \subsection{Image and security}
339 A growing field of papers argue that usability for anonymity systems
340 contributes directly to their security, because how usable the system
341 is impacts the possible anonymity set~\cite{back01,econymics}. Or
342 conversely, an unusable system attracts few users and thus can't provide
343 much anonymity.
345 This phenomenon has a second-order effect: knowing this, users should
346 choose which anonymity system to use based in part on how usable
347 \emph{others} will find it, in order to get the protection of a larger
348 anonymity set. Thus we might replace the adage ``usability is a security
349 parameter''~\cite{back01} with a new one: ``perceived usability is a
350 security parameter.'' From here we can better understand the effects
351 of publicity and advertising on security: the more convincing your
352 advertising, the more likely people will believe you have users, and thus
353 the more users you will attract. Perversely, over-hyped systems (if they
354 are not too broken) may be a better choice than modestly promoted ones,
355 if the hype attracts more users~\cite{usability-network-effect}.
357 So it follows that we should come up with ways to accurately communicate
358 the available security levels to the user, so she can make informed
359 decisions. Dresden's JAP project aims to do this, by including a
360 comforting `anonymity meter' dial in the software's graphical interface,
361 giving the user an impression of the level of protection for her current
362 traffic.
364 However, there's a catch. For users to share the same anonymity set,
365 they need to act like each other. An attacker who can distinguish
366 a given user's traffic from the rest of the traffic will not be
367 distracted by other users on the network. For high-latency systems like
368 Mixminion, where the threat model is based on mixing messages with each
369 other, there's an arms race between end-to-end statistical attacks and
370 counter-strategies~\cite{statistical-disclosure,minion-design,e2e-traffic,trickle02}.
371 But for low-latency systems like Tor, end-to-end \emph{traffic
372 confirmation} attacks~\cite{danezis-pet2004,SS03,defensive-dropping}
373 allow an attacker who watches or controls both ends of a communication
374 to use statistics to correlate packet timing and volume, quickly linking
375 the initiator to her destination. This is why Tor's threat model is
376 based on preventing the adversary from observing both the initiator and
377 the responder.
379 Like Tor, the current JAP implementation does not pad connections
380 (apart from using small fixed-size cells for transport). In fact,
381 its cascade-based network toplogy may be even more vulnerable to these
382 attacks, because the network has fewer endpoints. JAP was born out of
383 the ISDN mix design~\cite{isdn-mixes}, where padding made sense because
384 every user had a fixed bandwidth allocation, but in its current context
385 as a general Internet web anonymizer, adding sufficient padding to JAP
386 would be prohibitively expensive.\footnote{Even if they could find and
387 maintain extra funding to run higher-capacity nodes, our experience with
388 users suggests that many users would not accept the increased per-user
389 bandwidth requirements, leading to an overall much smaller user base. But
390 see Section \ref{subsec:mid-latency}.} Therefore, since under this threat
391 model the number of concurrent users does not seem to have much impact
392 on the anonymity provided, we suggest that JAP's anonymity meter is not
393 correctly communicating security levels to its users.
395 % because more users don't help anonymity much, we need to rely more
396 % on other incentive schemes, both policy-based (see sec x) and
397 % technically enforced (see sec y)
399 On the other hand, while the number of active concurrent users may not
400 matter as much as we'd like, it still helps to have some other users
401 who use the network. We investigate this issue in the next section.
403 \subsection{Reputability}
405 Another factor impacting the network's security is its reputability:
406 the perception of its social value based on its current user base. If I'm
407 the only user who has ever downloaded the software, it might be socially
408 accepted, but I'm not getting much anonymity. Add a thousand animal rights
409 activists, and I'm anonymous, but everyone thinks I'm a bambi lover (or
410 NRA member if you prefer a contrasting example). Add a thousand
411 random citizens (cancer survivors, privacy enthusiasts, and so on)
412 and now I'm harder to profile.
414 The more cancer survivors on Tor, the better for the human rights
415 activists. The more script kiddies, the worse for the normal users. Thus,
416 reputability is an anonymity issue for two reasons. First, it impacts
417 the sustainability of the network: a network that's always about to be
418 shut down has difficulty attracting and keeping users, so its anonymity
419 set suffers. Second, a disreputable network attracts the attention of
420 powerful attackers who may not mind revealing the identities of all the
421 users to uncover a few bad ones.
423 While people therefore have an incentive for the network to be used for
424 ``more reputable'' activities than their own, there are still tradeoffs
425 involved when it comes to anonymity. To follow the above example, a
426 network used entirely by cancer survivors might welcome some animal rights
427 activists onto the network, though of course they'd prefer a wider
428 variety of users.
430 Reputability becomes even more tricky in the case of privacy networks,
431 since the good uses of the network (such as publishing by journalists in
432 dangerous countries) are typically kept private, whereas network abuses
433 or other problems tend to be more widely publicized.
435 The impact of public perception on security is especially important
436 during the bootstrapping phase of the network, where the first few
437 widely publicized uses of the network can dictate the types of users it
438 attracts next.
440 %% "outside of academia, jap has just lost, permanently". (That is,
441 %% even though the crime detection issues are resolved and are unlikely
442 %% to go down the same way again, public perception has not been kind.)
444 \subsection{Sustainability and incentives}
445 One of the (arguably) unsolved problems in low-latency anonymity designs is
446 how to keep the servers running. Zero-Knowledge Systems's Freedom network
447 depended on paying third parties to run its servers; the JAP project's
448 bandwidth is dependent on grants from ???? to pay for its bandwidth and
449 administrative expenses. In Tor, bandwidth and administrative costs are
450 distributed across the volunteers who run Tor nodes, so at least we have
451 reason to think that the Tor network could survive without continued research
452 funding.\footnote{It also helps that Tor is implemented with free and open
453 source software that can be maintained by anybody with the ability and
454 inclination.} But why are these volunteers running nodes, and what can we
455 do to encourage more volunteers to do so?
457 We have not surveyed Tor operators to learn why they are running ORs, but
458 from the information they have provided, it seems that many of them run Tor
459 nodes for reasons of personal interest in privacy issues. It is possible
460 that others are running Tor for anonymity reasons, but of course they are
461 hardly likely to tell us if they are.
463 Significantly, Tor's threat model changes the anonymity incentives for running
464 a server. In a high-latency mix network, users can receive additional
465 anonymity by running their own server, since doing so obscures when they are
466 injecting messages into the network. But in Tor, anybody observing a Tor
467 server can tell when the server is generating traffic that corresponds to
468 none of its incoming traffic, and therefore originating traffic itself.
469 Still, anonymity and privacy incentives do remain for server operators:
470 \begin{tightlist}
471 \item Against a hostile website, running a Tor exit node can provide a degree
472 of ``deniaibility'' for traffic that originates at that exit node. For
473 example, it is likely in practise that HTTP requests from a Tor server's IP
474 will be assumed to have left the Tor network.
475 \item Local Tor entry and exit servers allow users on a network to run in an
476 `enclave' configuration. [XXXX say more]
477 \end{tightlist}
479 First, we try to make the costs of running a Tor server easily minimized.
480 Since Tor is run by volunteers, the most crucial software usability issue is
481 usability by operators: when an operator leaves, the network becomes less
482 usable by everybody. To keep operators pleased, we must try to keep Tor's
483 resource and administrative demands as low as possible. [XXXX say mroe]
485 Because of ISP billing structures, many Tor operators have underused capacity
486 that they are willing to donate to the network, at no additional monetary
487 cost to them. Features to limit bandwidth have been essential to adoption.
488 Also useful has been a ``hibernation'' feature that allows a server that
489 wants to provide high bandwidth, but no more than a certain amount in a
490 giving billing cycle, to become dormant once its bandwidth is exhausted, and
491 to reawaken at a random offset into the next billing cycle. This feature has
492 interesting policy implications, however; see
493 section~\ref{subsec:bandwidth-and-usability} below.
495 [XXXX say more. Why else would you run a server? What else can we do/do we
496 already do to make running a server more attractive?]
498 \subsection{Bandwidth and usability}
499 \label{subsec:bandwidth-and-usability}
500 Once users have configured their applications to work with Tor, the largest
501 remaining usability issue is bandwidth. When websites ``feel slow,'' users
502 begin to suffer.
504 Clients currently try to build their connections through servers that they
505 guess will have enough bandwidth. But even if capacity is allocated
506 optimally, it seems unlikely that the current network architecture will have
507 enough capacity to provide every user with as much bandwidth as she would
508 receive if she weren't using Tor, unless far more servers join the network
509 (see above).
511 Limited capacity does not destroy the network, however. Instead, usage tends
512 towards an equilibrium: when performance suffers, users who value performance
513 over anonymity tend to leave the system, thus freeing capacity until the
514 remaining users on the network are exactly those willing to use that capacity
515 there is.
517 XXXX hibernation vs rate-limiting: do we want diversity or throughput? i
518 think we're shifting back to wanting diversity.
520 \subsection{Tor and file-sharing}
521 One potentially problematical area with deploying Tor has been our response
522 to file-sharing applications. These applications make up an enormous
523 fraction of the traffic on the Internet today, and provide two challenges to
524 any anonymizing network: their intensive bandwidth requirement, and the
525 degree to which they are associated (correctly or not) with copyright
526 violation.
528 As noted above, high-bandwidth protocols can make the network unresponsive,
529 but tend to be somewhat self-correcting. Issues of copyright violation,
530 however, are more interesting. Typical exit node operators want to help
531 people achieve privacy and anonymous speech, not to help people (say) host
532 Vin Diesel movies for illegal download; and typical ISPs would rather not
533 deal with customers who incur them the overhead of getting menacing letters
534 from the MPAA. While it is quite likely that the operators are doing nothing
535 illegal, many ISPs have policies of dropping users who get repeated legal
536 threats regardless of the merits of those threats, and many operators would
537 prefer to avoid receiving legal threats even if those threats have little
538 merit. So when the letters arrive, operators are likely to face
539 pressure to block filesharing applications entirely, in order to avoid the
540 hassle.
542 But blocking filesharing would not necessarily be easy; most popular
543 protocols have evolved to run on a variety of non-standard ports in order to
544 get around other port-based bans. Thus, exit node operators who wanted to
545 block filesharing would have to find some way to integrate Tor with a
546 protocol-aware exit filter. This could be a technically expensive
547 undertaking, and one with poor prospects: it is unlikely that Tor exit nodes
548 would succeed where so many institutional firewalls have failed. Another
549 possibility for sensitive operators is to run a very restrictive server that
550 only permits exit connections to a very restricted range of ports which are
551 not frequently associated with file sharing. There are increasingly few such
552 ports.
554 For the moment, it seems that Tor's bandwidth issues have rendered it
555 unattractive for bulk file-sharing traffic; this may continue to be so in the
556 future. Nevertheless, Tor will likely remain attractive for limited use in
557 filesharing protocols that have separate control and data channels.
559 [xxxx We should say more -- but what? That we'll see a similar
560 equilibriating effect as with bandwidth, where sensitive ops switch to
561 middleman, and we become less useful for filesharing, so the filesharing
562 people back off, so we get more ops since there's less filesharing, so the
563 filesharers come back, etc.]
565 in practice, plausible deniability is hypothetical and doesn't seem very
566 convincing. if ISPs find the activity antisocial, they don't care *why*
567 your computer is doing that behavior.
569 \subsection{Tor and blacklists}
571 Takedowns and efnet abuse and wikipedia complaints and irc
572 networks.
574 It was long expected that, alongside Tor's legitimate users, it would also
575 attract troublemakers who exploited Tor in order to abuse services on the
576 Internet. Our initial answer to this situation was to use ``exit policies''
577 to allow individual Tor servers to block access to specific IP/port ranges.
578 This approach was meant to make operators more willing to run Tor by allowing
579 them to prevent their servers from being used for abusing particular
580 services. For example, all Tor servers currently block SMTP (port 25), in
581 order to avoid being used to send spam.
583 This approach is useful, but is insufficient for two reasons. First, since
584 it is not possible to force all ORs to block access to any given service,
585 many of those services try to block Tor instead. More broadly, while being
586 blockable is important to being good netizens, we would like to encourage
587 services to allow anonymous access; services should not need to decide
588 between blocking legitimate anonymous use and allowing unlimited abuse.
590 This is potentially a bigger problem than it may appear.
591 On the one hand, if people want to refuse connections from you on
592 their servers it would seem that they should be allowed to. But, a
593 possible major problem with the blocking of Tor is that it's not just
594 the decision of the individual server administrator whose deciding if
595 he wants to post to Wikipedia from his Tor node address or allow
596 people to read Wikipedia anonymously through his Tor node. (Wikipedia
597 has blocked all posting from all Tor nodes based in IP address.) If e.g.,
598 s/he comes through a campus or corporate NAT, then the decision must
599 be to have the entire population behind it able to have a Tor exit
600 node or to have write access to Wikipedia. This is a loss for both of us (Tor
601 and Wikipedia). We don't want to compete for (or divvy up) the NAT
602 protected entities of the world.
604 (A related problem is that many IP blacklists are not terribly fine-grained.
605 No current IP blacklist, for example, allow a service provider to blacklist
606 only those Tor servers that allow access to a specific IP or port, even
607 though this information is readily available. One IP blacklist even bans
608 every class C network that contains a Tor server, and recommends banning SMTP
609 from these networks even though Tor does not allow SMTP at all.)
610 [****Since this is stupid and we oppose it, shouldn't we name names here -pfs]
613 Problems of abuse occur mainly with services such as IRC networks and
614 Wikipedia, which rely on IP blocking to ban abusive users. While at first
615 blush this practice might seem to depend on the anachronistic assumption that
616 each IP is an identifier for a single user, it is actually more reasonable in
617 practice: it assumes that non-proxy IPs are a costly resource, and that an
618 abuser can not change IPs at will. By blocking IPs which are used by Tor
619 servers, open proxies, and service abusers, these systems hope to make
620 ongoing abuse difficult. Although the system is imperfect, it works
621 tolerably well for them in practice.
623 But of course, we would prefer that legitimate anonymous users be able to
624 access abuse-prone services. One conceivable approach would be to require
625 would-be IRC users, for instance, to register accounts if they wanted to
626 access the IRC network from Tor. But in practise, this would not
627 significantly impede abuse if creating new accounts were easily automatable;
628 % XXX captcha
629 this is why services use IP blocking. In order to deter abuse, pseudonymous
630 identities need to impose a significant switching cost in resources or human
631 time.
633 One approach, similar to that taken by Freedom, would be to bootstrap some
634 non-anonymous costly identification mechanism to allow access to a
635 blind-signature pseudonym protocol. This would effectively create costly
636 pseudonyms, which services could require in order to allow anonymous access.
637 This approach has difficulties in practise, however:
638 \begin{tightlist}
639 \item Unlike Freedom, Tor is not a commercial service. Therefore, it would
640 be a shame to require payment in order to make Tor useful, or to make
641 non-paying users second-class citizens.
642 \item It is hard to think of an underlying resource that would actually work.
643 We could use IP addresses, but that's the problem, isn't it?
644 \item Managing single sign-on services is not considered a well-solved
645 problem in practice. If Microsoft can't get universal acceptance for
646 Passport, why do we think that a Tor-specific solution would do any good?
647 \item Even if we came up with a perfect authentication system for our needs,
648 there's no guarantee that any service would actually start using it. It
649 would require a nonzero effort for them to support it, and it might just
650 be less hassle for them to block tor anyway.
651 \end{tightlist}
653 The use of squishy IP-based ``authentication'' and ``authorization''
654 has not broken down even to the level that SSNs used for these
655 purposes have in commercial and public record contexts. Externalities
656 and misplaced incentives cause a continued focus on fighting identity
657 theft by protecting SSNs rather than developing better authentication
658 and incentive schemes \cite{price-privacy}. Similarly we can expect a
659 continued use of identification by IP number as long as there is no
660 workable alternative.
662 %Fortunately, our modular design separates
663 %routing from node discovery; so we could implement Morphmix in Tor just
664 %by implementing the Morphmix-specific node discovery and path selection
665 %pieces.
667 \section{Crossroads: Scaling and Design choices}
668 \label{sec:crossroads-design}
670 \subsection{Transporting the stream vs transporting the packets}
671 \label{subsec:stream-vs-packet}
672 \label{subsec:tcp-vs-ip}
674 We periodically run into ex ZKS employees who tell us that the process of
675 anonymizing IPs should ``obviously'' be done at the IP layer. Here are
676 the issues that need to be resolved before we'll be ready to switch Tor
677 over to arbitrary IP traffic.
679 \begin{enumerate}
680 \setlength{\itemsep}{0mm}
681 \setlength{\parsep}{0mm}
682 \item \emph{IP packets reveal OS characteristics.} We still need to do
683 IP-level packet normalization, to stop things like IP fingerprinting
684 attacks. There likely exist libraries that can help with this.
685 \item \emph{Application-level streams still need scrubbing.} We still need
686 Tor to be easy to integrate with user-level application-specific proxies
687 such as Privoxy. So it's not just a matter of capturing packets and
688 anonymizing them at the IP layer.
689 \item \emph{Certain protocols will still leak information.} For example,
690 DNS requests destined for my local DNS servers need to be rewritten
691 to be delivered to some other unlinkable DNS server. This requires
692 understanding the protocols we are transporting.
693 \item \emph{The crypto is unspecified.} First we need a block-level encryption
694 approach that can provide security despite
695 packet loss and out-of-order delivery. Freedom allegedly had one, but it was
696 never publicly specified. %, and we believe it's likely vulnerable to tagging
697 %attacks \cite{tor-design}.
698 Also, TLS over UDP is not implemented or even
699 specified, though some early work has begun on that~\cite{dtls}.
700 \item \emph{We'll still need to tune network parameters}. Since the above
701 encryption system will likely need sequence numbers (and maybe more) to do
702 replay detection, handle duplicate frames, etc, we will be reimplementing
703 some subset of TCP anyway.
704 \item \emph{Exit policies for arbitrary IP packets mean building a secure
705 IDS.} Our server operators tell us that exit policies are one of
706 the main reasons they're willing to run Tor.
707 Adding an Intrusion Detection System to handle exit policies would
708 increase the security complexity of Tor, and would likely not work anyway,
709 as evidenced by the entire field of IDS and counter-IDS papers. Many
710 potential abuse issues are resolved by the fact that Tor only transports
711 valid TCP streams (as opposed to arbitrary IP including malformed packets
712 and IP floods), so exit policies become even \emph{more} important as
713 we become able to transport IP packets. We also need a way to compactly
714 characterize the exit policies and let clients parse them to decide
715 which nodes will allow which packets to exit.
716 \item \emph{The Tor-internal name spaces would need to be redesigned.} We
717 support hidden service {\tt{.onion}} addresses, and other special addresses
718 like {\tt{.exit}} (see Section~\ref{subsec:}), by intercepting the addresses
719 when they are passed to the Tor client.
720 \end{enumerate}
722 This list is discouragingly long right now, but we recognize that it
723 would be good to investigate each of these items in further depth and to
724 understand which are actual roadblocks and which are easier to resolve
725 than we think. We certainly wouldn't mind if Tor one day is able to
726 transport a greater variety of protocols.
728 \subsection{Mid-latency}
729 \label{subsec:mid-latency}
731 Though Tor has always been designed to be practical and usable first
732 with as much anonymity as can be built in subject to those goals, we
733 have contemplated that users might need resistance to at least simple
734 traffic confirmation attacks. Higher-latency mix-networks resist these
735 attacks by introducing variability into message arrival times in order to
736 suppress timing correlation. Thus, it seems worthwhile to consider the
737 whether we can improving Tor's anonymity by introducing batching and delaying
738 strategies to the Tor messages to prevent observers from linking incoming and
739 outgoing traffic.
741 Before we consider the engineering issues involved in the approach, of
742 course, we first need to study whether it can genuinely make users more
743 anonymous. Research on end-to-end traffic analysis on higher-latency mix
744 networks~\cite{e2e-traffic} indicates that as timing variance decreases,
745 timing correlation attacks require increasingly less data; it might be the
746 case that Tor can't resist timing attacks for longer than a few minutes
747 without increasing message delays to an unusable degree. Conversely, if Tor
748 can remain usable and slow timing attacks by even a matter of hours, this
749 would represent a significant improvement in practical anonymity: protecting
750 short-duration, once-off activities against a global observer is better than
751 protecting no activities at all. In order to answer this question, we might
752 try to adapt the techniques of~\cite{e2e-traffic} to a lower-latency mix
753 network, where instead of sending uncorrelated messages, users send batches
754 of cells in temporally clustered connections.
756 Once the anonymity questions are answered, we need to consider usability. If
757 the latency could be kept to two or three times its current overhead, this
758 might be acceptable to most Tor users. However, it might also destroy much of
759 the user base, and it is difficult to know in advance. Note also that in
760 practice, as the network grows to incorporate more DSL and cable-modem nodes,
761 and more nodes in various continents, this alone will \emph{already} cause
762 many-second delays for some transactions. Reducing this latency will be
763 hard, so perhaps it's worth considering whether accepting this higher latency
764 can improve the anonymity we provide. Also, it could be possible to
765 run a mid-latency option over the Tor network for those
766 users either willing to experiment or in need of more
767 anonymity. This would allow us to experiment with both
768 the anonymity provided and the interest on the part of users.
770 Adding a mid-latency option should not require significant fundamental
771 change to the Tor client or server design; circuits could be labeled as
772 low- or mid- latency as they are constructed. Low-latency traffic
773 would be processed as now, while cells on on circuits that are mid-latency
774 would be sent in uniform-size chunks at synchronized intervals. (Traffic
775 already moves through the Tor network in fixed-sized cells; this would
776 increase the granularity.) If servers forward these chunks in roughly
777 synchronous fashion, it will increase the similarity of data stream timing
778 signatures. By experimenting with the granularity of data chunks and
779 of synchronization we can attempt once again to optimize for both
780 usability and anonymity. Unlike in \cite{sync-batching}, it may be
781 impractical to synchronize on network batches by dropping chunks from
782 a batch that arrive late at a given node---unless Tor moves away from
783 stream processing to a more loss-tolerant paradigm (cf.\
784 Section~\ref{subsec:tcp-vs-ip}). Instead, batch timing would be obscured by
785 synchronizing batches at the link level, and there would
786 be no direct attempt to synchronize all batches
787 entering the Tor network at the same time.
788 %Alternatively, if end-to-end traffic confirmation is the
789 %concern, there is little point in mixing.
790 % Why not?? -NM
791 It might also be feasible to
792 pad chunks to uniform size as is done now for cells; if this is link
793 padding rather than end-to-end, then it will take less overhead,
794 especially in bursty environments.
795 % This is another way in which it
796 %would be fairly practical to set up a mid-latency option within the
797 %existing Tor network.
798 Other padding regimens might supplement the
799 mid-latency option; however, we should continue the caution with which
800 we have always approached padding lest the overhead cost us too much
801 performance or too many volunteers.
803 The distinction between traffic confirmation and traffic analysis is
804 not as cut and dried as we might wish. In \cite{hintz-pet02} it was
805 shown that if data volumes of various popular
806 responder destinations are catalogued, it may not be necessary to
807 observe both ends of a stream to confirm a source-destination link.
808 This should be fairly effective without simultaneously observing both
809 ends of the connection. However, it is still essentially confirming
810 suspected communicants where the responder suspects are ``stored'' rather
811 than observed at the same time as the client.
812 Similarly latencies of going through various routes can be
813 catalogued~\cite{back01} to connect endpoints.
814 This is likely to entail high variability and massive storage since
815 % XXX hintz-pet02 just looked at data volumes of the sites. this
816 % doesn't require much variability or storage. I think it works
817 % quite well actually. Also, \cite{kesdogan:pet2002} takes the
818 % attack another level further, to narrow down where you could be
819 % based on an intersection attack on subpages in a website. -RD
821 % I was trying to be terse and simultaneously referring to both the
822 % Hintz stuff and the Back et al. stuff from Info Hiding 01. I've
823 % separated the two and added the references. -PFS
824 routes through the network to each site will be random even if they
825 have relatively unique latency characteristics. So the do
826 not seem an immediate practical threat. Further along similar lines,
827 the same paper suggested a ``clogging attack''. A version of this
828 was demonstrated to be practical in
829 \cite{attack-tor-oak05}. There it was shown that an outside attacker can
830 trace a stream through the Tor network while a stream is still active
831 simply by observing the latency of his own traffic sent through
832 various Tor nodes. These attacks are especially significant since they
833 counter previous results that running one's own onion router protects
834 better than using the network from the outside. The attacks do not
835 show the client address, only the first server within the Tor network,
836 making helper nodes all the more worthy of exploration for enclave
837 protection. Setting up a mid-latency subnet as described above would
838 be another significant step to evaluating resistance to such attacks.
840 The attacks in \cite{attack-tor-oak05} are also dependent on
841 cooperation of the responding application or the ability to modify or
842 monitor the responder stream, in order of decreasing attack
843 effectiveness. So, another way to slow some of these attacks
844 would be to cache responses at exit servers where possible, as it is with
845 DNS lookups and cacheable HTTP responses. Caching would, however,
846 create threats of its own.
847 %To be
848 %useful, such caches would need to be distributed to any likely exit
849 %nodes of recurred requests for the same data.
850 % Even local caches could be useful, I think. -NM
851 Aside from the logistic
852 difficulties and overhead, caches would constitute a
853 record of destinations and data visited by Tor users. While
854 limited to network insiders, given the need for wide distribution
855 they could serve as useful data to an attacker deciding which locations
856 to target for confirmation. A way to counter this distribution
857 threat might be to only cache at certain semitrusted helper nodes.
859 %Does that cacheing discussion belong in low-latency?
861 \subsection{Application support: SOCKS and beyond}
863 Tor supports the SOCKS protocol, which provides a standardized interface for
864 generic TCP proxies. Unfortunately, this is not a complete solution for
865 many applications and platforms:
866 \begin{tightlist}
867 \item Many applications do not support SOCKS. To support such applications,
868 it's necessary to replace the networking system calls with SOCKS-aware
869 versions, or to run a local SOCKS tunnel and convince the applications to
870 connect to localhost. Neither of these tasks is easy for the average user,
871 even with good instructions.
872 \item Even when applications do use SOCKS, they often make DNS requests
873 themselves. (The various versions of the SOCKS protocol include some where
874 the application tells the proxy an IP address, and some where it sends a
875 hostname.) By connecting to the DNS sever directly, the application breaks
876 the user's anonymity and advertises where it is about to connect.
877 \end{tightlist}
879 So in order to actually provide good anonymity, we need to make sure that
880 users have a practical way to use Tor anonymously. Possibilities include
881 writing wrappers for applications to anonymize them automatically; improving
882 the applications' support for SOCKS; writing libraries to help application
883 writers use Tor properly; and implementing a local DNS proxy to reroute DNS
884 requests to Tor so that applications can simply point their DNS resolvers at
885 localhost and continue to use SOCKS for data only.
887 \subsection{Measuring performance and capacity}
888 One of the paradoxes with engineering an anonymity network is that we'd like
889 to learn as much as we can about how traffic flows so we can improve the
890 network, but we want to prevent others from learning how traffic flows in
891 order to trace users' connections through the network. Furthermore, many
892 mechanisms that help Tor run efficiently (such as having clients choose servers
893 based on their capacities) require measurements about the network.
895 Currently, servers record their bandwidth use in 15-minute intervals and
896 include this information in the descriptors they upload to the directory.
897 They also try to deduce their own available bandwidth, on the basis of how
898 much traffic they have been able to transfer recently, and upload this
899 information as well.
901 This is, of course, eminantly cheatable. A malicious server can get a
902 disproportionate amount of traffic simply by claiming to have more bandiwdth
903 than it does. But better mechanisms have their problems. If bandwidth data
904 is to be measured rather than self-reported, it is usually possible for
905 servers to selectively provide better service for the measuring party, or
906 sabotage the measured value of other servers. Complex solutions for
907 mix networks have been proposed, but do not address the issues
908 completely~\cite{mix-acc,casc-rep}.
910 Even without the possibility of cheating, network measurement is
911 non-trivial. It is far from unusual for one observer's view of a server's
912 latency or bandwidth to disagree wildly with another's. Furthermore, it is
913 unclear whether total bandwidth is really the right measure; perhaps clients
914 should be considering servers on the basis of unused bandwidth instead, or
915 perhaps observed throughput.
916 % XXXX say more here?
918 %How to measure performance without letting people selectively deny service
919 %by distinguishing pings. Heck, just how to measure performance at all. In
920 %practice people have funny firewalls that don't match up to their exit
921 %policies and Tor doesn't deal.
923 %Network investigation: Is all this bandwidth publishing thing a good idea?
924 %How can we collect stats better? Note weasel's smokeping, at
925 %http://seppia.noreply.org/cgi-bin/smokeping.cgi?target=Tor
926 %which probably gives george and steven enough info to break tor?
928 Even if we can collect and use this network information effectively, we need
929 to make sure that it is not more useful to attackers than to us. While it
930 seems plausible that bandwidth data alone is not enough to reveal
931 sender-recipient connections under most circumstances, it could certainly
932 reveal the path taken by large traffic flows under low-usage circumstances.
934 \subsection{Running a Tor server, path length, and helper nodes}
936 It has been thought for some time that the best anonymity protection
937 comes from running your own onion router~\cite{or-pet00,tor-design}.
938 (In fact, in Onion Routing's first design, this was the only option
939 possible~\cite{or-ih96}.) The first design also had a fixed path
940 length of five nodes. Middle Onion Routing involved much analysis
941 (mostly unpublished) of route selection algorithms and path length
942 algorithms to combine efficiency with unpredictability in routes.
943 Since, unlike Crowds, nodes in a route cannot all know the ultimate
944 destination of an application connection, it was generally not
945 considered significant if a node could determine via latency that it
946 was second in the route. But if one followed Tor's three node default
947 path length, an enclave-to-enclave communication (in which two of the
948 ORs were at each enclave) would be completely compromised by the
949 middle node. Thus for enclave-to-enclave communication, four is the fewest
950 number of nodes that preserves the $\frac{c^2}{n^2}$ degree of protection
951 in any setting.
953 The Murdoch-Danezis attack, however, shows that simply adding to the
954 path length may not protect usage of an enclave protecting OR\@. A
955 hostile web server can determine all of the nodes in a three node Tor
956 path. The attack only identifies that a node is on the route, not
957 where. For example, if all of the nodes on the route were enclave
958 nodes, the attack would not identify which of the two not directly
959 visible to the attacker was the source. Thus, there remains an
960 element of plausible deniability that is preserved for enclave nodes.
961 However, Tor has always sought to be stronger than plausible
962 deniability. Our assumption is that users of the network are concerned
963 about being identified by an adversary, not with being proven guilty
964 beyond any reasonable doubt. Still it is something, and may be desired
965 in some settings.
967 It is reasonable to think that this attack can be easily extended to
968 longer paths should those be used; nonetheless there may be some
969 advantage to random path length. If the number of nodes is unknown,
970 then the adversary would need to send streams to all the nodes in the
971 network and analyze the resulting latency from them to be reasonably
972 certain that it has not missed the first node in the circuit. Also,
973 the attack does not identify the order of nodes in a route, so the
974 longer the route, the greater the uncertainty about which node might
975 be first. It may be possible to extend the attack to learn the route
976 node order, but it is not clear that this is practically feasible.
978 Another way to reduce the threats to both enclaves and simple Tor
979 clients is to have helper nodes. Helper nodes were introduced
980 in~\cite{wright03} as a suggested means of protecting the identity
981 of the initiator of a communication in various anonymity protocols.
982 The idea is to use a single trusted node as the first one you go to,
983 that way an attacker cannot ever attack the first nodes you connect
984 to and do some form of intersection attack. This will not affect the
985 Danezis-Murdoch attack at all.
987 We have to pick the path length so adversary can't distinguish client from
988 server (how many hops is good?).
990 \subsection{Helper nodes}
991 \label{subsec:helper-nodes}
993 Tor can only provide anonymity against an attacker if that attacker can't
994 monitor the user's entry and exit on the Tor network. But since Tor
995 currently chooses entry and exit points randomly and changes them frequently,
996 a patient attacker who controls a single entry and a single exit is sure to
997 eventually break some circuits of frequent users who consider those servers.
998 (We assume that users are as concerned about statistical profiling as about
999 the anonymity any particular connection. That is, it is almost as bad to
1000 leak the fact that Alice {\it sometimes} talks to Bob as it is to leak the times
1001 when Alice is {\it actually} talking to Bob.)
1004 One solution to this problem is to use ``helper nodes''~\cite{helpers}---to
1005 have each client choose a few fixed servers for critical positions in her
1006 circuits. That is, Alice might choose some server H1 as her preferred
1007 entry, so that unless the attacker happens to control or observe her
1008 connection to H1, her circuits will remain anonymous. If H1 is compromised,
1009 Alice is vunerable as before. But now, at least, she has a chance of
1010 not being profiled.
1012 (Choosing fixed exit nodes is less useful, since the connection from the exit
1013 node to Alice's destination will be seen not only by the exit but by the
1014 destination. Even if Alice chooses a good fixed exit node, she may
1015 nevertheless connect to a hostile website.)
1017 There are still obstacles remaining before helper nodes can be implemented.
1018 For one, the litereature does not describe how to choose helpers from a list
1019 of servers that changes over time. If Alice is forced to choose a new entry
1020 helper every $d$ days, she can expect to choose a compromised server around
1021 every $dc/n$ days. Worse, an attacker with the ability to DoS servers could
1022 force their users to switch helper nodes more frequently.
1024 %Do general DoS attacks have anonymity implications? See e.g. Adam
1025 %Back's IH paper, but I think there's more to be pointed out here. -RD
1026 % Not sure what you want to say here. -NM
1028 %Game theory for helper nodes: if Alice offers a hidden service on a
1029 %server (enclave model), and nobody ever uses helper nodes, then against
1030 %George+Steven's attack she's totally nailed. If only Alice uses a helper
1031 %node, then she's still identified as the source of the data. If everybody
1032 %uses a helper node (including Alice), then the attack identifies the
1033 %helper node and also Alice, and knows which one is which. If everybody
1034 %uses a helper node (but not Alice), then the attacker figures the real
1035 %source was a client that is using Alice as a helper node. [How's my
1036 %logic here?] -RD
1038 % Not sure about the logic. For the attack to work with helper nodes, the
1039 %attacker needs to guess that Alice is running the hidden service, right?
1040 %Otherwise, how can he know to measure her traffic specifically? -NM
1042 %point to routing-zones section re: helper nodes to defend against
1043 %big stuff.
1045 \subsection{Location-hidden services}
1047 While most of the discussions about have been about forward anonymity
1048 with Tor, it also provides support for \emph{rendezvous points}, which
1049 let users provide TCP services to other Tor users without revealing
1050 their location. Since this feature is relatively recent, we describe here
1051 a couple of our early observations from its deployment.
1053 First, our implementation of hidden services seems less hidden than we'd
1054 like, since they are configured on a single client and get used over
1055 and over---particularly because an external adversary can induce them to
1056 produce traffic. They seem the ideal use case for our above discussion
1057 of helper nodes. This insecurity means that they may not be suitable as
1058 a building block for Free Haven~\cite{freehaven-berk} or other anonymous
1059 publishing systems that aim to provide long-term security.
1060 %Also, they're brittle in terms of intersection and observation attacks.
1062 \emph{Hot-swap} hidden services, where more than one location can
1063 provide the service and loss of any one location does not imply a
1064 change in service, would help foil intersection and observation attacks
1065 where an adversary monitors availability of a hidden service and also
1066 monitors whether certain users or servers are online. However, the design
1067 challenges in providing these services without otherwise compromising
1068 the hidden service's anonymity remain an open problem.
1070 In practice, hidden services are used for more than just providing private
1071 access to a web server or IRC server. People are using hidden services
1072 as a poor man's VPN and firewall-buster. Many people want to be able
1073 to connect to the computers in their private network via secure shell,
1074 and rather than playing with dyndns and trying to pierce holes in their
1075 firewall, they run a hidden service on the inside and then rendezvous
1076 with that hidden service externally.
1078 Also, sites like Bloggers Without Borders (www.b19s.org) are advertising
1079 a hidden-service address on their front page. Doing this can provide
1080 increased robustness if they use the dual-IP approach we describe in
1081 tor-design, but in practice they do it firstly to increase visibility
1082 of the tor project and their support for privacy, and secondly to offer
1083 a way for their users, using unmodified software, to get end-to-end
1084 encryption and end-to-end authentication to their website.
1086 \subsection{Trust and discovery}
1088 [arma will edit this and expand/retract it]
1090 The published Tor design adopted a deliberately simplistic design for
1091 authorizing new nodes and informing clients about servers and their status.
1092 In the early Tor designs, all ORs periodically uploaded a signed description
1093 of their locations, keys, and capabilities to each of several well-known {\it
1094 directory servers}. These directory servers constructed a signed summary
1095 of all known ORs (a ``directory''), and a signed statement of which ORs they
1096 believed to be operational at any given time (a ``network status''). Clients
1097 periodically downloaded a directory in order to learn the latest ORs and
1098 keys, and more frequently downloaded a network status to learn which ORs are
1099 likely to be running. ORs also operate as directory caches, in order to
1100 lighten the bandwidth on the authoritative directory servers.
1102 In order to prevent Sybil attacks (wherein an adversary signs up many
1103 purportedly independent servers in order to increase her chances of observing
1104 a stream as it enters and leaves the network), the early Tor directory design
1105 required the operators of the authoritative directory servers to manually
1106 approve new ORs. Unapproved ORs were included in the directory, but clients
1107 did not use them at the start or end of their circuits. In practice,
1108 directory administrators performed little actual verification, and tended to
1109 approve any OR whose operator could compose a coherent email. This procedure
1110 may have prevented trivial automated Sybil attacks, but would do little
1111 against a clever attacker.
1113 There are a number of flaws in this system that need to be addressed as we
1114 move forward. They include:
1115 \begin{tightlist}
1116 \item Each directory server represents an independent point of failure; if
1117 any one were compromised, it could immediately compromise all of its users
1118 by recommending only compromised ORs.
1119 \item The more servers appear join the network, the more unreasonable it
1120 becomes to expect clients to know about them all. Directories
1121 become unfeasibly large, and downloading the list of servers becomes
1122 burdonsome.
1123 \item The validation scheme may do as much harm as it does good. It is not
1124 only incapable of preventing clever attackers from mounting Sybil attacks,
1125 but may deter server operators from joining the network. (For instance, if
1126 they expect the validation process to be difficult, or if they do not share
1127 any languages in common with the directory server operators.)
1128 \end{tightlist}
1130 We could try to move the system in several directions, depending on our
1131 choice of threat model and requirements. If we did not need to increase
1132 network capacity in order to support more users, there would be no reason not
1133 to adopt even stricter validation requirements, and reduce the number of
1134 servers in the network to a trusted minimum. But since we want Tor to work
1135 for as many users as it can, we need XXXXX
1137 In order to address the first two issues, it seems wise to move to a system
1138 including a number of semi-trusted directory servers, no one of which can
1139 compromise a user on its own. Ultimately, of course, we cannot escape the
1140 problem of a first introducer: since most users will run Tor in whatever
1141 configuration the software ships with, the Tor distribution itself will
1142 remain a potential single point of failure so long as it includes the seed
1143 keys for directory servers, a list of directory servers, or any other means
1144 to learn which servers are on the network. But omitting this information
1145 from the Tor distribution would only delegate the trust problem to the
1146 individual users, most of whom are presumably less informed about how to make
1147 trust decisions than the Tor developers.
1149 %Network discovery, sybil, node admission, scaling. It seems that the code
1150 %will ship with something and that's our trust root. We could try to get
1151 %people to build a web of trust, but no. Where we go from here depends
1152 %on what threats we have in mind. Really decentralized if your threat is
1153 %RIAA; less so if threat is to application data or individuals or...
1155 \section{Crossroads: Scaling}
1156 %\label{sec:crossroads-scaling}
1157 %P2P + anonymity issues:
1159 Tor is running today with hundreds of servers and tens of thousands of
1160 users, but it will certainly not scale to millions.
1162 Scaling Tor involves three main challenges. First is safe server
1163 discovery, both bootstrapping -- how a Tor client can robustly find an
1164 initial server list -- and ongoing -- how a Tor client can learn about
1165 a fair sample of honest servers and not let the adversary control his
1166 circuits (see Section x). Second is detecting and handling the speed
1167 and reliability of the variety of servers we must use if we want to
1168 accept many servers (see Section y).
1169 Since the speed and reliability of a circuit is limited by its worst link,
1170 we must learn to track and predict performance. Finally, in order to get
1171 a large set of servers in the first place, we must address incentives
1172 for users to carry traffic for others (see Section incentives).
1174 \subsection{Incentives by Design}
1176 [nick will try to make this section shorter and more to the point.]
1178 [most of the technical incentive schemes in the literature introduce
1179 anonymity issues which we don't understand yet, and we seem to be doing
1180 ok without them]
1182 There are three behaviors we need to encourage for each server: relaying
1183 traffic; providing good throughput and reliability while doing it;
1184 and allowing traffic to exit the network from that server.
1186 We encourage these behaviors through \emph{indirect} incentives, that
1187 is, designing the system and educating users in such a way that users
1188 with certain goals will choose to relay traffic. In practice, the
1189 main incentive for running a Tor server is social benefit: volunteers
1190 altruistically donate their bandwidth and time. We also keep public
1191 rankings of the throughput and reliability of servers, much like
1192 seti@home. We further explain to users that they can get \emph{better
1193 security} by operating a server, because they get plausible deniability
1194 (indeed, they may not need to route their own traffic through Tor at all
1195 -- blending directly with other traffic exiting Tor may be sufficient
1196 protection for them), and because they can use their own Tor server
1197 as entry or exit point and be confident it's not run by the adversary.
1198 Finally, we can improve the usability and feature set of the software:
1199 rate limiting support and easy packaging decrease the hassle of
1200 maintaining a server, and our configurable exit policies allow each
1201 operator to advertise a policy describing the hosts and ports to which
1202 he feels comfortable connecting.
1204 Beyond these, however, there is also a need for \emph{direct} incentives:
1205 providing payment or other resources in return for high-quality service.
1206 Paying actual money is problematic: decentralized e-cash systems are
1207 not yet practical, and a centralized collection system not only reduces
1208 robustness, but also has failed in the past (the history of commercial
1209 anonymizing networks is littered with failed attempts). A more promising
1210 option is to use a tit-for-tat incentive scheme: provide better service
1211 to nodes that have provided good service to you.
1213 Unfortunately, such an approach introduces new anonymity problems.
1214 Does the incentive system enable the adversary to attract more traffic by
1215 performing well? Typically a user who chooses evenly from all options is
1216 most resistant to an adversary targetting him, but that approach prevents
1217 us from handling heterogeneous servers \cite{casc-rep}.
1218 When a server (call him Steve) performs well for Alice, does Steve gain
1219 reputation with the entire system, or just with Alice? If the entire
1220 system, how does Alice tell everybody about her experience in a way that
1221 prevents her from lying about it yet still protects her identity? If
1222 Steve's behavior only affects Alice's behavior, does this allow Steve to
1223 selectively perform only for Alice, and then break her anonymity later
1224 when somebody (presumably Alice) routes through his node?
1226 These are difficult and open questions, yet choosing not to scale means
1227 leaving most users to a less secure network or no anonymizing network
1228 at all. We will start with a simplified approach to the tit-for-tat
1229 incentive scheme based on two rules: (1) each node should measure the
1230 service it receives from adjacent nodes, and provide service relative to
1231 the received service, but (2) when a node is making decisions that affect
1232 its own security (e.g. when building a circuit for its own application
1233 connections), it should choose evenly from a sufficiently large set of
1234 nodes that meet some minimum service threshold. This approach allows us
1235 to discourage bad service without opening Alice up as much to attacks.
1237 %XXX rewrite the above so it sounds less like a grant proposal and
1238 %more like a "if somebody were to try to solve this, maybe this is a
1239 %good first step".
1241 %We should implement the above incentive scheme in the
1242 %deployed Tor network, in conjunction with our plans to add the necessary
1243 %associated scalability mechanisms. We will do experiments (simulated
1244 %and/or real) to determine how much the incentive system improves
1245 %efficiency over baseline, and also to determine how far we are from
1246 %optimal efficiency (what we could get if we ignored the anonymity goals).
1248 \subsection{Peer-to-peer / practical issues}
1250 [leave this section for now, and make sure things here are covered
1251 elsewhere. then remove it.]
1253 Making use of servers with little bandwidth. How to handle hammering by
1254 certain applications.
1256 Handling servers that are far away from the rest of the network, e.g. on
1257 the continents that aren't North America and Europe. High latency,
1258 often high packet loss.
1260 Running Tor servers behind NATs, behind great-firewalls-of-China, etc.
1261 Restricted routes. How to propagate to everybody the topology? BGP
1262 style doesn't work because we don't want just *one* path. Point to
1263 Geoff's stuff.
1265 \subsection{Location diversity and ISP-class adversaries}
1266 \label{subsec:routing-zones}
1268 Anonymity networks have long relied on diversity of node location for
1269 protection against attacks---typically an adversary who can observe a
1270 larger fraction of the network can launch a more effective attack. One
1271 way to achieve dispersal involves growing the network so a given adversary
1272 sees less. Alternately, we can arrange the topology so traffic can enter
1273 or exit at many places (for example, by using a free-route network
1274 like Tor rather than a cascade network like JAP). Lastly, we can use
1275 distributed trust to spread each transaction over multiple jurisdictions.
1276 But how do we decide whether two nodes are in related locations?
1278 Feamster and Dingledine defined a \emph{location diversity} metric
1279 in \cite{feamster:wpes2004}, and began investigating a variant of location
1280 diversity based on the fact that the Internet is divided into thousands of
1281 independently operated networks called {\em autonomous systems} (ASes).
1282 The key insight from their paper is that while we typically think of a
1283 connection as going directly from the Tor client to her first Tor node,
1284 actually it traverses many different ASes on each hop. An adversary at
1285 any of these ASes can monitor or influence traffic. Specifically, given
1286 plausible initiators and recipients and path random path selection,
1287 some ASes in the simulation were able to observe 10\% to 30\% of the
1288 transactions (that is, learn both the origin and the destination) on
1289 the deployed Tor network (33 nodes as of June 2004).
1291 The paper concludes that for best protection against the AS-level
1292 adversary, nodes should be in ASes that have the most links to other ASes:
1293 Tier-1 ISPs such as AT\&T and Abovenet. Further, a given transaction
1294 is safest when it starts or ends in a Tier-1 ISP. Therefore, assuming
1295 initiator and responder are both in the U.S., it actually \emph{hurts}
1296 our location diversity to add far-flung nodes in continents like Asia
1297 or South America.
1299 Many open questions remain. First, it will be an immense engineering
1300 challenge to get an entire BGP routing table to each Tor client, or at
1301 least summarize it sufficiently. Without a local copy, clients won't be
1302 able to safely predict what ASes will be traversed on the various paths
1303 through the Tor network to the final destination. Tarzan~\cite{tarzan:ccs02}
1304 and MorphMix~\cite{morphmix:fc04} suggest that we compare IP prefixes to
1305 determine location diversity; but the above paper showed that in practice
1306 many of the Mixmaster nodes that share a single AS have entirely different
1307 IP prefixes. When the network has scaled to thousands of nodes, does IP
1308 prefix comparison become a more useful approximation?
1310 Second, can take advantage of caching certain content at the exit nodes, to
1311 limit the number of requests that need to leave the network at all.
1312 what about taking advantage of caches like akamai's or googles? what
1313 about treating them as adversaries?
1315 Third, if we follow the paper's recommendations and tailor path selection
1316 to avoid choosing endpoints in similar locations, how much are we hurting
1317 anonymity against larger real-world adversaries who can take advantage
1318 of knowing our algorithm?
1320 Lastly, can we use this knowledge to figure out which gaps in our network
1321 would most improve our robustness to this class of attack, and go recruit
1322 new servers with those ASes in mind?
1324 Tor's security relies in large part on the dispersal properties of its
1325 network. We need to be more aware of the anonymity properties of various
1326 approaches we can make better design decisions in the future.
1328 \subsection{The China problem}
1329 \label{subsec:china}
1331 Citizens in a variety of countries, such as most recently China and
1332 Iran, are periodically blocked from accessing various sites outside
1333 their country. These users try to find any tools available to allow
1334 them to get-around these firewalls. Some anonymity networks, such as
1335 Six-Four~\cite{six-four}, are designed specifically with this goal in
1336 mind; others like the Anonymizer~\cite{anonymizer} are paid by sponsors
1337 such as Voice of America to set up a network to encourage `Internet
1338 freedom'~\cite{voice-of-america-anonymizer}. Even though Tor wasn't
1339 designed with ubiquitous access to the network in mind, thousands of
1340 users across the world are trying to use it for exactly this purpose.
1341 % Academic and NGO organizations, peacefire, \cite{berkman}, etc
1343 Anti-censorship networks hoping to bridge country-level blocks face
1344 a variety of challenges. One of these is that they need to find enough
1345 exit nodes---servers on the `free' side that are willing to relay
1346 arbitrary traffic from users to their final destinations. Anonymizing
1347 networks including Tor are well-suited to this task, since we have
1348 already gathered a set of exit nodes that are willing to tolerate some
1349 political heat.
1351 The other main challenge is to distribute a list of reachable relays
1352 to the users inside the country, and give them software to use them,
1353 without letting the authorities also enumerate this list and block each
1354 relay. Anonymizer solves this by buying lots of seemingly-unrelated IP
1355 addresses (or having them donated), abandoning old addresses as they are
1356 `used up', and telling a few users about the new ones. Distributed
1357 anonymizing networks again have an advantage here, in that we already
1358 have tens of thousands of separate IP addresses whose users might
1359 volunteer to provide this service since they've already installed and use
1360 the software for their own privacy~\cite{koepsell:wpes2004}. Because
1361 the Tor protocol separates routing from network discovery (see Section
1362 \ref{do-we-discuss-this?}), volunteers could configure their Tor clients
1363 to generate server descriptors and send them to a special directory
1364 server that gives them out to dissidents who need to get around blocks.
1366 Of course, this still doesn't prevent the adversary
1367 from enumerating all the volunteer relays and blocking them preemptively.
1368 Perhaps a tiered-trust system could be built where a few individuals are
1369 given relays' locations, and they recommend other individuals by telling them
1370 those addresses, thus providing a built-in incentive to avoid letting the
1371 adversary intercept them. Max-flow trust algorithms~\cite{advogato}
1372 might help to bound the number of IP addresses leaked to the adversary. Groups
1373 like the W3C are looking into using Tor as a component in an overall system to
1374 help address censorship; we wish them luck.
1376 %\cite{infranet}
1378 \subsection{Non-clique topologies}
1380 Tor's comparatively weak model makes it easier to scale than other mix net
1381 designs. High-latency mix networks need to avoid partitioning attacks, where
1382 network splits prevent users of the separate partitions from providing cover
1383 for each other. In Tor, however, we assume that the adversary cannot
1384 cheaply observe nodes at will, so even if the network becomes split, the
1385 users do not necessarily receive much less protection.
1386 Thus, a simple possibility when the scale of a Tor network
1387 exceeds some size is to simply split it. Care could be taken in
1388 allocating which nodes go to which network along the lines of
1389 \cite{casc-rep} to insure that collaborating hostile nodes are not
1390 able to gain any advantage in network splitting that they do not
1391 already have in joining a network.
1393 % Describe these attacks; many people will not have read the paper!
1394 The attacks in \cite{attack-tor-oak05} show that certain types of
1395 brute force attacks are in fact feasible; however they make the
1396 above point stronger not weaker. The attacks do not appear to be
1397 significantly more difficult to mount against a network that is
1398 twice the size. Also, they only identify the Tor nodes used in a
1399 circuit, not the client. Finally note that even if the network is split,
1400 a client does not need to use just one of the two resulting networks.
1401 Alice could use either of them, and it would not be difficult to make
1402 the Tor client able to access several such network on a per circuit
1403 basis. More analysis is needed; we simply note here that splitting
1404 a Tor network is an easy way to achieve moderate scalability and that
1405 it does not necessarily have the same implications as splitting a mixnet.
1407 Alternatively, we can try to scale a single Tor network. Some issues for
1408 scaling include restricting the number of sockets and the amount of bandwidth
1409 used by each server. The number of sockets is determined by the network's
1410 connectivity and the number of users, while bandwidth capacity is determined
1411 by the total bandwidth of servers on the network. The simplest solution to
1412 bandwidth capacity is to add more servers, since adding a tor node of any
1413 feasible bandwidth will increase the traffic capacity of the network. So as
1414 a first step to scaling, we should focus on making the network tolerate more
1415 servers, by reducing the interconnectivity of the nodes; later we can reduce
1416 overhead associated withy directories, discovery, and so on.
1418 By reducing the connectivity of the network we increase the total number of
1419 nodes that the network can contain. Danezis~\cite{danezis-pet03} considers
1420 the anonymity implications of restricting routes on mix networks, and
1421 recommends an approach based on expander graphs (where any subgraph is likely
1422 to have many neighbors). It is not immediately clear that this approach will
1423 extend to Tor, which has a weaker threat model but higher performance
1424 requirements than the network considered. Instead of analyzing the
1425 probability of an attacker's viewing whole paths, we will need to examine the
1426 attacker's likelihood of compromising the endpoints of a Tor circuit through
1427 a sparse network.
1429 % Nick edits these next 2 grafs.
1431 To make matters simpler, Tor may not need an expander graph per se: it
1432 may be enough to have a single subnet that is highly connected. As an
1433 example, assume fifty nodes of relatively high traffic capacity. This
1434 \emph{center} forms are a clique. Assume each center node can each
1435 handle 200 connections to other nodes (including the other ones in the
1436 center). Assume every noncenter node connects to three nodes in the
1437 center and anyone out of the center that they want to. Then the
1438 network easily scales to c. 2500 nodes with commensurate increase in
1439 bandwidth. There are many open questions: how directory information
1440 is distributed (presumably information about the center nodes could
1441 be given to any new nodes with their codebase), whether center nodes
1442 will need to function as a `backbone', etc. As above the point is
1443 that this would create problems for the expected anonymity for a mixnet,
1444 but for an onion routing network where anonymity derives largely from
1445 the edges, it may be feasible.
1447 Another point is that we already have a non-clique topology.
1448 Individuals can set up and run Tor nodes without informing the
1449 directory servers. This will allow, e.g., dissident groups to run a
1450 local Tor network of such nodes that connects to the public Tor
1451 network. This network is hidden behind the Tor network and its
1452 only visible connection to Tor at those points where it connects.
1453 As far as the public network is concerned or anyone observing it,
1454 they are running clients.
1456 \section{The Future}
1457 \label{sec:conclusion}
1459 we should put random thoughts here until there are enough for a
1460 conclusion.
1462 will our sustainability approach work? we'll see.
1464 Applications that leak data: we can say they're not our problem, but
1465 they're somebody's problem.
1466 The more widely deployed Tor becomes, the more people who need a
1467 deployed overlay network tell us they'd like to use us if only we added
1468 the following more features.
1470 "These are difficult and open questions, yet choosing not to solve them
1471 means leaving most users to a less secure network or no anonymizing
1472 network at all."
1474 \bibliographystyle{plain} \bibliography{tor-design}
1476 \clearpage
1477 \appendix
1479 \begin{figure}[t]
1480 %\unitlength=1in
1481 \centering
1482 %\begin{picture}(6.0,2.0)
1483 %\put(3,1){\makebox(0,0)[c]{\epsfig{figure=graphnodes,width=6in}}}
1484 %\end{picture}
1485 \mbox{\epsfig{figure=graphnodes,width=5in}}
1486 \caption{Number of servers over time. Lowest line is number of exit
1487 nodes that allow connections to port 80. Middle line is total number of
1488 verified (registered) servers. The line above that represents servers
1489 that are not yet registered.}
1490 \label{fig:graphnodes}
1491 \end{figure}
1493 \begin{figure}[t]
1494 \centering
1495 \mbox{\epsfig{figure=graphtraffic,width=5in}}
1496 \caption{The sum of traffic reported by each server over time. The bottom
1497 pair show average throughput, and the top pair represent the largest 15
1498 minute burst in each 4 hour period.}
1499 \label{fig:graphtraffic}
1500 \end{figure}
1502 \end{document}