blocking.tex 62 KB

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