tor-design.tex 100 KB

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