tor-design.tex 99 KB

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