challenges.tex 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  1. \documentclass{llncs}
  2. \usepackage{url}
  3. \usepackage{amsmath}
  4. \usepackage{epsfig}
  5. \newenvironment{tightlist}{\begin{list}{$\bullet$}{
  6. \setlength{\itemsep}{0mm}
  7. \setlength{\parsep}{0mm}
  8. % \setlength{\labelsep}{0mm}
  9. % \setlength{\labelwidth}{0mm}
  10. % \setlength{\topsep}{0mm}
  11. }}{\end{list}}
  12. \begin{document}
  13. \title{Challenges in practical low-latency stream anonymity (DRAFT)}
  14. \author{Roger Dingledine and Nick Mathewson}
  15. \institute{The Free Haven Project\\
  16. \email{\{arma,nickm\}@freehaven.net}}
  17. \maketitle
  18. \pagestyle{empty}
  19. \begin{abstract}
  20. foo
  21. \end{abstract}
  22. \section{Introduction}
  23. Tor is a low-latency anonymous communication overlay network designed
  24. to be practical and usable for protecting TCP streams over the
  25. Internet~\cite{tor-design}. We have been operating a publicly deployed
  26. Tor network since October 2003 that has grown to over a hundred volunteer
  27. nodes and carries on average over 70 megabits of traffic per second.
  28. Tor has a weaker threat model than many anonymity designs in the
  29. literature, because our foremost goal is to deploy a
  30. practical and useful network for interactive (low-latency) communications.
  31. Subject to this restriction, we try to
  32. provide as much anonymity as we can. In particular, because we
  33. support interactive communications without impractically expensive padding,
  34. we fall prey to a variety
  35. of intra-network~\cite{attack-tor-oak05,flow-correlation04,bar} and
  36. end-to-end~\cite{danezis-pet2004,SS03} anonymity-breaking attacks.
  37. Tor is secure so long as adversaries are unable to
  38. observe connections as they both enter and leave the Tor network.
  39. Therefore, Tor's defense lies in having a diverse enough set of servers
  40. that most real-world
  41. adversaries are unlikely to be in the right places to attack users.
  42. Specifically,
  43. Tor aims to resist observers and insiders by distributing each transaction
  44. over several nodes in the network. This ``distributed trust'' approach
  45. means the Tor network can be safely operated and used by a wide variety
  46. of mutually distrustful users, providing more sustainability and security
  47. than some previous attempts at anonymizing networks.
  48. The Tor network has a broad range of users, including ordinary citizens
  49. concerned about their privacy, corporations
  50. who don't want to reveal information to their competitors, and law
  51. enforcement and government intelligence agencies who need
  52. to do operations on the Internet without being noticed.
  53. Tor research and development has been funded by the U.S. Navy, for use
  54. in securing government
  55. communications, and also by the Electronic Frontier Foundation, for use
  56. in maintaining civil liberties for ordinary citizens online. The Tor
  57. protocol is one of the leading choices
  58. to be the anonymizing layer in the European Union's PRIME directive to
  59. help maintain privacy in Europe. The University of Dresden in Germany
  60. has integrated an independent implementation of the Tor protocol into
  61. their popular Java Anon Proxy anonymizing client. This wide variety of
  62. interests helps maintain both the stability and the security of the
  63. network.
  64. %awk
  65. Tor's principal research strategy, in attempting to deploy a network that is
  66. practical, useful, and anonymous, has been to insist, when trade-offs arise
  67. between these properties, on remaining useful enough to attract many users,
  68. and practical enough to support them. Subject to these
  69. constraints, we aim to maximize anonymity. This is not the only possible
  70. direction in anonymity research: designs exist that provide more anonymity
  71. than Tor at the expense of significantly increased resource requirements, or
  72. decreased flexibility in application support (typically because of increased
  73. latency). Such research does not typically abandon aspirations towards
  74. deployability or utility, but instead tries to maximize deployability and
  75. utility subject to a certain degree of anonymity. We believe that these
  76. approaches can be promising and useful, but that by focusing on deploying a
  77. usable system in the wild, Tor helps us experiment with the actual parameters
  78. of what makes a system ``practical'' for volunteer operators and ``useful''
  79. for home users, and helps illuminate undernoticed issues which any deployed
  80. volunteer anonymity network will need to address.
  81. While~\cite{tor-design} gives an overall view of the Tor design and goals,
  82. this paper describes the policy and technical issues that Tor faces are
  83. we continue deployment. Rather than trying to provide complete solutions
  84. to every problem here, we try to lay out the assumptions and constraints
  85. that we have observed through deploying Tor in the wild. In doing so, we
  86. aim to create a research agenda for others to
  87. help in addressing these issues. Section~\ref{sec:what-is-tor} gives an
  88. overview of the Tor
  89. design and ours goals. Sections~\ref{sec:crossroads-policy}
  90. and~\ref{sec:crossroads-technical} go on to describe the practical challenges,
  91. both policy and technical respectively, that stand in the way of moving
  92. from a practical useful network to a practical useful anonymous network.
  93. \section{What Is Tor}
  94. \label{sec:what-is-tor}
  95. Here we give a basic overview of the Tor design and its properties. For
  96. details on the design, assumptions, and security arguments, we refer
  97. the reader to~\cite{tor-design}.
  98. \subsection{Distributed trust: safety in numbers}
  99. Tor provides \emph{forward privacy}, so that users can connect to
  100. Internet sites without revealing their logical or physical locations
  101. to those sites or to observers. It also provides \emph{location-hidden
  102. services}, so that critical servers can support authorized users without
  103. giving adversaries an effective vector for physical or online attacks.
  104. The design provides this protection even when a portion of its own
  105. infrastructure is controlled by an adversary.
  106. To create a private network pathway with Tor, the user's software (client)
  107. incrementally builds a \emph{circuit} of encrypted connections through
  108. servers on the network. The circuit is extended one hop at a time, and
  109. each server along the way knows only which server gave it data and which
  110. server it is giving data to. No individual server ever knows the complete
  111. path that a data packet has taken. The client negotiates a separate set
  112. of encryption keys for each hop along the circuit to ensure that each
  113. hop can't trace these connections as they pass through.
  114. Once a circuit has been established, many kinds of data can be exchanged
  115. and several different sorts of software applications can be deployed over
  116. the Tor network. Because each server sees no more than one hop in the
  117. circuit, neither an eavesdropper nor a compromised server can use traffic
  118. analysis to link the connection's source and destination. Tor only works
  119. for TCP streams and can be used by any application with SOCKS support.
  120. For efficiency, the Tor software uses the same circuit for connections
  121. that happen within the same minute or so. Later requests are given a new
  122. circuit, to prevent long-term linkability between different actions by
  123. a single user.
  124. Tor also makes it possible for users to hide their locations while
  125. offering various kinds of services, such as web publishing or an instant
  126. messaging server. Using Tor ``rendezvous points'', other Tor users can
  127. connect to these hidden services, each without knowing the other's network
  128. identity.
  129. %This hidden service functionality could allow Tor users to
  130. %set up a website where people publish material without worrying about
  131. %censorship. Nobody would be able to determine who was offering the site,
  132. %and nobody who offered the site would know who was posting to it.
  133. Tor attempts to anonymize the transport layer, not the application layer, so
  134. application protocols that include personally identifying information need
  135. additional application-level scrubbing proxies, such as
  136. Privoxy~\cite{privoxy} for HTTP. Furthermore, Tor does not permit arbitrary
  137. IP packets; it only anonymizes TCP and DNS, and only supports cconnections
  138. SOCKS (see section \ref{subsec:tcp-vs-ip}).
  139. Tor differs from other deployed systems for traffic analysis resistance
  140. in its security and flexibility. Mix networks such as
  141. Mixmaster~\cite{mixmaster} or its successor Mixminion~\cite{minion-design}
  142. gain the highest degrees of anonymity at the expense of introducing highly
  143. variable delays, thus making them unsuitable for applications such as web
  144. browsing that require quick response times. Commercial single-hop
  145. proxies~\cite{anonymizer} present a single point of failure, where
  146. a single compromise can expose all users' traffic, and a single-point
  147. eavesdropper can perform traffic analysis on the entire network.
  148. Also, their proprietary implementations place any infrastucture that
  149. depends on these single-hop solutions at the mercy of their providers'
  150. financial health as well as network security.
  151. No organization can achieve this security on its own. If a single
  152. corporation or government agency were to build a private network to
  153. protect its operations, any connections entering or leaving that network
  154. would be obviously linkable to the controlling organization. The members
  155. and operations of that agency would be easier, not harder, to distinguish.
  156. Instead, to protect our networks from traffic analysis, we must
  157. collaboratively blend the traffic from many organizations and private
  158. citizens, so that an eavesdropper can't tell which users are which,
  159. and who is looking for what information. By bringing more users onto
  160. the network, all users become more secure \cite{econymics}.
  161. Naturally, organizations will not want to depend on others for their
  162. security. If most participating providers are reliable, Tor tolerates
  163. some hostile infiltration of the network. For maximum protection,
  164. the Tor design includes an enclave approach that lets data be encrypted
  165. (and authenticated) end-to-end, so high-sensitivity users can be sure it
  166. hasn't been read or modified. This even works for Internet services that
  167. don't have built-in encryption and authentication, such as unencrypted
  168. HTTP or chat, and it requires no modification of those services to do so.
  169. weasel's graph of \# nodes and of bandwidth, ideally from week 0.
  170. Tor doesn't try to provide steg (but see Sec \ref{china}), or
  171. the other non-goals listed in tor-design.
  172. Tor is not the only anonymity system that aims to be practical and useful.
  173. Commercial single-hop proxies~\cite{anonymizer}, as well as unsecured
  174. open proxies around the Internet~\cite{open-proxies}, can provide good
  175. performance and some security against a weaker attacker. Dresden's Java
  176. Anon Proxy~\cite{jap} provides similar functionality to Tor but only
  177. handles web browsing rather than arbitrary TCP. Also, JAP's network
  178. topology uses cascades (fixed routes through the network); since without
  179. end-to-end padding it is just as vulnerable as Tor to end-to-end timing
  180. attacks, its dispersal properties are therefore worse than Tor's.
  181. %Some peer-to-peer file-sharing overlay networks such as
  182. %Freenet~\cite{freenet} and Mute~\cite{mute}
  183. Zero-Knowledge Systems' commercial Freedom
  184. network~\cite{freedom21-security} was even more flexible than Tor in
  185. that it could transport arbitrary IP packets, and it also supported
  186. pseudonymous access rather than just anonymous access; but it had
  187. a different approach to sustainability (collecting money from users
  188. and paying ISPs to run servers), and has shut down due to financial
  189. load. Finally, more scalable designs like Tarzan~\cite{tarzan} and
  190. MorphMix~\cite{morphmix} have been proposed in the literature, but
  191. have not yet been fielded. We direct the interested reader to Section
  192. 2 of~\cite{tor-design} for a more indepth review of related work.
  193. %six-four. crowds. i2p.
  194. have a serious discussion of morphmix's assumptions, since they would
  195. seem to be the direct competition. in fact tor is a flexible architecture
  196. that would encompass morphmix, and they're nearly identical except for
  197. path selection and node discovery. and the trust system morphmix has
  198. seems overkill (and/or insecure) based on the threat model we've picked.
  199. % this para should probably move to the scalability / directory system. -RD
  200. \section{Threat model}
  201. Tor does not attempt to defend against a global observer. Any adversary who
  202. can see a user's connection to the Tor network, and who can see the
  203. corresponding connection as it exits the Tor network, can use the timing
  204. correlation between the two connections to confirm the user's chosen
  205. communication partners. Defeating this attack would seem to require
  206. introducing a prohibitive degree of traffic padding between the user and the
  207. network, or introducing an unacceptable degree of latency (but see
  208. \ref{subsec:mid-latency} below). Thus, Tor only
  209. attempts to defend against external observers who can observe both sides of a
  210. user's connection.
  211. Against internal attackers, who sign up Tor servers, the situation is more
  212. complicated. In the simplest case, if an adversary has compromised $c$ of
  213. $n$ servers on the Tor network, then the adversary will be able to compromise
  214. a random circuit with probability $\frac{c^2}{n^2}$ (since the circuit
  215. initiator chooses hops randomly). But there are
  216. complicating factors:
  217. \begin{tightlist}
  218. \item If the user continues to build random circuits over time, an adversary
  219. is pretty certain to see a statistical sample of the user's traffic, and
  220. thereby can build an increasingly accurate profile of her behavior. (See
  221. \ref{subsec:helper-nodes} for possible solutions.)
  222. \item If an adversary controls a popular service outside of the Tor network,
  223. he can be certain of observing all connections to that service; he
  224. therefore will trace connections to that service with probability
  225. $\frac{c}{n}$.
  226. \item Users do not in fact choose servers with uniform probability; they
  227. favor servers with high bandwidth, and exit servers that permit connections
  228. to their favorite services.
  229. \end{tightlist}
  230. %discuss $\frac{c^2}{n^2}$, except how in practice the chance of owning
  231. %the last hop is not $c/n$ since that doesn't take the destination (website)
  232. %into account. so in cases where the adversary does not also control the
  233. %final destination we're in good shape, but if he *does* then we'd be better
  234. %off with a system that lets each hop choose a path.
  235. %
  236. %Isn't it more accurate to say ``If the adversary _always_ controls the final
  237. % dest, we would be just as well off with such as system.'' ? If not, why
  238. % not? -nm
  239. in practice tor's threat model is based entirely on the goal of dispersal
  240. and diversity. george and steven describe an attack \cite{draft} that
  241. lets them determine the nodes used in a circuit; yet they can't identify
  242. alice or bob through this attack. so it's really just the endpoints that
  243. remain secure. and the enclave model seems particularly threatened by
  244. this, since this attack lets us identify endpoints when they're servers.
  245. see \ref{subsec:helper-nodes} for discussion of some ways to address this
  246. issue.
  247. see \ref{subsec:routing-zones} for discussion of larger
  248. adversaries and our dispersal goals.
  249. \section{Crossroads: Policy issues}
  250. \label{sec:crossroads-policy}
  251. Many of the issues the Tor project needs to address are not just a
  252. matter of system design or technology development. In particular, the
  253. Tor project's \emph{image} with respect to its users and the rest of
  254. the Internet impacts the security it can provide.
  255. As an example to motivate this section, some U.S.~Department of Enery
  256. penetration testing engineers are tasked with compromising DoE computers
  257. from the outside. They only have a limited number of ISPs from which to
  258. launch their attacks, and they found that the defenders were recognizing
  259. attacks because they came from the same IP space. These engineers wanted
  260. to use Tor to hide their tracks. First, from a technical standpoint,
  261. Tor does not support the variety of IP packets one would like to use in
  262. such attacks (see Section \ref{subsec:ip-vs-tcp}). But aside from this,
  263. we also decided that it would probably be poor precedent to encourage
  264. such use---even legal use that improves national security---and managed
  265. to dissuade them.
  266. With this image issue in mind, here we discuss the Tor user base and
  267. Tor's interaction with other services on the Internet.
  268. \subsection{Usability}
  269. Usability: fc03 paper was great, except the lower latency you are the
  270. less useful it seems it is.
  271. A Tor gui, how jap's gui is nice but does not reflect the security
  272. they provide.
  273. Public perception, and thus advertising, is a security parameter.
  274. \subsection{Image, usability, and sustainability}
  275. Image: substantial non-infringing uses. Image is a security parameter,
  276. since it impacts user base and perceived sustainability.
  277. Sustainability. Previous attempts have been commercial which we think
  278. adds a lot of unnecessary complexity and accountability. Freedom didn't
  279. collect enough money to pay its servers; JAP bandwidth is supported by
  280. continued money, and they periodically ask what they will do when it
  281. dries up.
  282. good uses are kept private, bad uses are publicized. not good.
  283. \subsection{Tor and file-sharing}
  284. Bittorrent and dmca. Should we add an IDS to autodetect protocols and
  285. snipe them?
  286. because only at the exit is it evident what port or protocol a given
  287. tor stream is, you can't choose not to carry file-sharing traffic.
  288. hibernation vs rate-limiting: do we want diversity or throughput? i
  289. think we're shifting back to wanting diversity.
  290. \subsection{Tor and blacklists}
  291. Takedowns and efnet abuse and wikipedia complaints and irc
  292. networks.
  293. It was long expected that, alongside Tor's legitimate users, it would also
  294. attract troublemakers who exploited Tor in order to abuse services on the
  295. Internet. Our initial answer to this situation was to use ``exit policies''
  296. to allow individual Tor servers to block access to specific IP/port ranges.
  297. This approach was meant to make operators more willing to run Tor by allowing
  298. them to prevent their servers from being used for abusing particular
  299. services. For example, all Tor servers currently block SMTP (port 25), in
  300. order to avoid being used to send spam.
  301. This approach is useful, but is insufficient for two reasons. First, since
  302. it is not possible to force all ORs to block access to any given service,
  303. many of those services try to block Tor instead. More broadly, while being
  304. blockable is important to being good netizens, we would like to encourage
  305. services to allow anonymous access; services should not need to decide
  306. between blocking legitimate anonymous use and allowing unlimited abuse.
  307. This is potentially a bigger problem than it may appear.
  308. On the one hand, if people want to refuse connections from you on
  309. their servers it would seem that they should be allowed to. But, a
  310. possible major problem with the blocking of Tor is that it's not just
  311. the decision of the individual server administrator whose deciding if
  312. he wants to post to wikipedia from his Tor node address or allow
  313. people to read wikipedia anonymously through his Tor node. If e.g.,
  314. s/he comes through a campus or corporate NAT, then the decision must
  315. be to have the entire population behind it able to have a Tor exit
  316. node or write access to wikipedia. This is a loss for both of us (Tor
  317. and wikipedia). We don't want to compete for (or divvy up) the NAT
  318. protected entities of the world.
  319. (A related problem is that many IP blacklists are not terribly fine-grained.
  320. No current IP blacklist, for example, allow a service provider to blacklist
  321. only those Tor servers that allow access to a specific IP or port, even
  322. though this information is readily available. One IP blacklist even bans
  323. every class C network that contains a Tor server, and recommends banning SMTP
  324. from these networks even though Tor does not allow SMTP at all.)
  325. Problems of abuse occur mainly with services such as IRC networks and
  326. Wikipedia, which rely on IP-blocking to ban abusive users. While at first
  327. blush this practice might seem to depend on the anachronistic assumption that
  328. each IP is an identifier for a single user, it is actually more reasonable in
  329. practice: it assumes that non-proxy IPs are a costly resource, and that an
  330. abuser can not change IPs at will. By blocking IPs which are used by Tor
  331. servers, open proxies, and service abusers, these systems hope to make
  332. ongoing abuse difficult. Although the system is imperfect, it works
  333. tolerably well for them in practice.
  334. But of course, we would prefer that legitimate anonymous users be able to
  335. access abuse-prone services. One conceivable approach would be to require
  336. would-be IRC users, for instance, to register accounts if they wanted to
  337. access the IRC network from Tor. But in practise, this would not
  338. significantly impede abuse if creating new accounts were easily automatable;
  339. this is why services use IP blocking. In order to deter abuse, pseudonymous
  340. identities need to impose a significant switching cost in resources or human
  341. time.
  342. Once approach, similar to that taken by Freedom, would be to bootstrap some
  343. non-anonymous costly identification mechanism to allow access to a
  344. blind-signature pseudonym protocol. This would effectively create costly
  345. pseudonyms, which services could require in order to allow anonymous access.
  346. This approach has difficulties in practise, however:
  347. \begin{tightlist}
  348. \item Unlike Freedom, Tor is not a commercial service. Therefore, it would
  349. be a shame to require payment in order to make Tor useful, or to make
  350. non-paying users second-class citizens.
  351. \item It is hard to think of an underlying resource that would actually work.
  352. We could use IP addresses, but that's the problem, isn't it?
  353. \item Managing single sign-on services is not considered a well-solved
  354. problem in practice. If Microsoft can't get universal acceptance for
  355. passport, why do we think that a Tor-specific solution would do any good?
  356. \item Even if we came up with a perfect authentication system for our needs,
  357. there's no guarantee that any service would actually start using it. It
  358. would require a nonzero effort for them to support it, and it might just
  359. be less hassle for them to block tor anyway.
  360. \end{tightlist}
  361. Squishy IP based ``authentication'' and ``authorization'' is a reality
  362. we must contend with. We should say something more about the analogy
  363. with SSNs.
  364. \subsection{Other}
  365. Tor's scope: How much should Tor aim to do? Applications that leak
  366. data: we can say they're not our problem, but they're somebody's problem.
  367. Also, the more widely deployed Tor becomes, the more people who need a
  368. deployed overlay network tell us they'd like to use us if only we added
  369. the following more features. For example, Blossom \cite{blossom} and
  370. random community wireless projects both want source-routable overlay
  371. networks for their own purposes. Fortunately, our modular design separates
  372. routing from node discovery; so we could implement Morphmix in Tor just
  373. by implementing the Morphmix-specific node discovery and path selection
  374. pieces. On the other hand, we could easily get distracted building a
  375. general-purpose overlay library, and we're only a few developers.
  376. Should we allow revocation of anonymity if a threshold of
  377. servers want to?
  378. Logging. Making logs not revealing. A happy coincidence that verbose
  379. logging is our \#2 performance bottleneck. Is there a way to detect
  380. modified servers, or to have them volunteer the information that they're
  381. logging verbosely? Would that actually solve any attacks?
  382. \section{Crossroads: Scaling and Design choices}
  383. \label{sec:crossroads-design}
  384. \subsection{Transporting the stream vs transporting the packets}
  385. We periodically run into ex ZKS employees who tell us that the process of
  386. anonymizing IPs should ``obviously'' be done at the IP layer. Here are
  387. the issues that need to be resolved before we'll be ready to switch Tor
  388. over to arbitrary IP traffic.
  389. \begin{enumerate}
  390. \setlength{\itemsep}{0mm}
  391. \setlength{\parsep}{0mm}
  392. \item \emph{IP packets reveal OS characteristics.} We still need to do
  393. IP-level packet normalization, to stop things like IP fingerprinting
  394. \cite{ip-fingerprinting}. There exist libraries \cite{ip-normalizing}
  395. that can help with this.
  396. \item \emph{Application-level streams still need scrubbing.} We still need
  397. Tor to be easy to integrate with user-level application-specific proxies
  398. such as Privoxy. So it's not just a matter of capturing packets and
  399. anonymizing them at the IP layer.
  400. \item \emph{Certain protocols will still leak information.} For example,
  401. DNS requests destined for my local DNS servers need to be rewritten
  402. to be delivered to some other unlinkable DNS server. This requires
  403. understanding the protocols we are transporting.
  404. \item \emph{The crypto is unspecified.} First we need a block-level encryption
  405. approach that can provide security despite
  406. packet loss and out-of-order delivery. Freedom allegedly had one, but it was
  407. never publicly specified, and we believe it's likely vulnerable to tagging
  408. attacks \cite{tor-design}. Also, TLS over UDP is not implemented or even
  409. specified, though some early work has begun on that \cite{ben-tls-udp}.
  410. \item \emph{We'll still need to tune network parameters}. Since the above
  411. encryption system will likely need sequence numbers and maybe more to do
  412. replay detection, handle duplicate frames, etc, we will be reimplementing
  413. some subset of TCP anyway to manage throughput, congestion control, etc.
  414. \item \emph{Exit policies for arbitrary IP packets mean building a secure
  415. IDS.} Our server operators tell us that exit policies are one of
  416. the main reasons they're willing to run Tor over previous attempts
  417. at anonymizing networks. Adding an IDS to handle exit policies would
  418. increase the security complexity of Tor, and would likely not work anyway,
  419. as evidenced by the entire field of IDS and counter-IDS papers. Many
  420. potential abuse issues are resolved by the fact that Tor only transports
  421. valid TCP streams (as opposed to arbitrary IP including malformed packets
  422. and IP floods), so exit policies become even \emph{more} important as
  423. we become able to transport IP packets. We also need a way to compactly
  424. characterize the exit policies and let clients parse them to decide
  425. which nodes will allow which packets to exit.
  426. \item \emph{The Tor-internal name spaces would need to be redesigned.} We
  427. support hidden service {\tt{.onion}} addresses, and other special addresses
  428. like {\tt{.exit}} (see Section \ref{subsec:}), by intercepting the addresses
  429. when they are passed to the Tor client.
  430. \end{enumerate}
  431. This list is discouragingly long right now, but we recognize that it
  432. would be good to investigate each of these items in further depth and to
  433. understand which are actual roadblocks and which are easier to resolve
  434. than we think. We certainly wouldn't mind if Tor one day is able to
  435. transport a greater variety of protocols.
  436. \subsection{Mid-latency}
  437. \label{subsec:mid-latency}
  438. Mid-latency. Can we do traffic shape to get any defense against George's
  439. PET2004 paper? Will padding or long-range dummies do anything then? Will
  440. it kill the user base or can we get both approaches to play well together?
  441. explain what mid-latency is. propose a single network where users of
  442. varying latency goals can combine.
  443. Note that in practice as the network is growing and we accept cable
  444. modem and dsl nodes, and nodes in other continents, we're *already*
  445. looking at many-second delays for some transactions. The engineering
  446. required to get this lower is going to be extremely hard. It's worth
  447. considering how hard it would be to accept the fixed (higher) latency
  448. and improve the protection we get from it.
  449. % can somebody besides arma flesh this section out?
  450. %\subsection{The DNS problem in practice}
  451. \subsection{Measuring performance and capacity}
  452. How to measure performance without letting people selectively deny service
  453. by distinguishing pings. Heck, just how to measure performance at all. In
  454. practice people have funny firewalls that don't match up to their exit
  455. policies and Tor doesn't deal.
  456. Network investigation: Is all this bandwidth publishing thing a good idea?
  457. How can we collect stats better? Note weasel's smokeping, at
  458. http://seppia.noreply.org/cgi-bin/smokeping.cgi?target=Tor
  459. which probably gives george and steven enough info to break tor?
  460. \subsection{Plausible deniability}
  461. Does running a server help you or harm you? George's Oakland attack.
  462. Plausible deniability -- without even running your traffic through Tor! We
  463. have to pick the path length so adversary can't distinguish client from
  464. server (how many hops is good?).
  465. \subsection{Helper nodes}
  466. When does fixing your entry or exit node help you?
  467. Helper nodes in the literature don't deal with churn, and
  468. especially active attacks to induce churn.
  469. Do general DoS attacks have anonymity implications? See e.g. Adam
  470. Back's IH paper, but I think there's more to be pointed out here.
  471. \subsection{Location-hidden services}
  472. Survivable services are new in practice, yes? Hidden services seem
  473. less hidden than we'd like, since they stay in one place and get used
  474. a lot. They're the epitome of the need for helper nodes. This means
  475. that using Tor as a building block for Free Haven is going to be really
  476. hard. Also, they're brittle in terms of intersection and observation
  477. attacks. Would be nice to have hot-swap services, but hard to design.
  478. \subsection{Trust and discovery}
  479. The published Tor design adopted a deliberately simplistic design for
  480. authorizing new nodes and informing clients about servers and their status.
  481. In the early Tor designs, all ORs periodically uploaded a signed description
  482. of their locations, keys, and capabilities to each of several well-known {\it
  483. directory servers}. These directory servers constructed a signed summary
  484. of all known ORs (a ``directory''), and a signed statement of which ORs they
  485. believed to be operational at any given time (a ``network status''). Clients
  486. periodically downloaded a directory in order to learn the latest ORs and
  487. keys, and more frequently downloaded a network status to learn which ORs are
  488. likely to be running. ORs also operate as directory caches, in order to
  489. lighten the bandwidth on the authoritative directory servers.
  490. In order to prevent Sybil attacks (wherein an adversary signs up many
  491. purportedly independent servers in order to increase her chances of observing
  492. a stream as it enters and leaves the network), the early Tor directory design
  493. required the operators of the authoritative directory servers to manually
  494. approve new ORs. Unapproved ORs were included in the directory, but clients
  495. did not use them at the start or end of their circuits. In practice,
  496. directory administrators performed little actual verification, and tended to
  497. approve any OR whose operator could compose a coherent email. This procedure
  498. may have prevented trivial automated Sybil attacks, but would do little
  499. against a clever attacker.
  500. There are a number of flaws in this system that need to be addressed as we
  501. move forward. They include:
  502. \begin{tightlist}
  503. \item Each directory server represents an independent point of failure; if
  504. any one were compromised, it could immediately compromise all of its users
  505. by recommending only compromised ORs.
  506. \item The more servers appear join the network, the more unreasonable it
  507. becomes to expect clients to know about them all. Directories
  508. become unfeasibly large, and downloading the list of servers becomes
  509. burdonsome.
  510. \item The validation scheme may do as much harm as it does good. It is not
  511. only incapable of preventing clever attackers from mounting Sybil attacks,
  512. but may deter server operators from joining the network. (For instance, if
  513. they expect the validation process to be difficult, or if they do not share
  514. any languages in common with the directory server operators.)
  515. \end{tightlist}
  516. We could try to move the system in several directions, depending on our
  517. choice of threat model and requirements. If we did not need to increase
  518. network capacity in order to support more users, there would be no reason not
  519. to adopt even stricter validation requirements, and reduce the number of
  520. servers in the network to a trusted minimum. But since we want Tor to work
  521. for as many users as it can, we need XXXXX
  522. In order to address the first two issues, it seems wise to move to a system
  523. including a number of semi-trusted directory servers, no one of which can
  524. compromise a user on its own. Ultimately, of course, we cannot escape the
  525. problem of a first introducer: since most users will run Tor in whatever
  526. configuration the software ships with, the Tor distribution itself will
  527. remain a potential single point of failure so long as it includes the seed
  528. keys for directory servers, a list of directory servers, or any other means
  529. to learn which servers are on the network. But omitting this information
  530. from the Tor distribution would only delegate the trust problem to the
  531. individual users, most of whom are presumably less informed about how to make
  532. trust decisions than the Tor developers.
  533. %Network discovery, sybil, node admission, scaling. It seems that the code
  534. %will ship with something and that's our trust root. We could try to get
  535. %people to build a web of trust, but no. Where we go from here depends
  536. %on what threats we have in mind. Really decentralized if your threat is
  537. %RIAA; less so if threat is to application data or individuals or...
  538. Game theory for helper nodes: if Alice offers a hidden service on a
  539. server (enclave model), and nobody ever uses helper nodes, then against
  540. George+Steven's attack she's totally nailed. If only Alice uses a helper
  541. node, then she's still identified as the source of the data. If everybody
  542. uses a helper node (including Alice), then the attack identifies the
  543. helper node and also Alice, and knows which one is which. If everybody
  544. uses a helper node (but not Alice), then the attacker figures the real
  545. source was a client that is using Alice as a helper node. [How's my
  546. logic here?]
  547. people are using hidden services as a poor man's vpn and firewall-buster.
  548. rather than playing with dyndns and trying to pierce holes in their
  549. firewall (say, so they can ssh in from the outside), they run a hidden
  550. service on the inside and then rendezvous with that hidden service
  551. externally.
  552. in practice, sites like bloggers without borders (www.b19s.org) are
  553. running tor servers but more important are advertising a hidden-service
  554. address on their front page. doing this can provide increased robustness
  555. if they used the dual-IP approach we describe in tor-design, but in
  556. practice they do it to a) increase visibility of the tor project and their
  557. support for privacy, and b) to offer a way for their users, using vanilla
  558. software, to get end-to-end encryption and end-to-end authentication to
  559. their website.
  560. \section{Crossroads: Scaling}
  561. %\label{sec:crossroads-scaling}
  562. %P2P + anonymity issues:
  563. Tor is running today with hundreds of servers and tens of thousands of
  564. users, but it will certainly not scale to millions.
  565. Scaling Tor involves three main challenges. First is safe server
  566. discovery, both bootstrapping -- how a Tor client can robustly find an
  567. initial server list -- and ongoing -- how a Tor client can learn about
  568. a fair sample of honest servers and not let the adversary control his
  569. circuits (see Section x). Second is detecting and handling the speed
  570. and reliability of the variety of servers we must use if we want to
  571. accept many servers (see Section y).
  572. Since the speed and reliability of a circuit is limited by its worst link,
  573. we must learn to track and predict performance. Finally, in order to get
  574. a large set of servers in the first place, we must address incentives
  575. for users to carry traffic for others (see Section incentives).
  576. \subsection{Incentives}
  577. There are three behaviors we need to encourage for each server: relaying
  578. traffic; providing good throughput and reliability while doing it;
  579. and allowing traffic to exit the network from that server.
  580. We encourage these behaviors through \emph{indirect} incentives, that
  581. is, designing the system and educating users in such a way that users
  582. with certain goals will choose to relay traffic. In practice, the
  583. main incentive for running a Tor server is social benefit: volunteers
  584. altruistically donate their bandwidth and time. We also keep public
  585. rankings of the throughput and reliability of servers, much like
  586. seti@home. We further explain to users that they can get \emph{better
  587. security} by operating a server, because they get plausible deniability
  588. (indeed, they may not need to route their own traffic through Tor at all
  589. -- blending directly with other traffic exiting Tor may be sufficient
  590. protection for them), and because they can use their own Tor server
  591. as entry or exit point and be confident it's not run by the adversary.
  592. Finally, we can improve the usability and feature set of the software:
  593. rate limiting support and easy packaging decrease the hassle of
  594. maintaining a server, and our configurable exit policies allow each
  595. operator to advertise a policy describing the hosts and ports to which
  596. he feels comfortable connecting.
  597. Beyond these, however, there is also a need for \emph{direct} incentives:
  598. providing payment or other resources in return for high-quality service.
  599. Paying actual money is problematic: decentralized e-cash systems are
  600. not yet practical, and a centralized collection system not only reduces
  601. robustness, but also has failed in the past (the history of commercial
  602. anonymizing networks is littered with failed attempts). A more promising
  603. option is to use a tit-for-tat incentive scheme: provide better service
  604. to nodes that have provided good service to you.
  605. Unfortunately, such an approach introduces new anonymity problems.
  606. Does the incentive system enable the adversary to attract more traffic by
  607. performing well? Typically a user who chooses evenly from all options is
  608. most resistant to an adversary targetting him, but that approach prevents
  609. us from handling heterogeneous servers \cite{casc-rep}.
  610. When a server (call him Steve) performs well for Alice, does Steve gain
  611. reputation with the entire system, or just with Alice? If the entire
  612. system, how does Alice tell everybody about her experience in a way that
  613. prevents her from lying about it yet still protects her identity? If
  614. Steve's behavior only affects Alice's behavior, does this allow Steve to
  615. selectively perform only for Alice, and then break her anonymity later
  616. when somebody (presumably Alice) routes through his node?
  617. These are difficult and open questions, yet choosing not to scale means
  618. leaving most users to a less secure network or no anonymizing network
  619. at all. We will start with a simplified approach to the tit-for-tat
  620. incentive scheme based on two rules: (1) each node should measure the
  621. service it receives from adjacent nodes, and provide service relative to
  622. the received service, but (2) when a node is making decisions that affect
  623. its own security (e.g. when building a circuit for its own application
  624. connections), it should choose evenly from a sufficiently large set of
  625. nodes that meet some minimum service threshold. This approach allows us
  626. to discourage bad service without opening Alice up as much to attacks.
  627. %XXX rewrite the above so it sounds less like a grant proposal and
  628. %more like a "if somebody were to try to solve this, maybe this is a
  629. %good first step".
  630. %We should implement the above incentive scheme in the
  631. %deployed Tor network, in conjunction with our plans to add the necessary
  632. %associated scalability mechanisms. We will do experiments (simulated
  633. %and/or real) to determine how much the incentive system improves
  634. %efficiency over baseline, and also to determine how far we are from
  635. %optimal efficiency (what we could get if we ignored the anonymity goals).
  636. \subsection{Peer-to-peer / practical issues}
  637. Making use of servers with little bandwidth. How to handle hammering by
  638. certain applications.
  639. Handling servers that are far away from the rest of the network, e.g. on
  640. the continents that aren't North America and Europe. High latency,
  641. often high packet loss.
  642. Running Tor servers behind NATs, behind great-firewalls-of-China, etc.
  643. Restricted routes. How to propagate to everybody the topology? BGP
  644. style doesn't work because we don't want just *one* path. Point to
  645. Geoff's stuff.
  646. \subsection{ISP-class adversaries}
  647. Routing-zones. It seems that our threat model comes down to diversity and
  648. dispersal. But hard for Alice to know how to act. Many questions remain.
  649. \subsection{The China problem}
  650. Citizens in a variety of countries, such as most recently China and
  651. Iran, are periodically blocked from accessing various sites outside
  652. their country. These users try to find any tools available to allow
  653. them to get-around these firewalls. Some anonymity networks, such as
  654. Six-Four~\cite{six-four}, are designed specifically with this goal in
  655. mind; others like the Anonymizer~\cite{anonymizer} are paid by sponsors
  656. such as Voice of America to set up a network to encourage `Internet
  657. freedom'~\cite{voice-of-america-anonymizer}. Even though Tor wasn't
  658. designed with ubiquitous access to the network in mind, thousands of
  659. users across the world are trying to use it for exactly this purpose.
  660. % Academic and NGO organizations, peacefire, \cite{berkman}, etc
  661. Anti-censorship networks hoping to bridge country-level blocks face
  662. a variety of challenges. One of these is that they need to find enough
  663. exit nodes---servers on the `free' side that are willing to relay
  664. arbitrary traffic from users to their final destinations. Anonymizing
  665. networks including Tor are well-suited to this task, since we have
  666. already gathered a set of exit nodes that are willing to tolerate some
  667. political heat.
  668. The other main challenge is to distribute a list of reachable relays
  669. to the users inside the country, and give them software to use them,
  670. without letting the authorities also enumerate this list and block each
  671. relay. Anonymizer solves this by buying lots of seemingly-unrelated IP
  672. addresses (or having them donated), abandoning old addresses as they are
  673. `used up', and telling a few users about the new ones. Distributed
  674. anonymizing networks again have an advantage here, in that we already
  675. have tens of thousands of separate IP addresses whose users might
  676. volunteer to provide this service since they've already installed and use
  677. the software for their own privacy~\cite{koepsell-wpes2004}. Because
  678. the Tor protocol separates routing from network discovery (see Section
  679. \ref{do-we-discuss-this?}), volunteers could configure their Tor clients
  680. to generate server descriptors and send them to a special directory
  681. server that gives them out to dissidents who need to get around blocks.
  682. Of course, this still doesn't prevent the adversary
  683. from enumerating all the volunteer relays and blocking them preemptively.
  684. Perhaps a tiered-trust system could be built where a few individuals are
  685. given relays' locations, and they recommend other individuals by telling them
  686. those addresses, thus providing a built-in incentive to avoid letting the
  687. adversary intercept them. Max-flow trust algorithms~\cite{advogato}
  688. might help to bound the number of IP addresses leaked to the adversary. Groups
  689. like the W3C are looking into using Tor as a component in an overall system to
  690. help address censorship; we wish them luck.
  691. %\cite{infranet}
  692. \subsection{Non-clique topologies}
  693. Because of its threat model that is substantially weaker than high
  694. latency mixnets, Tor is actually in a potentially better position to
  695. scale at least initially. From the perspective of a mix network, one
  696. of the worst things that can happen is partitioning. The more
  697. potential senders of messages entering the network the better the
  698. anonymity. Roughly, if a network is, e.g., split in half, then your
  699. anonymity is cut in half. Attacks become half as hard (if they're
  700. linear in network size), etc. In some sense this is still true for
  701. Tor: if you want to know who Alice is talking to, you can watch her
  702. for one end of a circuit. For a half size network, you then only have
  703. to brute force examine half as many nodes to find the other end. But
  704. Tor is not meant to cope with someone directly attacking many dozens
  705. of nodes in a few minutes. It was meant to cope with traffic
  706. confirmation attacks. And, these are independent of the size of the
  707. network. So, a simple possibility when the scale of a Tor network
  708. exceeds some size is to simply split it. Care could be taken in
  709. allocating which nodes go to which network along the lines of
  710. \cite{casc-rep} to insure that collaborating hostile nodes are not
  711. able to gain any advantage in network splitting that they do not
  712. already have in joining a network.
  713. The attacks in \cite{attack-tor-oak05} show that certain types of
  714. brute force attacks are in fact feasible; however they make the
  715. above point stronger not weaker. The attacks do not appear to be
  716. significantly more difficult to mount against a network that is
  717. twice the size. Also, they only identify the Tor nodes used in a
  718. circuit, not the client. Finally note that even if the network is split,
  719. a client does not need to use just one of the two resulting networks.
  720. Alice could use either of them, and it would not be difficult to make
  721. the Tor client able to access several such network on a per circuit
  722. basis. More analysis is needed; we simply note here that splitting
  723. a Tor network is an easy way to achieve moderate scalability and that
  724. it does not necessarily have the same implications as splitting a mixnet.
  725. Alternatively, we can try to scale a single network. Some issues for
  726. scaling include how many neighbors can nodes support and how many
  727. users (and how much application traffic capacity) can the network
  728. handle for each new node that comes into the network. This depends on
  729. many things, most notably the traffic capacity of the new nodes. We
  730. can observe, however, that adding a tor node of any feasible bandwidth
  731. will increase the traffic capacity of the network. This means that, as
  732. a first step to scaling, we can focus on the interconnectivity of the
  733. nodes, followed by directories, discovery, etc.
  734. By reducing the connectivity of the network we increase the total
  735. number of nodes that the network can contain. Anonymity implications
  736. of restricted routes for mix networks have already been explored by
  737. Danezis~\cite{danezis-pets03}. That paper explicitly considered only
  738. traffic analysis resistance provided by a mix network and sidestepped
  739. questions of traffic confirmation resistance. But, Tor is designed
  740. only to resist traffic confirmation. For this and other reasons, we
  741. cannot simply adopt his mixnet results to onion routing networks. If
  742. an attacker gains minimal increase in the likelyhood of compromising
  743. the endpoints of a Tor circuit through a sparse network (vs.\ a clique
  744. on the same node set), then the restriction will have had minimal
  745. impact on the anonymity provided by that network.
  746. The approach Danezis describes is based on expander graphs, i.e.,
  747. graphs in which any subgraph of nodes is likely to have lots of nodes
  748. as neighbors. For Tor, we may not need to have an expander per se, it
  749. may be enough to have a single subnet that is highly connected. As an
  750. example, assume fifty nodes of relatively high traffic capacity. This
  751. \emph{center} forms are a clique. Assume each center node can each
  752. handle 200 connections to other nodes (including the other ones in the
  753. center). Assume every noncenter node connects to three nodes in the
  754. center and anyone out of the center that they want to. Then the
  755. network easily scales to c. 2500 nodes with commensurate increase in
  756. bandwidth. There are many open questions: how directory information
  757. is distributed (presumably information about the center nodes could
  758. be given to any new nodes with their codebase), whether center nodes
  759. will need to function as a `backbone', etc. As above the point is
  760. that this would create problems for the expected anonymity for a mixnet,
  761. but for an onion routing network where anonymity derives largely from
  762. the edges, it may be feasible.
  763. Another point is that we already have a non-clique topology.
  764. Individuals can set up and run Tor nodes without informing the
  765. directory servers. This will allow, e.g., dissident groups to run a
  766. local Tor network of such nodes that connects to the public Tor
  767. network. This network is hidden behind the Tor network and its
  768. only visible connection to Tor at those points where it connects.
  769. As far as the public network is concerned or anyone observing it,
  770. they are running clients.
  771. \section{The Future}
  772. \label{sec:conclusion}
  773. \bibliographystyle{plain} \bibliography{tor-design}
  774. \appendix
  775. \begin{figure}[t]
  776. %\unitlength=1in
  777. \centering
  778. %\begin{picture}(6.0,2.0)
  779. %\put(3,1){\makebox(0,0)[c]{\epsfig{figure=graphnodes,width=6in}}}
  780. %\end{picture}
  781. \mbox{\epsfig{figure=graphnodes,width=5in}}
  782. \caption{Number of servers over time. Lowest line is number of exit nodes that allow connections to port 80. Middle line is total number of verified (registered) servers. The line above that represents servers that are not yet registered.}
  783. \label{fig:graphnodes}
  784. \end{figure}
  785. \begin{figure}[t]
  786. \centering
  787. \mbox{\epsfig{figure=graphtraffic,width=5in}}
  788. \caption{The sum of traffic reported by each server over time. The bottom pair show average throughput, and the top pair represent the largest 15 minute burst in each 4 hour period.}
  789. \label{fig:graphtraffic}
  790. \end{figure}
  791. \end{document}