challenges.tex 45 KB

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