challenges.tex 39 KB

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