blocking.tex 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302
  1. \documentclass{llncs}
  2. \usepackage{url}
  3. \usepackage{amsmath}
  4. \usepackage{epsfig}
  5. \setlength{\textwidth}{5.9in}
  6. \setlength{\textheight}{8.4in}
  7. \setlength{\topmargin}{.5cm}
  8. \setlength{\oddsidemargin}{1cm}
  9. \setlength{\evensidemargin}{1cm}
  10. \newenvironment{tightlist}{\begin{list}{$\bullet$}{
  11. \setlength{\itemsep}{0mm}
  12. \setlength{\parsep}{0mm}
  13. % \setlength{\labelsep}{0mm}
  14. % \setlength{\labelwidth}{0mm}
  15. % \setlength{\topsep}{0mm}
  16. }}{\end{list}}
  17. \begin{document}
  18. \title{Design of a blocking-resistant anonymity system\\DRAFT}
  19. %\author{Roger Dingledine\inst{1} \and Nick Mathewson\inst{1}}
  20. \author{Roger Dingledine \and Nick Mathewson}
  21. \institute{The Free Haven Project\\
  22. \email{\{arma,nickm\}@freehaven.net}}
  23. \maketitle
  24. \pagestyle{plain}
  25. \begin{abstract}
  26. Websites around the world are increasingly being blocked by
  27. government-level firewalls. Many people use anonymizing networks like
  28. Tor to contact sites without letting an attacker trace their activities,
  29. and as an added benefit they are no longer affected by local censorship.
  30. But if the attacker simply denies access to the Tor network itself,
  31. blocked users can no longer benefit from the security Tor offers.
  32. Here we describe a design that builds upon the current Tor network
  33. to provide an anonymizing network that resists blocking
  34. by government-level attackers.
  35. \end{abstract}
  36. \section{Introduction and Goals}
  37. Anonymizing networks such as Tor~\cite{tor-design} bounce traffic around
  38. a network of relays. They aim to hide not only what is being said, but
  39. also who is communicating with whom, which users are using which websites,
  40. and so on. These systems have a broad range of users, including ordinary
  41. citizens who want to avoid being profiled for targeted advertisements,
  42. corporations who don't want to reveal information to their competitors,
  43. and law enforcement and government intelligence agencies who need to do
  44. operations on the Internet without being noticed.
  45. Historically, research on anonymizing systems has focused on a passive
  46. attacker who monitors the user (call her Alice) and tries to discover her
  47. activities, yet lets her reach any piece of the network. In more modern
  48. threat models such as Tor's, the adversary is allowed to perform active
  49. attacks such as modifying communications in hopes of tricking Alice
  50. into revealing her destination, or intercepting some of her connections
  51. to run a man-in-the-middle attack. But these systems still assume that
  52. Alice can eventually reach the anonymizing network.
  53. An increasing number of users are using the Tor software
  54. less for its anonymity properties than for its censorship
  55. resistance properties---if they use Tor to access Internet sites like
  56. Wikipedia
  57. and Blogspot, they are no longer affected by local censorship
  58. and firewall rules. In fact, an informal user study (described in
  59. Appendix~\ref{app:geoip}) showed China as the third largest user base
  60. for Tor clients, with perhaps ten thousand people accessing the Tor
  61. network from China each day.
  62. The current Tor design is easy to block if the attacker controls Alice's
  63. connection to the Tor network---by blocking the directory authorities,
  64. by blocking all the server IP addresses in the directory, or by filtering
  65. based on the signature of the Tor TLS handshake. Here we describe a
  66. design that builds upon the current Tor network to provide an anonymizing
  67. network that also resists this blocking. Specifically,
  68. Section~\ref{sec:adversary} discusses our threat model---that is,
  69. the assumptions we make about our adversary; Section~\ref{sec:current-tor}
  70. describes the components of the current Tor design and how they can be
  71. leveraged for a new blocking-resistant design; Section~\ref{sec:related}
  72. explains the features and drawbacks of the currently deployed solutions;
  73. and ...
  74. %And adding more different classes of users and goals to the Tor network
  75. %improves the anonymity for all Tor users~\cite{econymics,usability:weis2006}.
  76. \section{Adversary assumptions}
  77. \label{sec:adversary}
  78. The history of blocking-resistance designs is littered with conflicting
  79. assumptions about what adversaries to expect and what problems are
  80. in the critical path to a solution. Here we try to enumerate our best
  81. understanding of the current situation around the world.
  82. In the traditional security style, we aim to describe a strong
  83. attacker---if we can defend against this attacker, we inherit protection
  84. against weaker attackers as well. After all, we want a general design
  85. that will work for citizens of China, Iran, Thailand, and other censored
  86. countries; for
  87. whistleblowers in firewalled corporate network; and for people in
  88. unanticipated oppressive situations. In fact, by designing with
  89. a variety of adversaries in mind, we can take advantage of the fact that
  90. adversaries will be in different stages of the arms race at each location,
  91. and thereby retain partial utility in servers even when they are blocked
  92. by some of the adversaries.
  93. We assume there are three main network attacks in use by censors
  94. currently~\cite{clayton:pet2006}:
  95. \begin{tightlist}
  96. \item Block a destination or type of traffic by automatically searching for
  97. certain strings or patterns in TCP packets.
  98. \item Block a destination by manually listing its IP address at the
  99. firewall.
  100. \item Intercept DNS requests and give bogus responses for certain
  101. destination hostnames.
  102. \end{tightlist}
  103. We assume the network firewall has limited CPU and memory per
  104. connection~\cite{clayton:pet2006}. Against an adversary who spends
  105. hours looking through the contents of each packet, we would need
  106. some stronger mechanism such as steganography, which introduces its
  107. own problems~\cite{active-wardens,tcpstego,bar}.
  108. More broadly, we assume that the authorities are more likely to
  109. block a given system as its popularity grows. That is, a system
  110. used by only a few users will probably never be blocked, whereas a
  111. well-publicized system with many users will receive much more scrutiny.
  112. We assume that readers of blocked content are not in as much danger
  113. as publishers. So far in places like China, the authorities mainly go
  114. after people who publish materials and coordinate organized
  115. movements~\cite{mackinnon}.
  116. If they find that a user happens
  117. to be reading a site that should be blocked, the typical response is
  118. simply to block the site. Of course, even with an encrypted connection,
  119. the adversary may be able to distinguish readers from publishers by
  120. observing whether Alice is mostly downloading bytes or mostly uploading
  121. them---we discuss this issue more in Section~\ref{subsec:upload-padding}.
  122. We assume that while various different regimes can coordinate and share
  123. notes, there will be a time lag between one attacker learning
  124. how to overcome a facet of our design and other attackers picking it up.
  125. Similarly, we assume that in the early stages of deployment the insider
  126. threat isn't as high of a risk, because no attackers have put serious
  127. effort into breaking the system yet.
  128. We do not assume that government-level attackers are always uniform across
  129. the country. For example, there is no single centralized place in China
  130. that coordinates its censorship decisions and steps.
  131. We assume that our users have control over their hardware and
  132. software---they don't have any spyware installed, there are no
  133. cameras watching their screen, etc. Unfortunately, in many situations
  134. these threats are real~\cite{zuckerman-threatmodels}; yet
  135. software-based security systems like ours are poorly equipped to handle
  136. a user who is entirely observed and controlled by the adversary. See
  137. Section~\ref{subsec:cafes-and-livecds} for more discussion of what little
  138. we can do about this issue.
  139. We assume that widespread access to the Internet is economically,
  140. politically, and/or
  141. socially valuable to the policymakers of each deployment country. After
  142. all, if censorship
  143. is more important than Internet access, the firewall administrators have
  144. an easy job: they should simply block everything. The corollary to this
  145. assumption is that we should design so that increased blocking of our
  146. system results in increased economic damage or public outcry.
  147. We assume that the user will be able to fetch a genuine
  148. version of Tor, rather than one supplied by the adversary; see
  149. Section~\ref{subsec:trust-chain} for discussion on helping the user
  150. confirm that he has a genuine version and that he can connect to the
  151. real Tor network.
  152. \section{Components of the current Tor design}
  153. \label{sec:current-tor}
  154. Tor is popular and sees a lot of use. It's the largest anonymity
  155. network of its kind.
  156. Tor has attracted more than 800 volunteer-operated routers from around the
  157. world. Tor protects users by routing their traffic through a multiply
  158. encrypted ``circuit'' built of a few randomly selected servers, each of which
  159. can remove only a single layer of encryption. Each server sees only the step
  160. before it and the step after it in the circuit, and so no single server can
  161. learn the connection between a user and her chosen communication partners.
  162. In this section, we examine some of the reasons why Tor has become popular,
  163. with particular emphasis to how we can take advantage of these properties
  164. for a blocking-resistance design.
  165. Tor aims to provide three security properties:
  166. \begin{tightlist}
  167. \item 1. A local network attacker can't learn, or influence, your
  168. destination.
  169. \item 2. No single router in the Tor network can link you to your
  170. destination.
  171. \item 3. The destination, or somebody watching the destination,
  172. can't learn your location.
  173. \end{tightlist}
  174. For blocking-resistance, we care most clearly about the first
  175. property. But as the arms race progresses, the second property
  176. will become important---for example, to discourage an adversary
  177. from volunteering a relay in order to learn that Alice is reading
  178. or posting to certain websites. The third property helps keep users safe from
  179. collaborating websites: consider websites and other Internet services
  180. that have been pressured
  181. recently into revealing the identity of bloggers~\cite{arrested-bloggers}
  182. or treating clients differently depending on their network
  183. location~\cite{google-geolocation}.
  184. % and cite{goodell-syverson06} once it's finalized.
  185. The Tor design provides other features as well over manual or ad
  186. hoc circumvention techniques.
  187. First, the Tor directory authorities automatically aggregate, test,
  188. and publish signed summaries of the available Tor routers. Tor clients
  189. can fetch these summaries to learn which routers are available and
  190. which routers are suitable for their needs. Directory information is cached
  191. throughout the Tor network, so once clients have bootstrapped they never
  192. need to interact with the authorities directly. (To tolerate a minority
  193. of compromised directory authorities, we use a threshold trust scheme---
  194. see Section~\ref{subsec:trust-chain} for details.)
  195. Second, Tor clients can be configured to use any directory authorities
  196. they want. They use the default authorities if no others are specified,
  197. but it's easy to start a separate (or even overlapping) Tor network just
  198. by running a different set of authorities and convincing users to prefer
  199. a modified client. For example, we could launch a distinct Tor network
  200. inside China; some users could even use an aggregate network made up of
  201. both the main network and the China network. (But we should not be too
  202. quick to create other Tor networks---part of Tor's anonymity comes from
  203. users behaving like other users, and there are many unsolved anonymity
  204. questions if different users know about different pieces of the network.)
  205. Third, in addition to automatically learning from the chosen directories
  206. which Tor routers are available and working, Tor takes care of building
  207. paths through the network and rebuilding them as needed. So the user
  208. never has to know how paths are chosen, never has to manually pick
  209. working proxies, and so on. More generally, at its core the Tor protocol
  210. is simply a tool that can build paths given a set of routers. Tor is
  211. quite flexible about how it learns about the routers and how it chooses
  212. the paths. Harvard's Blossom project~\cite{blossom-thesis} makes this
  213. flexibility more concrete: Blossom makes use of Tor not for its security
  214. properties but for its reachability properties. It runs a separate set
  215. of directory authorities, its own set of Tor routers (called the Blossom
  216. network), and uses Tor's flexible path-building to let users view Internet
  217. resources from any point in the Blossom network.
  218. Fourth, Tor separates the role of \emph{internal relay} from the
  219. role of \emph{exit relay}. That is, some volunteers choose just to relay
  220. traffic between Tor users and Tor routers, and others choose to also allow
  221. connections to external Internet resources. Because we don't force all
  222. volunteers to play both roles, we end up with more relays. This increased
  223. diversity in turn is what gives Tor its security: the more options the
  224. user has for her first hop, and the more options she has for her last hop,
  225. the less likely it is that a given attacker will be watching both ends
  226. of her circuit~\cite{tor-design}. As a bonus, because our design attracts
  227. more internal relays that want to help out but don't want to deal with
  228. being an exit relay, we end up with more options for the first hop---the
  229. one most critical to being able to reach the Tor network.
  230. Fifth, Tor is sustainable. Zero-Knowledge Systems offered the commercial
  231. but now defunct Freedom Network~\cite{freedom21-security}, a design with
  232. security comparable to Tor's, but its funding model relied on collecting
  233. money from users to pay relay operators. Modern commercial proxy systems
  234. similarly
  235. need to keep collecting money to support their infrastructure. On the
  236. other hand, Tor has built a self-sustaining community of volunteers who
  237. donate their time and resources. This community trust is rooted in Tor's
  238. open design: we tell the world exactly how Tor works, and we provide all
  239. the source code. Users can decide for themselves, or pay any security
  240. expert to decide, whether it is safe to use. Further, Tor's modularity
  241. as described above, along with its open license, mean that its impact
  242. will continue to grow.
  243. Sixth, Tor has an established user base of hundreds of
  244. thousands of people from around the world. This diversity of
  245. users contributes to sustainability as above: Tor is used by
  246. ordinary citizens, activists, corporations, law enforcement, and
  247. even government and military users~\cite{tor-use-cases}, and they can
  248. only achieve their security goals by blending together in the same
  249. network~\cite{econymics,usability:weis2006}. This user base also provides
  250. something else: hundreds of thousands of different and often-changing
  251. addresses that we can leverage for our blocking-resistance design.
  252. We discuss and adapt these components further in
  253. Section~\ref{sec:bridges}. But first we examine the strengths and
  254. weaknesses of other blocking-resistance approaches, so we can expand
  255. our repertoire of building blocks and ideas.
  256. \section{Current proxy solutions}
  257. \label{sec:related}
  258. Relay-based blocking-resistance schemes generally have two main
  259. components: a relay component and a discovery component. The relay part
  260. encompasses the process of establishing a connection, sending traffic
  261. back and forth, and so on---everything that's done once the user knows
  262. where he's going to connect. Discovery is the step before that: the
  263. process of finding one or more usable relays.
  264. For example, we can divide the pieces of Tor in the previous section
  265. into the process of building paths and sending
  266. traffic over them (relay) and the process of learning from the directory
  267. servers about what routers are available (discovery). With this distinction
  268. in mind, we now examine several categories of relay-based schemes.
  269. \subsection{Centrally-controlled shared proxies}
  270. Existing commercial anonymity solutions (like Anonymizer.com) are based
  271. on a set of single-hop proxies. In these systems, each user connects to
  272. a single proxy, which then relays the user's traffic. These public proxy
  273. systems are typically characterized by two features: they control and
  274. operate the proxies centrally, and many different users get assigned
  275. to each proxy.
  276. In terms of the relay component, single proxies provide weak security
  277. compared to systems that distribute trust over multiple relays, since a
  278. compromised proxy can trivially observe all of its users' actions, and
  279. an eavesdropper only needs to watch a single proxy to perform timing
  280. correlation attacks against all its users' traffic and thus learn where
  281. everyone is connecting. Worse, all users
  282. need to trust the proxy company to have good security itself as well as
  283. to not reveal user activities.
  284. On the other hand, single-hop proxies are easier to deploy, and they
  285. can provide better performance than distributed-trust designs like Tor,
  286. since traffic only goes through one relay. They're also more convenient
  287. from the user's perspective---since users entirely trust the proxy,
  288. they can just use their web browser directly.
  289. Whether public proxy schemes are more or less scalable than Tor is
  290. still up for debate: commercial anonymity systems can use some of their
  291. revenue to provision more bandwidth as they grow, whereas volunteer-based
  292. anonymity systems can attract thousands of fast relays to spread the load.
  293. The discovery piece can take several forms. Most commercial anonymous
  294. proxies have one or a handful of commonly known websites, and their users
  295. log in to those websites and relay their traffic through them. When
  296. these websites get blocked (generally soon after the company becomes
  297. popular), if the company cares about users in the blocked areas, they
  298. start renting lots of disparate IP addresses and rotating through them
  299. as they get blocked. They notify their users of new addresses (by email,
  300. for example). It's an arms race, since attackers can sign up to receive the
  301. email too, but operators have one nice trick available to them: because they
  302. have a list of paying subscribers, they can notify certain subscribers
  303. about updates earlier than others.
  304. Access control systems on the proxy let them provide service only to
  305. users with certain characteristics, such as paying customers or people
  306. from certain IP address ranges.
  307. Discovery in the face of a government-level firewall is a complex and
  308. unsolved
  309. topic, and we're stuck in this same arms race ourselves; we explore it
  310. in more detail in Section~\ref{sec:discovery}. But first we examine the
  311. other end of the spectrum---getting volunteers to run the proxies,
  312. and telling only a few people about each proxy.
  313. \subsection{Independent personal proxies}
  314. Personal proxies such as Circumventor~\cite{circumventor} and
  315. CGIProxy~\cite{cgiproxy} use the same technology as the public ones as
  316. far as the relay component goes, but they use a different strategy for
  317. discovery. Rather than managing a few centralized proxies and constantly
  318. getting new addresses for them as the old addresses are blocked, they
  319. aim to have a large number of entirely independent proxies, each managing
  320. its own (much smaller) set of users.
  321. As the Circumventor site~\cite{circumventor} explains, ``You don't
  322. actually install the Circumventor \emph{on} the computer that is blocked
  323. from accessing Web sites. You, or a friend of yours, has to install the
  324. Circumventor on some \emph{other} machine which is not censored.''
  325. This tactic has great advantages in terms of blocking-resistance---recall
  326. our assumption in Section~\ref{sec:adversary} that the attention
  327. a system attracts from the attacker is proportional to its number of
  328. users and level of publicity. If each proxy only has a few users, and
  329. there is no central list of proxies, most of them will never get noticed by
  330. the censors.
  331. On the other hand, there's a huge scalability question that so far has
  332. prevented these schemes from being widely useful: how does the fellow
  333. in China find a person in Ohio who will run a Circumventor for him? In
  334. some cases he may know and trust some people on the outside, but in many
  335. cases he's just out of luck. Just as hard, how does a new volunteer in
  336. Ohio find a person in China who needs it?
  337. %discovery is also hard because the hosts keep vanishing if they're
  338. %on dynamic ip. But not so bad, since they can use dyndns addresses.
  339. This challenge leads to a hybrid design---centrally-distributed
  340. personal proxies---which we will investigate in more detail in
  341. Section~\ref{sec:discovery}.
  342. \subsection{Open proxies}
  343. Yet another currently used approach to bypassing firewalls is to locate
  344. open and misconfigured proxies on the Internet. A quick Google search
  345. for ``open proxy list'' yields a wide variety of freely available lists
  346. of HTTP, HTTPS, and SOCKS proxies. Many small companies have sprung up
  347. providing more refined lists to paying customers.
  348. There are some downsides to using these open proxies though. First,
  349. the proxies are of widely varying quality in terms of bandwidth and
  350. stability, and many of them are entirely unreachable. Second, unlike
  351. networks of volunteers like Tor, the legality of routing traffic through
  352. these proxies is questionable: it's widely believed that most of them
  353. don't realize what they're offering, and probably wouldn't allow it if
  354. they realized. Third, in many cases the connection to the proxy is
  355. unencrypted, so firewalls that filter based on keywords in IP packets
  356. will not be hindered. And last, many users are suspicious that some
  357. open proxies are a little \emph{too} convenient: are they run by the
  358. adversary, in which case they get to monitor all the user's requests
  359. just as single-hop proxies can?
  360. A distributed-trust design like Tor resolves each of these issues for
  361. the relay component, but a constantly changing set of thousands of open
  362. relays is clearly a useful idea for a discovery component. For example,
  363. users might be able to make use of these proxies to bootstrap their
  364. first introduction into the Tor network.
  365. \subsection{JAP}
  366. Stefan's WPES paper~\cite{koepsell:wpes2004} is probably the closest
  367. related work, and is
  368. the starting point for the design in this paper.
  369. \subsection{steganography}
  370. infranet
  371. \subsection{break your sensitive strings into multiple tcp packets;
  372. ignore RSTs}
  373. \subsection{Internal caching networks}
  374. Freenet is deployed inside China and caches outside content.
  375. \subsection{Skype}
  376. port-hopping. encryption. voice communications not so susceptible to
  377. keystroke loggers (even graphical ones).
  378. \subsection{Tor itself}
  379. And last, we include Tor itself in the list of current solutions
  380. to firewalls. Tens of thousands of people use Tor from countries that
  381. routinely filter their Internet. Tor's website has been blocked in most
  382. of them. But why hasn't the Tor network been blocked yet?
  383. We have several theories. The first is the most straightforward: tens of
  384. thousands of people are simply too few to matter. It may help that Tor is
  385. perceived to be for experts only, and thus not worth attention yet. The
  386. more subtle variant on this theory is that we've positioned Tor in the
  387. public eye as a tool for retaining civil liberties in more free countries,
  388. so perhaps blocking authorities don't view it as a threat. (We revisit
  389. this idea when we consider whether and how to publicize a Tor variant
  390. that improves blocking-resistance---see Section~\ref{subsec:publicity}
  391. for more discussion.)
  392. The broader explanation is that the maintainance of most government-level
  393. filters is aimed at stopping widespread information flow and appearing to be
  394. in control, not by the impossible goal of blocking all possible ways to bypass
  395. censorship. Censors realize that there will always
  396. be ways for a few people to get around the firewall, and as long as Tor
  397. has not publically threatened their control, they see no urgent need to
  398. block it yet.
  399. We should recognize that we're \emph{already} in the arms race. These
  400. constraints can give us insight into the priorities and capabilities of
  401. our various attackers.
  402. \section{The relay component of our blocking-resistant design}
  403. \label{sec:bridges}
  404. Section~\ref{sec:current-tor} describes many reasons why Tor is
  405. well-suited as a building block in our context, but several changes will
  406. allow the design to resist blocking better. The most critical changes are
  407. to get more relay addresses, and to distribute them to users differently.
  408. %We need to address three problems:
  409. %- adapting the relay component of Tor so it resists blocking better.
  410. %- Discovery.
  411. %- Tor's network signature.
  412. %Here we describe the new pieces we need to add to the current Tor design.
  413. \subsection{Bridge relays}
  414. Today, Tor servers operate on less than a thousand distinct IP; an adversary
  415. could enumerate and block them all with little trouble. To provide a
  416. means of ingress to the network, we need a larger set of entry points, most
  417. of which an adversary won't be able to enumerate easily. Fortunately, we
  418. have such a set: the Tor userbase.
  419. Hundreds of thousands of people around the world use Tor. We can leverage
  420. our already self-selected user base to produce a list of thousands of
  421. often-changing IP addresses. Specifically, we can give them a little
  422. button in the GUI that says ``Tor for Freedom'', and users who click
  423. the button will turn into \emph{bridge relays}, or just \emph{bridges}
  424. for short. They can rate limit relayed connections to 10 KB/s (almost
  425. nothing for a broadband user in a free country, but plenty for a user
  426. who otherwise has no access at all), and since they are just relaying
  427. bytes back and forth between blocked users and the main Tor network, they
  428. won't need to make any external connections to Internet sites. Because
  429. of this separation of roles, and because we're making use of software
  430. that the volunteers have already installed for their own use, we expect
  431. our scheme to attract and maintain more volunteers than previous schemes.
  432. As usual, there are new anonymity and security implications from running a
  433. bridge relay, particularly from letting people relay traffic through your
  434. Tor client; but we leave this discussion for Section~\ref{sec:security}.
  435. %...need to outline instructions for a Tor config that will publish
  436. %to an alternate directory authority, and for controller commands
  437. %that will do this cleanly.
  438. \subsection{The bridge directory authority}
  439. How do the bridge relays advertise their existence to the world? We
  440. introduce a second new component of the design: a specialized directory
  441. authority that aggregates and tracks bridges. Bridge relays periodically
  442. publish server descriptors (summaries of their keys, locations, etc,
  443. signed by their long-term identity key), just like the relays in the
  444. ``main'' Tor network, but in this case they publish them only to the
  445. bridge directory authorities.
  446. The main difference between bridge authorities and the directory
  447. authorities for the main Tor network is that the main authorities provide
  448. out a list of every known relay, but the bridge authorities only give
  449. out a server descriptor if you already know its identity key. That is,
  450. you can keep up-to-date on a bridge's location and other information
  451. once you know about it, but you can't just grab a list of all the bridges.
  452. The identity keys, IP address, and directory port for the bridge
  453. authorities ship by default with the Tor software, so the bridge relays
  454. can be confident they're publishing to the right location, and the
  455. blocked users can establish an encrypted authenticated channel. See
  456. Section~\ref{subsec:trust-chain} for more discussion of the public key
  457. infrastructure and trust chain.
  458. Bridges use Tor to publish their descriptors privately and securely,
  459. so even an attacker monitoring the bridge directory authority's network
  460. can't make a list of all the addresses contacting the authority and
  461. track them that way. Bridges may publish to only a subset of the
  462. authorities, to limit the potential impact of an authority compromise.
  463. %\subsection{A simple matter of engineering}
  464. %
  465. %Although we've described bridges and bridge authorities in simple terms
  466. %above, some design modifications and features are needed in the Tor
  467. %codebase to add them. We describe the four main changes here.
  468. %
  469. %Firstly, we need to get smarter about rate limiting:
  470. %Bandwidth classes
  471. %
  472. %Secondly, while users can in fact configure which directory authorities
  473. %they use, we need to add a new type of directory authority and teach
  474. %bridges to fetch directory information from the main authorities while
  475. %publishing server descriptors to the bridge authorities. We're most of
  476. %the way there, since we can already specify attributes for directory
  477. %authorities:
  478. %add a separate flag named ``blocking''.
  479. %
  480. %Thirdly, need to build paths using bridges as the first
  481. %hop. One more hole in the non-clique assumption.
  482. %
  483. %Lastly, since bridge authorities don't answer full network statuses,
  484. %we need to add a new way for users to learn the current status for a
  485. %single relay or a small set of relays---to answer such questions as
  486. %``is it running?'' or ``is it behaving correctly?'' We describe in
  487. %Section~\ref{subsec:enclave-dirs} a way for the bridge authority to
  488. %publish this information without resorting to signing each answer
  489. %individually.
  490. \subsection{Putting them together}
  491. \label{subsec:relay-together}
  492. If a blocked user knows the identity keys of a set of bridge relays, and
  493. he has correct address information for at least one of them, he can use
  494. that one to make a secure connection to the bridge authority and update
  495. his knowledge about the other bridge relays. He can also use it to make
  496. secure connections to the main Tor network and directory servers, so he
  497. can build circuits and connect to the rest of the Internet. All of these
  498. updates happen in the background: from the blocked user's perspective,
  499. he just accesses the Internet via his Tor client like always.
  500. So now we've reduced the problem from how to circumvent the firewall
  501. for all transactions (and how to know that the pages you get have not
  502. been modified by the local attacker) to how to learn about a working
  503. bridge relay.
  504. There's another catch though. We need to make sure that the network
  505. traffic we generate by simply connecting to a bridge relay doesn't stand
  506. out too much.
  507. %The following section describes ways to bootstrap knowledge of your first
  508. %bridge relay, and ways to maintain connectivity once you know a few
  509. %bridge relays.
  510. % (See Section~\ref{subsec:first-bridge} for a discussion
  511. %of exactly what information is sufficient to characterize a bridge relay.)
  512. \section{Hiding Tor's network signatures}
  513. \label{sec:network-signature}
  514. \label{subsec:enclave-dirs}
  515. Currently, Tor uses two protocols for its network communications. The
  516. main protocol uses TLS for encrypted and authenticated communication
  517. between Tor instances. The second protocol is standard HTTP, used for
  518. fetching directory information. All Tor servers listen on their ``ORPort''
  519. for TLS connections, and some of them opt to listen on their ``DirPort''
  520. as well, to serve directory information. Tor servers choose whatever port
  521. numbers they like; the server descriptor they publish to the directory
  522. tells users where to connect.
  523. One format for communicating address information about a bridge relay is
  524. its IP address and DirPort. From there, the user can ask the bridge's
  525. directory cache for an up-to-date copy of its server descriptor, and
  526. learn its current circuit keys, its ORPort, and so on.
  527. However, connecting directly to the directory cache involves a plaintext
  528. HTTP request. A censor could create a network signature for the request
  529. and/or its response, thus preventing these connections. To resolve this
  530. vulnerability, we've modified the Tor protocol so that users can connect
  531. to the directory cache via the main Tor port---they establish a TLS
  532. connection with the bridge as normal, and then send a special ``begindir''
  533. relay command to establish an internal connection to its directory cache.
  534. Therefore a better way to summarize a bridge's address is by its IP
  535. address and ORPort, so all communications between the client and the
  536. bridge will use ordinary TLS. But there are other details that need
  537. more investigation.
  538. What port should bridges pick for their ORPort? We currently recommend
  539. that they listen on port 443 (the default HTTPS port) if they want to
  540. be most useful, because clients behind standard firewalls will have
  541. the best chance to reach them. Is this the best choice in all cases,
  542. or should we encourage some fraction of them pick random ports, or other
  543. ports commonly permitted through firewalls like 53 (DNS) or 110
  544. (POP)? Or perhaps we should use a port where TLS traffic is expected, like
  545. 443 (HTTPS), 993 (IMAPS), or 995 (POP3S). We need
  546. more research on our potential users, and their current and anticipated
  547. firewall restrictions.
  548. Furthermore, we need to look at the specifics of Tor's TLS handshake.
  549. Right now Tor uses some predictable strings in its TLS handshakes. For
  550. example, it sets the X.509 organizationName field to ``Tor'', and it puts
  551. the Tor server's nickname in the certificate's commonName field. We
  552. should tweak the handshake protocol so it doesn't rely on any unusual details
  553. in the certificate, yet it remains secure; the certificate itself
  554. should be made to resemble an ordinary HTTPS certificate. We should also try
  555. to make our advertised cipher-suites closer to what an ordinary web server
  556. would support.
  557. Tor's TLS handshake uses two-certificate chains: one certificate
  558. contains the self-signed identity key for
  559. the router, and the second contains a current TLS key, signed by the
  560. identity key. We use these to authenticate that we're talking to the right
  561. router, and to limit the impact of TLS-key exposure. Most (though far from
  562. all) consumer-oriented HTTPS services provide only a single certificate.
  563. These extra certificates may help identify Tor's TLS handshake; instead,
  564. bridges should consider using only a single TLS key certificate signed by
  565. their identity key, and providing the full value of the identity key in an
  566. early handshake cell. More significantly, Tor currently has all clients
  567. present certificates, so that clients are harder to distinguish from servers.
  568. But in a blocking-resistance environment, clients should not present
  569. certificates at all.
  570. Last, what if the adversary starts observing the network traffic even
  571. more closely? Even if our TLS handshake looks innocent, our traffic timing
  572. and volume still look different than a user making a secure web connection
  573. to his bank. The same techniques used in the growing trend to build tools
  574. to recognize encrypted Bittorrent traffic~\cite{bt-traffic-shaping}
  575. could be used to identify Tor communication and recognize bridge
  576. relays. Rather than trying to look like encrypted web traffic, we may be
  577. better off trying to blend with some other encrypted network protocol. The
  578. first step is to compare typical network behavior for a Tor client to
  579. typical network behavior for various other protocols. This statistical
  580. cat-and-mouse game is made more complex by the fact that Tor transports a
  581. variety of protocols, and we'll want to automatically handle web browsing
  582. differently from, say, instant messaging.
  583. \subsection{Identity keys as part of addressing information}
  584. We have described a way for the blocked user to bootstrap into the
  585. network once he knows the IP address and ORPort of a bridge. What about
  586. local spoofing attacks? That is, since we never learned an identity
  587. key fingerprint for the bridge, a local attacker could intercept our
  588. connection and pretend to be the bridge we had in mind. It turns out
  589. that giving false information isn't that bad---since the Tor client
  590. ships with trusted keys for the bridge directory authority and the Tor
  591. network directory authorities, the user can learn whether he's being
  592. given a real connection to the bridge authorities or not. (After all,
  593. if the adversary intercepts every connection the user makes and gives
  594. him a bad connection each time, there's nothing we can do.)
  595. What about anonymity-breaking attacks from observing traffic, if the
  596. blocked user doesn't start out knowing the identity key of his intended
  597. bridge? The vulnerabilities aren't so bad in this case either---the
  598. adversary could do similar attacks just by monitoring the network
  599. traffic.
  600. % cue paper by steven and george
  601. Once the Tor client has fetched the bridge's server descriptor, it should
  602. remember the identity key fingerprint for that bridge relay. Thus if
  603. the bridge relay moves to a new IP address, the client can query the
  604. bridge directory authority to look up a fresh server descriptor using
  605. this fingerprint.
  606. So we've shown that it's \emph{possible} to bootstrap into the network
  607. just by learning the IP address and ORPort of a bridge, but are there
  608. situations where it's more convenient or more secure to learn the bridge's
  609. identity fingerprint as well as instead, while bootstrapping? We keep
  610. that question in mind as we next investigate bootstrapping and discovery.
  611. \section{Discovering and maintaining working bridge relays}
  612. \label{sec:discovery}
  613. Tor's modular design means that we can develop a better relay component
  614. independently of developing the discovery component. This modularity's
  615. great promise is that we can pick any discovery approach we like; but the
  616. unfortunate fact is that we have no magic bullet for discovery. We're
  617. in the same arms race as all the other designs we described in
  618. Section~\ref{sec:related}.
  619. In this section we describe four approaches to adding discovery
  620. components for our design, in order of increasing complexity. Note that
  621. we can deploy all four schemes at once---bridges and blocked users can
  622. use the discovery approach that is most appropriate for their situation.
  623. \subsection{Independent bridges, no central discovery}
  624. The first design is simply to have no centralized discovery component at
  625. all. Volunteers run bridges, and we assume they have some blocked users
  626. in mind and communicate their address information to them out-of-band
  627. (for example, through gmail). This design allows for small personal
  628. bridges that have only one or a handful of users in mind, but it can
  629. also support an entire community of users. For example, Citizen Lab's
  630. upcoming Psiphon single-hop proxy tool~\cite{psiphon} plans to use this
  631. \emph{social network} approach as its discovery component.
  632. There are some variations on bootstrapping in this design. In the simple
  633. case, the operator of the bridge informs each chosen user about his
  634. bridge's address information and/or keys. Another approach involves
  635. blocked users introducing new blocked users to the bridges they know.
  636. That is, somebody in the blocked area can pass along a bridge's address to
  637. somebody else they trust. This scheme brings in appealing but complex game
  638. theory properties: the blocked user making the decision has an incentive
  639. only to delegate to trustworthy people, since an adversary who learns
  640. the bridge's address and filters it makes it unavailable for both of them.
  641. Note that a central set of bridge directory authorities can still be
  642. compatible with a decentralized discovery process. That is, how users
  643. first learn about bridges is entirely up to the bridges, but the process
  644. of fetching up-to-date descriptors for them can still proceed as described
  645. in Section~\ref{sec:bridges}. Of course, creating a central place that
  646. knows about all the bridges may not be smart, especially if every other
  647. piece of the system is decentralized. Further, if a user only knows
  648. about one bridge and he loses track of it, it may be quite a hassle to
  649. reach the bridge authority. We address these concerns next.
  650. \subsection{Families of bridges, no central discovery}
  651. Because the blocked users are running our software too, we have many
  652. opportunities to improve usability or robustness. Our second design builds
  653. on the first by encouraging volunteers to run several bridges at once
  654. (or coordinate with other bridge volunteers), such that some fraction
  655. of the bridges are likely to be available at any given time.
  656. The blocked user's Tor client could periodically fetch an updated set of
  657. recommended bridges from any of the working bridges. Now the client can
  658. learn new additions to the bridge pool, and can expire abandoned bridges
  659. or bridges that the adversary has blocked, without the user ever needing
  660. to care. To simplify maintenance of the community's bridge pool, rather
  661. than mirroring all of the information at each bridge, each community
  662. could instead run its own bridge directory authority (accessed via the
  663. available bridges),
  664. \subsection{Social networks with directory-side support}
  665. Pick some seeds---trusted people in the blocked area---and give
  666. them each a few hundred bridge addresses. Run a website next to the
  667. bridge authority, where they can log in (they only need persistent
  668. pseudonyms). Give them tokens slowly over time. They can use these
  669. tokens to delegate trust to other people they know. The tokens can
  670. be exchanged for new accounts on the website.
  671. Accounts in ``good standing'' accrue new bridge addresses and new
  672. tokens.
  673. This is great, except how do we decide that an account is in good
  674. standing? One answer is to measure based on whether the bridge addresses
  675. we give it end up blocked. But how do we decide if they get blocked?
  676. Other questions below too.
  677. \subsection{Public bridges, allocated in different ways}
  678. public proxies. given out like circumventors. or all sorts of other rate
  679. limiting ways.
  680. \subsection{Remaining unsorted notes}
  681. In the first subsection we describe how to find a first bridge.
  682. Thus they can reach the BDA. From here we either assume a social
  683. network or other mechanism for learning IP:dirport or key fingerprints
  684. as above, or we assume an account server that allows us to limit the
  685. number of new bridge relays an external attacker can discover.
  686. Going to be an arms race. Need a bag of tricks. Hard to say
  687. which ones will work. Don't spend them all at once.
  688. \subsection{Bootstrapping: finding your first bridge}
  689. \label{subsec:first-bridge}
  690. Most government firewalls are not perfect. They allow connections to
  691. Google cache or some open proxy servers, or they let file-sharing or
  692. Skype or World-of-Warcraft connections through.
  693. For users who can't use any of these techniques, hopefully they know
  694. a friend who can---for example, perhaps the friend already knows some
  695. bridge relay addresses.
  696. (If they can't get around it at all, then we can't help them---they
  697. should go meet more people.)
  698. Some techniques are sufficient to get us an IP address and a port,
  699. and others can get us IP:port:key. Lay out some plausible options
  700. for how users can bootstrap into learning their first bridge.
  701. Round one:
  702. - the bridge authority server will hand some out.
  703. - get one from your friend.
  704. - send us mail with a unique account, and get an automated answer.
  705. -
  706. Round two:
  707. - social network thing
  708. attack: adversary can reconstruct your social network by learning who
  709. knows which bridges.
  710. \subsection{Centrally-distributed personal proxies}
  711. Circumventor, realizing that its adoption will remain limited if would-be
  712. users can't connect with volunteers, has started a mailing list to
  713. distribute new proxy addresses every few days. From experimentation
  714. it seems they have concluded that sending updates every 3 or 4 days is
  715. sufficient to stay ahead of the current attackers.
  716. If there are many volunteer proxies and many interested users, a central
  717. watering hole to connect them is a natural solution. On the other hand,
  718. at first glance it appears that we've inherited the \emph{bad} parts of
  719. each of the above designs: not only do we have to attract many volunteer
  720. proxies, but the users also need to get to a single site that is sure
  721. to be blocked.
  722. There are two reasons why we're in better shape. First, the users don't
  723. actually need to reach the watering hole directly: it can respond to
  724. email, for example. Second,
  725. In fact, the JAP
  726. project~\cite{web-mix,koepsell:wpes2004} suggested an alternative approach
  727. to a mailing list: new users email a central address and get an automated
  728. response listing a proxy for them.
  729. While the exact details of the
  730. proposal are still to be worked out, the idea of giving out
  731. \subsection{Discovery based on social networks}
  732. A token that can be exchanged at the bridge authority (assuming you
  733. can reach it) for a new bridge address.
  734. The account server runs as a Tor controller for the bridge authority.
  735. Users can establish reputations, perhaps based on social network
  736. connectivity, perhaps based on not getting their bridge relays blocked,
  737. Probably the most critical lesson learned in past work on reputation
  738. systems in privacy-oriented environments~\cite{rep-anon} is the need for
  739. verifiable transactions. That is, the entity computing and advertising
  740. reputations for participants needs to actually learn in a convincing
  741. way that a given transaction was successful or unsuccessful.
  742. (Lesson from designing reputation systems~\cite{rep-anon}: easy to
  743. reward good behavior, hard to punish bad behavior.
  744. \subsection{How to allocate bridge addresses to users}
  745. Hold a fraction in reserve, in case our currently deployed tricks
  746. all fail at once---so we can move to new approaches quickly.
  747. (Bridges that sign up and don't get used yet will be sad; but this
  748. is a transient problem---if bridges are on by default, nobody will
  749. mind not being used.)
  750. Perhaps each bridge should be known by a single bridge directory
  751. authority. This makes it easier to trace which users have learned about
  752. it, so easier to blame or reward. It also makes things more brittle,
  753. since loss of that authority means its bridges aren't advertised until
  754. they switch, and means its bridge users are sad too.
  755. (Need a slick hash algorithm that will map our identity key to a
  756. bridge authority, in a way that's sticky even when we add bridge
  757. directory authorities, but isn't sticky when our authority goes
  758. away. Does this exist?)
  759. Divide bridges into buckets based on their identity key.
  760. [Design question: need an algorithm to deterministically map a bridge's
  761. identity key into a category that isn't too gameable. Take a keyed
  762. hash of the identity key plus a secret the bridge authority keeps?
  763. An adversary signing up bridges won't easily be able to learn what
  764. category he's been put in, so it's slow to attack.]
  765. One portion of the bridges is the public bucket. If you ask the
  766. bridge account server for a public bridge, it will give you a random
  767. one of these. We expect they'll be the first to be blocked, but they'll
  768. help the system bootstrap until it *does* get blocked, and remember that
  769. we're dealing with different blocking regimes around the world that will
  770. progress at different rates.
  771. The generalization of the public bucket is a bucket based on the bridge
  772. user's IP address: you can learn a random entry only from the subbucket
  773. your IP address (actually, your /24) maps to.
  774. Another portion of the bridges can be sectioned off to be given out in
  775. a time-release basis. The bucket is partitioned into pieces which are
  776. deterministically available only in certain time windows.
  777. And of course another portion is made available for the social network
  778. design above.
  779. Captchas.
  780. Is it useful to load balance which bridges are handed out? The above
  781. bucket concept makes some bridges wildly popular and others less so.
  782. But I guess that's the point.
  783. \subsection{How do we know if a bridge relay has been blocked?}
  784. We need some mechanism for testing reachability from inside the
  785. blocked area.
  786. The easiest answer is for certain users inside the area to sign up as
  787. testing relays, and then we can route through them and see if it works.
  788. First problem is that different network areas block different net masks,
  789. and it will likely be hard to know which users are in which areas. So
  790. if a bridge relay isn't reachable, is that because of a network block
  791. somewhere, because of a problem at the bridge relay, or just a temporary
  792. outage?
  793. Second problem is that if we pick random users to test random relays, the
  794. adversary should sign up users on the inside, and enumerate the relays
  795. we test. But it seems dangerous to just let people come forward and
  796. declare that things are blocked for them, since they could be tricking
  797. us. (This matters even moreso if our reputation system above relies on
  798. whether things get blocked to punish or reward.)
  799. Another answer is not to measure directly, but rather let the bridges
  800. report whether they're being used. If they periodically report to their
  801. bridge directory authority how much use they're seeing, the authority
  802. can make smart decisions from there.
  803. If they install a geoip database, they can periodically report to their
  804. bridge directory authority which countries they're seeing use from. This
  805. might help us to track which countries are making use of Ramp, and can
  806. also let us learn about new steps the adversary has taken in the arms
  807. race. (If the bridges don't want to install a whole geoip subsystem, they
  808. can report samples of the /24 network for their users, and the authorities
  809. can do the geoip work. This tradeoff has clear downsides though.)
  810. Worry: adversary signs up a bunch of already-blocked bridges. If we're
  811. stingy giving out bridges, users in that country won't get useful ones.
  812. (Worse, we'll blame the users when the bridges report they're not
  813. being used?)
  814. Worry: the adversary could choose not to block bridges but just record
  815. connections to them. So be it, I guess.
  816. \subsection{How to learn how well the whole idea is working}
  817. We need some feedback mechanism to learn how much use the bridge network
  818. as a whole is actually seeing. Part of the reason for this is so we can
  819. respond and adapt the design; part is because the funders expect to see
  820. progress reports.
  821. The above geoip-based approach to detecting blocked bridges gives us a
  822. solution though.
  823. \section{Security considerations}
  824. \label{sec:security}
  825. \subsection{Possession of Tor in oppressed areas}
  826. Many people speculate that installing and using a Tor client in areas with
  827. particularly extreme firewalls is a high risk---and the risk increases
  828. as the firewall gets more restrictive. This is probably true, but there's
  829. a counter pressure as well: as the firewall gets more restrictive, more
  830. ordinary people use Tor for more mainstream activities, such as learning
  831. about Wall Street prices or looking at pictures of women's ankles. So
  832. if the restrictive firewall pushes up the number of Tor users, then the
  833. ``typical'' Tor user becomes more mainstream.
  834. Hard to say which of these pressures will ultimately win out.
  835. ...
  836. % Nick can rewrite/elaborate on this section?
  837. \subsection{Observers can tell who is publishing and who is reading}
  838. \label{subsec:upload-padding}
  839. Should bridge users sometimes send bursts of long-range drop cells?
  840. \subsection{Anonymity effects from acting as a bridge relay}
  841. Against some attacks, relaying traffic for others can improve anonymity. The
  842. simplest example is an attacker who owns a small number of Tor servers. He
  843. will see a connection from the bridge, but he won't be able to know
  844. whether the connection originated there or was relayed from somebody else.
  845. There are some cases where it doesn't seem to help: if an attacker can
  846. watch all of the bridge's incoming and outgoing traffic, then it's easy
  847. to learn which connections were relayed and which started there. (In this
  848. case he still doesn't know the final destinations unless he is watching
  849. them too, but in this case bridges are no better off than if they were
  850. an ordinary client.)
  851. There are also some potential downsides to running a bridge. First, while
  852. we try to make it hard to enumerate all bridges, it's still possible to
  853. learn about some of them, and for some people just the fact that they're
  854. running one might signal to an attacker that they place a high value
  855. on their anonymity. Second, there are some more esoteric attacks on Tor
  856. relays that are not as well-understood or well-tested---for example, an
  857. attacker may be able to ``observe'' whether the bridge is sending traffic
  858. even if he can't actually watch its network, by relaying traffic through
  859. it and noticing changes in traffic timing~\cite{attack-tor-oak05}. On
  860. the other hand, it may be that limiting the bandwidth the bridge is
  861. willing to relay will allow this sort of attacker to determine if it's
  862. being used as a bridge but not whether it is adding traffic of its own.
  863. It is an open research question whether the benefits outweigh the risks. A
  864. lot of the decision rests on which attacks the users are most worried
  865. about. For most users, we don't think running a bridge relay will be
  866. that damaging.
  867. \subsection{Trusting local hardware: Internet cafes and LiveCDs}
  868. \label{subsec:cafes-and-livecds}
  869. Assuming that users have their own trusted hardware is not
  870. always reasonable.
  871. For Internet cafe Windows computers that let you attach your own USB key,
  872. a USB-based Tor image would be smart. There's Torpark, and hopefully
  873. there will be more thoroughly analyzed options down the road. Worries
  874. about hardware or
  875. software keyloggers and other spyware---and physical surveillance.
  876. If the system lets you boot from a CD or from a USB key, you can gain
  877. a bit more security by bringing a privacy LiveCD with you. Hardware
  878. keyloggers and physical surveillance still a worry. LiveCDs also useful
  879. if it's your own hardware, since it's easier to avoid leaving breadcrumbs
  880. everywhere.
  881. \subsection{Forward compatibility and retiring bridge authorities}
  882. Eventually we'll want to change the identity key and/or location
  883. of a bridge authority. How do we do this mostly cleanly?
  884. \subsection{The trust chain}
  885. \label{subsec:trust-chain}
  886. Tor's ``public key infrastructure'' provides a chain of trust to
  887. let users verify that they're actually talking to the right servers.
  888. There are four pieces to this trust chain.
  889. First, when Tor clients are establishing circuits, at each step
  890. they demand that the next Tor server in the path prove knowledge of
  891. its private key~\cite{tor-design}. This step prevents the first node
  892. in the path from just spoofing the rest of the path. Second, the
  893. Tor directory authorities provide a signed list of servers along with
  894. their public keys---so unless the adversary can control a threshold
  895. of directory authorities, he can't trick the Tor client into using other
  896. Tor servers. Third, the location and keys of the directory authorities,
  897. in turn, is hard-coded in the Tor source code---so as long as the user
  898. got a genuine version of Tor, he can know that he is using the genuine
  899. Tor network. And last, the source code and other packages are signed
  900. with the GPG keys of the Tor developers, so users can confirm that they
  901. did in fact download a genuine version of Tor.
  902. But how can a user in an oppressed country know that he has the correct
  903. key fingerprints for the developers? As with other security systems, it
  904. ultimately comes down to human interaction. The keys are signed by dozens
  905. of people around the world, and we have to hope that our users have met
  906. enough people in the PGP web of trust~\cite{pgp-wot} that they can learn
  907. the correct keys. For users that aren't connected to the global security
  908. community, though, this question remains a critical weakness.
  909. % XXX make clearer the trust chain step for bridge directory authorities
  910. \subsection{Security through obscurity: publishing our design}
  911. Many other schemes like dynaweb use the typical arms race strategy of
  912. not publishing their plans. Our goal here is to produce a design---a
  913. framework---that can be public and still secure. Where's the tradeoff?
  914. \section{Performance improvements}
  915. \label{sec:performance}
  916. \subsection{Fetch server descriptors just-in-time}
  917. I guess we should encourage most places to do this, so blocked
  918. users don't stand out.
  919. network-status and directory optimizations. caching better. partitioning
  920. issues?
  921. \section{Maintaining reachability}
  922. \subsection{How many bridge relays should you know about?}
  923. If they're ordinary Tor users on cable modem or DSL, many of them will
  924. disappear and/or move periodically. How many bridge relays should a
  925. blockee know
  926. about before he's likely to have at least one reachable at any given point?
  927. How do we factor in a parameter for "speed that his bridges get discovered
  928. and blocked"?
  929. The related question is: if the bridge relays change IP addresses
  930. periodically, how often does the bridge user need to "check in" in order
  931. to keep from being cut out of the loop?
  932. \subsection{Cablemodem users don't provide important websites}
  933. \label{subsec:block-cable}
  934. ...so our adversary could just block all DSL and cablemodem networks,
  935. and for the most part only our bridge relays would be affected.
  936. The first answer is to aim to get volunteers both from traditionally
  937. ``consumer'' networks and also from traditionally ``producer'' networks.
  938. The second answer (not so good) would be to encourage more use of consumer
  939. networks for popular and useful websites. (But P2P exists; minor websites
  940. exist; gaming exists; IM exists; ...)
  941. Other attack: China pressures Verizon to discourage its users from
  942. running bridges.
  943. \subsection{Scanning-resistance}
  944. If it's trivial to verify that we're a bridge, and we run on a predictable
  945. port, then it's conceivable our attacker would scan the whole Internet
  946. looking for bridges. (In fact, he can just scan likely networks like
  947. cablemodem and DSL services---see Section~\ref{block-cable} for a related
  948. attack.) It would be nice to slow down this attack. It would
  949. be even nicer to make it hard to learn whether we're a bridge without
  950. first knowing some secret.
  951. Password protecting the bridges.
  952. Could provide a password to the bridge user. He provides a nonced hash of
  953. it or something when he connects. We'd need to give him an ID key for the
  954. bridge too, and wait to present the password until we've TLSed, else the
  955. adversary can pretend to be the bridge and MITM him to learn the password.
  956. We could some kind of ID-based knocking protocol, or we could act like an
  957. unconfigured HTTPS server if treated like one.
  958. \subsection{How to motivate people to run bridge relays}
  959. One of the traditional ways to get people to run software that benefits
  960. others is to give them motivation to install it themselves. An often
  961. suggested approach is to install it as a stunning screensaver so everybody
  962. will be pleased to run it. We take a similar approach here, by leveraging
  963. the fact that these users are already interested in protecting their
  964. own Internet traffic, so they will install and run the software.
  965. Make all Tor users become bridges if they're reachable---needs more work
  966. on usability first, but we're making progress.
  967. Also, we can make a snazzy network graph with Vidalia that emphasizes
  968. the connections the bridge user is currently relaying. (Minor anonymity
  969. implications, but hey.) (In many cases there won't be much activity,
  970. so this may backfire. Or it may be better suited to full-fledged Tor
  971. servers.)
  972. \subsection{What if the clients can't install software?}
  973. Bridge users without Tor clients
  974. Bridge relays could always open their socks proxy. This is bad though,
  975. first
  976. because bridges learn the bridge users' destinations, and second because
  977. we've learned that open socks proxies tend to attract abusive users who
  978. have no idea they're using Tor.
  979. Bridges could require passwords in the socks handshake (not supported
  980. by most software including Firefox). Or they could run web proxies
  981. that require authentication and then pass the requests into Tor. This
  982. approach is probably a good way to help bootstrap the Psiphon network,
  983. if one of its barriers to deployment is a lack of volunteers willing
  984. to exit directly to websites. But it clearly drops some of the nice
  985. anonymity and security features Tor provides.
  986. \subsection{Publicity attracts attention}
  987. \label{subsec:publicity}
  988. Many people working on this field want to publicize the existence
  989. and extent of censorship concurrently with the deployment of their
  990. circumvention software. The easy reason for this two-pronged push is
  991. to attract volunteers for running proxies in their systems; but in many
  992. cases their main goal is not to build the software, but rather to educate
  993. the world about the censorship. The media also tries to do its part by
  994. broadcasting the existence of each new circumvention system.
  995. But at the same time, this publicity attracts the attention of the
  996. censors. We can slow down the arms race by not attracting as much
  997. attention, and just spreading by word of mouth. If our goal is to
  998. establish a solid social network of bridges and bridge users before
  999. the adversary gets involved, does this attention tradeoff work to our
  1000. advantage?
  1001. \subsection{The Tor website: how to get the software}
  1002. \section{Future designs}
  1003. \subsection{Bridges inside the blocked network too}
  1004. Assuming actually crossing the firewall is the risky part of the
  1005. operation, can we have some bridge relays inside the blocked area too,
  1006. and more established users can use them as relays so they don't need to
  1007. communicate over the firewall directly at all? A simple example here is
  1008. to make new blocked users into internal bridges also---so they sign up
  1009. on the BDA as part of doing their query, and we give out their addresses
  1010. rather than (or along with) the external bridge addresses. This design
  1011. is a lot trickier because it brings in the complexity of whether the
  1012. internal bridges will remain available, can maintain reachability with
  1013. the outside world, etc.
  1014. Hidden services as bridges. Hidden services as bridge directory authorities.
  1015. \section{Conclusion}
  1016. \bibliographystyle{plain} \bibliography{tor-design}
  1017. \appendix
  1018. \section{Counting Tor users by country}
  1019. \label{app:geoip}
  1020. \end{document}
  1021. ship geoip db to bridges. they look up users who tls to them in the db,
  1022. and upload a signed list of countries and number-of-users each day. the
  1023. bridge authority aggregates them and publishes stats.
  1024. bridge relays have buddies
  1025. they ask a user to test the reachability of their buddy.
  1026. leaks O(1) bridges, but not O(n).
  1027. we should not be blockable by ordinary cisco censorship features.
  1028. that is, if they want to block our new design, they will need to
  1029. add a feature to block exactly this.
  1030. strategically speaking, this may come in handy.
  1031. hash identity key + secret that bridge authority knows. start
  1032. out dividing into 2^n buckets, where n starts at 0, and we choose
  1033. which bucket you're in based on the first n bits of the hash.
  1034. Bridges come in clumps of 4 or 8 or whatever. If you know one bridge
  1035. in a clump, the authority will tell you the rest. Now bridges can
  1036. ask users to test reachability of their buddies.
  1037. Giving out clumps helps with dynamic IP addresses too. Whether it
  1038. should be 4 or 8 depends on our churn.
  1039. the account server. let's call it a database, it doesn't have to
  1040. be a thing that human interacts with.
  1041. rate limiting mechanisms:
  1042. energy spent. captchas. relaying traffic for others?
  1043. send us \$10, we'll give you an account
  1044. so how do we reward people for being good?