tor-design.tex 54 KB

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