challenges2.tex 82 KB

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