tor-design.tex 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123
  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: Design of a Next-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 connection-based low-latency anonymous communication
  42. system. It is intended as an update and replacement for Onion Routing
  43. and addresses many limitations in the original Onion Routing design.
  44. Tor works in a real-world Internet environment,
  45. requires little synchronization or coordination between nodes, and
  46. protects against known anonymity-breaking attacks as well
  47. as or better than other systems with similar design parameters.
  48. \end{abstract}
  49. %\begin{center}
  50. %\textbf{Keywords:} anonymity, peer-to-peer, remailer, nymserver, reply block
  51. %\end{center}
  52. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  53. \Section{Overview}
  54. \label{sec:intro}
  55. Onion routing is a distributed overlay network designed to anonymize
  56. low-latency TCP-based applications such as web browsing, secure shell,
  57. and instant messaging. Users choose a path through the network and
  58. build a \emph{virtual circuit}, in which each node in the path knows its
  59. predecessor and successor, but no others. Traffic flowing down the circuit
  60. is sent in fixed-size \emph{cells}, which are unwrapped by a symmetric key
  61. at each node, revealing the downstream node. The original Onion Routing
  62. project published several design and analysis papers
  63. \cite{or-jsac98,or-discex00,or-ih96,or-pet00}. While there was briefly
  64. a wide area Onion Routing network,
  65. % how long is briefly? a day, a month? -RD
  66. the only long-running and publicly accessible
  67. implementation was a fragile proof-of-concept that ran on a single
  68. machine. Many critical design and deployment issues were never implemented,
  69. and the design has not been updated in several years.
  70. Here we describe Tor, a protocol for asynchronous, loosely
  71. federated onion routers that provides the following improvements over
  72. the old Onion Routing design:
  73. % Also itemize improvements over Freedom.
  74. \begin{tightlist}
  75. \item \textbf{Perfect forward secrecy:} The original Onion Routing
  76. design is vulnerable to a single hostile node recording traffic and later
  77. forcing successive nodes in the circuit to decrypt it. Rather than using
  78. onions to lay the circuits, Tor uses an incremental or \emph{telescoping}
  79. path-building design, where the initiator negotiates session keys with
  80. each successive hop in the circuit. Onion replay detection is no longer
  81. necessary, and the process of building circuits is more reliable, since
  82. the initiator knows which hop failed and can try extending to a new node.
  83. \item \textbf{Applications talk to the onion proxy via Socks:}
  84. The original Onion Routing design required a separate proxy for each
  85. supported application protocol, resulting in a lot of extra code --- most
  86. of which was never written, so most applications were not supported.
  87. Tor uses the unified and standard Socks
  88. \cite{socks4,socks5} interface, allowing us to support any TCP-based
  89. program without modification.
  90. \item \textbf{Many applications can share one circuit:} The original
  91. Onion Routing design built one circuit for each request. Aside from the
  92. performance issues of doing public key operations for every request, it
  93. also turns out that regular communications patterns mean building lots
  94. of circuits, which can endanger anonymity.
  95. The very first Onion Routing design \cite{or-ih96} protected against
  96. this to some extent by hiding network access behind an onion
  97. router/firewall that was also forwarding traffic from other nodes.
  98. However, even if this meant complete protection, many users can
  99. benefit from Onion Routing for which neither running one's own node
  100. nor such firewall configurations are adequately convenient to be
  101. feasible. Those users, especially if they engage in certain unusual
  102. communication behaviors, may be identifiable \cite{wright03}. To
  103. complicate the possibility of such attacks Tor multiplexes many
  104. connections down each circuit, but still rotates the circuit
  105. periodically to avoid too much linkability from requests on a single
  106. circuit.
  107. \item \textbf{No mixing or traffic shaping:} The original Onion Routing
  108. design called for full link padding both between onion routers and between
  109. onion proxies (that is, users) and onion routers \cite{or-jsac98}. The
  110. later analysis paper \cite{or-pet00} suggested \emph{traffic shaping}
  111. to provide similar protection but use less bandwidth, but did not go
  112. into detail. However, recent research \cite{econymics} and deployment
  113. experience \cite{freedom21-security} indicate that this level of resource
  114. use is not practical or economical; and even full link padding is still
  115. vulnerable to active attacks \cite{defensive-dropping}.
  116. %[An upcoming FC04 paper. I'll add a cite when it's out. -RD]
  117. \item \textbf{Leaky pipes:} Through in-band signalling within the
  118. circuit, Tor initiators can direct traffic to nodes partway down the
  119. circuit. This allows for long-range padding to frustrate traffic
  120. shape and volume attacks at the initiator \cite{defensive-dropping},
  121. but because circuits are used by more than one application, it also
  122. allows traffic to exit the circuit from the middle -- thus
  123. frustrating traffic shape and volume attacks based on observing exit
  124. points.
  125. %Or something like that. hm. Tone this down maybe? Or support it. -RD
  126. %How's that? -PS
  127. \item \textbf{Congestion control:} Earlier anonymity designs do not
  128. address traffic bottlenecks. Unfortunately, typical approaches to load
  129. balancing and flow control in overlay networks involve inter-node control
  130. communication and global views of traffic. Our decentralized ack-based
  131. congestion control maintains reasonable anonymity while allowing nodes
  132. at the edges of the network to detect congestion or flooding attacks
  133. and send less data until the congestion subsides.
  134. \item \textbf{Directory servers:} Rather than attempting to flood
  135. link-state information through the network, which can be unreliable and
  136. open to partitioning attacks or outright deception, Tor takes a simplified
  137. view towards distributing link-state information. Certain more trusted
  138. onion routers also serve as directory servers; they provide signed
  139. \emph{directories} describing all routers they know about, and which
  140. are currently up. Users periodically download these directories via HTTP.
  141. \item \textbf{End-to-end integrity checking:} Without integrity checking
  142. on traffic going through the network, any onion router on the path
  143. can change the contents of cells as they pass by, e.g. to redirect a
  144. connection on the fly so it connects to a different webserver, or to
  145. tag encrypted traffic and look for the tagged traffic at the network
  146. edges \cite{minion-design}.
  147. \item \textbf{Robustness to failed nodes:} A failed node in a traditional
  148. mix network means lost messages, but in Tor, users can notice failed
  149. nodes while building circuits and route around them. We further provide a
  150. simple mechanism that allows connections to be established despite recent
  151. node failure or slightly dated information from a directory server. Tor
  152. permits onion routers to have \emph{router twins} --- nodes that share
  153. the same private decryption key. Note that because connections now have
  154. perfect forward secrecy, an onion router still cannot read the traffic
  155. on a connection established through its twin even while that connection
  156. is active. Also, which nodes are twins can change dynamically depending
  157. on current circumstances, and twins may or may not be under the same
  158. administrative authority.
  159. \item \textbf{Exit policies:} Tor provides a consistent mechanism for
  160. each node to specify and advertise its own exit policy. Exit policies
  161. are critical in a volunteer-based distributed infrastructure, because
  162. each operator is comfortable with allowing different types of traffic
  163. to exit the Tor network from his node.
  164. \item \textbf{Implementable in user-space}.
  165. \item \textbf{Rendezvous points and location-protected servers:} Tor
  166. provides an integrated mechanism for responder-anonymity
  167. location-protected servers.
  168. [XXX Mention that reply onions are out because they're brittle don't give PFS.]
  169. \end{tightlist}
  170. [XXX carefully mention implementation, emphasizing that experience
  171. deploying isn't there yet, and not all features are implemented.
  172. Mention that it runs, is kinda alpha, kinda deployed, runs on win32.]
  173. We review previous work in Section \ref{sec:background}, describe
  174. our goals and assumptions in Section \ref{sec:assumptions},
  175. and then address the above list of improvements in Sections
  176. \ref{sec:design}-\ref{sec:maintaining-anonymity}. We then summarize
  177. how our design stands up to known attacks, and conclude with a list of
  178. open problems.
  179. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  180. \Section{Background and threat model}
  181. \label{sec:background}
  182. \SubSection{Related work}
  183. \label{sec:related-work}
  184. Modern anonymity designs date to Chaum's Mix-Net\cite{chaum-mix} design of
  185. 1981. Chaum proposed hiding sender-recipient connections by wrapping
  186. messages in several layers of public key cryptography, and relaying them
  187. through a path composed of Mix servers. Mix servers in turn decrypt, delay,
  188. and re-order messages, before relay them along the path towards their
  189. destinations.
  190. Subsequent relay-based anonymity designs have diverged in two
  191. principal directions. Some have attempted to maximize anonymity at
  192. the cost of introducing comparatively large and variable latencies,
  193. for example, Babel\cite{babel}, Mixmaster\cite{mixmaster-spec}, and
  194. Mixminion\cite{minion-design}. Because of this
  195. decision, such \emph{high-latency} networks are well-suited for anonymous
  196. email, but introduce too much lag for interactive tasks such as web browsing,
  197. internet chat, or SSH connections.
  198. Tor belongs to the second category: \emph{low-latency} designs that
  199. attempt to anonymize interactive network traffic. Because such
  200. traffic tends to involve a relatively large numbers of packets, it is
  201. difficult to prevent an attacker who can eavesdrop entry and exit
  202. points from correlating packets entering the anonymity network with
  203. packets leaving it. Although some work has been done to frustrate
  204. these attacks, most designs protect primarily against traffic analysis
  205. rather than traffic confirmation \cite{or-jsac98}. One can pad and
  206. limit communication to a constant rate or at least to control the
  207. variation in traffic shape. This can have prohibitive bandwidth costs
  208. and/or performance limitations. One can also use a cascade (fixed
  209. shared route) with a relatively fixed set of users. This assumes a
  210. significant degree of agreement and provides an easier target for an active
  211. attacker since the endpoints are generally known. However, a practical
  212. network with both of these features and thousands of active users has
  213. been run for many years (the Java Anon Proxy, aka Web MIXes,
  214. \cite{web-mix}).
  215. Another low latency design that was proposed independently and at
  216. about the same time as Onion Routing was PipeNet \cite{pipenet}.
  217. This provided anonymity protections that were stronger than Onion Routing's,
  218. but at the cost of allowing a single user to shut down the network simply
  219. by not sending. It was also never implemented or formally published.
  220. The simplest low-latency designs are single-hop proxies such as the
  221. Anonymizer \cite{anonymizer}, wherein a single trusted server removes
  222. identifying users' data before relaying it. These designs are easy to
  223. analyze, but require end-users to trust the anonymizing proxy.
  224. More complex are distributed-trust, channel-based anonymizing systems. In
  225. these designs, a user establishes one or more medium-term bidirectional
  226. end-to-end tunnels to exit servers, and uses those tunnels to deliver a
  227. number of low-latency packets to and from one or more destinations per
  228. tunnel. Establishing tunnels is comparatively expensive and typically
  229. requires public-key cryptography, whereas relaying packets along a tunnel is
  230. comparatively inexpensive. Because a tunnel crosses several servers, no
  231. single server can learn the user's communication partners.
  232. Systems such as earlier versions of Freedom and Onion Routing
  233. build the anonymous channel all at once (using an onion). Later
  234. designs of Freedom and onion routing as described herein build
  235. the channel in stages as does AnonNet
  236. \cite{anonnet}. Amongst other things, this makes perfect forward
  237. secrecy feasible.
  238. Some systems, such as Crowds \cite{crowds-tissec}, do not rely on the
  239. changing appearance of packets to hide the path; rather they employ
  240. mechanisms so that an intermediary cannot be sure when it is
  241. receiving from/sending to the ultimate initiator. There is no public-key
  242. encryption needed for Crowds, but the responder and all data are
  243. visible to all nodes on the path so that anonymity of connection
  244. initiator depends on filtering all identifying information from the
  245. data stream. Crowds is also designed only for HTTP traffic.
  246. Hordes \cite{hordes-jcs} is based on Crowds but also uses multicast
  247. responses to hide the initiator. Herbivore \cite{herbivore} and
  248. P5 \cite{p5} go even further requiring broadcast.
  249. They each use broadcast in very different ways, and tradeoffs are made to
  250. make broadcast more practical. Both Herbivore and P5 are designed primarily
  251. for communication between communicating peers, although Herbivore
  252. permits external connections by requesting a peer to serve as a proxy.
  253. Allowing easy connections to nonparticipating responders or recipients
  254. is a practical requirement for many users, e.g., to visit
  255. nonparticipating Web sites or to exchange mail with nonparticipating
  256. recipients.
  257. Distributed-trust anonymizing systems differ in how they prevent attackers
  258. from controlling too many servers and thus compromising too many user paths.
  259. Some protocols rely on a centrally maintained set of well-known anonymizing
  260. servers. Current Tor design falls into this category.
  261. Others (such as Tarzan and MorphMix) allow unknown users to run
  262. servers, while using a limited resource (DHT space for Tarzan; IP space for
  263. MorphMix) to prevent an attacker from owning too much of the network.
  264. Crowds uses a centralized ``blender'' to enforce Crowd membership
  265. policy. For small crowds it is suggested that familiarity with all
  266. members is adequate. For large diverse crowds, limiting accounts in
  267. control of any one party is more difficult:
  268. ``(e.g., the blender administrator sets up an account for a user only
  269. after receiving a written, notarized request from that user) and each
  270. account to one jondo, and by monitoring and limiting the number of
  271. jondos on any one net- work (using IP address), the attacker would be
  272. forced to launch jondos using many different identities and on many
  273. different networks to succeed'' \cite{crowds-tissec}.
  274. Tor is not primarily designed for censorship resistance but rather
  275. for anonymous communication. However, Tor's rendezvous points, which
  276. enable connections between mutually anonymous entities, also
  277. facilitate connections to hidden servers. These building blocks to
  278. censorship resistance and other capabilities are described in
  279. Section~\ref{sec:rendezvous}. Location-hidden servers are an
  280. essential component for anonymous publishing systems such as
  281. Publius\cite{publius}, Free Haven\cite{freehaven-berk}, and
  282. Tangler\cite{tangler}.
  283. [XXX I'm considering the subsection as ended here for now. I'm leaving the
  284. following notes in case we want to revisit any of them. -PS]
  285. Channel-based anonymizing systems also differ in their use of dummy traffic.
  286. [XXX]
  287. Finally, several systems provide low-latency anonymity without channel-based
  288. communication. Crowds and [XXX] provide anonymity for HTTP requests; [...]
  289. [XXX Mention error recovery?]
  290. STILL NOT MENTIONED:
  291. isdn-mixes\\
  292. real-time mixes\\
  293. rewebbers\\
  294. cebolla\\
  295. [XXX Close by mentioning where Tor fits.]
  296. \Section{Design goals and assumptions}
  297. \label{sec:assumptions}
  298. \subsection{Goals}
  299. % Are these really our goals? ;) -NM
  300. Like other low-latency anonymity designs, Tor seeks to frustrate
  301. attackers from linking communication partners, or from linking
  302. multiple communications to or from a single point. Within this
  303. main goal, however, several design considerations have directed
  304. Tor's evolution.
  305. First, we have tried to build a {\bf deployable} system. [XXX why?]
  306. This requirement precludes designs that are expensive to run (for
  307. example, by requiring more bandwidth than volunteers will easily
  308. provide); designs that place a heavy liability burden on operators
  309. (for example, by allowing attackers to implicate operators in illegal
  310. activities); and designs that are difficult or expensive to implement
  311. (for example, by requiring kernel patches to many operating systems,
  312. or ). [Only anon people need to run special software! Look at minion
  313. reviews]
  314. Second, the system must be {\bf usable}. A hard-to-use system has
  315. fewer users --- and because anonymity systems hide users among users, a
  316. system with fewer users provides less anonymity. Thus, usability is
  317. not only a convenience, but is a security requirement for anonymity
  318. systems.
  319. Third, the protocol must be {\bf extensible}, so that it can serve as
  320. a test-bed for future research in low-latency anonymity systems.
  321. (Note that while an extensible protocol benefits researchers, there is
  322. a danger that differing choices of extensions will render users
  323. distinguishable. Thus, implementations should not permit different
  324. protocol extensions to coexist in a single deployed network.)
  325. The protocol's design and security parameters must be {\bf
  326. conservative}. Additional features impose implementation and
  327. complexity costs. [XXX Say that we don't want to try to come up with
  328. speculative solutions to problems we don't KNOW how to solve? -NM]
  329. [XXX mention something about robustness? But we really aren't that
  330. robust. We just assume that tunneled protocols tolerate connection
  331. loss. -NM]
  332. \subsection{Non-goals}
  333. In favoring conservative, deployable designs, we have explicitly
  334. deferred a number of goals --- not because they are not desirable in
  335. anonymity systems --- but because solving them is either solved
  336. elsewhere, or an area of active research without a generally accepted
  337. solution.
  338. Unlike Tarzan or Morphmix, Tor does not attempt to scale to completely
  339. decentralized peer-to-peer environments with thousands of short-lived
  340. servers.
  341. Tor does not claim to provide a definitive solution to end-to-end
  342. timing or intersection attacks for users who do not run their own
  343. Onion Routers.
  344. % Does that mean we do claim to solve intersection attack for
  345. % the enclave-firewall model? -RD
  346. Tor does not provide \emph{protocol normalization} like the Anonymizer or
  347. Privoxy. In order to provide client indistinguishibility for
  348. complex and variable protocols such as HTTP, Tor must be layered with
  349. a filtering proxy such as Privoxy. Similarly, Tor does not currently
  350. integrate tunneling for non-stream-based protocols; this too must be
  351. provided by an external service.
  352. Tor is not steganographic: it doesn't try to conceal which users are
  353. sending or receiving communications.
  354. \SubSection{Adversary Model}
  355. \label{subsec:adversary-model}
  356. Like all practical low-latency systems, Tor is not secure against a
  357. global passive adversary, which is the most commonly assumed adversary
  358. for analysis of theoretical anonymous communication designs. The adversary
  359. we assume
  360. is weaker than global with respect to distribution, but it is not
  361. merely passive.
  362. We assume a threat model that expands on that from \cite{or-pet00}.
  363. The basic adversary components we consider are:
  364. \begin{description}
  365. \item[Observer:] can observe a connection (e.g., a sniffer on an
  366. Internet router), but cannot initiate connections. Observations may
  367. include timing and/or volume of packets as well as appearance of
  368. individual packets (including headers and content).
  369. \item[Disrupter:] can delay (indefinitely) or corrupt traffic on a
  370. link. Can change all those things that an observer can observe up to
  371. the limits of computational ability (e.g., cannot forge signatures
  372. unless a key is compromised).
  373. \item[Hostile initiator:] can initiate (or destroy) connections with
  374. specific routes as well as vary the timing and content of traffic
  375. on the connections it creates. A special case of the disrupter with
  376. additional abilities appropriate to its role in forming connections.
  377. \item[Hostile responder:] can vary the traffic on the connections made
  378. to it including refusing them entirely, intentionally modifying what
  379. it sends and at what rate, and selectively closing them. Also a
  380. special case of the disrupter.
  381. \item[Key breaker:] can break the key used to encrypt connection
  382. initiation requests sent to a Tor-node.
  383. % Er, there are no long-term private decryption keys. They have
  384. % long-term private signing keys, and medium-term onion (decryption)
  385. % keys. Plus short-term link keys. Should we lump them together or
  386. % separate them out? -RD
  387. %
  388. % Hmmm, I was talking about the keys used to encrypt the onion skin
  389. % that contains the public DH key from the initiator. Is that what you
  390. % mean by medium-term onion key? (``Onion key'' used to mean the
  391. % session keys distributed in the onion, back when there were onions.)
  392. % Also, why are link keys short-term? By link keys I assume you mean
  393. % keys that neighbor nodes use to superencrypt all the stuff they send
  394. % to each other on a link. Did you mean the session keys? I had been
  395. % calling session keys short-term and everything else long-term. I
  396. % know I was being sloppy. (I _have_ written papers formalizing
  397. % concepts of relative freshness.) But, there's some questions lurking
  398. % here. First up, I don't see why the onion-skin encryption key should
  399. % be any shorter term than the signature key in terms of threat
  400. % resistance. I understand that how we update onion-skin encryption
  401. % keys makes them depend on the signature keys. But, this is not the
  402. % basis on which we should be deciding about key rotation. Another
  403. % question is whether we want to bother with someone who breaks a
  404. % signature key as a particular adversary. He should be able to do
  405. % nearly the same as a compromised tor-node, although they're not the
  406. % same. I reworded above, I'm thinking we should leave other concerns
  407. % for later. -PS
  408. \item[Compromised Tor-node:] can arbitrarily manipulate the
  409. connections under its control, as well as creating new connections
  410. (that pass through itself).
  411. \end{description}
  412. All feasible adversaries can be composed out of these basic
  413. adversaries. This includes combinations such as one or more
  414. compromised Tor-nodes cooperating with disrupters of links on which
  415. those nodes are not adjacent, or such as combinations of hostile
  416. outsiders and link observers (who watch links between adjacent
  417. Tor-nodes). Note that one type of observer might be a Tor-node. This
  418. is sometimes called an honest-but-curious adversary. While an observer
  419. Tor-node will perform only correct protocol interactions, it might
  420. share information about connections and cannot be assumed to destroy
  421. session keys at end of a session. Note that a compromised Tor-node is
  422. stronger than any other adversary component in the sense that
  423. replacing a component of any adversary with a compromised Tor-node
  424. results in a stronger overall adversary (assuming that the compromised
  425. Tor-node retains the same signature keys and other private
  426. state-information as the component it replaces).
  427. In general we are more focused on traffic analysis attacks than
  428. traffic confirmation attacks. A user who runs a Tor proxy on his own
  429. machine, connects to some remote Tor-node and makes a connection to an
  430. open Internet site, such as a public web server, is vulnerable to
  431. traffic confirmation. That is, an active attacker who suspects that
  432. the particular client is communicating with the particular server will
  433. be able to confirm this if she can attack and observe both the
  434. connection between the Tor network and the client and that between the
  435. Tor network and the server. Even a purely passive attacker will be
  436. able to confirm if the timing and volume properties of the traffic on
  437. the connnection are unique enough. This is not to say that Tor offers
  438. no resistance to traffic confirmation; it does. We defer discussion
  439. of this point and of particular attacks until Section~\ref{sec:attacks},
  440. after we have described Tor in more detail. However, we note here some
  441. basic assumptions that affect the threat model.
  442. [XXX I think this next subsection should be cut, leaving its points
  443. for the attacks section. But I'm leaving it here for now. The above
  444. line refers to the immediately following SubSection.-PS]
  445. \SubSection{Known attacks against low-latency anonymity systems}
  446. \label{subsec:known-attacks}
  447. We discuss each of these attacks in more detail below, along with the
  448. aspects of the Tor design that provide defense. We provide a summary
  449. of the attacks and our defenses against them in Section~\ref{sec:attacks}.
  450. Passive attacks:
  451. simple observation,
  452. timing correlation,
  453. size correlation,
  454. option distinguishability,
  455. Active attacks:
  456. key compromise,
  457. iterated subpoena,
  458. run recipient,
  459. run a hostile node,
  460. compromise entire path,
  461. selectively DOS servers,
  462. introduce timing into messages,
  463. directory attacks,
  464. tagging attacks
  465. \SubSection{Assumptions}
  466. For purposes of this paper, we assume all directory servers are honest
  467. % No longer true, see subsec:dirservers below -RD
  468. and trusted. Perhaps more accurately, we assume that all users and
  469. nodes can perform their own periodic checks on information they have
  470. from directory servers and that all will always have access to at
  471. least one directory server that they trust and from which they obtain
  472. all directory information. Future work may include robustness
  473. techniques to cope with a minority dishonest servers.
  474. Somewhere between ten percent and twenty percent of nodes are assumed
  475. to be compromised. In some circumstances, e.g., if the Tor network is
  476. running on a hardened network where all operators have had
  477. background checks, the percent of compromised nodes might be much
  478. lower. It may be worthwhile to consider cases where many of the `bad'
  479. nodes are not fully compromised but simply (passive) observing
  480. adversaries or that some nodes have only had compromise of the keys
  481. that decrypt connection initiation requests. But, we assume for
  482. simplicity that `bad' nodes are compromised in the sense spelled out
  483. above. We assume that all adversary components, regardless of their
  484. capabilities are collaborating and are connected in an offline clique.
  485. We do not assume any hostile users, except in the context of
  486. % This sounds horrible. What do you mean we don't assume any hostile
  487. % users? Surely we can tolerate some? -RD
  488. rendezvous points. Nonetheless, we assume that users vary widely in
  489. both the duration and number of times they are connected to the Tor
  490. network. They can also be assumed to vary widely in the volume and
  491. shape of the traffic they send and receive.
  492. [XXX what else?]
  493. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  494. \Section{The Tor Design}
  495. \label{sec:design}
  496. high-level intro: overlay network of onion routers with long-term TLS
  497. connections. (Every OR connects to every other.) Users run local
  498. software (onion proxies) that establish path over network and
  499. construct virtual circuit. (USers know about all ORs from Directory.)
  500. OPs accept TCP streams and multiplex them across virtual circuit. OR
  501. on the other side of the cirucuit connects to the destinations of the
  502. TCP streams and continues to relay TCP sessions.
  503. Describe connection protocol. Link-to-link rate limiting. Link
  504. padding.
  505. Describe cells. Control versus Relay. Cell structure.
  506. Describe how circuits work and how relay cells get passed along,
  507. decrypted etc. This will include mentioning leaky-pipe circuit
  508. topology and end-to-end integrity checking. (Mention tagging.)
  509. Describe how circuits get built, extended, truncated.
  510. Describe how TCP connections get opened. (Mention DNS issues)
  511. Descibe closing TCP connections and 2-END handshake to mirror TCP
  512. close handshake.
  513. Describe how data is transmitted.
  514. Describe circuit-level and stream-level congestion control issues and
  515. solutions.
  516. Describe circuit-level and stream-level fairness issues; cite Marc's
  517. anonnet stuff.
  518. Describe DoS prevention.
  519. Mention twins, what the do, what they can't.
  520. How we should do sequencing and acking like TCP so that we can better
  521. tolerate lost data cells.
  522. [XXX mention that designers have to choose what you send across your
  523. circuit: wrapped IP packets, wrapped stream data, etc. [Disspell
  524. TCP-over-TCP misconception.]]
  525. [XXX Mention that OR-to-OR connections should be highly reliable. If
  526. they aren't, everything can stall.]
  527. \Section{Other design decisions}
  528. \SubSection{Exit policies and abuse}
  529. \label{subsec:exitpolicies}
  530. Exit abuse is a serious barrier to wide-scale Tor deployment --- we
  531. must block or limit attacks and other abuse that users can do through
  532. the Tor network.
  533. Each onion router's \emph{exit policy} describes to which external
  534. addresses and ports the router will permit stream connections. On one end
  535. of the spectrum are \emph{open exit} nodes that will connect anywhere;
  536. on the other end are \emph{middleman} nodes that only relay traffic to
  537. other Tor nodes, and \emph{private exit} nodes that only connect locally
  538. or to addresses internal to that node's organization. This private exit
  539. node configuration is more secure for clients --- the adversary cannot
  540. see plaintext traffic leaving the network (e.g. to a webserver), so he
  541. is less sure of Alice's destination. More generally, nodes can require
  542. a variety of forms of traffic authentication \cite{onion-discex00}.
  543. Tor offers more reliability than the high-latency fire-and-forget
  544. anonymous email networks, because the sender opens a TCP stream
  545. with the remote mail server and receives an explicit confirmation of
  546. acceptance. But ironically, the private exit node model works poorly for
  547. email, when Tor nodes are run on volunteer machines that also do other
  548. things, because it's quite hard to configure mail transport agents so
  549. normal users can send mail normally, but the Tor process can only deliver
  550. mail locally. Further, most organizations have specific hosts that will
  551. deliver mail on behalf of certain IP ranges; Tor operators must be aware
  552. of these hosts and consider putting them in the Tor exit policy.
  553. The abuse issues on closed (e.g. military) networks are very different
  554. from the abuse on open networks like the Internet. While these IP-based
  555. access controls are still commonplace on the Internet, on closed networks,
  556. nearly all participants will be honest, and end-to-end authentication
  557. can be assumed for anything important.
  558. Tor is harder than minion because tcp doesn't include an abuse
  559. address. you could reach inside the http stream and change the agent
  560. or something, but that's a very specific case and probably won't help
  561. much anyway.
  562. And volunteer nodes don't resolve to anonymizer.mit.edu so it never
  563. even occurs to people that it wasn't you.
  564. Preventing abuse of open exit nodes is an unsolved problem. Princeton's
  565. CoDeeN project \cite{darkside} gives us a glimpse of what we're in for.
  566. but their solutions, which mainly involve rate limiting and blacklisting
  567. nodes which do bad things, don't translate directly to Tor. Rate limiting
  568. still works great, but Tor intentionally separates sender from recipient,
  569. so it's hard to know which sender was the one who did the bad thing,
  570. without just making the whole network wide open.
  571. even limiting most nodes to allow http, ssh, and aim to exit and reject
  572. all other stuff is sketchy, because plenty of abuse can happen over
  573. port 80. but it's a very good start, because it blocks most things,
  574. and because people are more used to the concept of port 80 abuse not
  575. coming from the machine's owner.
  576. we could also run intrusion detection system (IDS) modules at each tor
  577. node, to dynamically monitor traffic streams for attack signatures. it
  578. can even react when it sees a signature by closing the stream. but IDS's
  579. don't actually work most of the time, and besides, how do you write a
  580. signature for "is sending a mean mail"?
  581. we should run a squid at each exit node, to provide comparable anonymity
  582. to private exit nodes for cache hits, to speed everything up, and to
  583. have a buffer for funny stuff coming out of port 80. we could similarly
  584. have other exit proxies for other protocols, like mail, to check
  585. delivered mail for being spam.
  586. A mixture of open and restricted exit nodes will allow the most
  587. flexibility for volunteers running servers. But while a large number
  588. of middleman nodes is useful to provide a large and robust network,
  589. a small number of exit nodes still simplifies traffic analysis because
  590. there are fewer nodes the adversary needs to monitor, and also puts a
  591. greater burden on the exit nodes.
  592. The JAP cascade model is really nice because they only need one node to
  593. take the heat per cascade. On the other hand, a hydra scheme could work
  594. better (it's still hard to watch all the clients).
  595. Discuss importance of public perception, and how abuse affects it.
  596. ``Usability is a security parameter''. ``Public Perception is also a
  597. security parameter.''
  598. Discuss smear attacks.
  599. \SubSection{Directory Servers}
  600. \label{subsec:dirservers}
  601. First-generation Onion Routing designs \cite{or-jsac98,freedom2-arch} did
  602. % is or-jsac98 the right cite here? what's our stock OR cite? -RD
  603. in-band network status updates: each router flooded a signed statement
  604. to its neighbors, which propagated it onward. But anonymizing networks
  605. have different security goals than typical link-state routing protocols.
  606. For example, we worry more about delays (accidental or intentional)
  607. which cause different parts of the network to have different pictures
  608. of link-state and topology. We also worry about attacks to deceive a
  609. client about the router membership list, topology, or current network
  610. state. Such \emph{partitioning attacks} on client knowledge help an
  611. adversary with limited resources to efficiently deploy those resources
  612. when attacking a target.
  613. Instead, Tor uses a small group of redundant directory servers to
  614. track network topology and node state such as current keys and exit
  615. policies. The directory servers are normal onion routers, but there are
  616. only a few of them and they are more trusted. They listen on a separate
  617. port as an HTTP server, both so participants can fetch current network
  618. state and router lists (a \emph{directory}), and so other onion routers
  619. can upload a signed summary of their keys, address, bandwidth, exit
  620. policy, etc (\emph{server descriptors}.
  621. [[mention that descriptors are signed with long-term keys; ORs publish
  622. regularly to dirservers; policies for generating directories; key
  623. rotation (link, onion, identity); Everybody already know directory
  624. keys; how to approve new nodes (advogato, sybil, captcha (RTT));
  625. policy for handling connections with unknown ORs; diff-based
  626. retrieval; diff-based consesus; separate liveness from descriptor
  627. list]]
  628. Of course, a variety of attacks remain. An adversary who controls a
  629. directory server can track certain clients by providing different
  630. information --- perhaps by listing only nodes under its control
  631. as working, or by informing only certain clients about a given
  632. node. Moreover, an adversary without control of a directory server can
  633. still exploit differences among client knowledge. If Eve knows that
  634. node $M$ is listed on server $D_1$ but not on $D_2$, she can use this
  635. knowledge to link traffic through $M$ to clients who have queried $D_1$.
  636. Thus these directory servers must be synchronized and redundant. The
  637. software is distributed with the signature public key of each directory
  638. server, and directories must be signed by a threshold of these keys.
  639. The directory servers in Tor are modeled after those in Mixminion
  640. \cite{minion-design}, but our situation is easier. Firstly, we make the
  641. simplifying assumption that all participants agree on who the directory
  642. servers are. Secondly, Mixminion needs to predict node behavior ---
  643. that is, build a reputation system for guessing future performance of
  644. nodes based on past performance, and then figure out a way to build
  645. a threshold consensus of these predictions. Tor just needs to get a
  646. threshold consensus of the current state of the network.
  647. The threshold consensus can be reached with standard Byzantine agreement
  648. techniques \cite{castro-liskov}.
  649. % Should I just stop the section here? Is the rest crap? -RD
  650. But this library, while more efficient than previous Byzantine agreement
  651. systems, is still complex and heavyweight for our purposes: we only need
  652. to compute a single algorithm, and we do not require strict in-order
  653. computation steps. The Tor directory servers build a consensus directory
  654. through a simple four-round broadcast protocol. First, each server signs
  655. and broadcasts its current opinion to the other directory servers; each
  656. server then rebroadcasts all the signed opinions it has received. At this
  657. point all directory servers check to see if anybody's cheating. If so,
  658. directory service stops, the humans are notified, and that directory
  659. server is permanently removed from the network. Assuming no cheating,
  660. each directory server then computes a local algorithm on the set of
  661. opinions, resulting in a uniform shared directory. Then the servers sign
  662. this directory and broadcast it; and finally all servers rebroadcast
  663. the directory and all the signatures.
  664. The rebroadcast steps ensure that a directory server is heard by either
  665. all of the other servers or none of them (some of the links between
  666. directory servers may be down). Broadcasts are feasible because there
  667. are so few directory servers (currently 3, but we expect to use as many
  668. as 9 as the network scales). The actual local algorithm for computing
  669. the shared directory is straightforward, and is described in the Tor
  670. specification \cite{tor-spec}.
  671. % we should, uh, add this to the spec. oh, and write it. -RD
  672. Using directory servers rather than flooding approaches provides
  673. simplicity and flexibility. For example, they don't complicate
  674. the analysis when we start experimenting with non-clique network
  675. topologies. And because the directories are signed, they can be cached at
  676. all the other onion routers (or even elsewhere). Thus directory servers
  677. are not a performance bottleneck when we have many users, and also they
  678. won't aid traffic analysis by forcing clients to periodically announce
  679. their existence to any central point.
  680. \Section{Rendezvous points: location privacy}
  681. \label{sec:rendezvous}
  682. Rendezvous points are a building block for \emph{location-hidden services}
  683. (aka responder anonymity) in the Tor network. Location-hidden
  684. services means Bob can offer a tcp service, such as a webserver,
  685. without revealing the IP of that service.
  686. We provide this censorship resistance for Bob by allowing him to
  687. advertise several onion routers (his \emph{Introduction Points}) as his
  688. public location. Alice, the client, chooses a node for her \emph{Meeting
  689. Point}. She connects to one of Bob's introduction points, informs him
  690. about her meeting point, and then waits for him to connect to the meeting
  691. point. This extra level of indirection means Bob's introduction points
  692. don't open themselves up to abuse by serving files directly, eg if Bob
  693. chooses a node in France to serve material distateful to the French. The
  694. extra level of indirection also allows Bob to respond to some requests
  695. and ignore others.
  696. We provide the necessary glue so that Alice can view webpages from Bob's
  697. location-hidden webserver with minimal invasive changes. Both Alice and
  698. Bob must run local onion proxies.
  699. The steps of a rendezvous:
  700. \begin{tightlist}
  701. \item Bob chooses some Introduction Points, and advertises them on a
  702. Distributed Hash Table (DHT).
  703. \item Bob establishes onion routing connections to each of his
  704. Introduction Points, and waits.
  705. \item Alice learns about Bob's service out of band (perhaps Bob told her,
  706. or she found it on a website). She looks up the details of Bob's
  707. service from the DHT.
  708. \item Alice chooses and establishes a Meeting Point (MP) for this
  709. transaction.
  710. \item Alice goes to one of Bob's Introduction Points, and gives it a blob
  711. (encrypted for Bob) which tells him about herself, the Meeting Point
  712. she chose, and the first half of an ephemeral key handshake. The
  713. Introduction Point sends the blob to Bob.
  714. \item Bob chooses whether to ignore the blob, or to onion route to MP.
  715. Let's assume the latter.
  716. \item MP plugs together Alice and Bob. Note that MP can't recognize Alice,
  717. Bob, or the data they transmit (they share a session key).
  718. \item Alice sends a Begin cell along the circuit. It arrives at Bob's
  719. onion proxy. Bob's onion proxy connects to Bob's webserver.
  720. \item Data goes back and forth as usual.
  721. \end{tightlist}
  722. When establishing an introduction point, Bob provides the onion router
  723. with a public ``introduction'' key. The hash of this public key
  724. identifies a unique service, and (since Bob is required to sign his
  725. messages) prevents anybody else from usurping Bob's introduction point
  726. in the future. Bob uses the same public key when establish the other
  727. introduction points for that service.
  728. The blob that Alice gives the introduction point includes a hash of Bob's
  729. public key to identify the service, an optional initial authentication
  730. token (the introduction point can do prescreening, eg to block replays),
  731. and (encrypted to Bob's public key) the location of the meeting point,
  732. a meeting cookie Bob should tell the meeting point so he gets connected to
  733. Alice, an optional authentication token so Bob can choose whether to respond,
  734. and the first half of a DH key exchange. When Bob connects to the meeting
  735. place and gets connected to Alice's pipe, his first cell contains the
  736. other half of the DH key exchange.
  737. % briefly talk about our notion of giving cookies to people proportional
  738. % to how important they are, for location-protected servers hardened
  739. % against DDoS threat? -RD
  740. \subsection{Integration with user applications}
  741. For each service Bob offers, he configures his local onion proxy to know
  742. the local IP and port of the server, a strategy for authorizating Alices,
  743. and a public key. We assume the existence of a robust decentralized
  744. efficient lookup system which allows authenticated updates, eg
  745. \cite{cfs:sosp01}. (Each onion router could run a node in this lookup
  746. system; also note that as a stopgap measure, we can just run a simple
  747. lookup system on the directory servers.) Bob publishes into the DHT
  748. (indexed by the hash of the public key) the public key, an expiration
  749. time (``not valid after''), and the current introduction points for that
  750. service. Note that Bob's webserver is completely oblivious to the fact
  751. that it's hidden behind the Tor network.
  752. As far as Alice's experience goes, we require that her client interface
  753. remain a SOCKS proxy, and we require that she shouldn't have to modify
  754. her applications. Thus we encode all of the necessary information into
  755. the hostname (more correctly, fully qualified domain name) that Alice
  756. uses, eg when clicking on a url in her browser. Location-hidden services
  757. use the special top level domain called `.onion': thus hostnames take the
  758. form x.y.onion where x encodes the hash of PK, and y is the authentication
  759. cookie. Alice's onion proxy examines hostnames and recognizes when they're
  760. destined for a hidden server. If so, it decodes the PK and starts the
  761. rendezvous as described in the table above.
  762. \subsection{Previous rendezvous work}
  763. Ian Goldberg developed a similar notion of rendezvous points for
  764. low-latency anonymity systems \cite{ian-thesis}. His ``service tag''
  765. is the same concept as our ``hash of service's public key''. We make it
  766. a hash of the public key so it can be self-authenticating, and so the
  767. client can recognize the same service with confidence later on. His
  768. design differs from ours in the following ways though. Firstly, Ian
  769. suggests that the client should manually hunt down a current location of
  770. the service via Gnutella; whereas our use of the DHT makes lookup faster,
  771. more robust, and transparent to the user. Secondly, the client and server
  772. can share ephemeral DH keys, so at no point in the path is the plaintext
  773. exposed. Thirdly, our design is much more practical for deployment in a
  774. volunteer network, in terms of getting volunteers to offer introduction
  775. and meeting point services. The introduction points do not output any
  776. bytes to the clients. And the meeting points don't know the client,
  777. the server, or the stuff being transmitted. The indirection scheme
  778. is also designed with authentication/authorization in mind -- if the
  779. client doesn't include the right cookie with its request for service,
  780. the server doesn't even acknowledge its existence.
  781. \Section{Analysis}
  782. How well do we resist chosen adversary?
  783. How well do we meet stated goals?
  784. Mention jurisdictional arbitrage.
  785. Pull attacks and defenses into analysis as a subsection
  786. \Section{Maintaining anonymity sets}
  787. \label{sec:maintaining-anonymity}
  788. [Put as much of this as a part of open issuses as is possible.]
  789. [what's an anonymity set?]
  790. packet counting attacks work great against initiators. need to do some
  791. level of obfuscation for that. standard link padding for passive link
  792. observers. long-range padding for people who own the first hop. are
  793. we just screwed against people who insert timing signatures into your
  794. traffic?
  795. Even regardless of link padding from Alice to the cloud, there will be
  796. times when Alice is simply not online. Link padding, at the edges or
  797. inside the cloud, does not help for this.
  798. how often should we pull down directories? how often send updated
  799. server descs?
  800. when we start up the client, should we build a circuit immediately,
  801. or should the default be to build a circuit only on demand? should we
  802. fetch a directory immediately?
  803. would we benefit from greater synchronization, to blend with the other
  804. users? would the reduced speed hurt us more?
  805. does the "you can't see when i'm starting or ending a stream because
  806. you can't tell what sort of relay cell it is" idea work, or is just
  807. a distraction?
  808. does running a server actually get you better protection, because traffic
  809. coming from your node could plausibly have come from elsewhere? how
  810. much mixing do you need before this is actually plausible, or is it
  811. immediately beneficial because many adversary can't see your node?
  812. do different exit policies at different exit nodes trash anonymity sets,
  813. or not mess with them much?
  814. do we get better protection against a realistic adversary by having as
  815. many nodes as possible, so he probably can't see the whole network,
  816. or by having a small number of nodes that mix traffic well? is a
  817. cascade topology a more realistic way to get defenses against traffic
  818. confirmation? does the hydra (many inputs, few outputs) topology work
  819. better? are we going to get a hydra anyway because most nodes will be
  820. middleman nodes?
  821. using a circuit many times is good because it's less cpu work.
  822. good because of predecessor attacks with path rebuilding.
  823. bad because predecessor attacks can be more likely to link you with a
  824. previous circuit since you're so verbose.
  825. bad because each thing you do on that circuit is linked to the other
  826. things you do on that circuit.
  827. how often to rotate?
  828. how to decide when to exit from middle?
  829. when to truncate and re-extend versus when to start new circuit?
  830. Because Tor runs over TCP, when one of the servers goes down it seems
  831. that all the circuits (and thus streams) going over that server must
  832. break. This reduces anonymity because everybody needs to reconnect
  833. right then (does it? how much?) and because exit connections all break
  834. at the same time, and it also reduces usability. It seems the problem
  835. is even worse in a p2p environment, because so far such systems don't
  836. really provide an incentive for nodes to stay connected when they're
  837. done browsing, so we would expect a much higher churn rate than for
  838. onion routing. Are there ways of allowing streams to survive the loss
  839. of a node in the path?
  840. discuss topologies. Cite George's non-freeroutes paper. Maybe this
  841. graf goes elsewhere.
  842. discuss attracting users; incentives; usability.
  843. Choosing paths and path lengths.
  844. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  845. \Section{Attacks and Defenses}
  846. \label{sec:attacks}
  847. Below we summarize a variety of attacks and how well our design withstands
  848. them.
  849. \begin{enumerate}
  850. \item \textbf{Passive attacks}
  851. \begin{itemize}
  852. \item \emph{Simple observation.}
  853. \item \emph{Timing correlation.}
  854. \item \emph{Size correlation.}
  855. \item \emph{Option distinguishability.}
  856. \end{itemize}
  857. \item \textbf{Active attacks}
  858. \begin{itemize}
  859. \item \emph{Key compromise.}
  860. \item \emph{Iterated subpoena.}
  861. \item \emph{Run recipient.}
  862. \item \emph{Run a hostile node.}
  863. \item \emph{Compromise entire path.}
  864. \item \emph{Selectively DoS servers.}
  865. \item \emph{Introduce timing into messages.}
  866. \item \emph{Tagging attacks.}
  867. the exit node can change the content you're getting to try to
  868. trick you. similarly, when it rejects you due to exit policy,
  869. it could give you a bad IP that sends you somewhere else.
  870. \end{itemize}
  871. \item \textbf{Directory attacks}
  872. \begin{itemize}
  873. \item foo
  874. \end{itemize}
  875. \end{enumerate}
  876. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  877. \Section{Future Directions and Open Problems}
  878. \label{sec:conclusion}
  879. % Mention that we need to do TCP over tor for reliability.
  880. Tor brings together many innovations into
  881. a unified deployable system. But there are still several attacks that
  882. work quite well, as well as a number of sustainability and run-time
  883. issues remaining to be ironed out. In particular:
  884. \begin{itemize}
  885. \item \emph{Scalability:} Since Tor's emphasis currently is on simplicity
  886. of design and deployment, the current design won't easily handle more
  887. than a few hundred servers, because of its clique topology. Restricted
  888. route topologies \cite{danezis-pets03} promise comparable anonymity
  889. with much better scaling properties, but we must solve problems like
  890. how to randomly form the network without introducing net attacks.
  891. % [cascades are a restricted route topology too. we must mention
  892. % earlier why we're not satisfied with the cascade approach.]-RD
  893. % [We do. At least
  894. \item \emph{Cover traffic:} Currently we avoid cover traffic because
  895. it introduces clear performance and bandwidth costs, but and its
  896. security properties are not well understood. With more research
  897. \cite{SS03,defensive-dropping}, the price/value ratio may change, both for
  898. link-level cover traffic and also long-range cover traffic. In particular,
  899. we expect restricted route topologies to reduce the cost of cover traffic
  900. because there are fewer links to cover.
  901. \item \emph{Better directory distribution:} Even with the threshold
  902. directory agreement algorithm described in \ref{subsec:dirservers},
  903. the directory servers are still trust bottlenecks. We must find more
  904. decentralized yet practical ways to distribute up-to-date snapshots of
  905. network status without introducing new attacks.
  906. \item \emph{Implementing location-hidden servers:} While Section
  907. \ref{sec:rendezvous} provides a design for rendezvous points and
  908. location-hidden servers, this feature has not yet been implemented.
  909. We will likely encounter additional issues, both in terms of usability
  910. and anonymity, that must be resolved.
  911. \item \emph{Wider-scale deployment:} The original goal of Tor was to
  912. gain experience in deploying an anonymizing overlay network, and learn
  913. from having actual users. We are now at the point where we can start
  914. deploying a wider network. We will see what happens!
  915. % ok, so that's hokey. fix it. -RD
  916. \end{itemize}
  917. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  918. %\Section{Acknowledgments}
  919. %% commented out for anonymous submission
  920. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  921. \bibliographystyle{latex8}
  922. \bibliography{tor-design}
  923. \end{document}
  924. % Style guide:
  925. % U.S. spelling
  926. % avoid contractions (it's, can't, etc.)
  927. % 'mix', 'mixes' (as noun)
  928. % 'mix-net'
  929. % 'mix', 'mixing' (as verb)
  930. % 'Mixminion Project'
  931. % 'Mixminion' (meaning the protocol suite or the network)
  932. % 'Mixmaster' (meaning the protocol suite or the network)
  933. % 'middleman' [Not with a hyphen; the hyphen has been optional
  934. % since Middle English.]
  935. % 'nymserver'
  936. % 'Cypherpunk', 'Cypherpunks', 'Cypherpunk remailer'
  937. % 'Onion Routing design', 'onion router' [note capitalization]
  938. %
  939. % 'Whenever you are tempted to write 'Very', write 'Damn' instead, so
  940. % your editor will take it out for you.' -- Misquoted from Mark Twain