challenges.tex 40 KB

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