tor-design.tex 101 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975
  1. \documentclass[times,10pt,twocolumn]{article}
  2. \usepackage{latex8}
  3. \usepackage{times}
  4. \usepackage{url}
  5. \usepackage{graphics}
  6. \usepackage{amsmath}
  7. \pagestyle{empty}
  8. \renewcommand\url{\begingroup \def\UrlLeft{<}\def\UrlRight{>}\urlstyle{tt}\Url}
  9. \newcommand\emailaddr{\begingroup \def\UrlLeft{<}\def\UrlRight{>}\urlstyle{tt}\Url}
  10. % If an URL ends up with '%'s in it, that's because the line *in the .bib/.tex
  11. % file* is too long, so break it there (it doesn't matter if the next line is
  12. % indented with spaces). -DH
  13. %\newif\ifpdf
  14. %\ifx\pdfoutput\undefined
  15. % \pdffalse
  16. %\else
  17. % \pdfoutput=1
  18. % \pdftrue
  19. %\fi
  20. \newenvironment{tightlist}{\begin{list}{$\bullet$}{
  21. \setlength{\itemsep}{0mm}
  22. \setlength{\parsep}{0mm}
  23. % \setlength{\labelsep}{0mm}
  24. % \setlength{\labelwidth}{0mm}
  25. % \setlength{\topsep}{0mm}
  26. }}{\end{list}}
  27. \begin{document}
  28. %% Use dvipdfm instead. --DH
  29. %\ifpdf
  30. % \pdfcompresslevel=9
  31. % \pdfpagewidth=\the\paperwidth
  32. % \pdfpageheight=\the\paperheight
  33. %\fi
  34. \title{Tor: The Second-Generation Onion Router}
  35. % Putting the 'Private' back in 'Virtual Private Network'
  36. %\author{Roger Dingledine \\ The Free Haven Project \\ arma@freehaven.net \and
  37. %Nick Mathewson \\ The Free Haven Project \\ nickm@freehaven.net \and
  38. %Paul Syverson \\ Naval Research Lab \\ syverson@itd.nrl.navy.mil}
  39. \maketitle
  40. \thispagestyle{empty}
  41. \begin{abstract}
  42. We present Tor, a circuit-based low-latency anonymous communication
  43. service. This second-generation Onion Routing system addresses limitations
  44. in the original design. Tor adds perfect forward secrecy, congestion
  45. control, directory servers, integrity checking, variable exit policies,
  46. and a practical design for rendezvous points. Tor works on the real-world
  47. Internet, requires no special privileges or kernel modifications, requires
  48. little synchronization or coordination between nodes, and provides a
  49. reasonable trade-off between anonymity, usability, and efficiency. We
  50. close with a list of open problems in anonymous communication.
  51. \end{abstract}
  52. %\begin{center}
  53. %\textbf{Keywords:} anonymity, peer-to-peer, remailer, nymserver, reply block
  54. %\end{center}
  55. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  56. \Section{Overview}
  57. \label{sec:intro}
  58. Onion Routing is a distributed overlay network designed to anonymize
  59. low-latency TCP-based applications such as web browsing, secure shell,
  60. and instant messaging. Clients choose a path through the network and
  61. build a \emph{virtual circuit}, in which each node (or ``onion router'')
  62. in the path knows its predecessor and successor, but no other nodes in
  63. the circuit. Traffic flowing down the circuit is sent in fixed-size
  64. \emph{cells}, which are unwrapped by a symmetric key at each node
  65. (like the layers of an onion) and relayed downstream. The original
  66. Onion Routing project published several design and analysis papers
  67. \cite{or-ih96,or-jsac98,or-discex00,or-pet00}. While a wide area Onion
  68. Routing network was deployed for some weeks, the only long-running and
  69. publicly accessible implementation was a fragile
  70. proof-of-concept that ran on a single machine. Even this simple deployment
  71. processed connections from over sixty thousand distinct IP addresses from
  72. all over the world at a rate of about fifty thousand per day.
  73. But many critical design and deployment issues were never
  74. resolved, and the design has not been updated in several years. Here
  75. we describe Tor, a protocol for asynchronous, loosely federated onion
  76. routers that provides the following improvements over the old Onion
  77. Routing design:
  78. \begin{tightlist}
  79. \item \textbf{Perfect forward secrecy:} The original Onion Routing
  80. design was vulnerable to a single hostile node recording traffic and
  81. later compromising successive nodes in the circuit and forcing them
  82. to decrypt it. Rather than using a single multiply encrypted data
  83. structure (an \emph{onion}) to lay each circuit,
  84. Tor now uses an incremental or \emph{telescoping} path-building design,
  85. where the initiator negotiates session keys with each successive hop in
  86. the circuit. Once these keys are deleted, subsequently compromised nodes
  87. cannot decrypt old traffic. As a side benefit, onion replay detection
  88. is no longer necessary, and the process of building circuits is more
  89. reliable, since the initiator knows when a hop fails and can then try
  90. extending to a new node.
  91. \item \textbf{Separation of ``protocol cleaning'' from anonymity:}
  92. The original Onion Routing design required a separate ``application
  93. proxy'' for each supported application protocol---most of which were
  94. never written, so many applications were never supported. Tor uses the
  95. standard and near-ubiquitous SOCKS \cite{socks4} proxy interface, allowing
  96. us to support most TCP-based programs without modification. Tor now
  97. relies on the filtering features of privacy-enhancing
  98. application-level proxies such as Privoxy \cite{privoxy}, without trying
  99. to duplicate those features itself.
  100. \item \textbf{Many TCP streams can share one circuit:} The
  101. original Onion Routing design built a separate circuit for each
  102. application-level request. This hurt performance by requiring
  103. multiple public key operations for every request, and also presented
  104. a threat to anonymity from building so many different circuits; see
  105. Section~\ref{sec:maintaining-anonymity}. Tor multiplexes multiple TCP
  106. streams along each virtual circuit to improve efficiency and anonymity.
  107. \item \textbf{Leaky-pipe circuit topology:} Through in-band signaling
  108. within the circuit, Tor initiators can direct traffic to nodes partway
  109. down the circuit. This novel approach allows for long-range
  110. padding to frustrate traffic shape and volume attacks at the initiator
  111. \cite{defensive-dropping}, and
  112. also allows traffic to exit the circuit from the middle---thus
  113. frustrating traffic shape and volume attacks based on observing the end
  114. of the circuit.
  115. \item \textbf{No mixing, padding, or traffic shaping:} The original Onion
  116. Routing design called for batching and reordering the cells arriving from
  117. each source. It also included padding between onion routers and, in a
  118. later design, between onion proxies (that is, users) and onion routers
  119. \cite{or-ih96,or-jsac98}. The trade-off between padding protection
  120. and cost was discussed, but no general padding scheme was suggested. In
  121. \cite{or-pet00} it was theorized \emph{traffic shaping} would generally
  122. be used, but details were not provided. Recent research \cite{econymics}
  123. and deployment experience \cite{freedom21-security} suggest that this
  124. level of resource use is not practical or economical; and even full link
  125. padding is still vulnerable \cite{defensive-dropping}. Thus, until we
  126. have a proven and convenient design for traffic shaping or low-latency
  127. mixing that will improve anonymity against a realistic adversary, we
  128. leave these strategies out.
  129. \item \textbf{Congestion control:} Earlier anonymity designs do not
  130. address traffic bottlenecks. Unfortunately, typical approaches to
  131. load balancing and flow control in overlay networks involve inter-node
  132. control communication and global views of traffic. Tor's decentralized
  133. congestion control uses end-to-end acks to maintain anonymity
  134. while allowing nodes at the edges of the network to detect congestion
  135. or flooding and send less data until the congestion subsides.
  136. \item \textbf{Directory servers:} The original Onion Routing design
  137. planned to flood link-state information through the network---an approach
  138. that can be unreliable and open to partitioning attacks or
  139. deception. Tor takes a simplified view toward distributing link-state
  140. information. Certain more trusted onion routers act as \emph{directory
  141. servers}: they provide signed directories that describe known
  142. routers and their availability. Users periodically download these
  143. directories via HTTP.
  144. \item \textbf{Variable exit policies:} Tor provides a consistent mechanism
  145. for each node to advertise a policy describing the hosts
  146. and ports to which it will connect. These exit policies are critical
  147. in a volunteer-based distributed infrastructure, because each operator
  148. is comfortable with allowing different types of traffic to exit the Tor
  149. network from his node.
  150. \item \textbf{End-to-end integrity checking:} The original Onion Routing
  151. design did no integrity checking on data. Any onion router on the
  152. circuit could change the contents of data cells as they passed by---for
  153. example, to alter a connection request on the fly so it would connect
  154. to a different webserver, or to `tag' encrypted traffic and look for
  155. corresponding corrupted traffic at the network edges \cite{minion-design}.
  156. Tor hampers these attacks by checking data integrity before it leaves
  157. the network.
  158. \item \textbf{Improved robustness to failed nodes:} A failed node
  159. in the old design meant that circuit building failed, but thanks to
  160. Tor's step-by-step circuit building, users notice failed nodes
  161. while building circuits and route around them. Additionally, liveness
  162. information from directories allows users to avoid unreliable nodes in
  163. the first place.
  164. \item \textbf{Rendezvous points and location-protected servers:}
  165. Tor provides an integrated mechanism for responder anonymity via
  166. location-protected servers. Previous Onion Routing designs included
  167. long-lived ``reply onions'' that could be used to build virtual circuits
  168. to a hidden server, but these reply onions did not provide forward
  169. security, and became useless if any node in the path went down
  170. or rotated its keys. In Tor, clients negotiate {\it rendezvous points}
  171. to connect with hidden servers; reply onions are no longer required.
  172. \end{tightlist}
  173. Unlike Freedom \cite{freedom2-arch}, Tor only
  174. attempts to anonymize TCP streams. Because it does not require patches
  175. (or built-in support) in an operating system's network stack, this
  176. approach has proven valuable to Tor's portability and deployability.
  177. We have implemented most of the above features. Our source code is
  178. available under a free license, and, as far as we know, is unencumbered by
  179. patents. We have recently begun deploying a wide-area alpha network
  180. to test the design in practice, to get more experience with usability
  181. and users, and to provide a research platform for experimentation.
  182. We review previous work in Section~\ref{sec:related-work}, describe
  183. our goals and assumptions in Section~\ref{sec:assumptions},
  184. and then address the above list of improvements in
  185. Sections~\ref{sec:design}-\ref{sec:rendezvous}. We summarize
  186. in Section~\ref{sec:attacks} how our design stands up to
  187. known attacks, and conclude with a list of open problems in
  188. Section~\ref{sec:maintaining-anonymity} and future work for the Onion
  189. Routing project in Section~\ref{sec:conclusion}.
  190. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  191. \Section{Related work}
  192. \label{sec:related-work}
  193. Modern anonymity systems date to Chaum's {\bf Mix-Net} design
  194. \cite{chaum-mix}. Chaum
  195. proposed hiding the correspondence between sender and recipient by
  196. wrapping messages in layers of public key cryptography, and relaying them
  197. through a path composed of ``Mixes.'' Each of these mixes in turn
  198. decrypts, delays, and re-orders messages, before relaying them toward
  199. their destinations.
  200. Subsequent relay-based anonymity designs have diverged in two
  201. principal directions. Some have attempted to maximize anonymity at
  202. the cost of introducing comparatively large and variable latencies,
  203. including {\bf Babel} \cite{babel}, {\bf Mixmaster}
  204. \cite{mixmaster-spec}, and
  205. {\bf Mixminion} \cite{minion-design}. Because of this
  206. decision, these \emph{high-latency} networks are well-suited for anonymous
  207. email, but introduce too much lag for interactive tasks like web browsing,
  208. internet chat, or SSH connections.
  209. Tor belongs to the second category: \emph{low-latency} designs that
  210. attempt to anonymize interactive network traffic. These systems handle
  211. a variety of bidirectional protocols. They also provide more convenient
  212. mail delivery than the high-latency fire-and-forget anonymous email
  213. networks, because the remote mail server provides explicit delivery
  214. confirmation. But because these designs typically
  215. involve many packets that must be delivered quickly, it is
  216. difficult for them to prevent an attacker who can eavesdrop both ends of the
  217. communication from correlating the timing and volume
  218. of traffic entering the anonymity network with traffic leaving it. These
  219. protocols are also vulnerable against active attacks in which an
  220. adversary introduces timing patterns into traffic entering the network and
  221. looks
  222. for correlated patterns among exiting traffic.
  223. Although some work has been done to frustrate
  224. these attacks,\footnote{
  225. The most common approach is to pad and limit communication to a constant
  226. rate, or to limit
  227. the variation in traffic shape. Doing so can have prohibitive bandwidth
  228. costs and/or performance limitations.
  229. } most designs protect primarily against traffic analysis rather than traffic
  230. confirmation \cite{or-jsac98}---that is, they assume that the attacker is
  231. attempting to learn who is talking to whom, not to confirm a prior suspicion
  232. about who is talking to whom.
  233. The simplest low-latency designs are single-hop proxies such as the
  234. {\bf Anonymizer} \cite{anonymizer}, wherein a single trusted server strips the
  235. data's origin before relaying it. These designs are easy to
  236. analyze, but users must trust the anonymizing proxy.
  237. Concentrating the traffic to a single point increases the anonymity set
  238. (the people a given user is hiding among), but can make traffic
  239. analysis easier: an adversary need only eavesdrop on the proxy to observe
  240. the entire system.
  241. More complex are distributed-trust, circuit-based anonymizing systems.
  242. In these designs, a user establishes one or more medium-term bidirectional
  243. end-to-end circuits, and tunnels data in fixed-size cells.
  244. Establishing circuits is computationally expensive and typically
  245. requires public-key
  246. cryptography, whereas relaying cells is comparatively inexpensive and
  247. typically requires only symmetric encryption.
  248. Because a circuit crosses several servers, and each server only knows
  249. the adjacent servers in the circuit, no single server can link a
  250. user to her communication partners.
  251. The {\bf Java Anon Proxy} (also known as JAP or Web MIXes) uses fixed shared
  252. routes known as \emph{cascades}. As with a single-hop proxy, this
  253. approach aggregates users into larger anonymity sets, but again an
  254. attacker only needs to observe both ends of the cascade to bridge all
  255. the system's traffic. The Java Anon Proxy's design
  256. calls for padding between end users and the head of the cascade
  257. \cite{web-mix}. However, it is not demonstrated whether the current
  258. implementation's padding policy improves anonymity.
  259. {\bf PipeNet} \cite{back01, pipenet}, another low-latency design proposed at
  260. about the same time as the original Onion Routing design, provided
  261. stronger anonymity at the cost of allowing a single user to shut
  262. down the network simply by not sending. Low-latency anonymous
  263. communication has also been designed for other environments such as
  264. ISDN \cite{isdn-mixes}.
  265. In P2P designs like {\bf Tarzan} \cite{tarzan:ccs02} and {\bf MorphMix}
  266. \cite{morphmix:fc04}, all participants both generate traffic and relay
  267. traffic for others. These systems aim to conceal
  268. whether a given peer originated a request
  269. or just relayed it from another peer. While Tarzan and MorphMix use
  270. layered encryption as above, {\bf Crowds} \cite{crowds-tissec} simply assumes
  271. an adversary who cannot observe the initiator: it uses no public-key
  272. encryption, so any node on a circuit can read that circuit's traffic.
  273. {\bf Hordes} \cite{hordes-jcs} is based on Crowds but also uses multicast
  274. responses to hide the initiator. {\bf Herbivore} \cite{herbivore} and
  275. {\bf P5} \cite{p5} go even further, requiring broadcast.
  276. % XXX This should be $P^5$ in bold. How to do it? -RD
  277. These systems are designed primarily for communication between peers,
  278. although Herbivore users can make external connections by
  279. requesting a peer to serve as a proxy.
  280. Systems like {\bf Freedom} and the original Onion Routing build the circuit
  281. all at once, using a layered ``onion'' of public-key encrypted messages,
  282. each layer of which provides a set of session keys and the address of the
  283. next server in the circuit. Tor as described herein, Tarzan, MorphMix,
  284. {\bf Cebolla} \cite{cebolla}, and Rennhard's {\bf Anonymity Network} \cite{anonnet}
  285. build the circuit
  286. in stages, extending it one hop at a time.
  287. Section~\ref{subsubsec:constructing-a-circuit} describes how this
  288. approach makes perfect forward secrecy feasible.
  289. Circuit-based anonymity designs must choose which protocol layer
  290. to anonymize. They may choose to intercept IP packets directly, and
  291. relay them whole (stripping the source address) along the circuit
  292. \cite{freedom2-arch,tarzan:ccs02}. Alternatively, like
  293. Tor, they may accept TCP streams and relay the data in those streams
  294. along the circuit, ignoring the breakdown of that data into TCP segments
  295. \cite{morphmix:fc04,anonnet}. Finally, they may accept application-level
  296. protocols (such as HTTP) and relay the application requests themselves
  297. along the circuit.
  298. Making this protocol-layer decision requires a compromise between flexibility
  299. and anonymity. For example, a system that understands HTTP, such as Crowds,
  300. can strip
  301. identifying information from those requests, can take advantage of caching
  302. to limit the number of requests that leave the network, and can batch
  303. or encode those requests in order to minimize the number of connections.
  304. On the other hand, an IP-level anonymizer can handle nearly any protocol,
  305. even ones unforeseen by its designers (though these systems require
  306. kernel-level modifications to some operating systems, and so are more
  307. complex and less portable). TCP-level anonymity networks like Tor present
  308. a middle approach: they are fairly application neutral (so long as the
  309. application supports, or can be tunneled across, TCP), but by treating
  310. application connections as data streams rather than raw TCP packets,
  311. they avoid the well-known inefficiencies of tunneling TCP over TCP
  312. \cite{tcp-over-tcp-is-bad}.
  313. Distributed-trust anonymizing systems need to prevent attackers from
  314. adding too many servers and thus compromising user paths.
  315. Tor relies on a small set of well-known directory servers, run by
  316. independent parties, to decide which nodes can
  317. join. Tarzan and MorphMix allow unknown users to run servers, and use
  318. a limited resource (like IP addresses) to prevent an attacker from
  319. controlling too much of the network. Crowds suggests requiring
  320. written, notarized requests from potential crowd members.
  321. Anonymous communication is essential for censorship-resistant
  322. systems like Eternity \cite{eternity}, Free~Haven \cite{freehaven-berk},
  323. Publius \cite{publius}, and Tangler \cite{tangler}. Tor's rendezvous
  324. points enable connections between mutually anonymous entities; they
  325. are a building block for location-hidden servers, which are needed by
  326. Eternity and Free~Haven.
  327. % didn't include rewebbers. No clear place to put them, so I'll leave
  328. % them out for now. -RD
  329. \Section{Design goals and assumptions}
  330. \label{sec:assumptions}
  331. \SubSection{Goals}
  332. Like other low-latency anonymity designs, Tor seeks to frustrate
  333. attackers from linking communication partners, or from linking
  334. multiple communications to or from a single user. Within this
  335. main goal, however, several considerations have directed
  336. Tor's evolution.
  337. \textbf{Deployability:} The design must be implemented,
  338. deployed, and used in the real world. This requirement precludes designs
  339. that are expensive to run (for example, by requiring more bandwidth
  340. than volunteers are willing to provide); designs that place a heavy
  341. liability burden on operators (for example, by allowing attackers to
  342. implicate onion routers in illegal activities); and designs that are
  343. difficult or expensive to implement (for example, by requiring kernel
  344. patches, or separate proxies for every protocol). This requirement also
  345. precludes systems in which non-anonymous parties (such as websites)
  346. must run our software. (Our rendezvous point design does not meet
  347. this goal for non-anonymous users talking to hidden servers,
  348. however; see Section~\ref{sec:rendezvous}.)
  349. \textbf{Usability:} A hard-to-use system has fewer users---and because
  350. anonymity systems hide users among users, a system with fewer users
  351. provides less anonymity. Usability is thus not only a convenience:
  352. it is a security requirement \cite{econymics,back01}. Tor should
  353. therefore not
  354. require modifying applications; should not introduce prohibitive delays;
  355. and should require users to make as few configuration decisions
  356. as possible. Finally, Tor should be easily implemented on all common
  357. platforms; we cannot require users to change their operating system in order
  358. to be anonymous. (The current Tor implementation runs on Windows and
  359. assorted Unix clones including Linux, FreeBSD, and MacOS X.)
  360. \textbf{Flexibility:} The protocol must be flexible and well-specified,
  361. so that it can serve as a test-bed for future research in low-latency
  362. anonymity systems. Many of the open problems in low-latency anonymity
  363. networks, such as generating dummy traffic or preventing Sybil attacks
  364. \cite{sybil}, may be solvable independently from the issues solved by
  365. Tor. Hopefully future systems will not need to reinvent Tor's design.
  366. (But note that while a flexible design benefits researchers,
  367. there is a danger that differing choices of extensions will make users
  368. distinguishable. Experiments should be run on a separate network.)
  369. \textbf{Simple design:} The protocol's design and security
  370. parameters must be well-understood. Additional features impose implementation
  371. and complexity costs; adding unproven techniques to the design threatens
  372. deployability, readability, and ease of security analysis. Tor aims to
  373. deploy a simple and stable system that integrates the best well-understood
  374. approaches to protecting anonymity.
  375. \SubSection{Non-goals}
  376. \label{subsec:non-goals}
  377. In favoring simple, deployable designs, we have explicitly deferred
  378. several possible goals, either because they are solved elsewhere, or because
  379. their solution is an open research problem.
  380. \textbf{Not peer-to-peer:} Tarzan and MorphMix aim to scale to completely
  381. decentralized peer-to-peer environments with thousands of short-lived
  382. servers, many of which may be controlled by an adversary. This approach
  383. is appealing, but still has many open problems
  384. \cite{tarzan:ccs02,morphmix:fc04}.
  385. \textbf{Not secure against end-to-end attacks:} Tor does not claim
  386. to provide a definitive solution to end-to-end timing or intersection
  387. attacks. Some approaches, such as running an onion router, may help;
  388. see Section~\ref{sec:attacks} for more discussion.
  389. % XXX P2P issues here. -NM
  390. \textbf{No protocol normalization:} Tor does not provide \emph{protocol
  391. normalization} like Privoxy or the Anonymizer. If anonymization from
  392. the responder is desired for complex and variable
  393. protocols like HTTP, Tor must be layered with a filtering proxy such
  394. as Privoxy to hide differences between clients, and expunge protocol
  395. features that leak identity.
  396. Note that by this separation Tor can also provide services that
  397. are anonymous to the network yet authenticated to the responder, like
  398. SSH.
  399. Similarly, Tor does not currently integrate
  400. tunneling for non-stream-based protocols like UDP; this too must be
  401. provided by an external service.
  402. % Actually, tunneling udp over tcp is probably horrible for some apps.
  403. % Should this get its own non-goal bulletpoint? The motivation for
  404. % non-goal-ness would be burden on clients / portability. -RD
  405. % No, leave it as is. -RD
  406. \textbf{Not steganographic:} Tor does not try to conceal which users are
  407. sending or receiving communications; it only tries to conceal with whom
  408. they communicate.
  409. \SubSection{Threat Model}
  410. \label{subsec:threat-model}
  411. A global passive adversary is the most commonly assumed threat when
  412. analyzing theoretical anonymity designs. But like all practical
  413. low-latency systems, Tor does not protect against such a strong
  414. adversary. Instead, we assume an adversary who can observe some fraction
  415. of network traffic; who can generate, modify, delete, or delay traffic
  416. on the network; who can operate onion routers of its own; and who can
  417. compromise some fraction of the onion routers on the network.
  418. In low-latency anonymity systems that use layered encryption, the
  419. adversary's typical goal is to observe both the initiator and the
  420. responder. By observing both ends, passive attackers can confirm a
  421. suspicion that Alice is
  422. talking to Bob if the timing and volume patterns of the traffic on the
  423. connection are distinct enough; active attackers can induce timing
  424. signatures on the traffic to \emph{force} distinct patterns. Tor
  425. does not address these \emph{traffic confirmation} attacks.
  426. Rather, we aim to prevent \emph{traffic
  427. analysis} attacks, where the adversary uses traffic patterns to learn
  428. which points in the network he should attack.
  429. Our adversary might try to link an initiator Alice with any of her
  430. communication partners, or he might try to build a profile of Alice's
  431. behavior. He might mount passive attacks by observing the edges of the
  432. network and correlating traffic entering and leaving the network---either
  433. by relationships in packet timing; relationships in the volume
  434. of data sent; or relationships in any externally visible user-selected
  435. options. The adversary can also mount active attacks by compromising
  436. routers or keys; by replaying traffic; by selectively denying service
  437. to trustworthy routers to encourage users to send their traffic through
  438. compromised routers, or denying service to users to see if the traffic
  439. elsewhere in the
  440. network stops; or by introducing patterns into traffic that can later be
  441. detected. The adversary might subvert the directory servers to give users
  442. differing views of network state. Additionally, he can try to decrease
  443. the network's reliability by attacking nodes or by performing antisocial
  444. activities from reliable servers and trying to get them taken down;
  445. making the network unreliable flushes users to other less anonymous
  446. systems, where they may be easier to attack.
  447. We consider each of these attacks in more detail below, and summarize
  448. in Section~\ref{sec:attacks} how well the Tor design defends against
  449. each of them.
  450. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  451. \Section{The Tor Design}
  452. \label{sec:design}
  453. The Tor network is an overlay network; each node is called an onion router
  454. (OR). Onion routers run as normal user-level processes without needing
  455. any special
  456. privileges. Currently, each OR maintains a long-term TLS \cite{TLS}
  457. connection to every other
  458. OR. (We further discuss this clique-topology assumption in
  459. Section~\ref{sec:maintaining-anonymity}.) A subset of the ORs also act as
  460. directory servers, tracking which routers are in the network;
  461. see Section~\ref{subsec:dirservers} for directory server details.
  462. Each user
  463. runs local software called an onion proxy (OP) to fetch directories,
  464. establish paths (called \emph{virtual circuits}) across the network,
  465. and handle connections from user applications. These onion proxies accept
  466. TCP streams and multiplex them across the virtual circuit. The onion
  467. router on the other side
  468. % I don't mean other side, I mean wherever it is on the circuit. But
  469. % don't want to introduce complexity this early? Hm. -RD
  470. of the circuit connects to the destinations of
  471. the TCP streams and relays data.
  472. Each onion router uses three public keys: a long-term identity key, a
  473. short-term onion key, and a short-term link key. The identity
  474. (signing) key is used to sign TLS certificates, to sign its router
  475. descriptor (a summary of its keys, address, bandwidth, exit policy,
  476. etc), and to sign directories if it is a directory server. Changing
  477. the identity key of a router is considered equivalent to creating a
  478. new router. The onion (decryption) key is used for decrypting requests
  479. from users to set up a circuit and negotiate ephemeral keys. Finally,
  480. link keys are used by the TLS protocol when communicating between
  481. onion routers. Each short-term key is rotated periodically and
  482. independently, to limit the impact of key compromise.
  483. Section~\ref{subsec:cells} discusses the structure of the fixed-size
  484. \emph{cells} that are the unit of communication in Tor. We describe
  485. in Section~\ref{subsec:circuits} how virtual circuits are
  486. built, extended, truncated, and destroyed. Section~\ref{subsec:tcp}
  487. describes how TCP streams are routed through the network, and finally
  488. Section~\ref{subsec:congestion} talks about congestion control and
  489. fairness issues.
  490. % XXX \ref{subsec:integrity-checking} is missing
  491. % XXX \ref{xubsec:rate-limit is missing.
  492. \SubSection{Cells}
  493. \label{subsec:cells}
  494. Onion routers communicate with one another, and with users' OPs, via TLS
  495. connections with ephemeral keys. This prevents an attacker from
  496. impersonating an OR, conceals the contents of the connection with
  497. perfect forward secrecy, and prevents an attacker from modifying data
  498. on the wire.
  499. Traffic passes along these connections in fixed-size cells. Each cell
  500. is 256 bytes (but see Section~\ref{sec:conclusion} for a discussion of
  501. allowing large cells and small cells on the same network), and
  502. consists of a header and a payload. The header includes a circuit
  503. identifier (circID) that specifies which circuit the cell refers to
  504. (many circuits can be multiplexed over the single TLS connection), and
  505. a command to describe what to do with the cell's payload. (Circuit
  506. identifiers are connection-specific: each single circuit has a different
  507. circID on each OP/OR or OR/OR connection it traverses.)
  508. Based on their command, cells are either \emph{control} cells, which are
  509. always interpreted by the node that receives them, or \emph{relay} cells,
  510. which carry end-to-end stream data. The control cell commands are:
  511. \emph{padding} (currently used for keepalive, but also usable for link
  512. padding); \emph{create} or \emph{created} (used to set up a new circuit);
  513. and \emph{destroy} (to tear down a circuit).
  514. Relay cells have an additional header (the relay header) after the
  515. cell header, containing the stream identifier (many streams can
  516. be multiplexed over a circuit); an end-to-end checksum for integrity
  517. checking; the length of the relay payload; and a relay command.
  518. The entire contents of the relay header and the relay cell payload
  519. are encrypted or decrypted together as the relay cell moves along the
  520. circuit, using the 128-bit AES cipher in counter mode to generate a
  521. cipher stream.
  522. The
  523. relay commands are: \emph{relay
  524. data} (for data flowing down the stream), \emph{relay begin} (to open a
  525. stream), \emph{relay end} (to close a stream cleanly), \emph{relay
  526. teardown} (to close a broken stream), \emph{relay connected}
  527. (to notify the OP that a relay begin has succeeded), \emph{relay
  528. extend} and \emph{relay extended} (to extend the circuit by a hop,
  529. and to acknowledge), \emph{relay truncate} and \emph{relay truncated}
  530. (to tear down only part of the circuit, and to acknowledge), \emph{relay
  531. sendme} (used for congestion control), and \emph{relay drop} (used to
  532. implement long-range dummies).
  533. We describe each of these cell types and commands in more detail below.
  534. \SubSection{Circuits and streams}
  535. \label{subsec:circuits}
  536. The original Onion Routing design built one circuit for each
  537. TCP stream. Because building a circuit can take several tenths of a
  538. second (due to public-key cryptography delays and network latency),
  539. this design imposed high costs on applications like web browsing that
  540. open many TCP streams.
  541. In Tor, each circuit can be shared by many TCP streams. To avoid
  542. delays, users construct circuits preemptively. To limit linkability
  543. among their streams, users' OPs build a new circuit
  544. periodically if the previous one has been used,
  545. and expire old used circuits that no longer have any open streams.
  546. OPs consider making a new circuit once a minute: thus
  547. even heavy users spend a negligible amount of time and CPU in
  548. building circuits, but only a limited number of requests can be linked
  549. to each other through a given exit node. Also, because circuits are built
  550. in the background, OPs can recover from failed circuit creation
  551. without delaying streams and thereby harming user experience.
  552. \subsubsection{Constructing a circuit}
  553. \label{subsubsec:constructing-a-circuit}
  554. A user's OP constructs a circuit incrementally, negotiating a
  555. symmetric key with each OR on the circuit, one hop at a time. To begin
  556. creating a new circuit, the OP (call her Alice) sends a
  557. \emph{create} cell to the first node in her chosen path (call him Bob).
  558. (She chooses a new
  559. circID $C_{AB}$ not currently used on the connection from her to Bob.)
  560. This cell's
  561. payload contains the first half of the Diffie-Hellman handshake
  562. ($g^x$), encrypted to the onion key of the OR (call him Bob). Bob
  563. responds with a \emph{created} cell containing the second half of the
  564. DH handshake, along with a hash of the negotiated key $K=g^{xy}$.
  565. Once the circuit has been established, Alice and Bob can send one
  566. another relay cells encrypted with the negotiated
  567. key.\footnote{Actually, the negotiated key is used to derive two
  568. symmetric keys: one for each direction.} More detail is given in
  569. the next section.
  570. To extend the circuit further, Alice sends a \emph{relay extend} cell
  571. to Bob, specifying the address of the next OR (call her Carol), and
  572. an encrypted $g^{x_2}$ for her. Bob copies the half-handshake into a
  573. \emph{create} cell, and passes it to Carol to extend the circuit.
  574. (Bob chooses a new circID $C_{BC}$ not currently used on the connection
  575. between him and Carol. Alice never needs to know this circID; only Bob
  576. associates $C_{AB}$ on his connection with Alice to $C_{BC}$ on
  577. his connection with Carol.)
  578. When Carol responds with a \emph{created} cell, Bob wraps the payload
  579. into a \emph{relay extended} cell and passes it back to Alice. Now
  580. the circuit is extended to Carol, and Alice and Carol share a common key
  581. $K_2 = g^{x_2 y_2}$.
  582. To extend the circuit to a third node or beyond, Alice
  583. proceeds as above, always telling the last node in the circuit to
  584. extend one hop further.
  585. This circuit-level handshake protocol achieves unilateral entity
  586. authentication (Alice knows she's handshaking with the OR, but
  587. the OR doesn't care who is opening the circuit---Alice has no key
  588. and is trying to remain anonymous) and unilateral key authentication
  589. (Alice and the OR agree on a key, and Alice knows the OR is the
  590. only other entity who should know it). It also achieves forward
  591. secrecy and key freshness. More formally, the protocol is as follows
  592. (where $E_{PK_{Bob}}(\cdot)$ is encryption with Bob's public key,
  593. $H$ is a secure hash function, and $|$ is concatenation):
  594. \begin{equation}
  595. \begin{aligned}
  596. \mathrm{Alice} \rightarrow \mathrm{Bob}&: E_{PK_{Bob}}(g^x) \\
  597. \mathrm{Bob} \rightarrow \mathrm{Alice}&: g^y, H(K | \mathrm{``handshake"}) \\
  598. \end{aligned}
  599. \end{equation}
  600. In the second step, Bob proves that it was he who who received $g^x$,
  601. and who came up with $y$. We use PK encryption in the first step
  602. (rather than, say, using the first two steps of STS, which has a
  603. signature in the second step) because a single cell is too small to
  604. hold both a public key and a signature. Preliminary analysis with the
  605. NRL protocol analyzer \cite{meadows96} shows the above protocol to be
  606. secure (including providing perfect forward secrecy) under the
  607. traditional Dolev-Yao model.
  608. \subsubsection{Relay cells}
  609. Once Alice has established the circuit (so she shares keys with each
  610. OR on the circuit), she can send relay cells. Recall that every relay
  611. cell has a streamID in the relay header that indicates to which
  612. stream the cell belongs. This streamID allows a relay cell to be
  613. addressed to any of the ORs on the circuit. Upon receiving a relay
  614. cell, an OR looks up the corresponding circuit, and decrypts the relay
  615. header and payload with the appropriate session key for that circuit.
  616. If the cell is headed downstream (away from Alice) it then checks
  617. whether the decrypted streamID is recognized---either because it
  618. corresponds to an open stream at this OR for the circuit, or because
  619. it is equal to the control streamID (zero). If the OR recognizes the
  620. streamID, it accepts the relay cell and processes it as described
  621. below. Otherwise,
  622. %the relay cell must be intended for another OR on
  623. %the circuit. In this case,
  624. the OR looks up the circID and OR for the
  625. next step in the circuit, replaces the circID as appropriate, and
  626. sends the decrypted relay cell to the next OR. (If the OR at the end
  627. of the circuit receives an unrecognized relay cell, an error has
  628. occurred, and the cell is discarded.)
  629. OPs treat incoming relay cells similarly: they iteratively unwrap the
  630. relay header and payload with the session key shared with each
  631. OR on the circuit, from the closest to farthest. (Because we use a
  632. stream cipher, encryption operations may be inverted in any order.)
  633. If at any stage the OP recognizes the streamID, the cell must have
  634. originated at the OR whose encryption has just been removed.
  635. To construct a relay cell addressed to a given OR, Alice iteratively
  636. encrypts the cell payload (that is, the relay header and payload) with
  637. the symmetric key of each hop up to that OR. Because the streamID is
  638. encrypted to a different value at each step, only at the targeted OR
  639. will it have a meaningful value.\footnote{
  640. % Should we just say that 2^56 is itself negligible?
  641. % Assuming 4-hop circuits with 10 streams per hop, there are 33
  642. % possible bad streamIDs before the last circuit. This still
  643. % gives an error only once every 2 million terabytes (approx).
  644. With 56 bits of streamID per cell, the probability of an accidental
  645. collision is far lower than the chance of hardware failure.}
  646. This \emph{leaky pipe} circuit topology
  647. allows Alice's streams to exit at different ORs on a single circuit.
  648. Alice may choose different exit points because of their exit policies,
  649. or to keep the ORs from knowing that two streams
  650. originate at the same person.
  651. When an OR later replies to Alice with a relay cell, it only needs to
  652. encrypt the cell's relay header and payload with the single key it
  653. shares with Alice, and send the cell back toward Alice along the
  654. circuit. Subsequent ORs add further layers of encryption as they
  655. relay the cell back to Alice.
  656. To tear down a whole circuit, Alice sends a \emph{destroy} control
  657. cell. Each OR in the circuit receives the \emph{destroy} cell, closes
  658. all open streams on that circuit, and passes a new \emph{destroy} cell
  659. forward. But just as circuits are built incrementally, they can also
  660. be torn down incrementally: Alice can instead send a \emph{relay
  661. truncate} cell to a single OR on the circuit. That node then sends a
  662. \emph{destroy} cell forward, and acknowledges with a
  663. \emph{relay truncated} cell. Alice can then extend the circuit to
  664. different nodes, all without signaling to the intermediate nodes (or
  665. somebody observing them) that she has changed her circuit.
  666. %---because
  667. %nodes in the middle of a circuit see only the encrypted relay cells,
  668. %they are not even aware that the circuit has been truncated.
  669. Similarly, if a node on the circuit goes down, the adjacent
  670. node can send a \emph{relay truncated} cell back to Alice. Thus the
  671. ``break a node and see which circuits go down'' attack
  672. \cite{freedom21-security} is weakened.
  673. \SubSection{Opening and closing streams}
  674. \label{subsec:tcp}
  675. When Alice's application wants to open a TCP connection to a given
  676. address and port, it asks the OP (via SOCKS) to make the
  677. connection. The OP chooses the newest open circuit (or creates one if
  678. none is available), chooses a suitable OR on that circuit to be the
  679. exit node (usually the last node, but maybe others due to exit policy
  680. conflicts; see Section~\ref{subsec:exitpolicies}), chooses a new
  681. random streamID for the stream, and sends a \emph{relay begin} cell
  682. to that exit node. The OP uses a streamID of zero for this cell
  683. (so the OR will recognize it), and uses the new streamID, destination
  684. address, and port as the contents of the cell's relay payload. Once the
  685. exit node completes the connection to the remote host, it responds
  686. with a \emph{relay connected} cell. Upon receipt, the OP sends a
  687. SOCKS reply to the application notifying it of success. The OP
  688. now accepts data from the application's TCP stream, packaging it into
  689. \emph{relay data} cells and sending those cells along the circuit to
  690. the chosen OR.
  691. There's a catch to using SOCKS, however---some applications pass the
  692. alphanumeric hostname to the proxy, while others resolve it into an IP
  693. address first and then pass the IP address to the proxy. If the
  694. application does the DNS resolution first, Alice will thereby
  695. broadcast her destination to the DNS server. Common applications
  696. like Mozilla and SSH have this flaw.
  697. In the case of Mozilla, the flaw is easy to address: the filtering web
  698. proxy called Privoxy does the SOCKS call safely, and Mozilla talks to
  699. Privoxy safely. But a portable general solution, such as is needed for
  700. SSH, is
  701. an open problem. Modifying or replacing the local nameserver
  702. can be invasive, brittle, and not portable. Forcing the resolver
  703. library to do its resolution via TCP rather than UDP is
  704. hard to do right, and also has portability problems. We could provide a
  705. tool similar to \emph{dig} to perform a private lookup through the
  706. Tor network. Our current answer is to encourage the use of
  707. privacy-aware proxies like Privoxy wherever possible.
  708. Closing a Tor stream is analogous to closing a TCP stream: it uses a
  709. two-step handshake for normal operation, or a one-step handshake for
  710. errors. If the stream closes abnormally, the adjacent node simply sends a
  711. \emph{relay teardown} cell. If the stream closes normally, the node sends
  712. a \emph{relay end} cell down the circuit. When the other side has sent
  713. back its own \emph{relay end}, the stream can be torn down. Because
  714. all relay cells use layered encryption, only the destination OR knows
  715. that a given relay cell is a request to close a stream. This two-step
  716. handshake allows for TCP-based applications that use half-closed
  717. connections, such as broken HTTP clients that close their side of the
  718. stream after writing but are still willing to read.
  719. \SubSection{Integrity checking on streams}
  720. \label{subsec:integrity-checking}
  721. Because the old Onion Routing design used a stream cipher, traffic was
  722. vulnerable to a malleability attack: even though the attacker could not
  723. decrypt cells, he could make changes to an encrypted
  724. cell to create corresponding changes to the data leaving the network.
  725. (Even an external adversary could do this, despite link encryption, by
  726. inverting bits on the wire.)
  727. This weakness allowed an adversary to change a padding cell to a destroy
  728. cell; change the destination address in a relay begin cell to the
  729. adversary's webserver; or change a user on an ftp connection from
  730. typing ``dir'' to typing ``delete~*''. Any node or external adversary
  731. along the circuit could introduce such corruption in a stream---if it
  732. knew or could guess the encrypted content.
  733. Tor prevents external adversaries from mounting this attack by
  734. using TLS on its links, which provides integrity checking.
  735. Addressing the insider malleability attack, however, is
  736. more complex.
  737. We could do integrity checking of the relay cells at each hop, either
  738. by including hashes or by using an authenticating cipher mode like
  739. EAX \cite{eax}, but there are some problems. First, these approaches
  740. impose a message-expansion overhead at each hop, and so we would have to
  741. either leak the path length or waste bytes by padding to a maximum
  742. path length. Second, these solutions can only verify traffic coming
  743. from Alice: ORs would not be able to include suitable hashes for
  744. the intermediate hops, since the ORs on a circuit do not know the
  745. other ORs' session keys. Third, we have already accepted that our design
  746. is vulnerable to end-to-end timing attacks; tagging attacks performed
  747. within the circuit provide no additional information to the attacker.
  748. Thus, we check integrity only at the edges of each stream. When Alice
  749. negotiates a key with a new hop, they both initialize a pair of SHA-1
  750. digests with a derivative of that key,
  751. thus beginning with randomness that only the two of them know. From
  752. then on they each incrementally add to the SHA-1 digests the contents of
  753. all relay cells they create or accept (one digest is for cells
  754. created; one is for cells accepted), and include with each relay cell
  755. the first 4 bytes of the current value of the hash of cells created.
  756. To be sure of removing or modifying a cell, the attacker must be able
  757. to either deduce the current digest state (which depends on all
  758. traffic between Alice and Bob, starting with their negotiated key).
  759. Attacks on SHA-1 where the adversary can incrementally add to a hash
  760. to produce a new valid hash don't work, because all hashes are
  761. end-to-end encrypted across the circuit. The computational overhead
  762. of computing the digests is minimal compared to doing the AES
  763. encryption performed at each hop of the circuit. We use only four
  764. bytes per cell to minimize overhead; the chance that an adversary will
  765. correctly guess a valid hash, plus the payload the current cell, is
  766. acceptably low, given that Alice or Bob tear down the circuit if they
  767. receive a bad hash.
  768. \SubSection{Rate limiting and fairness}
  769. \label{subsec:rate-limit}
  770. Volunteers are generally more willing to run services that can limit
  771. their bandwidth usage. To accommodate them, Tor servers use a
  772. token bucket approach \cite{tannenbaum96} to
  773. %limit the number of bytes they receive.
  774. %Tokens are added to the bucket each second; when the bucket is
  775. %full, new tokens are discarded. Each token represents permission to
  776. %accept one byte from the network---to accept a byte, the connection
  777. %must remove a token from the bucket. Thus if the bucket is empty, that
  778. %connection must wait until more tokens arrive. The number of tokens we
  779. %add
  780. enforce a long-term average rate of incoming bytes, while still
  781. permitting short-term bursts above the allowed bandwidth. Current bucket
  782. sizes are set to ten seconds' worth of traffic.
  783. %Further, we want to avoid starving any Tor streams. Entire circuits
  784. %could starve if we read greedily from connections and one connection
  785. %uses all the remaining bandwidth. We solve this by dividing the number
  786. %of tokens in the bucket by the number of connections that want to read,
  787. %and reading at most that number of bytes from each connection. We iterate
  788. %this procedure until the number of tokens in the bucket is under some
  789. %threshold (currently 10KB), at which point we greedily read from connections.
  790. Because the Tor protocol generates roughly the same number of outgoing
  791. bytes as incoming bytes, it is sufficient in practice to limit only
  792. incoming bytes.
  793. % Is it? Fun attack: I send you lots of 1-byte-at-a-time TCP segments.
  794. % In response, you send lots of 256 byte cells. Can I use this to
  795. % make you exceed your outgoing bandwidth limit by a factor of 256? -NM
  796. % Can we resolve this by, when reading from edge connections, rounding up
  797. % the bytes read (wrt buckets) to the nearest multiple of 256? -RD
  798. % How's this? -NM
  799. With TCP streams, however, the correspondence is not one-to-one:
  800. relaying a single incoming byte can require an entire 256-byte cell.
  801. (We can't just wait for more bytes, because the local application may
  802. be waiting for a reply.)
  803. %(If we waited too long for more bytes to fill the cell, we might stall
  804. %the protocol while the local application waits for a response to the
  805. %byte we never deliver.)
  806. Therefore, we treat this case as if the entire
  807. cell size had been read, regardless of the fullness of the cell.
  808. Further, inspired by Rennhard et al's design in \cite{anonnet}, a
  809. circuit's edges heuristically distinguish interactive streams from bulk
  810. streams by comparing the frequency with which they supply cells. We can
  811. provide good latency for interactive streams by giving them preferential
  812. service, while still getting good overall throughput to the bulk
  813. streams. Such preferential treatment presents a possible end-to-end
  814. attack, but an adversary who can observe both
  815. ends of the stream can already learn this information through timing
  816. attacks.
  817. \SubSection{Congestion control}
  818. \label{subsec:congestion}
  819. Even with bandwidth rate limiting, we still need to worry about
  820. congestion, either accidental or intentional. If enough users choose the
  821. same OR-to-OR connection for their circuits, that connection can become
  822. saturated. For example, an adversary could make a large HTTP PUT request
  823. through the onion routing network to a webserver he runs, and then
  824. refuse to read any of the bytes at the webserver end of the
  825. circuit. Without some congestion control mechanism, these bottlenecks
  826. can propagate back through the entire network. We don't need to
  827. reimplement full TCP windows (with sequence numbers,
  828. the ability to drop cells when we're full and retransmit later, etc),
  829. because TCP already guarantees in-order delivery of each
  830. cell.
  831. %But we need to investigate further the effects of the current
  832. %parameters on throughput and latency, while also keeping privacy in mind;
  833. %see Section~\ref{sec:maintaining-anonymity} for more discussion.
  834. We describe our response below.
  835. \subsubsection{Circuit-level throttling}
  836. To control a circuit's bandwidth usage, each OR keeps track of two
  837. windows. The \emph{packaging window} tracks how many relay data cells the OR is
  838. allowed to package (from outside TCP streams) for transmission back to the OP,
  839. and the \emph{delivery window} tracks how many relay data cells it is willing
  840. to deliver to TCP streams outside the network. Each window is initialized
  841. (say, to 1000 data cells). When a data cell is packaged or delivered,
  842. the appropriate window is decremented. When an OR has received enough
  843. data cells (currently 100), it sends a \emph{relay sendme} cell towards the OP,
  844. with streamID zero. When an OR receives a \emph{relay sendme} cell with
  845. streamID zero, it increments its packaging window. Either of these cells
  846. increments the corresponding window by 100. If the packaging window
  847. reaches 0, the OR stops reading from TCP connections for all streams
  848. on the corresponding circuit, and sends no more relay data cells until
  849. receiving a \emph{relay sendme} cell.
  850. The OP behaves identically, except that it must track a packaging window
  851. and a delivery window for every OR in the circuit. If a packaging window
  852. reaches 0, it stops reading from streams destined for that OR.
  853. \subsubsection{Stream-level throttling}
  854. The stream-level congestion control mechanism is similar to the
  855. circuit-level mechanism above. ORs and OPs use \emph{relay sendme} cells
  856. to implement end-to-end flow control for individual streams across
  857. circuits. Each stream begins with a packaging window (currently 500 cells),
  858. and increments the window by a fixed value (50) upon receiving a \emph{relay
  859. sendme} cell. Rather than always returning a \emph{relay sendme} cell as soon
  860. as enough cells have arrived, the stream-level congestion control also
  861. has to check whether data has been successfully flushed onto the TCP
  862. stream; it sends the \emph{relay sendme} cell only when the number of bytes pending
  863. to be flushed is under some threshold (currently 10 cells' worth).
  864. Currently, non-data relay cells do not affect the windows. Thus we
  865. avoid potential deadlock issues, for example, arising because a stream
  866. can't send a \emph{relay sendme} cell when its packaging window is empty.
  867. \Section{Other design decisions}
  868. \SubSection{Resource management and denial-of-service}
  869. \label{subsec:dos}
  870. Providing Tor as a public service provides many opportunities for an
  871. attacker to mount denial-of-service attacks against the network. While
  872. flow control and rate limiting (discussed in
  873. Section~\ref{subsec:congestion}) prevent users from consuming more
  874. bandwidth than routers are willing to provide, opportunities remain for
  875. users to
  876. consume more network resources than their fair share, or to render the
  877. network unusable for other users.
  878. First of all, there are several CPU-consuming denial-of-service
  879. attacks wherein an attacker can force an OR to perform expensive
  880. cryptographic operations. For example, an attacker who sends a
  881. \emph{create} cell full of junk bytes can force an OR to perform an RSA
  882. decrypt. Similarly, an attacker can
  883. fake the start of a TLS handshake, forcing the OR to carry out its
  884. (comparatively expensive) half of the handshake at no real computational
  885. cost to the attacker.
  886. Several approaches exist to address these attacks. First, ORs may
  887. require clients to solve a puzzle \cite{puzzles-tls} while beginning new
  888. TLS handshakes or accepting \emph{create} cells. So long as these
  889. tokens are easy to verify and computationally expensive to produce, this
  890. approach limits the attack multiplier. Additionally, ORs may limit
  891. the rate at which they accept create cells and TLS connections, so that
  892. the computational work of processing them does not drown out the (comparatively
  893. inexpensive) work of symmetric cryptography needed to keep cells
  894. flowing. This rate limiting could, however, allow an attacker
  895. to slow down other users when they build new circuits.
  896. % What about link-to-link rate limiting?
  897. Attackers also have an opportunity to attack the Tor network by mounting
  898. attacks on its hosts and network links. Disrupting a single circuit or
  899. link breaks all currently open streams passing along that part of the
  900. circuit. Indeed, this same loss of service occurs when a router crashes
  901. or its operator restarts it. The current Tor design treats such attacks
  902. as intermittent network failures, and depends on users and applications
  903. to respond or recover as appropriate. A future design could use an
  904. end-to-end TCP-like acknowledgment protocol, so that no streams are
  905. lost unless the entry or exit point itself is disrupted. This solution
  906. would require more buffering at the network edges, however, and the
  907. performance and anonymity implications from this extra complexity still
  908. require investigation.
  909. \SubSection{Exit policies and abuse}
  910. \label{subsec:exitpolicies}
  911. %XXX originally, we planned to put the "users only know the hostname,
  912. % not the IP, but exit policies are by IP" problem here too. Worth
  913. % while still? -RD
  914. Exit abuse is a serious barrier to wide-scale Tor deployment. Anonymity
  915. presents would-be vandals and abusers with an opportunity to hide
  916. the origins of their activities. Attackers can harm the Tor network by
  917. implicating exit servers for their abuse. Also, applications that commonly
  918. use IP-based authentication (such as institutional mail or web servers)
  919. can be fooled by the fact that anonymous connections appear to originate
  920. at the exit OR.
  921. We stress that Tor does not enable any new class of abuse. Spammers
  922. and other attackers already have access to thousands of misconfigured
  923. systems worldwide, and the Tor network is far from the easiest way
  924. to launch these antisocial or illegal attacks.
  925. %Indeed, because of its limited
  926. %anonymity, Tor is probably not a good way to commit crimes.
  927. But because the
  928. onion routers can easily be mistaken for the originators of the abuse,
  929. and the volunteers who run them may not want to deal with the hassle of
  930. repeatedly explaining anonymity networks, we must block or limit attacks
  931. and other abuse that travel through the Tor network.
  932. To mitigate abuse issues, in Tor, each onion router's \emph{exit policy}
  933. describes to which external addresses and ports the router will permit
  934. stream connections. On one end of the spectrum are \emph{open exit}
  935. nodes that will connect anywhere. On the other end are \emph{middleman}
  936. nodes that only relay traffic to other Tor nodes, and \emph{private exit}
  937. nodes that only connect to a local host or network. Using a private
  938. exit (if one exists) is a more secure way for a client to connect to a
  939. given host or network---an external adversary cannot eavesdrop traffic
  940. between the private exit and the final destination, and so is less sure of
  941. Alice's destination and activities. Most onion routers will function as
  942. \emph{restricted exits} that permit connections to the world at large,
  943. but prevent access to certain abuse-prone addresses and services. In
  944. general, nodes can require a variety of forms of traffic authentication
  945. \cite{or-discex00}.
  946. %The abuse issues on closed (e.g. military) networks are different
  947. %from the abuse on open networks like the Internet. While these IP-based
  948. %access controls are still commonplace on the Internet, on closed networks,
  949. %nearly all participants will be honest, and end-to-end authentication
  950. %can be assumed for important traffic.
  951. Many administrators will use port restrictions to support only a
  952. limited set of well-known services, such as HTTP, SSH, or AIM.
  953. This is not a complete solution, of course, since abuse opportunities for these
  954. protocols are still well known.
  955. A further solution may be to use proxies to clean traffic for certain
  956. protocols as it leaves the network. For example, much abusive HTTP
  957. behavior (such as exploiting buffer overflows or well-known script
  958. vulnerabilities) can be detected in a straightforward manner.
  959. Similarly, one could run automatic spam filtering software (such as
  960. SpamAssassin) on email exiting the OR network.
  961. ORs may also choose to rewrite exiting traffic in order to append
  962. headers or other information to indicate that the traffic has passed
  963. through an anonymity service. This approach is commonly used
  964. by email-only anonymity systems. When possible, ORs can also
  965. run on servers with hostnames such as {\it anonymous}, to further
  966. alert abuse targets to the nature of the anonymous traffic.
  967. A mixture of open and restricted exit nodes will allow the most
  968. flexibility for volunteers running servers. But while many
  969. middleman nodes help provide a large and robust network,
  970. having only a few exit nodes reduces the number of points
  971. an adversary needs to monitor for traffic analysis, and places a
  972. greater burden on the exit nodes. This tension can be seen in the
  973. Java Anon Proxy
  974. cascade model, wherein only one node in each cascade needs to handle
  975. abuse complaints---but an adversary only needs to observe the entry
  976. and exit of a cascade to perform traffic analysis on all that
  977. cascade's users. The Hydra model (many entries, few exits) presents a
  978. different compromise: only a few exit nodes are needed, but an
  979. adversary needs to work harder to watch all the clients; see
  980. Section~\ref{sec:conclusion}.
  981. Finally, we note that exit abuse must not be dismissed as a peripheral
  982. issue: when a system's public image suffers, it can reduce the number
  983. and diversity of that system's users, and thereby reduce the anonymity
  984. of the system itself. Like usability, public perception is also a
  985. security parameter. Sadly, preventing abuse of open exit nodes is an
  986. unsolved problem, and will probably remain an arms race for the
  987. forseeable future. The abuse problems faced by Princeton's CoDeeN
  988. project \cite{darkside} give us a glimpse of likely issues.
  989. \SubSection{Directory Servers}
  990. \label{subsec:dirservers}
  991. First-generation Onion Routing designs \cite{freedom2-arch,or-jsac98} used
  992. in-band network status updates: each router flooded a signed statement
  993. to its neighbors, which propagated it onward. But anonymizing networks
  994. have different security goals than typical link-state routing protocols.
  995. For example, delays (accidental or intentional)
  996. that can cause different parts of the network to have different pictures
  997. of link-state and topology are not only inconvenient---they give
  998. attackers an opportunity to exploit differences in client knowledge.
  999. We also worry about attacks to deceive a
  1000. client about the router membership list, topology, or current network
  1001. state. Such \emph{partitioning attacks} on client knowledge help an
  1002. adversary to efficiently deploy resources
  1003. when attacking a target \cite{minion-design}.
  1004. Tor uses a small group of redundant, well-known onion routers to
  1005. track changes in network topology and node state, including keys and
  1006. exit policies. Each such \emph{directory server} also acts as an HTTP
  1007. server, so participants can fetch current network state and router
  1008. lists (a \emph{directory}), and so other onion routers can upload
  1009. their router descriptors. Onion routers periodically publish signed
  1010. statements of their state to each directory server, which combines this
  1011. state information with its own view of network liveness, and generates
  1012. a signed description of the entire network state. Client software is
  1013. pre-loaded with a list of the directory servers and their keys; it uses
  1014. this information to bootstrap each client's view of the network.
  1015. When a directory server receives a signed statement from an onion
  1016. router, it recognizes the onion router by its identity key. Directory
  1017. servers do not automatically advertise unrecognized ORs. (If they did,
  1018. an adversary could take over the network by creating many servers
  1019. \cite{sybil}.) Instead, new nodes must be approved by the directory
  1020. server administrator before they are included. Mechanisms for automated
  1021. node approval are an area of active research, and are discussed more
  1022. in Section~\ref{sec:maintaining-anonymity}.
  1023. Of course, a variety of attacks remain. An adversary who controls
  1024. a directory server can track certain clients by providing different
  1025. information---perhaps by listing only nodes under its control, or by
  1026. informing only certain clients about a given node. Even an external
  1027. adversary can exploit differences in client knowledge: clients who use
  1028. a node listed on one directory server but not the others are vulnerable.
  1029. Thus these directory servers must be synchronized and redundant.
  1030. Directories are valid if they are signed by a threshold of the directory
  1031. servers.
  1032. The directory servers in Tor are modeled after those in Mixminion
  1033. \cite{minion-design}, but our situation is easier. First, we make the
  1034. simplifying assumption that all participants agree on the set of
  1035. directory servers. Second, while Mixminion needs to predict node
  1036. behavior, Tor only needs a threshold consensus of the current
  1037. state of the network.
  1038. Tor directory servers build a consensus directory through a simple
  1039. four-round broadcast protocol. In round one, each server dates and
  1040. signs its current opinion, and broadcasts it to the other directory
  1041. servers; then in round two, each server rebroadcasts all the signed
  1042. opinions it has received. At this point all directory servers check
  1043. to see whether any server has signed multiple opinions in the same
  1044. period. Such a server is either broken or cheating, so the protocol
  1045. stops and notifies the administrators, who either remove the cheater
  1046. or wait for the broken server to be fixed. If there are no
  1047. discrepancies, each directory server then locally computes an algorithm
  1048. (described below)
  1049. on the set of opinions, resulting in a uniform shared directory. In
  1050. round three servers sign this directory and broadcast it; and finally
  1051. in round four the servers rebroadcast the directory and all the
  1052. signatures. If any directory server drops out of the network, its
  1053. signature is not included on the final directory.
  1054. The rebroadcast steps ensure that a directory server is heard by
  1055. either all of the other servers or none of them, even when some links
  1056. are down (assuming that any two directory servers can talk directly or
  1057. via a third). Broadcasts are feasible because there are relatively few
  1058. directory servers (currently 3, but we expect as many as 9 as the network
  1059. scales). Computing the shared directory locally is a straightforward
  1060. threshold voting process: we include an OR if a majority of directory
  1061. servers believe it to be good.
  1062. To avoid attacks where a router connects to all the directory servers
  1063. but refuses to relay traffic from other routers, the directory servers
  1064. must build circuits and use them to anonymously test router reliability
  1065. \cite{mix-acc}.
  1066. Using directory servers is simpler and more flexible than flooding.
  1067. For example, flooding complicates the analysis when we
  1068. start experimenting with non-clique network topologies. And because
  1069. the directories are signed, they can be cached by other onion routers.
  1070. Thus directory servers are not a performance
  1071. bottleneck when we have many users, and do not aid traffic analysis by
  1072. forcing clients to periodically announce their existence to any
  1073. central point.
  1074. \Section{Rendezvous points and location privacy}
  1075. \label{sec:rendezvous}
  1076. Rendezvous points are a building block for \emph{location-hidden
  1077. services} (also known as \emph{responder anonymity}) in the Tor
  1078. network. Location-hidden services allow Bob to offer a TCP
  1079. service, such as a webserver, without revealing its IP address.
  1080. This type of anonymity protects against distributed DoS attacks:
  1081. attackers are forced to attack the onion routing network as a whole
  1082. rather than just Bob's IP address.
  1083. Our design for location-hidden servers has the following goals.
  1084. \textbf{Flood-proof:} Bob needs a way to filter incoming requests,
  1085. so an attacker cannot flood Bob simply by sending many requests.
  1086. \textbf{Robust:} Bob should be able to maintain a long-term pseudonymous
  1087. identity even in the presence of router failure. Bob's service must
  1088. not be tied to a single OR, and Bob must be able to tie his service
  1089. to new ORs. \textbf{Smear-resistant:} if a social attacker offers a
  1090. location-hidden service that is illegal or disreputable, it should not
  1091. appear---even to a casual observer---that a rendezvous router is hosting
  1092. that service. \textbf{Application-transparent:} Although we require users
  1093. to run special software to access location-hidden servers, we must not
  1094. require them to modify their applications.
  1095. We provide location-hiding for Bob by allowing him to advertise
  1096. several onion routers (his \emph{introduction points}) as contact
  1097. points. He may do this on any robust efficient
  1098. key-value lookup system with authenticated updates, such as a
  1099. distributed hash table (DHT) like CFS \cite{cfs:sosp01}\footnote{
  1100. Rather than rely on an external infrastructure, the Onion Routing network
  1101. can run the DHT; to begin, we can run a simple lookup system on the
  1102. directory servers.} Alice, the client, chooses an OR as her
  1103. \emph{rendezvous point}. She connects to one of Bob's introduction
  1104. points, informs him about her rendezvous point, and then waits for him
  1105. to connect to the rendezvous point. This extra level of indirection
  1106. helps Bob's introduction points avoid problems associated with serving
  1107. unpopular files directly (for example, if Bob chooses
  1108. an introduction point in Texas to serve anti-ranching propaganda,
  1109. or if Bob's service tends to get attacked by network vandals).
  1110. The extra level of indirection also allows Bob to respond to some requests
  1111. and ignore others.
  1112. We give an overview of the steps of a rendezvous. These steps are
  1113. performed on behalf of Alice and Bob by their local onion proxies;
  1114. application integration is described more fully below.
  1115. \begin{tightlist}
  1116. \item Bob chooses some introduction points, and advertises them on
  1117. the DHT. He can add more later.
  1118. \item Bob establishes a Tor circuit to each of his introduction points,
  1119. and waits. No data is transmitted until a request is received.
  1120. \item Alice learns about Bob's service out of band (perhaps Bob told her,
  1121. or she found it on a website). She retrieves the details of Bob's
  1122. service from the DHT.
  1123. \item Alice chooses an OR to serve as the rendezvous point (RP) for this
  1124. transaction. She establishes a circuit to RP, and gives it a
  1125. rendezvous cookie, which it will use to recognize Bob.
  1126. \item Alice opens an anonymous stream to one of Bob's introduction
  1127. points, and gives it a message (encrypted for Bob) which tells him
  1128. about herself, her chosen RP and the rendezvous cookie, and the
  1129. first half of an ephemeral
  1130. key handshake. The introduction point sends the message to Bob.
  1131. \item If Bob wants to talk to Alice, he builds a new circuit to Alice's
  1132. RP and provides the rendezvous cookie and the second half of the DH
  1133. handshake (along with a hash of the session key they now share).
  1134. \item The RP connects Alice's circuit to Bob's. Note that RP can't
  1135. recognize Alice, Bob, or the data they transmit.
  1136. \item Alice now sends a \emph{relay begin} cell along the circuit. It
  1137. arrives at Bob's onion proxy. Bob's onion proxy connects to Bob's
  1138. webserver.
  1139. \item An anonymous stream has been established, and Alice and Bob
  1140. communicate as normal.
  1141. \end{tightlist}
  1142. When establishing an introduction point, Bob provides the onion router
  1143. with a public ``introduction'' key. The hash of this public key
  1144. identifies a unique service, and (since Bob is required to sign his
  1145. messages) prevents anybody else from usurping Bob's introduction point
  1146. in the future. Bob uses the same public key when establishing the other
  1147. introduction points for that service. Bob periodically refreshes his
  1148. entry in the DHT.
  1149. The message that Alice gives
  1150. the introduction point includes a hash of Bob's public key to identify
  1151. the service, along with an optional initial authentication token (the
  1152. introduction point can do prescreening, for example to block replays). Her
  1153. message to Bob may include an end-to-end authentication token so Bob
  1154. can choose whether to respond.
  1155. The authentication tokens can be used to provide selective access:
  1156. important users get tokens to ensure uninterrupted access to the
  1157. service. During normal situations, Bob's service might simply be offered
  1158. directly from mirrors, and Bob gives out tokens to high-priority users. If
  1159. the mirrors are knocked down by distributed DoS attacks or even
  1160. physical attack, those users can switch to accessing Bob's service via
  1161. the Tor rendezvous system.
  1162. Since Bob's introduction points might themselves be subject to DoS he
  1163. could be faced with a choice between keeping many
  1164. introduction connections open or risking such an attack. In this case,
  1165. similar to the authentication tokens, he can provide selected users
  1166. with a current list and/or future schedule of introduction points that
  1167. are not advertised in the DHT\@. This is most likely to be practical
  1168. if there is a relatively stable and large group of introduction points
  1169. generally available. Alternatively, Bob could give secret public keys
  1170. to selected users for consulting the DHT\@. All of these approaches
  1171. have the advantage of limiting the damage that can be done even if
  1172. some of the selected high-priority users collude in the DoS\@.
  1173. \SubSection{Integration with user applications}
  1174. Bob configures his onion proxy to know the local IP address and port of his
  1175. service, a strategy for authorizing clients, and a public key. Bob
  1176. publishes the public key, an expiration time (``not valid after''), and
  1177. the current introduction points for his service into the DHT, all indexed
  1178. by the hash of the public key. Note that Bob's webserver is unmodified,
  1179. and doesn't even know that it's hidden behind the Tor network.
  1180. Alice's applications also work unchanged---her client interface
  1181. remains a SOCKS proxy. We encode all of the necessary information
  1182. into the fully qualified domain name Alice uses when establishing her
  1183. connection. Location-hidden services use a virtual top level domain
  1184. called `.onion': thus hostnames take the form x.y.onion where x is the
  1185. authentication cookie, and y encodes the hash of PK. Alice's onion proxy
  1186. examines addresses; if they're destined for a hidden server, it decodes
  1187. the PK and starts the rendezvous as described in the table above.
  1188. \subsection{Previous rendezvous work}
  1189. Rendezvous points in low-latency anonymity systems were first
  1190. described for use in ISDN telephony \cite{isdn-mixes,jerichow-jsac98}.
  1191. Later low-latency designs used rendezvous points for hiding location
  1192. of mobile phones and low-power location trackers
  1193. \cite{federrath-ih96,reed-protocols97}. Rendezvous for low-latency
  1194. Internet connections was suggested in early Onion Routing work
  1195. \cite{or-ih96}; however, the first published design of rendezvous
  1196. points for low-latency Internet connections was by Ian Goldberg
  1197. \cite{ian-thesis}. His design differs from
  1198. ours in three ways. First, Goldberg suggests that Alice should manually
  1199. hunt down a current location of the service via Gnutella; whereas our
  1200. use of CFS makes lookup faster, more robust, and transparent to the
  1201. user. Second, in Tor the client and server negotiate ephemeral keys
  1202. via Diffie-Hellman, so plaintext is not exposed at any point. Third,
  1203. our design tries to minimize the exposure associated with running the
  1204. service, to encourage volunteers to offer introduction and rendezvous
  1205. point services. Tor's introduction points do not output any bytes to the
  1206. clients, and the rendezvous points don't know the client or the server,
  1207. and can't read the data being transmitted. The indirection scheme is
  1208. also designed to include authentication/authorization---if Alice doesn't
  1209. include the right cookie with her request for service, Bob need not even
  1210. acknowledge his existence.
  1211. \Section{Attacks and Defenses}
  1212. \label{sec:attacks}
  1213. % XXX In sec4 we should talk about bandwidth classes, which will
  1214. % enable us to accept a lot more ORs than if we continue to
  1215. % require 10mbit connections for all ORs. -RD
  1216. Below we summarize a variety of attacks, and discuss how well our
  1217. design withstands them.
  1218. \subsubsection*{Passive attacks}
  1219. \emph{Observing user traffic patterns.} Observations of connection
  1220. between a user and her first onion router will not reveal to whom
  1221. the user is connecting or what information is being sent. It will
  1222. reveal patterns of user traffic (both sent and received). Simple
  1223. profiling of user connection patterns is not generally possible,
  1224. however, because multiple application streams may be operating
  1225. simultaneously or in series over a single circuit. Thus, further
  1226. processing is necessary to discern even these usage patterns.
  1227. \emph{Observing user content.} At the user end, content is
  1228. encrypted; however, connections from the network to arbitrary
  1229. websites may not be. Further, a responding website may itself be
  1230. hostile. Filtering content is not a primary goal of
  1231. Onion Routing; nonetheless, Tor can directly make use of Privoxy and
  1232. related filtering services to anonymize application data streams.
  1233. \emph{Option distinguishability.} Configuration options can be a
  1234. source of distinguishable patterns. In general there is economic
  1235. incentive to allow preferential services \cite{econymics}, and some
  1236. degree of configuration choice can attract users, which
  1237. provide anonymity. So far, however, we have
  1238. not found a compelling use case in Tor for any client-configurable
  1239. options. Thus, clients are currently distinguishable only by their
  1240. behavior.
  1241. %XXX Actually, circuitrebuildperiod is such an option. -RD
  1242. \emph{End-to-end Timing correlation.} Tor only minimally hides
  1243. end-to-end timing correlations. An attacker watching patterns of
  1244. traffic at the initiator and the responder will be
  1245. able to confirm the correspondence with high probability. The
  1246. greatest protection currently available against such confirmation is to hide
  1247. the connection between the onion proxy and the first Tor node,
  1248. by running the onion proxy locally or
  1249. behind a firewall. This approach
  1250. requires an observer to separate traffic originating at the onion
  1251. router from traffic passing through it; but because we do not mix
  1252. or pad, this does not provide much defense.
  1253. \emph{End-to-end Size correlation.} Simple packet counting
  1254. without timing correlation will also be effective in confirming
  1255. endpoints of a stream. However, even without padding, we have some
  1256. limited protection: the leaky pipe topology means different numbers
  1257. of packets may enter one end of a circuit than exit at the other.
  1258. \emph{Website fingerprinting.} All the above passive
  1259. attacks that are at all effective are traffic confirmation attacks.
  1260. This puts them outside our general design goals. There is also
  1261. a passive traffic analysis attack that is potentially effective.
  1262. Rather than searching exit connections for timing and volume
  1263. correlations, the adversary may build up a database of
  1264. ``fingerprints'' containing file sizes and access patterns for many
  1265. interesting websites. He can confirm a user's connection to a given
  1266. site simply by consulting the database. This attack has
  1267. been shown to be effective against SafeWeb \cite{hintz-pet02}. But
  1268. Tor is not as vulnerable as SafeWeb to this attack: there is the
  1269. possibility that multiple streams are exiting the circuit at
  1270. different places concurrently. Also, fingerprinting will be limited to
  1271. the granularity of cells, currently 256 bytes. Other defenses include
  1272. larger cell sizes and/or minimal padding schemes that group websites
  1273. into large sets. But this remains an open problem. Link
  1274. padding or long-range dummies may also make fingerprints harder to
  1275. detect.\footnote{Note that
  1276. such fingerprinting should not be confused with the latency attacks
  1277. of \cite{back01}. Those require a fingerprint of the latencies of
  1278. all circuits through the network, combined with those from the
  1279. network edges to the targeted user and the responder website. While
  1280. these are in principal feasible and surprises are always possible,
  1281. these constitute a much more complicated attack, and there is no
  1282. current evidence of their practicality.}
  1283. \subsubsection*{Active attacks}
  1284. \emph{Compromise keys.} An attacker who learns the TLS session key can see
  1285. the (still encrypted) relay cells on that circuit; learning the circuit
  1286. session key lets him unwrap one layer of the encryption. An attacker
  1287. who learns an OR's TLS private key can impersonate that OR, but he must
  1288. also learn the onion key to decrypt \emph{create} cells (and because of
  1289. perfect forward secrecy, he cannot hijack already established circuits
  1290. without also compromising their session keys). Periodic key rotation
  1291. limits the window of opportunity for these attacks. On the other hand,
  1292. an attacker who learns a node's identity key can replace that node
  1293. indefinitely by sending new forged descriptors to the directory servers.
  1294. \emph{Iterated compromise.} A roving adversary who can
  1295. compromise ORs (by system intrusion, legal coersion, or extralegal
  1296. coersion) could march down the circuit compromising the
  1297. nodes until he reaches the end. Unless the adversary can complete
  1298. this attack within the lifetime of the circuit, however, the ORs
  1299. will have discarded the necessary information before the attack can
  1300. be completed. (Thanks to the perfect forward secrecy of session
  1301. keys, the attacker cannot force nodes to decrypt recorded
  1302. traffic once the circuits have been closed.) Additionally, building
  1303. circuits that cross jurisdictions can make legal coercion
  1304. harder---this phenomenon is commonly called ``jurisdictional
  1305. arbitrage.'' The Java Anon Proxy project recently experienced the
  1306. need for this approach, when
  1307. the German government successfully ordered them to add a backdoor to
  1308. all of their nodes \cite{jap-backdoor}.
  1309. \emph{Run a recipient.} By running a Web server, an adversary
  1310. trivially learns the timing patterns of users connecting to it, and
  1311. can introduce arbitrary patterns in its responses. This can greatly
  1312. facilitate end-to-end attacks: If the adversary can induce certain
  1313. users to connect to his webserver (perhaps by advertising
  1314. content targeted at those users), she now holds one end of their
  1315. connection. Additionally, there is a danger that the application
  1316. protocols and associated programs can be induced to reveal
  1317. information about the initiator. Tor does not aim to solve this problem;
  1318. we depend on Privoxy and similar protocol cleaners.
  1319. \emph{Run an onion proxy.} It is expected that end users will
  1320. nearly always run their own local onion proxy. However, in some
  1321. settings, it may be necessary for the proxy to run
  1322. remotely---typically, in an institutional setting which wants
  1323. to monitor the activity of those connecting to the proxy.
  1324. Compromising an onion proxy means compromising all future connections
  1325. through it.
  1326. \emph{DoS non-observed nodes.} An observer who can observe some
  1327. of the Tor network can increase the value of this traffic analysis
  1328. by attacking non-observed nodes to shut them down, reduce
  1329. their reliability, or persuade users that they are not trustworthy.
  1330. The best defense here is robustness.
  1331. \emph{Run a hostile node.} In addition to the abilities of a
  1332. local observer, an isolated hostile node can create circuits through
  1333. itself, or alter traffic patterns, to affect traffic at
  1334. other nodes. Its ability to directly DoS a neighbor is now limited
  1335. by bandwidth throttling. Nonetheless, in order to compromise the
  1336. anonymity of the endpoints of a circuit by its observations, a
  1337. hostile node must be immediately adjacent to that endpoint.
  1338. \emph{Run multiple hostile nodes.} If an adversary is able to
  1339. run multiple ORs, and is able to persuade the directory servers
  1340. that those ORs are trustworthy and independant, then occasionally
  1341. some user will choose one of those ORs for the start and another
  1342. as the end of a circuit. When this happens, the user's
  1343. anonymity is compromised for those streams. If an adversary can
  1344. control $m$ out of $N$ nodes, he should be able to correlate at most
  1345. $\left(\frac{m}{N}\right)^2$ of the traffic in this way---although an
  1346. adversary
  1347. could possibly attract a disproportionately large amount of traffic
  1348. by running an exit node with an unusually permissive exit policy.
  1349. \emph{Compromise entire path.} Anyone compromising both
  1350. endpoints of a circuit can confirm this with high probability. If
  1351. the entire path is compromised, this becomes a certainty; however,
  1352. the added benefit to the adversary of such an attack is small in
  1353. relation to the difficulty.
  1354. \emph{Run a hostile directory server.} Directory servers control
  1355. admission to the network. However, because the network directory
  1356. must be signed by a majority of servers, the threat of a single
  1357. hostile server is minimized.
  1358. \emph{Selectively DoS a Tor node.} As noted, neighbors are
  1359. bandwidth limited; however, it is possible to open up sufficient
  1360. circuits that converge at a single onion router to
  1361. overwhelm its network connection, its ability to process new
  1362. circuits, or both.
  1363. % We aim to address something like this attack with our congestion
  1364. % control algorithm.
  1365. \emph{Introduce timing into messages.} This is simply a stronger
  1366. version of passive timing attacks already discussed earlier.
  1367. \emph{Tagging attacks.} A hostile node could ``tag'' a
  1368. cell by altering it. This would render it unreadable, but if the
  1369. stream is, for example, an unencrypted request to a Web site,
  1370. the garbled content coming out at the appropriate time could confirm
  1371. the association. However, integrity checks on cells prevent
  1372. this attack.
  1373. \emph{Replace contents of unauthenticated protocols.} When
  1374. relaying an unauthenticated protocol like HTTP, a hostile exit node
  1375. can impersonate the target server. Thus, whenever possible, clients
  1376. should prefer protocols with end-to-end authentication.
  1377. \emph{Replay attacks.} Some anonymity protocols are vulnerable
  1378. to replay attacks. Tor is not; replaying one side of a handshake
  1379. will result in a different negotiated session key, and so the rest
  1380. of the recorded session can't be used.
  1381. \emph{Smear attacks.} An attacker could use the Tor network to
  1382. engage in socially dissapproved acts, so as to try to bring the
  1383. entire network into disrepute and get its operators to shut it down.
  1384. Exit policies can help reduce the possibilities for abuse, but
  1385. ultimately, the network will require volunteers who can tolerate
  1386. some political heat.
  1387. \emph{Distribute hostile code.} An attacker could trick users
  1388. into running subverted Tor software that did not, in fact, anonymize
  1389. their connections---or worse, trick ORs into running weakened
  1390. software that provided users with less anonymity. We address this
  1391. problem (but do not solve it completely) by signing all Tor releases
  1392. with an official public key, and including an entry in the directory
  1393. describing which versions are currently believed to be secure. To
  1394. prevent an attacker from subverting the official release itself
  1395. (through threats, bribery, or insider attacks), we provide all
  1396. releases in source code form, encourage source audits, and
  1397. frequently warn our users never to trust any software (even from
  1398. us!) that comes without source.
  1399. \subsubsection*{Directory attacks}
  1400. \emph{Destroy directory servers.} If a few directory
  1401. servers drop out of operation, the others still arrive at a final
  1402. directory. So long as any directory servers remain in operation,
  1403. they will still broadcast their views of the network and generate a
  1404. consensus directory. (If more than half are destroyed, this
  1405. directory will not, however, have enough signatures for clients to
  1406. use it automatically; human intervention will be necessary for
  1407. clients to decide whether to trust the resulting directory, or continue
  1408. to use the old valid one.)
  1409. \emph{Subvert a directory server.} By taking over a directory
  1410. server, an attacker can influence (but not control) the final
  1411. directory. Since ORs are included or excluded by majority vote,
  1412. the corrupt directory can at worst cast a tie-breaking vote to
  1413. decide whether to include marginal ORs. How often such marginal
  1414. cases will occur in practice, however, remains to be seen.
  1415. \emph{Subvert a majority of directory servers.} If the
  1416. adversary controls more than half of the directory servers, he can
  1417. decide on a final directory, and thus can include as many
  1418. compromised ORs in the final directory as he wishes. Other than
  1419. trying to ensure that directory server operators are truly
  1420. independent and resistant to attack, Tor does not address this
  1421. possibility.
  1422. \emph{Encourage directory server dissent.} The directory
  1423. agreement protocol requires that directory server operators agree on
  1424. the list of directory servers. An adversary who can persuade some
  1425. of the directory server operators to distrust one another could
  1426. split the quorum into mutually hostile camps, thus partitioning
  1427. users based on which directory they used. Tor does not address
  1428. this attack.
  1429. \emph{Trick the directory servers into listing a hostile OR.}
  1430. Our threat model explicitly assumes directory server operators will
  1431. be able to filter out most hostile ORs. If this is not true, an
  1432. attacker can flood the directory with compromised servers.
  1433. \emph{Convince the directories that a malfunctioning OR is
  1434. working.} In the current Tor implementation, directory servers
  1435. assume that if they can start a TLS connection to an an OR, that OR
  1436. must be running correctly. It would be easy for a hostile OR to
  1437. subvert this test by only accepting TLS connections from ORs, and
  1438. ignoring all cells. Thus, directory servers must actively test ORs
  1439. by building circuits and streams as appropriate. The benefits and
  1440. hazards of a similar approach are discussed in \cite{mix-acc}.
  1441. \subsubsection*{Attacks against rendezvous points}
  1442. \emph{Make many introduction requests.} An attacker could
  1443. attempt to deny Bob service by flooding his Introduction Point with
  1444. requests. Because the introduction point can block requests that
  1445. lack authentication tokens, however, Bob can restrict the volume of
  1446. requests he receives, or require a certain amount of computation for
  1447. every request he receives.
  1448. \emph{Attack an introduction point.} An attacker could try to
  1449. disrupt a location-hidden service by disabling its introduction
  1450. point. But because a service's identity is attached to its public
  1451. key, not its introduction point, the service can simply re-advertise
  1452. itself at a different introduction point.
  1453. \emph{Attack multiple introduction points.} If an attacker is
  1454. able to disable all of the introduction points for a given service,
  1455. he can block access to the service. However, re-advertisement of
  1456. introduction points can still be done secretly so that only
  1457. high-priority clients know the address of the service's introduction
  1458. points. These selective secret authorizations can also be issued
  1459. during normal operation. Thus an attacker must disable
  1460. all possible introduction points.
  1461. \emph{Compromise an introduction point.} If an attacker controls
  1462. an introduction point for a service, it can flood the service with
  1463. introduction requests, or prevent valid introduction requests from
  1464. reaching the hidden server. The server will notice a flooding
  1465. attempt if it receives many introduction requests. To notice
  1466. blocking of valid requests, however, the hidden server should
  1467. periodically test the introduction point by sending its introduction
  1468. requests, and making sure it receives them.
  1469. \emph{Compromise a rendezvous point.} Controlling a rendezvous
  1470. point gains an attacker no more than controlling any other OR along
  1471. a circuit, since all data passing along the rendezvous is protected
  1472. by the session key shared by the client and server.
  1473. \Section{Open Questions in Low-latency Anonymity}
  1474. \label{sec:maintaining-anonymity}
  1475. % There must be a better intro than this! -NM
  1476. In addition to the open problems discussed in
  1477. Section~\ref{subsec:non-goals}, many other questions remain to be
  1478. solved by future research before we can be confident that we
  1479. have built a secure low-latency anonymity service.
  1480. Many of these open issues are questions of balance. For example,
  1481. how often should users rotate to fresh circuits? Too-frequent
  1482. rotation is inefficient, expensive, and may lead to intersection attacks,
  1483. but too-infrequent rotation
  1484. makes the user's traffic linkable. Instead of opening a fresh
  1485. circuit; clients can also limit linkability by exiting from a middle point
  1486. of the circuit, or by truncating and re-extending the circuit, but
  1487. more analysis is needed to determine the proper trade-off.
  1488. %[XXX mention predecessor attacks?]
  1489. A similar question surrounds timing of directory operations:
  1490. how often should directories be updated? With too-infrequent
  1491. updates clients receive an inaccurate picture of the network; with
  1492. too-frequent updates the directory servers are overloaded.
  1493. %do different exit policies at different exit nodes trash anonymity sets,
  1494. %or not mess with them much?
  1495. %
  1496. %% Why would they? By routing traffic to certain nodes preferentially?
  1497. %[XXX Choosing paths and path lengths: I'm not writing this bit till
  1498. % Arma's pathselection stuff is in. -NM]
  1499. %Alice always chooses her path to contain at least
  1500. %three nodes unrelated to herself and her destination, choosing the
  1501. %number of nodes beyond the third from a geometric distribution;
  1502. %explain why. -NM
  1503. %%%% Roger said that he'd put a path selection paragraph into section
  1504. %%%% 4 that would replace this.
  1505. %
  1506. %I probably should have noted that this means loops will be on at least
  1507. %five hop routes, which should be rare given the distribution. I'm
  1508. %realizing that this is reproducing some of the thought that led to a
  1509. %default of five hops in the original onion routing design. There were
  1510. %some different assumptions, which I won't spell out now. Note that
  1511. %enclave level protections really change these assumptions. If most
  1512. %circuits are just two hops, then just a single link observer will be
  1513. %able to tell that two enclaves are communicating with high probability.
  1514. %So, it would seem that enclaves should have a four node minimum circuit
  1515. %to prevent trivial circuit insider identification of the whole circuit,
  1516. %and three hop minimum for circuits from an enclave to some nonclave
  1517. %responder. But then... we would have to make everyone obey these rules
  1518. %or a node that through timing inferred it was on a four hop circuit
  1519. %would know that it was probably carrying enclave to enclave traffic.
  1520. %Which... if there were even a moderate number of bad nodes in the
  1521. %network would make it advantageous to break the connection to conduct
  1522. %a reformation intersection attack. Ahhh! I gotta stop thinking
  1523. %about this and work on the paper some before the family wakes up.
  1524. %On Sat, Oct 25, 2003 at 06:57:12AM -0400, Paul Syverson wrote:
  1525. %> Which... if there were even a moderate number of bad nodes in the
  1526. %> network would make it advantageous to break the connection to conduct
  1527. %> a reformation intersection attack. Ahhh! I gotta stop thinking
  1528. %> about this and work on the paper some before the family wakes up.
  1529. %This is the sort of issue that should go in the 'maintaining anonymity
  1530. %with tor' section towards the end. :)
  1531. %Email from between roger and me to beginning of section above. Fix and move.
  1532. Throughout this paper, we have assumed that end-to-end traffic
  1533. confirmation will immediately and automatically defeat a low-latency
  1534. anonymity system. Even high-latency anonymity
  1535. systems can be vulnerable to end-to-end traffic confirmation, if the
  1536. traffic volumes are high enough, and if users' habits are sufficiently
  1537. distinct \cite{limits-open,statistical-disclosure}. \emph{Can
  1538. anything be done to make low-latency systems resist these attacks as
  1539. well as high-latency systems?}
  1540. Tor already makes some effort to conceal the starts and
  1541. ends of streams by wrapping all long-range control commands in
  1542. identical-looking relay cells, but more analysis is needed. Link
  1543. padding could frustrate passive observers who count packets; long-range
  1544. padding could work against observers who own the first hop in a
  1545. circuit. But more research needs to be done in order to find an
  1546. efficient and practical approach. Volunteers prefer not to run
  1547. constant-bandwidth padding; but more sophisticated traffic shaping
  1548. approaches remain somewhat unanalyzed.
  1549. %[XXX is this so?]
  1550. Recent work
  1551. on long-range padding \cite{defensive-dropping} shows promise. One
  1552. could also try to reduce correlation in packet timing by batching and
  1553. re-ordering packets, but it is unclear whether this could improve
  1554. anonymity without introducing so much latency as to render the
  1555. network unusable.
  1556. Even if passive timing attacks were wholly solved, active timing
  1557. attacks would remain. \emph{What can
  1558. be done to address attackers who can introduce timing patterns into
  1559. a user's traffic?} % [XXX mention likely approaches]
  1560. %%% I think we cover this by framing the problem as ``Can we make
  1561. %%% end-to-end characteristics of low-latency systems as good as
  1562. %%% those of high-latency systems?'' Eliminating long-term
  1563. %%% intersection is a hard problem.
  1564. %
  1565. %Even regardless of link padding from Alice to the cloud, there will be
  1566. %times when Alice is simply not online. Link padding, at the edges or
  1567. %inside the cloud, does not help for this.
  1568. In order to scale to many users, and to prevent an
  1569. attacker from observing the whole network at once, it may be necessary
  1570. for low-latency anonymity systems to support far more servers than Tor
  1571. currently anticipates. This introduces several issues. First, if
  1572. approval by a centralized set of directory servers is no longer
  1573. feasible, what mechanism should be used to prevent adversaries from
  1574. signing up many spurious servers?
  1575. Second, if clients can no longer have a complete
  1576. picture of the network at all times, how can they perform
  1577. discovery while preventing attackers from manipulating or exploiting
  1578. gaps in client knowledge? Third, if there are too many servers
  1579. for every server to constantly communicate with every other, what kind
  1580. of non-clique topology should the network use? Restricted-route
  1581. topologies promise comparable anonymity with better scalability
  1582. \cite{danezis-pets03}, but whatever topology we choose, we need some
  1583. way to keep attackers from manipulating their position within it.
  1584. Fourth, since no centralized authority is tracking server reliability,
  1585. How do we prevent unreliable servers from rendering the network
  1586. unusable? Fifth, do clients receive so much anonymity benefit from
  1587. running their own servers that we should expect them all to do so, or
  1588. do we need to find another incentive structure to motivate them?
  1589. (Tarzan and MorphMix present possible solutions.)
  1590. % [[ XXX how to approve new nodes (advogato, sybil, captcha (RTT));]
  1591. Alternatively, it may be the case that one of these problems proves
  1592. intractable, or that the drawbacks to many-server systems prove
  1593. greater than the benefits. Nevertheless, we may still do well to
  1594. consider non-clique topologies. A cascade topology may provide more
  1595. defense against traffic confirmation.
  1596. % XXX Why would it? Cite. -NM
  1597. %
  1598. % Huh? Do you mean for simple attacks just because of larger anonymity
  1599. % sets? -PS
  1600. Does the hydra topology (many input nodes, few output nodes) work
  1601. better? Are we going to get a hydra anyway because most nodes will be
  1602. middleman nodes?
  1603. As mentioned in Section~\ref{subsec:dos}, Tor could improve its
  1604. robustness against node failure by buffering transmitted stream data
  1605. at the network's edges until the data has been acknowledged by the
  1606. other end of the stream. The efficacy of this approach remains to be
  1607. tested, however, and there may be more effective means for ensuring
  1608. reliable connections in the presence of unreliable nodes.
  1609. %%% Keeping this original paragraph for a little while, since it
  1610. %%% is not the same as what's written there now.
  1611. %
  1612. %Because Tor depends on TLS and TCP to provide a reliable transport,
  1613. %when one of the servers goes down, all the circuits (and thus streams)
  1614. %traveling over that server must break. This reduces anonymity because
  1615. %everybody needs to reconnect right then (does it? how much?) and
  1616. %because exit connections all break at the same time, and it also harms
  1617. %usability. It seems the problem is even worse in a peer-to-peer
  1618. %environment, because so far such systems don't really provide an
  1619. %incentive for nodes to stay connected when they're done browsing, so
  1620. %we would expect a much higher churn rate than for onion routing.
  1621. %there ways of allowing streams to survive the loss of a node in the
  1622. %path?
  1623. % Roger or Paul suggested that we say something about incentives,
  1624. % too, but I think that's a better candidate for our future work
  1625. % section. After all, we will doubtlessly learn very much about why
  1626. % people do or don't run and use Tor in the near future. -NM
  1627. %We should run a squid at each exit node, to provide comparable anonymity
  1628. %to private exit nodes for cache hits, to speed everything up, and to
  1629. %have a buffer for funny stuff coming out of port 80.
  1630. % on the other hand, it hampers PFS, because ORs have pages in the cache.
  1631. %I previously elsewhere suggested bulk transfer proxies to carve
  1632. %up big things so that they could be downloaded in less noticeable
  1633. %pieces over several normal looking connections. We could suggest
  1634. %similarly one or a handful of squid nodes that might serve up
  1635. %some of the more sensitive but common material, especially if
  1636. %the relevant sites didn't want to or couldn't run their own OR.
  1637. %This would be better than having everyone run a squid which would
  1638. %just help identify after the fact the different history of that
  1639. %node's activity. All this kind of speculation needs to move to
  1640. %future work section I guess. -PS]
  1641. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1642. \Section{Future Directions}
  1643. \label{sec:conclusion}
  1644. Tor brings together many innovations into
  1645. a unified deployable system. But there are still several attacks that
  1646. work quite well, as well as a number of sustainability and run-time
  1647. issues remaining to be ironed out. In particular:
  1648. % Many of these (Scalability, cover traffic, morphmix)
  1649. % are duplicates from open problems.
  1650. %
  1651. \emph{Scalability:} Tor's emphasis on design simplicity and
  1652. deployability has led us to adopt a clique topology, a
  1653. semi-centralized model for directories and trusts, and a
  1654. full-network-visibility model for client knowledge. None of these
  1655. properties will scale to more than a few hundred servers, at most.
  1656. Promising approaches to better scalability exist (see
  1657. Section~\ref{sec:maintaining-anonymity}), but more deployment
  1658. experience would be helpful in learning the relative importance of
  1659. these bottlenecks.
  1660. \emph{Cover traffic:} Currently we avoid cover traffic because
  1661. whereas its costs in performance and bandwidth are clear, and because its
  1662. security benefits are not well understood. With more research
  1663. \cite{SS03,defensive-dropping}, this price/value ratio may change,
  1664. both for link-level cover traffic and also long-range cover traffic.
  1665. \emph{Better directory distribution:} Even with the threshold
  1666. directory agreement algorithm described in Section~\ref{subsec:dirservers},
  1667. directory distribution is still performance-critical. We must find more
  1668. decentralized yet practical ways to distribute up-to-date snapshots of
  1669. network status without introducing new attacks. Also, directory
  1670. retrieval presents a scaling problem, since clients currently
  1671. download a description of the entire network state every 15
  1672. minutes. As the state grows larger and clients more numerous, we
  1673. may need to move to a solution in which clients only receive
  1674. incremental updates to directory state.
  1675. \emph{Implementing location-hidden servers:} While
  1676. Section~\ref{sec:rendezvous} describes a design for rendezvous
  1677. points and location-hidden servers, these features have not yet been
  1678. implemented. While doing so we are likely to encounter additional
  1679. issues that must be resolved, both in terms of usability and anonymity.
  1680. \emph{Further specification review:} Although we have a public,
  1681. byte-level specification for the Tor protocols, this document has
  1682. not received extensive external review. We hope that as Tor
  1683. becomes more widely deployed, more people will examine its
  1684. specification.
  1685. \emph{Multisystem interoperability:} We are currently working with the
  1686. designers of MorphMix to make the common elements of our two systems
  1687. share a common specification and implementation. So far, this seems
  1688. to be relatively straightforward. Interoperability will allow testing
  1689. and direct comparison of the two designs for trust and scalability.
  1690. % XXXX Bandwidth classes.
  1691. \emph{Wider-scale deployment:} The original goal of Tor was to
  1692. gain experience in deploying an anonymizing overlay network, and
  1693. learn from having actual users. We are now at a point in design
  1694. and development where we can start deploying a wider network. Once
  1695. we have many actual users, we will doubtlessly be better
  1696. able to evaluate some of our design decisions, including our
  1697. robustness/latency trade-offs, our performance trade-offs (including
  1698. cell size), our abuse-prevention mechanisms, and
  1699. our overall usability.
  1700. % XXX large and small cells on same network.
  1701. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1702. %% commented out for anonymous submission
  1703. %\Section{Acknowledgments}
  1704. % Peter Palfrader, Geoff Goodell, Adam Shostack, Joseph Sokol-Margolis,
  1705. % John Bashinski
  1706. % for editing and comments
  1707. % Matej Pfajfar, Andrei Serjantov, Marc Rennhard for design discussions
  1708. % Bram Cohen for congestion control discussions
  1709. % Adam Back for suggesting telescoping circuits
  1710. % Cathy Meadows for formal analysis of candidate extend DH protocols
  1711. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1712. \bibliographystyle{latex8}
  1713. \bibliography{tor-design}
  1714. \end{document}
  1715. % Style guide:
  1716. % U.S. spelling
  1717. % avoid contractions (it's, can't, etc.)
  1718. % prefer ``for example'' or ``such as'' to e.g.
  1719. % prefer ``that is'' to i.e.
  1720. % 'mix', 'mixes' (as noun)
  1721. % 'mix-net'
  1722. % 'mix', 'mixing' (as verb)
  1723. % 'middleman' [Not with a hyphen; the hyphen has been optional
  1724. % since Middle English.]
  1725. % 'nymserver'
  1726. % 'Cypherpunk', 'Cypherpunks', 'Cypherpunk remailer'
  1727. % 'Onion Routing design', 'onion router' [note capitalization]
  1728. % 'SOCKS'
  1729. % Try not to use \cite as a noun.
  1730. % 'Authorizating' sounds great, but it isn't a word.
  1731. % 'First, second, third', not 'Firstly, secondly, thirdly'.
  1732. % 'circuit', not 'channel'
  1733. % Typography: no space on either side of an em dash---ever.
  1734. % Hyphens are for multi-part words; en dashs imply movement or
  1735. % opposition (The Alice--Bob connection); and em dashes are
  1736. % for punctuation---like that.
  1737. % A relay cell; a control cell; a \emph{create} cell; a
  1738. % \emph{relay truncated} cell. Never ``a \emph{relay truncated}.''
  1739. %
  1740. % 'Substitute ``Damn'' every time you're inclined to write ``very;'' your
  1741. % editor will delete it and the writing will be just as it should be.'
  1742. % -- Mark Twain