blocking.tex 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838
  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. Internet censorship is on the rise as websites around the world are
  27. increasingly blocked by government-level firewalls. Although popular
  28. anonymizing networks like Tor were originally designed to keep attackers from
  29. tracing people's activities, many people are also using them to evade local
  30. censorship. But if the censor simply denies access to the Tor network
  31. itself, 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 like Tor~\cite{tor-design} bounce traffic around a
  38. network of encrypting relays. Unlike encryption, which hides only {\it what}
  39. is said, these networks also aim to hide who is communicating with whom, which
  40. users are using which websites, and similar relations. These systems have a
  41. broad range of users, including ordinary citizens who want to avoid being
  42. profiled for targeted advertisements, corporations who don't want to reveal
  43. information to their competitors, and law enforcement and government
  44. intelligence agencies who need to do operations on the Internet without being
  45. noticed.
  46. Historical anonymity research has focused on an
  47. attacker who monitors the user (call her Alice) and tries to discover her
  48. activities, yet lets her reach any piece of the network. In more modern
  49. threat models such as Tor's, the adversary is allowed to perform active
  50. attacks such as modifying communications to trick Alice
  51. into revealing her destination, or intercepting some connections
  52. to run a man-in-the-middle attack. But these systems still assume that
  53. Alice can eventually reach the anonymizing network.
  54. An increasing number of users are using the Tor software
  55. less for its anonymity properties than for its censorship
  56. resistance properties---if they use Tor to access Internet sites like
  57. Wikipedia
  58. and Blogspot, they are no longer affected by local censorship
  59. and firewall rules. In fact, an informal user study
  60. %(described in Appendix~\ref{app:geoip})
  61. showed China as the third largest user base
  62. for Tor clients, with perhaps ten thousand people accessing the Tor
  63. network from China each day.
  64. The current Tor design is easy to block if the attacker controls Alice's
  65. connection to the Tor network---by blocking the directory authorities,
  66. by blocking all the server IP addresses in the directory, or by filtering
  67. based on the signature of the Tor TLS handshake. Here we describe an
  68. extended design that builds upon the current Tor network to provide an
  69. anonymizing
  70. network that resists censorship as well as anonymity-breaking attacks.
  71. In section~\ref{sec:adversary} we discuss our threat model---that is,
  72. the assumptions we make about our adversary. Section~\ref{sec:current-tor}
  73. describes the components of the current Tor design and how they can be
  74. leveraged for a new blocking-resistant design. Section~\ref{sec:related}
  75. explains the features and drawbacks of the currently deployed solutions.
  76. In sections~\ref{sec:bridges} through~\ref{sec:discovery}, we explore the
  77. components of our designs in detail. Section~\ref{sec:security} considers
  78. security implications and Section~\ref{sec:reachability} presents other
  79. issues with maintaining connectivity and sustainability for the design.
  80. Section~\ref{sec:future} speculates about future more complex designs,
  81. and finally Section~\ref{sec:conclusion} summarizes our next steps and
  82. recommendations.
  83. % The other motivation is for places where we're concerned they will
  84. % try to enumerate a list of Tor users. So even if they're not blocking
  85. % the Tor network, it may be smart to not be visible as connecting to it.
  86. %And adding more different classes of users and goals to the Tor network
  87. %improves the anonymity for all Tor users~\cite{econymics,usability:weis2006}.
  88. % Adding use classes for countering blocking as well as anonymity has
  89. % benefits too. Should add something about how providing undetected
  90. % access to Tor would facilitate people talking to, e.g., govt. authorities
  91. % about threats to public safety etc. in an environment where Tor use
  92. % is not otherwise widespread and would make one stand out.
  93. \section{Adversary assumptions}
  94. \label{sec:adversary}
  95. To design an effective anti-censorship tool, we need a good model for the
  96. goals and resources of the censors we are evading. Otherwise, we risk
  97. spending our effort on keeping the adversaries from doing things they have no
  98. interest in doing, and thwarting techniques they do not use.
  99. The history of blocking-resistance designs is littered with conflicting
  100. assumptions about what adversaries to expect and what problems are
  101. in the critical path to a solution. Here we describe our best
  102. understanding of the current situation around the world.
  103. In the traditional security style, we aim to defeat a strong
  104. attacker---if we can defend against this attacker, we inherit protection
  105. against weaker attackers as well. After all, we want a general design
  106. that will work for citizens of China, Iran, Thailand, and other censored
  107. countries; for
  108. whistleblowers in firewalled corporate networks; and for people in
  109. unanticipated oppressive situations. In fact, by designing with
  110. a variety of adversaries in mind, we can take advantage of the fact that
  111. adversaries will be in different stages of the arms race at each location,
  112. so a server blocked in one locale can still be useful in others.
  113. We assume that the attackers' goals are somewhat complex.
  114. \begin{tightlist}
  115. \item The attacker would like to restrict the flow of certain kinds of
  116. information, particularly when this information is seen as embarrassing to
  117. those in power (such as information about rights violations or corruption),
  118. or when it enables or encourages others to oppose them effectively (such as
  119. information about opposition movements or sites that are used to organize
  120. protests).
  121. \item As a second-order effect, censors aim to chill citizens' behavior by
  122. creating an impression that their online activities are monitored.
  123. \item Usually, censors make a token attempt to block a few sites for
  124. obscenity, blasphemy, and so on, but their efforts here are mainly for
  125. show.
  126. \item Complete blocking (where nobody at all can ever download censored
  127. content) is not a
  128. goal. Attackers typically recognize that perfect censorship is not only
  129. impossible, but unnecessary: if ``undesirable'' information is known only
  130. to a small few, further censoring efforts can be focused elsewhere.
  131. \item Similarly, the censors are not attempting to shut down or block {\it
  132. every} anti-censorship tool---merely the tools that are popular and
  133. effective (because these tools impede the censors' information restriction
  134. goals) and those tools that are highly visible (thus making the censors
  135. look ineffectual to their citizens and their bosses).
  136. \item Reprisal against {\it most} passive consumers of {\it most} kinds of
  137. blocked information is also not a goal, given the broadness of most
  138. censorship regimes. This seems borne out by fact.\footnote{So far in places
  139. like China, the authorities mainly go after people who publish materials
  140. and coordinate organized movements~\cite{mackinnon-personal}.
  141. If they find that a
  142. user happens to be reading a site that should be blocked, the typical
  143. response is simply to block the site. Of course, even with an encrypted
  144. connection, the adversary may be able to distinguish readers from
  145. publishers by observing whether Alice is mostly downloading bytes or mostly
  146. uploading them---we discuss this issue more in
  147. Section~\ref{subsec:upload-padding}.}
  148. \item Producers and distributors of targeted information are in much
  149. greater danger than consumers; the attacker would like to not only block
  150. their work, but identify them for reprisal.
  151. \item The censors (or their governments) would like to have a working, useful
  152. Internet. There are economic, political, and social factors that prevent
  153. them from ``censoring'' the Internet by outlawing it entirely, or by
  154. blocking access to all but a tiny list of sites.
  155. Nevertheless, the censors {\it are} willing to block innocuous content
  156. (like the bulk of a newspaper's reporting) in order to censor other content
  157. distributed through the same channels (like that newspaper's coverage of
  158. the censored country).
  159. \end{tightlist}
  160. We assume there are three main technical network attacks in use by censors
  161. currently~\cite{clayton:pet2006}:
  162. \begin{tightlist}
  163. \item Block a destination or type of traffic by automatically searching for
  164. certain strings or patterns in TCP packets. Offending packets can be
  165. dropped, or can trigger a response like closing the
  166. connection.
  167. \item Block a destination by listing its IP address at a
  168. firewall or other routing control point.
  169. \item Intercept DNS requests and give bogus responses for certain
  170. destination hostnames.
  171. \end{tightlist}
  172. We assume the network firewall has limited CPU and memory per
  173. connection~\cite{clayton:pet2006}. Against an adversary who could carefully
  174. examine the contents of every packet and correlate the packets in every
  175. stream on the network, we would need some stronger mechanism such as
  176. steganography, which introduces its own
  177. problems~\cite{active-wardens,tcpstego}. But we make a ``weak
  178. steganography'' assumption here: to remain unblocked, it is necessary to
  179. remain unobservable only by computational resources on par with a modern
  180. router, firewall, proxy, or IDS.
  181. We assume that while various different regimes can coordinate and share
  182. notes, there will be a time lag between one attacker learning how to overcome
  183. a facet of our design and other attackers picking it up. (The most common
  184. vector of transmission seems to be commercial providers of censorship tools:
  185. once a provider adds a feature to meet one country's needs or requests, the
  186. feature is available to all of the provider's customers.) Conversely, we
  187. assume that insider attacks become a higher risk only after the early stages
  188. of network development, once the system has reached a certain level of
  189. success and visibility.
  190. We do not assume that government-level attackers are always uniform across
  191. the country. For example, there is no single centralized place in China
  192. that coordinates its specific censorship decisions and steps.
  193. We assume that our users have control over their hardware and
  194. software---they don't have any spyware installed, there are no
  195. cameras watching their screens, etc. Unfortunately, in many situations
  196. these threats are real~\cite{zuckerman-threatmodels}; yet
  197. software-based security systems like ours are poorly equipped to handle
  198. a user who is entirely observed and controlled by the adversary. See
  199. Section~\ref{subsec:cafes-and-livecds} for more discussion of what little
  200. we can do about this issue.
  201. We assume that the attacker may be able to use political and economic
  202. resources to secure the cooperation of extraterritorial or multinational
  203. corporations and entities in investigating information sources. For example,
  204. the censors can threaten the service providers of troublesome blogs
  205. with economic
  206. reprisals if they do not reveal the authors' identities.
  207. We assume that the user will be able to fetch a genuine
  208. version of Tor, rather than one supplied by the adversary; see
  209. Section~\ref{subsec:trust-chain} for discussion on helping the user
  210. confirm that he has a genuine version and that he can connect to the
  211. real Tor network.
  212. \section{Adapting the current Tor design to anti-censorship}
  213. \label{sec:current-tor}
  214. Tor is popular and sees a lot of use. It's the largest anonymity
  215. network of its kind.
  216. Tor has attracted more than 800 volunteer-operated routers from around the
  217. world. Tor protects users by routing their traffic through a multiply
  218. encrypted ``circuit'' built of a few randomly selected servers, each of which
  219. can remove only a single layer of encryption. Each server sees only the step
  220. before it and the step after it in the circuit, and so no single server can
  221. learn the connection between a user and her chosen communication partners.
  222. In this section, we examine some of the reasons why Tor has become popular,
  223. with particular emphasis to how we can take advantage of these properties
  224. for a blocking-resistance design.
  225. Tor aims to provide three security properties:
  226. \begin{tightlist}
  227. \item 1. A local network attacker can't learn, or influence, your
  228. destination.
  229. \item 2. No single router in the Tor network can link you to your
  230. destination.
  231. \item 3. The destination, or somebody watching the destination,
  232. can't learn your location.
  233. \end{tightlist}
  234. For blocking-resistance, we care most clearly about the first
  235. property. But as the arms race progresses, the second property
  236. will become important---for example, to discourage an adversary
  237. from volunteering a relay in order to learn that Alice is reading
  238. or posting to certain websites. The third property helps keep users safe from
  239. collaborating websites: consider websites and other Internet services
  240. that have been pressured
  241. recently into revealing the identity of bloggers
  242. %~\cite{arrested-bloggers}
  243. or treating clients differently depending on their network
  244. location~\cite{goodell-syverson06}.
  245. %~\cite{google-geolocation}.
  246. The Tor design provides other features as well that are not typically
  247. present in manual or ad hoc circumvention techniques.
  248. First, Tor has a well-analyzed and well-understood way to distribute
  249. information about servers.
  250. Tor directory authorities automatically aggregate, test,
  251. and publish signed summaries of the available Tor routers. Tor clients
  252. can fetch these summaries to learn which routers are available and
  253. which routers are suitable for their needs. Directory information is cached
  254. throughout the Tor network, so once clients have bootstrapped they never
  255. need to interact with the authorities directly. (To tolerate a minority
  256. of compromised directory authorities, we use a threshold trust scheme---
  257. see Section~\ref{subsec:trust-chain} for details.)
  258. Second, the list of directory authorities is not hard-wired.
  259. Clients use the default authorities if no others are specified,
  260. but it's easy to start a separate (or even overlapping) Tor network just
  261. by running a different set of authorities and convincing users to prefer
  262. a modified client. For example, we could launch a distinct Tor network
  263. inside China; some users could even use an aggregate network made up of
  264. both the main network and the China network. (But we should not be too
  265. quick to create other Tor networks---part of Tor's anonymity comes from
  266. users behaving like other users, and there are many unsolved anonymity
  267. questions if different users know about different pieces of the network.)
  268. Third, in addition to automatically learning from the chosen directories
  269. which Tor routers are available and working, Tor takes care of building
  270. paths through the network and rebuilding them as needed. So the user
  271. never has to know how paths are chosen, never has to manually pick
  272. working proxies, and so on. More generally, at its core the Tor protocol
  273. is simply a tool that can build paths given a set of routers. Tor is
  274. quite flexible about how it learns about the routers and how it chooses
  275. the paths. Harvard's Blossom project~\cite{blossom-thesis} makes this
  276. flexibility more concrete: Blossom makes use of Tor not for its security
  277. properties but for its reachability properties. It runs a separate set
  278. of directory authorities, its own set of Tor routers (called the Blossom
  279. network), and uses Tor's flexible path-building to let users view Internet
  280. resources from any point in the Blossom network.
  281. Fourth, Tor separates the role of \emph{internal relay} from the
  282. role of \emph{exit relay}. That is, some volunteers choose just to relay
  283. traffic between Tor users and Tor routers, and others choose to also allow
  284. connections to external Internet resources. Because we don't force all
  285. volunteers to play both roles, we end up with more relays. This increased
  286. diversity in turn is what gives Tor its security: the more options the
  287. user has for her first hop, and the more options she has for her last hop,
  288. the less likely it is that a given attacker will be watching both ends
  289. of her circuit~\cite{tor-design}. As a bonus, because our design attracts
  290. more internal relays that want to help out but don't want to deal with
  291. being an exit relay, we end up providing more options for the first
  292. hop---the one most critical to being able to reach the Tor network.
  293. Fifth, Tor is sustainable. Zero-Knowledge Systems offered the commercial
  294. but now defunct Freedom Network~\cite{freedom21-security}, a design with
  295. security comparable to Tor's, but its funding model relied on collecting
  296. money from users to pay relay operators. Modern commercial proxy systems
  297. similarly
  298. need to keep collecting money to support their infrastructure. On the
  299. other hand, Tor has built a self-sustaining community of volunteers who
  300. donate their time and resources. This community trust is rooted in Tor's
  301. open design: we tell the world exactly how Tor works, and we provide all
  302. the source code. Users can decide for themselves, or pay any security
  303. expert to decide, whether it is safe to use. Further, Tor's modularity
  304. as described above, along with its open license, mean that its impact
  305. will continue to grow.
  306. Sixth, Tor has an established user base of hundreds of
  307. thousands of people from around the world. This diversity of
  308. users contributes to sustainability as above: Tor is used by
  309. ordinary citizens, activists, corporations, law enforcement, and
  310. even government and military users,
  311. %\footnote{http://tor.eff.org/overview}
  312. and they can
  313. only achieve their security goals by blending together in the same
  314. network~\cite{econymics,usability:weis2006}. This user base also provides
  315. something else: hundreds of thousands of different and often-changing
  316. addresses that we can leverage for our blocking-resistance design.
  317. Finally and perhaps most importantly, Tor provides anonymity and prevents any
  318. single server from linking users to their communication partners. Despite
  319. initial appearances, {\it distributed-trust anonymity is critical for
  320. anti-censorship efforts}. If any single server can expose dissident bloggers
  321. or compile a list of users' behavior, the censors can profitably compromise
  322. that server's operator, perhaps by applying economic pressure to their
  323. employers,
  324. breaking into their computer, pressuring their family (if they have relatives
  325. in the censored area), or so on. Furthermore, in designs where any relay can
  326. expose its users, the censors can spread suspicion that they are running some
  327. of the relays and use this belief to chill use of the network.
  328. We discuss and adapt these components further in
  329. Section~\ref{sec:bridges}. But first we examine the strengths and
  330. weaknesses of other blocking-resistance approaches, so we can expand
  331. our repertoire of building blocks and ideas.
  332. \section{Current proxy solutions}
  333. \label{sec:related}
  334. Relay-based blocking-resistance schemes generally have two main
  335. components: a relay component and a discovery component. The relay part
  336. encompasses the process of establishing a connection, sending traffic
  337. back and forth, and so on---everything that's done once the user knows
  338. where she's going to connect. Discovery is the step before that: the
  339. process of finding one or more usable relays.
  340. For example, we can divide the pieces of Tor in the previous section
  341. into the process of building paths and sending
  342. traffic over them (relay) and the process of learning from the directory
  343. servers about what routers are available (discovery). With this distinction
  344. in mind, we now examine several categories of relay-based schemes.
  345. \subsection{Centrally-controlled shared proxies}
  346. Existing commercial anonymity solutions (like Anonymizer.com) are based
  347. on a set of single-hop proxies. In these systems, each user connects to
  348. a single proxy, which then relays traffic between the user and her
  349. destination. These public proxy
  350. systems are typically characterized by two features: they control and
  351. operate the proxies centrally, and many different users get assigned
  352. to each proxy.
  353. In terms of the relay component, single proxies provide weak security
  354. compared to systems that distribute trust over multiple relays, since a
  355. compromised proxy can trivially observe all of its users' actions, and
  356. an eavesdropper only needs to watch a single proxy to perform timing
  357. correlation attacks against all its users' traffic and thus learn where
  358. everyone is connecting. Worse, all users
  359. need to trust the proxy company to have good security itself as well as
  360. to not reveal user activities.
  361. On the other hand, single-hop proxies are easier to deploy, and they
  362. can provide better performance than distributed-trust designs like Tor,
  363. since traffic only goes through one relay. They're also more convenient
  364. from the user's perspective---since users entirely trust the proxy,
  365. they can just use their web browser directly.
  366. Whether public proxy schemes are more or less scalable than Tor is
  367. still up for debate: commercial anonymity systems can use some of their
  368. revenue to provision more bandwidth as they grow, whereas volunteer-based
  369. anonymity systems can attract thousands of fast relays to spread the load.
  370. The discovery piece can take several forms. Most commercial anonymous
  371. proxies have one or a handful of commonly known websites, and their users
  372. log in to those websites and relay their traffic through them. When
  373. these websites get blocked (generally soon after the company becomes
  374. popular), if the company cares about users in the blocked areas, they
  375. start renting lots of disparate IP addresses and rotating through them
  376. as they get blocked. They notify their users of new addresses (by email,
  377. for example). It's an arms race, since attackers can sign up to receive the
  378. email too, but operators have one nice trick available to them: because they
  379. have a list of paying subscribers, they can notify certain subscribers
  380. about updates earlier than others.
  381. Access control systems on the proxy let them provide service only to
  382. users with certain characteristics, such as paying customers or people
  383. from certain IP address ranges.
  384. Discovery in the face of a government-level firewall is a complex and
  385. unsolved
  386. topic, and we're stuck in this same arms race ourselves; we explore it
  387. in more detail in Section~\ref{sec:discovery}. But first we examine the
  388. other end of the spectrum---getting volunteers to run the proxies,
  389. and telling only a few people about each proxy.
  390. \subsection{Independent personal proxies}
  391. Personal proxies such as Circumventor~\cite{circumventor} and
  392. CGIProxy~\cite{cgiproxy} use the same technology as the public ones as
  393. far as the relay component goes, but they use a different strategy for
  394. discovery. Rather than managing a few centralized proxies and constantly
  395. getting new addresses for them as the old addresses are blocked, they
  396. aim to have a large number of entirely independent proxies, each managing
  397. its own (much smaller) set of users.
  398. As the Circumventor site explains, ``You don't
  399. actually install the Circumventor \emph{on} the computer that is blocked
  400. from accessing Web sites. You, or a friend of yours, has to install the
  401. Circumventor on some \emph{other} machine which is not censored.''
  402. This tactic has great advantages in terms of blocking-resistance---recall
  403. our assumption in Section~\ref{sec:adversary} that the attention
  404. a system attracts from the attacker is proportional to its number of
  405. users and level of publicity. If each proxy only has a few users, and
  406. there is no central list of proxies, most of them will never get noticed by
  407. the censors.
  408. On the other hand, there's a huge scalability question that so far has
  409. prevented these schemes from being widely useful: how does the fellow
  410. in China find a person in Ohio who will run a Circumventor for him? In
  411. some cases he may know and trust some people on the outside, but in many
  412. cases he's just out of luck. Just as hard, how does a new volunteer in
  413. Ohio find a person in China who needs it?
  414. % another key feature of a proxy run by your uncle is that you
  415. % self-censor, so you're unlikely to bring abuse complaints onto
  416. % your uncle. self-censoring clearly has a downside too, though.
  417. This challenge leads to a hybrid design---centrally-distributed
  418. personal proxies---which we will investigate in more detail in
  419. Section~\ref{sec:discovery}.
  420. \subsection{Open proxies}
  421. Yet another currently used approach to bypassing firewalls is to locate
  422. open and misconfigured proxies on the Internet. A quick Google search
  423. for ``open proxy list'' yields a wide variety of freely available lists
  424. of HTTP, HTTPS, and SOCKS proxies. Many small companies have sprung up
  425. providing more refined lists to paying customers.
  426. There are some downsides to using these open proxies though. First,
  427. the proxies are of widely varying quality in terms of bandwidth and
  428. stability, and many of them are entirely unreachable. Second, unlike
  429. networks of volunteers like Tor, the legality of routing traffic through
  430. these proxies is questionable: it's widely believed that most of them
  431. don't realize what they're offering, and probably wouldn't allow it if
  432. they realized. Third, in many cases the connection to the proxy is
  433. unencrypted, so firewalls that filter based on keywords in IP packets
  434. will not be hindered. And last, many users are suspicious that some
  435. open proxies are a little \emph{too} convenient: are they run by the
  436. adversary, in which case they get to monitor all the user's requests
  437. just as single-hop proxies can?
  438. A distributed-trust design like Tor resolves each of these issues for
  439. the relay component, but a constantly changing set of thousands of open
  440. relays is clearly a useful idea for a discovery component. For example,
  441. users might be able to make use of these proxies to bootstrap their
  442. first introduction into the Tor network.
  443. \subsection{Blocking resistance and JAP}
  444. K\"{o}psell and Hilling's Blocking Resistance
  445. design~\cite{koepsell:wpes2004} is probably
  446. the closest related work, and is the starting point for the design in this
  447. paper. In this design, the JAP anonymity system~\cite{web-mix} is used
  448. as a base instead of Tor. Volunteers operate a large number of access
  449. points that relay traffic to the core JAP
  450. network, which in turn anonymizes users' traffic. The software to run these
  451. relays is, as in our design, included in the JAP client software and enabled
  452. only when the user decides to enable it. Discovery is handled with a
  453. CAPTCHA-based mechanism; users prove that they aren't an automated process,
  454. and are given the address of an access point. (The problem of a determined
  455. attacker with enough manpower to launch many requests and enumerate all the
  456. access points is not considered in depth.) There is also some suggestion
  457. that information about access points could spread through existing social
  458. networks.
  459. \subsection{Infranet}
  460. The Infranet design~\cite{infranet} uses one-hop relays to deliver web
  461. content, but disguises its communications as ordinary HTTP traffic. Requests
  462. are split into multiple requests for URLs on the relay, which then encodes
  463. its responses in the content it returns. The relay needs to be an actual
  464. website with plausible content and a number of URLs which the user might want
  465. to access---if the Infranet software produced its own cover content, it would
  466. be far easier for censors to identify. To keep the censors from noticing
  467. that cover content changes depending on what data is embedded, Infranet needs
  468. the cover content to have an innocuous reason for changing frequently: the
  469. paper recommends watermarked images and webcams.
  470. The attacker and relay operators in Infranet's threat model are significantly
  471. different than in ours. Unlike our attacker, Infranet's censor can't be
  472. bypassed with encrypted traffic (presumably because the censor blocks
  473. encrypted traffic, or at least considers it suspicious), and has more
  474. computational resources to devote to each connection than ours (so it can
  475. notice subtle patterns over time). Unlike our bridge operators, Infranet's
  476. operators (and users) have more bandwidth to spare; the overhead in typical
  477. steganography schemes is far higher than Tor's.
  478. The Infranet design does not include a discovery element. Discovery,
  479. however, is a critical point: if whatever mechanism allows users to learn
  480. about relays also allows the censor to do so, he can trivially discover and
  481. block their addresses, even if the steganography would prevent mere traffic
  482. observation from revealing the relays' addresses.
  483. \subsection{RST-evasion and other packet-level tricks}
  484. In their analysis of China's firewall's content-based blocking, Clayton,
  485. Murdoch and Watson discovered that rather than blocking all packets in a TCP
  486. streams once a forbidden word was noticed, the firewall was simply forging
  487. RST packets to make the communicating parties believe that the connection was
  488. closed~\cite{clayton:pet2006}. They proposed altering operating systems
  489. to ignore forged RST packets.
  490. Other packet-level responses to filtering include splitting
  491. sensitive words across multiple TCP packets, so that the censors'
  492. firewalls can't notice them without performing expensive stream
  493. reconstruction~\cite{ptacek98insertion}. This technique relies on the
  494. same insight as our weak steganography assumption.
  495. \subsection{Internal caching networks}
  496. Freenet~\cite{freenet-pets00} is an anonymous peer-to-peer data store.
  497. Analyzing Freenet's security can be difficult, as its design is in flux as
  498. new discovery and routing mechanisms are proposed, and no complete
  499. specification has (to our knowledge) been written. Freenet servers relay
  500. requests for specific content (indexed by a digest of the content)
  501. ``toward'' the server that hosts it, and then cache the content as it
  502. follows the same path back to
  503. the requesting user. If Freenet's routing mechanism is successful in
  504. allowing nodes to learn about each other and route correctly even as some
  505. node-to-node links are blocked by firewalls, then users inside censored areas
  506. can ask a local Freenet server for a piece of content, and get an answer
  507. without having to connect out of the country at all. Of course, operators of
  508. servers inside the censored area can still be targeted, and the addresses of
  509. external servers can still be blocked.
  510. \subsection{Skype}
  511. The popular Skype voice-over-IP software uses multiple techniques to tolerate
  512. restrictive networks, some of which allow it to continue operating in the
  513. presence of censorship. By switching ports and using encryption, Skype
  514. attempts to resist trivial blocking and content filtering. Even if no
  515. encryption were used, it would still be expensive to scan all voice
  516. traffic for sensitive words. Also, most current keyloggers are unable to
  517. store voice traffic. Nevertheless, Skype can still be blocked, especially at
  518. its central directory service.
  519. \subsection{Tor itself}
  520. And last, we include Tor itself in the list of current solutions
  521. to firewalls. Tens of thousands of people use Tor from countries that
  522. routinely filter their Internet. Tor's website has been blocked in most
  523. of them. But why hasn't the Tor network been blocked yet?
  524. We have several theories. The first is the most straightforward: tens of
  525. thousands of people are simply too few to matter. It may help that Tor is
  526. perceived to be for experts only, and thus not worth attention yet. The
  527. more subtle variant on this theory is that we've positioned Tor in the
  528. public eye as a tool for retaining civil liberties in more free countries,
  529. so perhaps blocking authorities don't view it as a threat. (We revisit
  530. this idea when we consider whether and how to publicize a Tor variant
  531. that improves blocking-resistance---see Section~\ref{subsec:publicity}
  532. for more discussion.)
  533. The broader explanation is that the maintenance of most government-level
  534. filters is aimed at stopping widespread information flow and appearing to be
  535. in control, not by the impossible goal of blocking all possible ways to bypass
  536. censorship. Censors realize that there will always
  537. be ways for a few people to get around the firewall, and as long as Tor
  538. has not publically threatened their control, they see no urgent need to
  539. block it yet.
  540. We should recognize that we're \emph{already} in the arms race. These
  541. constraints can give us insight into the priorities and capabilities of
  542. our various attackers.
  543. \section{The relay component of our blocking-resistant design}
  544. \label{sec:bridges}
  545. Section~\ref{sec:current-tor} describes many reasons why Tor is
  546. well-suited as a building block in our context, but several changes will
  547. allow the design to resist blocking better. The most critical changes are
  548. to get more relay addresses, and to distribute them to users differently.
  549. %We need to address three problems:
  550. %- adapting the relay component of Tor so it resists blocking better.
  551. %- Discovery.
  552. %- Tor's network signature.
  553. %Here we describe the new pieces we need to add to the current Tor design.
  554. \subsection{Bridge relays}
  555. Today, Tor servers operate on less than a thousand distinct IP addresses;
  556. an adversary
  557. could enumerate and block them all with little trouble. To provide a
  558. means of ingress to the network, we need a larger set of entry points, most
  559. of which an adversary won't be able to enumerate easily. Fortunately, we
  560. have such a set: the Tor users.
  561. Hundreds of thousands of people around the world use Tor. We can leverage
  562. our already self-selected user base to produce a list of thousands of
  563. frequently-changing IP addresses. Specifically, we can give them a little
  564. button in the GUI that says ``Tor for Freedom'', and users who click
  565. the button will turn into \emph{bridge relays} (or just \emph{bridges}
  566. for short). They can rate limit relayed connections to 10 KB/s (almost
  567. nothing for a broadband user in a free country, but plenty for a user
  568. who otherwise has no access at all), and since they are just relaying
  569. bytes back and forth between blocked users and the main Tor network, they
  570. won't need to make any external connections to Internet sites. Because
  571. of this separation of roles, and because we're making use of software
  572. that the volunteers have already installed for their own use, we expect
  573. our scheme to attract and maintain more volunteers than previous schemes.
  574. As usual, there are new anonymity and security implications from running a
  575. bridge relay, particularly from letting people relay traffic through your
  576. Tor client; but we leave this discussion for Section~\ref{sec:security}.
  577. %...need to outline instructions for a Tor config that will publish
  578. %to an alternate directory authority, and for controller commands
  579. %that will do this cleanly.
  580. \subsection{The bridge directory authority}
  581. How do the bridge relays advertise their existence to the world? We
  582. introduce a second new component of the design: a specialized directory
  583. authority that aggregates and tracks bridges. Bridge relays periodically
  584. publish server descriptors (summaries of their keys, locations, etc,
  585. signed by their long-term identity key), just like the relays in the
  586. ``main'' Tor network, but in this case they publish them only to the
  587. bridge directory authorities.
  588. The main difference between bridge authorities and the directory
  589. authorities for the main Tor network is that the main authorities provide
  590. a list of every known relay, but the bridge authorities only give
  591. out a server descriptor if you already know its identity key. That is,
  592. you can keep up-to-date on a bridge's location and other information
  593. once you know about it, but you can't just grab a list of all the bridges.
  594. The identity key, IP address, and directory port for each bridge
  595. authority ship by default with the Tor software, so the bridge relays
  596. can be confident they're publishing to the right location, and the
  597. blocked users can establish an encrypted authenticated channel. See
  598. Section~\ref{subsec:trust-chain} for more discussion of the public key
  599. infrastructure and trust chain.
  600. Bridges use Tor to publish their descriptors privately and securely,
  601. so even an attacker monitoring the bridge directory authority's network
  602. can't make a list of all the addresses contacting the authority.
  603. Bridges may publish to only a subset of the
  604. authorities, to limit the potential impact of an authority compromise.
  605. %\subsection{A simple matter of engineering}
  606. %
  607. %Although we've described bridges and bridge authorities in simple terms
  608. %above, some design modifications and features are needed in the Tor
  609. %codebase to add them. We describe the four main changes here.
  610. %
  611. %Firstly, we need to get smarter about rate limiting:
  612. %Bandwidth classes
  613. %
  614. %Secondly, while users can in fact configure which directory authorities
  615. %they use, we need to add a new type of directory authority and teach
  616. %bridges to fetch directory information from the main authorities while
  617. %publishing server descriptors to the bridge authorities. We're most of
  618. %the way there, since we can already specify attributes for directory
  619. %authorities:
  620. %add a separate flag named ``blocking''.
  621. %
  622. %Thirdly, need to build paths using bridges as the first
  623. %hop. One more hole in the non-clique assumption.
  624. %
  625. %Lastly, since bridge authorities don't answer full network statuses,
  626. %we need to add a new way for users to learn the current status for a
  627. %single relay or a small set of relays---to answer such questions as
  628. %``is it running?'' or ``is it behaving correctly?'' We describe in
  629. %Section~\ref{subsec:enclave-dirs} a way for the bridge authority to
  630. %publish this information without resorting to signing each answer
  631. %individually.
  632. \subsection{Putting them together}
  633. \label{subsec:relay-together}
  634. If a blocked user knows the identity keys of a set of bridge relays, and
  635. he has correct address information for at least one of them, he can use
  636. that one to make a secure connection to the bridge authority and update
  637. his knowledge about the other bridge relays. He can also use it to make
  638. secure connections to the main Tor network and directory servers, so he
  639. can build circuits and connect to the rest of the Internet. All of these
  640. updates happen in the background: from the blocked user's perspective,
  641. he just accesses the Internet via his Tor client like always.
  642. So now we've reduced the problem from how to circumvent the firewall
  643. for all transactions (and how to know that the pages you get have not
  644. been modified by the local attacker) to how to learn about a working
  645. bridge relay.
  646. There's another catch though. We need to make sure that the network
  647. traffic we generate by simply connecting to a bridge relay doesn't stand
  648. out too much.
  649. %The following section describes ways to bootstrap knowledge of your first
  650. %bridge relay, and ways to maintain connectivity once you know a few
  651. %bridge relays.
  652. % (See Section~\ref{subsec:first-bridge} for a discussion
  653. %of exactly what information is sufficient to characterize a bridge relay.)
  654. \section{Hiding Tor's network signatures}
  655. \label{sec:network-signature}
  656. \label{subsec:enclave-dirs}
  657. Currently, Tor uses two protocols for its network communications. The
  658. main protocol uses TLS for encrypted and authenticated communication
  659. between Tor instances. The second protocol is standard HTTP, used for
  660. fetching directory information. All Tor servers listen on their ``ORPort''
  661. for TLS connections, and some of them opt to listen on their ``DirPort''
  662. as well, to serve directory information. Tor servers choose whatever port
  663. numbers they like; the server descriptor they publish to the directory
  664. tells users where to connect.
  665. One format for communicating address information about a bridge relay is
  666. its IP address and DirPort. From there, the user can ask the bridge's
  667. directory cache for an up-to-date copy of its server descriptor, and
  668. learn its current circuit keys, its ORPort, and so on.
  669. However, connecting directly to the directory cache involves a plaintext
  670. HTTP request. A censor could create a network signature for the request
  671. and/or its response, thus preventing these connections. To resolve this
  672. vulnerability, we've modified the Tor protocol so that users can connect
  673. to the directory cache via the main Tor port---they establish a TLS
  674. connection with the bridge as normal, and then send a special ``begindir''
  675. relay command to establish an internal connection to its directory cache.
  676. Therefore a better way to summarize a bridge's address is by its IP
  677. address and ORPort, so all communications between the client and the
  678. bridge will use ordinary TLS. But there are other details that need
  679. more investigation.
  680. What port should bridges pick for their ORPort? We currently recommend
  681. that they listen on port 443 (the default HTTPS port) if they want to
  682. be most useful, because clients behind standard firewalls will have
  683. the best chance to reach them. Is this the best choice in all cases,
  684. or should we encourage some fraction of them pick random ports, or other
  685. ports commonly permitted through firewalls like 53 (DNS) or 110
  686. (POP)? Or perhaps we should use other ports where TLS traffic is
  687. expected, like 993 (IMAPS) or 995 (POP3S). We need more research on our
  688. potential users, and their current and anticipated firewall restrictions.
  689. Furthermore, we need to look at the specifics of Tor's TLS handshake.
  690. Right now Tor uses some predictable strings in its TLS handshakes. For
  691. example, it sets the X.509 organizationName field to ``Tor'', and it puts
  692. the Tor server's nickname in the certificate's commonName field. We
  693. should tweak the handshake protocol so it doesn't rely on any unusual details
  694. in the certificate, yet it remains secure; the certificate itself
  695. should be made to resemble an ordinary HTTPS certificate. We should also try
  696. to make our advertised cipher-suites closer to what an ordinary web server
  697. would support.
  698. Tor's TLS handshake uses two-certificate chains: one certificate
  699. contains the self-signed identity key for
  700. the router, and the second contains a current TLS key, signed by the
  701. identity key. We use these to authenticate that we're talking to the right
  702. router, and to limit the impact of TLS-key exposure. Most (though far from
  703. all) consumer-oriented HTTPS services provide only a single certificate.
  704. These extra certificates may help identify Tor's TLS handshake; instead,
  705. bridges should consider using only a single TLS key certificate signed by
  706. their identity key, and providing the full value of the identity key in an
  707. early handshake cell. More significantly, Tor currently has all clients
  708. present certificates, so that clients are harder to distinguish from servers.
  709. But in a blocking-resistance environment, clients should not present
  710. certificates at all.
  711. Last, what if the adversary starts observing the network traffic even
  712. more closely? Even if our TLS handshake looks innocent, our traffic timing
  713. and volume still look different than a user making a secure web connection
  714. to his bank. The same techniques used in the growing trend to build tools
  715. to recognize encrypted Bittorrent traffic
  716. %~\cite{bt-traffic-shaping}
  717. could be used to identify Tor communication and recognize bridge
  718. relays. Rather than trying to look like encrypted web traffic, we may be
  719. better off trying to blend with some other encrypted network protocol. The
  720. first step is to compare typical network behavior for a Tor client to
  721. typical network behavior for various other protocols. This statistical
  722. cat-and-mouse game is made more complex by the fact that Tor transports a
  723. variety of protocols, and we'll want to automatically handle web browsing
  724. differently from, say, instant messaging.
  725. % Tor cells are 512 bytes each. So TLS records will be roughly
  726. % multiples of this size? How bad is this? -RD
  727. % Look at ``Inferring the Source of Encrypted HTTP Connections''
  728. % by Marc Liberatore and Brian Neil Levine (CCS 2006)
  729. % They substantially flesh out the numbers for the web fingerprinting
  730. % attack. -PS
  731. % Yes, but I meant detecting the signature of Tor traffic itself, not
  732. % learning what websites we're going to. I wouldn't be surprised to
  733. % learn that these are related problems, but it's not obvious to me. -RD
  734. \subsection{Identity keys as part of addressing information}
  735. \label{subsec:id-address}
  736. We have described a way for the blocked user to bootstrap into the
  737. network once he knows the IP address and ORPort of a bridge. What about
  738. local spoofing attacks? That is, since we never learned an identity
  739. key fingerprint for the bridge, a local attacker could intercept our
  740. connection and pretend to be the bridge we had in mind. It turns out
  741. that giving false information isn't that bad---since the Tor client
  742. ships with trusted keys for the bridge directory authority and the Tor
  743. network directory authorities, the user can learn whether he's being
  744. given a real connection to the bridge authorities or not. (After all,
  745. if the adversary intercepts every connection the user makes and gives
  746. him a bad connection each time, there's nothing we can do.)
  747. What about anonymity-breaking attacks from observing traffic, if the
  748. blocked user doesn't start out knowing the identity key of his intended
  749. bridge? The vulnerabilities aren't so bad in this case either---the
  750. adversary could do similar attacks just by monitoring the network
  751. traffic.
  752. % cue paper by steven and george
  753. Once the Tor client has fetched the bridge's server descriptor, it should
  754. remember the identity key fingerprint for that bridge relay. Thus if
  755. the bridge relay moves to a new IP address, the client can query the
  756. bridge directory authority to look up a fresh server descriptor using
  757. this fingerprint.
  758. So we've shown that it's \emph{possible} to bootstrap into the network
  759. just by learning the IP address and ORPort of a bridge, but are there
  760. situations where it's more convenient or more secure to learn the bridge's
  761. identity fingerprint as well as instead, while bootstrapping? We keep
  762. that question in mind as we next investigate bootstrapping and discovery.
  763. \section{Discovering working bridge relays}
  764. \label{sec:discovery}
  765. Tor's modular design means that we can develop a better relay component
  766. independently of developing the discovery component. This modularity's
  767. great promise is that we can pick any discovery approach we like; but the
  768. unfortunate fact is that we have no magic bullet for discovery. We're
  769. in the same arms race as all the other designs we described in
  770. Section~\ref{sec:related}.
  771. In this section we describe a variety of approaches to adding discovery
  772. components for our design.
  773. \subsection{Bootstrapping: finding your first bridge.}
  774. \label{subsec:first-bridge}
  775. In Section~\ref{subsec:relay-together}, we showed that a user who knows
  776. a working bridge address can use it to reach the bridge authority and
  777. to stay connected to the Tor network. But how do new users reach the
  778. bridge authority in the first place? After all, the bridge authority
  779. will be one of the first addresses that a censor blocks.
  780. First, we should recognize that most government firewalls are not
  781. perfect. That is, they may allow connections to Google cache or some
  782. open proxy servers, or they let file-sharing traffic, Skype, instant
  783. messaging, or World-of-Warcraft connections through. Different users will
  784. have different mechanisms for bypassing the firewall initially. Second,
  785. we should remember that most people don't operate in a vacuum; users will
  786. hopefully know other people who are in other situations or have other
  787. resources available. In the rest of this section we develop a toolkit
  788. of different options and mechanisms, so that we can enable users in a
  789. diverse set of contexts to bootstrap into the system.
  790. (For users who can't use any of these techniques, hopefully they know
  791. a friend who can---for example, perhaps the friend already knows some
  792. bridge relay addresses. If they can't get around it at all, then we
  793. can't help them---they should go meet more people or learn more about
  794. the technology running the firewall in their area.)
  795. By deploying all the schemes in the toolkit at once, we let bridges and
  796. blocked users employ the discovery approach that is most appropriate
  797. for their situation.
  798. \subsection{Independent bridges, no central discovery}
  799. The first design is simply to have no centralized discovery component at
  800. all. Volunteers run bridges, and we assume they have some blocked users
  801. in mind and communicate their address information to them out-of-band
  802. (for example, through Gmail). This design allows for small personal
  803. bridges that have only one or a handful of users in mind, but it can
  804. also support an entire community of users. For example, Citizen Lab's
  805. upcoming Psiphon single-hop proxy tool~\cite{psiphon} plans to use this
  806. \emph{social network} approach as its discovery component.
  807. There are several ways to do bootstrapping in this design. In the simple
  808. case, the operator of the bridge informs each chosen user about his
  809. bridge's address information and/or keys. A different approach involves
  810. blocked users introducing new blocked users to the bridges they know.
  811. That is, somebody in the blocked area can pass along a bridge's address to
  812. somebody else they trust. This scheme brings in appealing but complex game
  813. theoretic properties: the blocked user making the decision has an incentive
  814. only to delegate to trustworthy people, since an adversary who learns
  815. the bridge's address and filters it makes it unavailable for both of them.
  816. Also, delegating known bridges to members of your social network can be
  817. dangerous: an the adversary who can learn who knows which bridges may
  818. be able to reconstruct the social network.
  819. Note that a central set of bridge directory authorities can still be
  820. compatible with a decentralized discovery process. That is, how users
  821. first learn about bridges is entirely up to the bridges, but the process
  822. of fetching up-to-date descriptors for them can still proceed as described
  823. in Section~\ref{sec:bridges}. Of course, creating a central place that
  824. knows about all the bridges may not be smart, especially if every other
  825. piece of the system is decentralized. Further, if a user only knows
  826. about one bridge and he loses track of it, it may be quite a hassle to
  827. reach the bridge authority. We address these concerns next.
  828. \subsection{Families of bridges, no central discovery}
  829. Because the blocked users are running our software too, we have many
  830. opportunities to improve usability or robustness. Our second design builds
  831. on the first by encouraging volunteers to run several bridges at once
  832. (or coordinate with other bridge volunteers), such that some
  833. of the bridges are likely to be available at any given time.
  834. The blocked user's Tor client would periodically fetch an updated set of
  835. recommended bridges from any of the working bridges. Now the client can
  836. learn new additions to the bridge pool, and can expire abandoned bridges
  837. or bridges that the adversary has blocked, without the user ever needing
  838. to care. To simplify maintenance of the community's bridge pool, each
  839. community could run its own bridge directory authority---reachable via
  840. the available bridges, and also mirrored at each bridge.
  841. \subsection{Public bridges with central discovery}
  842. What about people who want to volunteer as bridges but don't know any
  843. suitable blocked users? What about people who are blocked but don't
  844. know anybody on the outside? Here we describe how to make use of these
  845. \emph{public bridges} in a way that still makes it hard for the attacker
  846. to learn all of them.
  847. The basic idea is to divide public bridges into a set of pools based on
  848. identity key. Each pool corresponds to a \emph{distribution strategy}:
  849. an approach to distributing its bridge addresses to users. Each strategy
  850. is designed to exercise a different scarce resource or property of
  851. the user.
  852. How do we divide bridges between these strategy pools such that they're
  853. evenly distributed and the allocation is hard to influence or predict,
  854. but also in a way that's amenable to creating more strategies later
  855. on without reshuffling all the pools? We assign a given bridge
  856. to a strategy pool by hashing the bridge's identity key along with a
  857. secret that only the bridge authority knows: the first $n$ bits of this
  858. hash dictate the strategy pool number, where $n$ is a parameter that
  859. describes how many strategy pools we want at this point. We choose $n=3$
  860. to start, so we divide bridges between 8 pools; but as we later invent
  861. new distribution strategies, we can increment $n$ to split the 8 into
  862. 16. Since a bridge can't predict the next bit in its hash, it can't
  863. anticipate which identity key will correspond to a certain new pool
  864. when the pools are split. Further, since the bridge authority doesn't
  865. provide any feedback to the bridge about which strategy pool it's in,
  866. an adversary who signs up bridges with the goal of filling a certain
  867. pool~\cite{casc-rep} will be hindered.
  868. % This algorithm is not ideal. When we split pools, each existing
  869. % pool is cut in half, where half the bridges remain with the
  870. % old distribution policy, and half will be under what the new one
  871. % is. So the new distribution policy inherits a bunch of blocked
  872. % bridges if the old policy was too loose, or a bunch of unblocked
  873. % bridges if its policy was still secure. -RD
  874. %
  875. % I think it should be more chordlike.
  876. % Bridges are allocated to wherever on the ring which is divided
  877. % into arcs (buckets).
  878. % If a bucket gets too full, you can just split it.
  879. % More on this below. -PFS
  880. The first distribution strategy (used for the first pool) publishes bridge
  881. addresses in a time-release fashion. The bridge authority divides the
  882. available bridges into partitions, and each partition is deterministically
  883. available only in certain time windows. That is, over the course of a
  884. given time slot (say, an hour), each requester is given a random bridge
  885. from within that partition. When the next time slot arrives, a new set
  886. of bridges from the pool are available for discovery. Thus some bridge
  887. address is always available when a new
  888. user arrives, but to learn about all bridges the attacker needs to fetch
  889. all new addresses at every new time slot. By varying the length of the
  890. time slots, we can make it harder for the attacker to guess when to check
  891. back. We expect these bridges will be the first to be blocked, but they'll
  892. help the system bootstrap until they \emph{do} get blocked. Further,
  893. remember that we're dealing with different blocking regimes around the
  894. world that will progress at different rates---so this pool will still
  895. be useful to some users even as the arms races progress.
  896. The second distribution strategy publishes bridge addresses based on the IP
  897. address of the requesting user. Specifically, the bridge authority will
  898. divide the available bridges in the pool into a bunch of partitions
  899. (as in the first distribution scheme), hash the requester's IP address
  900. with a secret of its own (as in the above allocation scheme for creating
  901. pools), and give the requester a random bridge from the appropriate
  902. partition. To raise the bar, we should discard the last octet of the
  903. IP address before inputting it to the hash function, so an attacker
  904. who only controls a single ``/24'' network only counts as one user. A
  905. large attacker like China will still be able to control many addresses,
  906. but the hassle of establishing connections from each network (or spoofing
  907. TCP connections) may still slow them down. Similarly, as a special case,
  908. we should treat IP addresses that are Tor exit nodes as all being on
  909. the same network.
  910. The third strategy combines the time-based and location-based
  911. strategies to further constrain and rate-limit the available bridge
  912. addresses. Specifically, the bridge address provided in a given time
  913. slot to a given network location is deterministic within the partition,
  914. rather than chosen randomly each time from the partition. Thus, repeated
  915. requests during that time slot from a given network are given the same
  916. bridge address as the first request.
  917. The fourth strategy is based on Circumventor's discovery strategy.
  918. The Circumventor project, realizing that its adoption will remain limited
  919. if it has no central coordination mechanism, has started a mailing list to
  920. distribute new proxy addresses every few days. From experimentation it
  921. seems they have concluded that sending updates every three or four days
  922. is sufficient to stay ahead of the current attackers.
  923. The fifth strategy provides an alternative approach to a mailing list:
  924. users provide an email address and receive an automated response
  925. listing an available bridge address. We could limit one response per
  926. email address. To further rate limit queries, we could require a CAPTCHA
  927. solution
  928. %~\cite{captcha}
  929. in each case too. In fact, we wouldn't need to
  930. implement the CAPTCHA on our side: if we only deliver bridge addresses
  931. to Yahoo or GMail addresses, we can leverage the rate-limiting schemes
  932. that other parties already impose for account creation.
  933. The sixth strategy ties in the social network design with public
  934. bridges and a reputation system. We pick some seeds---trusted people in
  935. blocked areas---and give them each a few dozen bridge addresses and a few
  936. \emph{delegation tokens}. We run a website next to the bridge authority,
  937. where users can log in (they connect via Tor, and they don't need to
  938. provide actual identities, just persistent pseudonyms). Users can delegate
  939. trust to other people they know by giving them a token, which can be
  940. exchanged for a new account on the website. Accounts in ``good standing''
  941. then accrue new bridge addresses and new tokens. As usual, reputation
  942. schemes bring in a host of new complexities~\cite{rep-anon}: how do we
  943. decide that an account is in good standing? We could tie reputation
  944. to whether the bridges they're told about have been blocked---see
  945. Section~\ref{subsec:geoip} below for initial thoughts on how to discover
  946. whether bridges have been blocked. We could track reputation between
  947. accounts (if you delegate to somebody who screws up, it impacts you too),
  948. or we could use blinded delegation tokens~\cite{chaum-blind} to prevent
  949. the website from mapping the seeds' social network. We put off deeper
  950. discussion of the social network reputation strategy for future work.
  951. Pools seven and eight are held in reserve, in case our currently deployed
  952. tricks all fail at once and the adversary blocks all those bridges---so
  953. we can adapt and move to new approaches quickly, and have some bridges
  954. immediately available for the new schemes. New strategies might be based
  955. on some other scarce resource, such as relaying traffic for others or
  956. other proof of energy spent. (We might also worry about the incentives
  957. for bridges that sign up and get allocated to the reserve pools: will they
  958. be unhappy that they're not being used? But this is a transient problem:
  959. if Tor users are bridges by default, nobody will mind not being used yet.
  960. See also Section~\ref{subsec:incentives}.)
  961. %Is it useful to load balance which bridges are handed out? The above
  962. %pool concept makes some bridges wildly popular and others less so.
  963. %But I guess that's the point.
  964. \subsection{Public bridges with coordinated discovery}
  965. We presented the above discovery strategies in the context of a single
  966. bridge directory authority, but in practice we will want to distribute the
  967. operations over several bridge authorities---a single point of failure
  968. or attack is a bad move. The first answer is to run several independent
  969. bridge directory authorities, and bridges gravitate to one based on
  970. their identity key. The better answer would be some federation of bridge
  971. authorities that work together to provide redundancy but don't introduce
  972. new security issues. We could even imagine designs where the bridge
  973. authorities have encrypted versions of the bridge's server descriptors,
  974. and the users learn a decryption key that they keep private when they
  975. first hear about the bridge---this way the bridge authorities would not
  976. be able to learn the IP address of the bridges.
  977. We leave this design question for future work.
  978. \subsection{Assessing whether bridges are useful}
  979. Learning whether a bridge is useful is important in the bridge authority's
  980. decision to include it in responses to blocked users. For example, if
  981. we end up with a list of thousands of bridges and only a few dozen of
  982. them are reachable right now, most blocked users will not end up knowing
  983. about working bridges.
  984. There are three components for assessing how useful a bridge is. First,
  985. is it reachable from the public Internet? Second, what proportion of
  986. the time is it available? Third, is it blocked in certain jurisdictions?
  987. The first component can be tested just as we test reachability of
  988. ordinary Tor servers. Specifically, the bridges do a self-test---connect
  989. to themselves via the Tor network---before they are willing to
  990. publish their descriptor, to make sure they're not obviously broken or
  991. misconfigured. Once the bridges publish, the bridge authority also tests
  992. reachability to make sure they're not confused or outright lying.
  993. The second component can be measured and tracked by the bridge authority.
  994. By doing periodic reachability tests, we can get a sense of how often the
  995. bridge is available. More complex tests will involve bandwidth-intensive
  996. checks to force the bridge to commit resources in order to be counted as
  997. available. We need to evaluate how the relationship of uptime percentage
  998. should weigh into our choice of which bridges to advertise. We leave
  999. this to future work.
  1000. The third component is perhaps the trickiest: with many different
  1001. adversaries out there, how do we keep track of which adversaries have
  1002. blocked which bridges, and how do we learn about new blocks as they
  1003. occur? We examine this problem next.
  1004. \subsection{How do we know if a bridge relay has been blocked?}
  1005. \label{subsec:geoip}
  1006. There are two main mechanisms for testing whether bridges are reachable
  1007. from inside each blocked area: active testing via users, and passive
  1008. testing via bridges.
  1009. In the case of active testing, certain users inside each area
  1010. sign up as testing relays. The bridge authorities can then use a
  1011. Blossom-like~\cite{blossom-thesis} system to build circuits through them
  1012. to each bridge and see if it can establish the connection. But how do
  1013. we pick the users? If we ask random users to do the testing (or if we
  1014. solicit volunteers from the users), the adversary should sign up so he
  1015. can enumerate the bridges we test. Indeed, even if we hand-select our
  1016. testers, the adversary might still discover their location and monitor
  1017. their network activity to learn bridge addresses.
  1018. Another answer is not to measure directly, but rather let the bridges
  1019. report whether they're being used.
  1020. %If they periodically report to their
  1021. %bridge directory authority how much use they're seeing, perhaps the
  1022. %authority can make smart decisions from there.
  1023. Specifically, bridges should install a GeoIP database such as the public
  1024. IP-To-Country list~\cite{ip-to-country}, and then periodically report to the
  1025. bridge authorities which countries they're seeing use from. This data
  1026. would help us track which countries are making use of the bridge design,
  1027. and can also let us learn about new steps the adversary has taken in
  1028. the arms race. (The compressed GeoIP database is only several hundred
  1029. kilobytes, and we could even automate the update process by serving it
  1030. from the bridge authorities.)
  1031. More analysis of this passive reachability
  1032. testing design is needed to resolve its many edge cases: for example,
  1033. if a bridge stops seeing use from a certain area, does that mean the
  1034. bridge is blocked or does that mean those users are asleep?
  1035. There are many more problems with the general concept of detecting whether
  1036. bridges are blocked. First, different zones of the Internet are blocked
  1037. in different ways, and the actual firewall jurisdictions do not match
  1038. country borders. Our bridge scheme could help us map out the topology
  1039. of the censored Internet, but this is a huge task. More generally,
  1040. if a bridge relay isn't reachable, is that because of a network block
  1041. somewhere, because of a problem at the bridge relay, or just a temporary
  1042. outage somewhere in between? And last, an attacker could poison our
  1043. bridge database by signing up already-blocked bridges. In this case,
  1044. if we're stingy giving out bridge addresses, users in that country won't
  1045. learn working bridges.
  1046. All of these issues are made more complex when we try to integrate this
  1047. testing into our social network reputation system above.
  1048. Since in that case we punish or reward users based on whether bridges
  1049. get blocked, the adversary has new attacks to trick or bog down the
  1050. reputation tracking. Indeed, the bridge authority doesn't even know
  1051. what zone the blocked user is in, so do we blame him for any possible
  1052. censored zone, or what?
  1053. Clearly more analysis is required. The eventual solution will probably
  1054. involve a combination of passive measurement via GeoIP and active
  1055. measurement from trusted testers. More generally, we can use the passive
  1056. feedback mechanism to track usage of the bridge network as a whole---which
  1057. would let us respond to attacks and adapt the design, and it would also
  1058. let the general public track the progress of the project.
  1059. %Worry: the adversary could choose not to block bridges but just record
  1060. %connections to them. So be it, I guess.
  1061. \subsection{Advantages of deploying all solutions at once}
  1062. For once, we're not in the position of the defender: we don't have to
  1063. defend against every possible filtering scheme; we just have to defend
  1064. against at least one. On the flip side, the attacker is forced to guess
  1065. how to allocate his resources to defend against each of these discovery
  1066. strategies. So by deploying all of our strategies at once, we not only
  1067. increase our chances of finding one that the adversary has difficulty
  1068. blocking, but we actually make \emph{all} of the strategies more robust
  1069. in the face of an adversary with limited resources.
  1070. %\subsection{Remaining unsorted notes}
  1071. %In the first subsection we describe how to find a first bridge.
  1072. %Going to be an arms race. Need a bag of tricks. Hard to say
  1073. %which ones will work. Don't spend them all at once.
  1074. %Some techniques are sufficient to get us an IP address and a port,
  1075. %and others can get us IP:port:key. Lay out some plausible options
  1076. %for how users can bootstrap into learning their first bridge.
  1077. %\section{The account / reputation system}
  1078. %\section{Social networks with directory-side support}
  1079. %\label{sec:accounts}
  1080. %One answer is to measure based on whether the bridge addresses
  1081. %we give it end up blocked. But how do we decide if they get blocked?
  1082. %Perhaps each bridge should be known by a single bridge directory
  1083. %authority. This makes it easier to trace which users have learned about
  1084. %it, so easier to blame or reward. It also makes things more brittle,
  1085. %since loss of that authority means its bridges aren't advertised until
  1086. %they switch, and means its bridge users are sad too.
  1087. %(Need a slick hash algorithm that will map our identity key to a
  1088. %bridge authority, in a way that's sticky even when we add bridge
  1089. %directory authorities, but isn't sticky when our authority goes
  1090. %away. Does this exist?)
  1091. %\subsection{Discovery based on social networks}
  1092. %A token that can be exchanged at the bridge authority (assuming you
  1093. %can reach it) for a new bridge address.
  1094. %The account server runs as a Tor controller for the bridge authority.
  1095. %Users can establish reputations, perhaps based on social network
  1096. %connectivity, perhaps based on not getting their bridge relays blocked,
  1097. %Probably the most critical lesson learned in past work on reputation
  1098. %systems in privacy-oriented environments~\cite{rep-anon} is the need for
  1099. %verifiable transactions. That is, the entity computing and advertising
  1100. %reputations for participants needs to actually learn in a convincing
  1101. %way that a given transaction was successful or unsuccessful.
  1102. %(Lesson from designing reputation systems~\cite{rep-anon}: easy to
  1103. %reward good behavior, hard to punish bad behavior.
  1104. \section{Security considerations}
  1105. \label{sec:security}
  1106. \subsection{Possession of Tor in oppressed areas}
  1107. Many people speculate that installing and using a Tor client in areas with
  1108. particularly extreme firewalls is a high risk---and the risk increases
  1109. as the firewall gets more restrictive. This notion certain has merit, but
  1110. there's
  1111. a counter pressure as well: as the firewall gets more restrictive, more
  1112. ordinary people behind it end up using Tor for more mainstream activities,
  1113. such as learning
  1114. about Wall Street prices or looking at pictures of women's ankles. So
  1115. as the restrictive firewall pushes up the number of Tor users, the
  1116. ``typical'' Tor user becomes more mainstream, and therefore mere
  1117. use or possession of the Tor software is not so surprising.
  1118. It's hard to say which of these pressures will ultimately win out,
  1119. but we should keep both sides of the issue in mind.
  1120. %Nick, want to rewrite/elaborate on this section?
  1121. \subsection{Observers can tell who is publishing and who is reading}
  1122. \label{subsec:upload-padding}
  1123. Tor encrypts traffic on the local network, and it obscures the eventual
  1124. destination of the communication, but it doesn't do much to obscure the
  1125. traffic volume. In particular, a user publishing a home video will have a
  1126. different network signature than a user reading an online news article.
  1127. Based on our assumption in Section~\ref{sec:adversary} that users who
  1128. publish material are in more danger, should we work to improve Tor's
  1129. security in this situation?
  1130. In the general case this is an extremely challenging task:
  1131. effective \emph{end-to-end traffic confirmation attacks}
  1132. are known where the adversary observes the origin and the
  1133. destination of traffic and confirms that they are part of the
  1134. same communication~\cite{danezis:pet2004,e2e-traffic}. Related are
  1135. \emph{website fingerprinting attacks}, where the adversary downloads
  1136. a few hundred popular websites, makes a set of "signatures" for each
  1137. site, and then observes the target Tor client's traffic to look for
  1138. a match~\cite{pet05-bissias,defensive-dropping}. But can we do better
  1139. against a limited adversary who just does coarse-grained sweeps looking
  1140. for unusually prolific publishers?
  1141. One answer is for bridge users to automatically send bursts of padding
  1142. traffic periodically. (This traffic can be implemented in terms of
  1143. long-range drop cells, which are already part of the Tor specification.)
  1144. Of course, convincingly simulating an actual human publishing interesting
  1145. content is a difficult arms race, but it may be worthwhile to at least
  1146. start the race. More research remains.
  1147. \subsection{Anonymity effects from acting as a bridge relay}
  1148. Against some attacks, relaying traffic for others can improve
  1149. anonymity. The simplest example is an attacker who owns a small number
  1150. of Tor servers. He will see a connection from the bridge, but he won't
  1151. be able to know whether the connection originated there or was relayed
  1152. from somebody else. More generally, the mere uncertainty of whether the
  1153. traffic originated from that user may be helpful.
  1154. There are some cases where it doesn't seem to help: if an attacker can
  1155. watch all of the bridge's incoming and outgoing traffic, then it's easy
  1156. to learn which connections were relayed and which started there. (In this
  1157. case he still doesn't know the final destinations unless he is watching
  1158. them too, but in this case bridges are no better off than if they were
  1159. an ordinary client.)
  1160. There are also some potential downsides to running a bridge. First, while
  1161. we try to make it hard to enumerate all bridges, it's still possible to
  1162. learn about some of them, and for some people just the fact that they're
  1163. running one might signal to an attacker that they place a higher value
  1164. on their anonymity. Second, there are some more esoteric attacks on Tor
  1165. relays that are not as well-understood or well-tested---for example, an
  1166. attacker may be able to ``observe'' whether the bridge is sending traffic
  1167. even if he can't actually watch its network, by relaying traffic through
  1168. it and noticing changes in traffic timing~\cite{attack-tor-oak05}. On
  1169. the other hand, it may be that limiting the bandwidth the bridge is
  1170. willing to relay will allow this sort of attacker to determine if it's
  1171. being used as a bridge but not easily learn whether it is adding traffic
  1172. of its own.
  1173. We also need to examine how entry guards fit in. Entry guards
  1174. (a small set of nodes that are always used for the first
  1175. step in a circuit) help protect against certain attacks
  1176. where the attacker runs a few Tor servers and waits for
  1177. the user to choose these servers as the beginning and end of her
  1178. circuit\footnote{http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ\#EntryGuards}.
  1179. If the blocked user doesn't use the bridge's entry guards, then the bridge
  1180. doesn't gain as much cover benefit. On the other hand, what design changes
  1181. are needed for the blocked user to use the bridge's entry guards without
  1182. learning what they are (this seems hard), and even if we solve that,
  1183. do they then need to use the guards' guards and so on down the line?
  1184. It is an open research question whether the benefits of running a bridge
  1185. outweigh the risks. A lot of the decision rests on which attacks the
  1186. users are most worried about. For most users, we don't think running a
  1187. bridge relay will be that damaging, and it could help quite a bit.
  1188. \subsection{Trusting local hardware: Internet cafes and LiveCDs}
  1189. \label{subsec:cafes-and-livecds}
  1190. Assuming that users have their own trusted hardware is not
  1191. always reasonable.
  1192. For Internet cafe Windows computers that let you attach your own USB key,
  1193. a USB-based Tor image would be smart. There's Torpark, and hopefully
  1194. there will be more thoroughly analyzed and trustworthy options down the
  1195. road. Worries remain about hardware or software keyloggers and other
  1196. spyware, as well as and physical surveillance.
  1197. If the system lets you boot from a CD or from a USB key, you can gain
  1198. a bit more security by bringing a privacy LiveCD with you. (This
  1199. approach isn't foolproof either of course, since hardware
  1200. keyloggers and physical surveillance are still a worry).
  1201. In fact, LiveCDs are also useful if it's your own hardware, since it's
  1202. easier to avoid leaving private data and logs scattered around the
  1203. system.
  1204. %\subsection{Forward compatibility and retiring bridge authorities}
  1205. %
  1206. %Eventually we'll want to change the identity key and/or location
  1207. %of a bridge authority. How do we do this mostly cleanly?
  1208. \subsection{The trust chain}
  1209. \label{subsec:trust-chain}
  1210. Tor's ``public key infrastructure'' provides a chain of trust to
  1211. let users verify that they're actually talking to the right servers.
  1212. There are four pieces to this trust chain.
  1213. First, when Tor clients are establishing circuits, at each step
  1214. they demand that the next Tor server in the path prove knowledge of
  1215. its private key~\cite{tor-design}. This step prevents the first node
  1216. in the path from just spoofing the rest of the path. Second, the
  1217. Tor directory authorities provide a signed list of servers along with
  1218. their public keys---so unless the adversary can control a threshold
  1219. of directory authorities, he can't trick the Tor client into using other
  1220. Tor servers. Third, the location and keys of the directory authorities,
  1221. in turn, is hard-coded in the Tor source code---so as long as the user
  1222. got a genuine version of Tor, he can know that he is using the genuine
  1223. Tor network. And last, the source code and other packages are signed
  1224. with the GPG keys of the Tor developers, so users can confirm that they
  1225. did in fact download a genuine version of Tor.
  1226. In the case of blocked users contacting bridges and bridge directory
  1227. authorities, the same logic applies in parallel: the blocked users fetch
  1228. information from both the bridge authorities and the directory authorities
  1229. for the `main' Tor network, and they combine this information locally.
  1230. How can a user in an oppressed country know that he has the correct
  1231. key fingerprints for the developers? As with other security systems, it
  1232. ultimately comes down to human interaction. The keys are signed by dozens
  1233. of people around the world, and we have to hope that our users have met
  1234. enough people in the PGP web of trust
  1235. %~\cite{pgp-wot}
  1236. that they can learn
  1237. the correct keys. For users that aren't connected to the global security
  1238. community, though, this question remains a critical weakness.
  1239. %\subsection{Security through obscurity: publishing our design}
  1240. %Many other schemes like dynaweb use the typical arms race strategy of
  1241. %not publishing their plans. Our goal here is to produce a design---a
  1242. %framework---that can be public and still secure. Where's the tradeoff?
  1243. %\section{Performance improvements}
  1244. %\label{sec:performance}
  1245. %
  1246. %\subsection{Fetch server descriptors just-in-time}
  1247. %
  1248. %I guess we should encourage most places to do this, so blocked
  1249. %users don't stand out.
  1250. %
  1251. %
  1252. %network-status and directory optimizations. caching better. partitioning
  1253. %issues?
  1254. \section{Maintaining reachability}
  1255. \label{sec:reachability}
  1256. \subsection{How many bridge relays should you know about?}
  1257. The strategies described in Section~\ref{sec:discovery} talked about
  1258. learning one bridge address at a time. But if most bridges are ordinary
  1259. Tor users on cable modem or DSL connection, many of them will disappear
  1260. and/or move periodically. How many bridge relays should a blocked user
  1261. know about so that she is likely to have at least one reachable at any
  1262. given point? This is already a challenging problem if we only consider
  1263. natural churn: the best approach is to see what bridges we attract in
  1264. reality and measure their churn. We may also need to factor in a parameter
  1265. for how quickly bridges get discovered and blocked by the attacker;
  1266. we leave this for future work after we have more deployment experience.
  1267. A related question is: if the bridge relays change IP addresses
  1268. periodically, how often does the blocked user need to fetch updates in
  1269. order to keep from being cut out of the loop?
  1270. Once we have more experience and intuition, we should explore technical
  1271. solutions to this problem too. For example, if the discovery strategies
  1272. give out $k$ bridge addresses rather than a single bridge address, perhaps
  1273. we can improve robustness from the user perspective without significantly
  1274. aiding the adversary. Rather than giving out a new random subset of $k$
  1275. addresses at each point, we could bind them together into \emph{bridge
  1276. families}, so all users that learn about one member of the bridge family
  1277. are told about the rest as well.
  1278. This scheme may also help defend against attacks to map the set of
  1279. bridges. That is, if all blocked users learn a random subset of bridges,
  1280. the attacker should learn about a few bridges, monitor the country-level
  1281. firewall for connections to them, then watch those users to see what
  1282. other bridges they use, and repeat. By segmenting the bridge address
  1283. space, we can limit the exposure of other users.
  1284. \subsection{Cablemodem users don't usually provide important websites}
  1285. \label{subsec:block-cable}
  1286. Another attacker we might be concerned about is that the attacker could
  1287. just block all DSL and cablemodem network addresses, on the theory that
  1288. they don't run any important services anyway. If most of our bridges
  1289. are on these networks, this attack could really hurt.
  1290. The first answer is to aim to get volunteers both from traditionally
  1291. ``consumer'' networks and also from traditionally ``producer'' networks.
  1292. Since bridges don't need to be Tor exit nodes, as we improve our usability
  1293. it seems quite feasible to get a lot of websites helping out.
  1294. The second answer (not as practical) would be to encourage more use of
  1295. consumer networks for popular and useful Internet services.
  1296. %(But P2P exists;
  1297. %minor websites exist; gaming exists; IM exists; ...)
  1298. A related attack we might worry about is based on large countries putting
  1299. economic pressure on companies that want to expand their business. For
  1300. example, what happens if Verizon wants to sell services in China, and
  1301. China pressures Verizon to discourage its users in the free world from
  1302. running bridges?
  1303. \subsection{Scanning resistance: making bridges more subtle}
  1304. If it's trivial to verify that a given address is operating as a bridge,
  1305. and most bridges run on a predictable port, then it's conceivable our
  1306. attacker could scan the whole Internet looking for bridges. (In fact,
  1307. he can just concentrate on scanning likely networks like cablemodem
  1308. and DSL services---see Section~\ref{subsec:block-cable} above for
  1309. related attacks.) It would be nice to slow down this attack. It would
  1310. be even nicer to make it hard to learn whether we're a bridge without
  1311. first knowing some secret. We call this general property \emph{scanning
  1312. resistance}, and it goes along with normalizing Tor's TLS handshake and
  1313. network signature.
  1314. We could provide a password to the blocked user, and she (or her Tor
  1315. client) provides a nonced hash of this password when she connects. We'd
  1316. need to give her an ID key for the bridge too (in addition to the IP
  1317. address and port---see Section~\ref{subsec:id-address}), and wait to
  1318. present the password until we've finished the TLS handshake, else it
  1319. would look unusual. If Alice can authenticate the bridge before she
  1320. tries to send her password, we can resist an adversary who pretends
  1321. to be the bridge and launches a man-in-the-middle attack to learn the
  1322. password. But even if she can't, we resist against widespread scanning.
  1323. Another approach would be some kind of ID-based knocking protocol,
  1324. where the bridge only answers after some predefined set of connections
  1325. or interactions. The bridge could even act like an unconfigured HTTPS
  1326. server (``welcome to the default Apache page'') if accessed without the
  1327. correct authorization.
  1328. We might assume that the attacker can recognize HTTPS connections that
  1329. use self-signed certificates. (This process would be resource-intensive
  1330. but not out of the realm of possibility.) But even in this case, many
  1331. popular websites around the Internet use self-signed or just plain broken
  1332. SSL certificates.
  1333. %to unknown servers. It can then attempt to connect to them and block
  1334. %connections to servers that seem suspicious. It may be that password
  1335. %protected web sites will not be suspicious in general, in which case
  1336. %that may be the easiest way to give controlled access to the bridge.
  1337. %If such sites that have no other overt features are automatically
  1338. %blocked when detected, then we may need to be more subtle.
  1339. %Possibilities include serving an innocuous web page if a TLS encrypted
  1340. %request is received without the authorization needed to access the Tor
  1341. %network and only responding to a requested access to the Tor network
  1342. %of proper authentication is given. If an unauthenticated request to
  1343. %access the Tor network is sent, the bridge should respond as if
  1344. %it has received a message it does not understand (as would be the
  1345. %case were it not a bridge).
  1346. \subsection{How to motivate people to run bridge relays}
  1347. \label{subsec:incentives}
  1348. One of the traditional ways to get people to run software that benefits
  1349. others is to give them motivation to install it themselves. An often
  1350. suggested approach is to install it as a stunning screensaver so everybody
  1351. will be pleased to run it. We take a similar approach here, by leveraging
  1352. the fact that these users are already interested in protecting their
  1353. own Internet traffic, so they will install and run the software.
  1354. Eventually, we may be able to make all Tor users become bridges if they
  1355. pass their self-reachability tests---the software and installers need
  1356. more work on usability first, but we're making progress.
  1357. In the mean time, we can make a snazzy network graph with Vidalia that
  1358. emphasizes the connections the bridge user is currently relaying.
  1359. %(Minor
  1360. %anonymity implications, but hey.) (In many cases there won't be much
  1361. %activity, so this may backfire. Or it may be better suited to full-fledged
  1362. %Tor servers.)
  1363. % Also consider everybody-a-server. Many of the scalability questions
  1364. % are easier when you're talking about making everybody a bridge.
  1365. %\subsection{What if the clients can't install software?}
  1366. %[this section should probably move to the related work section,
  1367. %or just disappear entirely.]
  1368. %Bridge users without Tor software
  1369. %Bridge relays could always open their socks proxy. This is bad though,
  1370. %first
  1371. %because bridges learn the bridge users' destinations, and second because
  1372. %we've learned that open socks proxies tend to attract abusive users who
  1373. %have no idea they're using Tor.
  1374. %Bridges could require passwords in the socks handshake (not supported
  1375. %by most software including Firefox). Or they could run web proxies
  1376. %that require authentication and then pass the requests into Tor. This
  1377. %approach is probably a good way to help bootstrap the Psiphon network,
  1378. %if one of its barriers to deployment is a lack of volunteers willing
  1379. %to exit directly to websites. But it clearly drops some of the nice
  1380. %anonymity and security features Tor provides.
  1381. %A hybrid approach where the user gets his anonymity from Tor but his
  1382. %software-less use from a web proxy running on a trusted machine on the
  1383. %free side.
  1384. \subsection{Publicity attracts attention}
  1385. \label{subsec:publicity}
  1386. Many people working on this field want to publicize the existence
  1387. and extent of censorship concurrently with the deployment of their
  1388. circumvention software. The easy reason for this two-pronged push is
  1389. to attract volunteers for running proxies in their systems; but in many
  1390. cases their main goal is not to focus on actually allowing individuals
  1391. to circumvent the firewall, but rather to educate the world about the
  1392. censorship. The media also tries to do its part by broadcasting the
  1393. existence of each new circumvention system.
  1394. But at the same time, this publicity attracts the attention of the
  1395. censors. We can slow down the arms race by not attracting as much
  1396. attention, and just spreading by word of mouth. If our goal is to
  1397. establish a solid social network of bridges and bridge users before
  1398. the adversary gets involved, does this extra attention work to our
  1399. disadvantage?
  1400. \subsection{The Tor website: how to get the software}
  1401. One of the first censoring attacks against a system like ours is to
  1402. block the website and make the software itself hard to find. Our system
  1403. should work well once the user is running an authentic
  1404. copy of Tor and has found a working bridge, but to get to that point
  1405. we rely on their individual skills and ingenuity.
  1406. Right now, most countries that block access to Tor block only the main
  1407. website and leave mirrors and the network itself untouched.
  1408. Falling back on word-of-mouth is always a good last resort, but we should
  1409. also take steps to make sure it's relatively easy for users to get a copy,
  1410. such as publicizing the mirrors more and making copies available through
  1411. other media.
  1412. See Section~\ref{subsec:first-bridge} for more discussion.
  1413. \section{Future designs}
  1414. \label{sec:future}
  1415. \subsection{Bridges inside the blocked network too}
  1416. Assuming actually crossing the firewall is the risky part of the
  1417. operation, can we have some bridge relays inside the blocked area too,
  1418. and more established users can use them as relays so they don't need to
  1419. communicate over the firewall directly at all? A simple example here is
  1420. to make new blocked users into internal bridges also---so they sign up
  1421. on the bridge authority as part of doing their query, and we give out
  1422. their addresses
  1423. rather than (or along with) the external bridge addresses. This design
  1424. is a lot trickier because it brings in the complexity of whether the
  1425. internal bridges will remain available, can maintain reachability with
  1426. the outside world, etc.
  1427. More complex future designs involve operating a separate Tor network
  1428. inside the blocked area, and using \emph{hidden service bridges}---bridges
  1429. that can be accessed by users of the internal Tor network but whose
  1430. addresses are not published or findable, even by these users---to get
  1431. from inside the firewall to the rest of the Internet. But this design
  1432. requires directory authorities to run inside the blocked area too,
  1433. and they would be a fine target to take down the network.
  1434. % Hidden services as bridge directory authorities.
  1435. \section{Next Steps}
  1436. \label{sec:conclusion}
  1437. Technical solutions won't solve the whole censorship problem. After all,
  1438. the firewalls in places like China and Iran are \emph{socially} very
  1439. successful, even if technologies and tricks exist to get around them.
  1440. However, having a strong technical solution is still necessary as one
  1441. important piece of the puzzle.
  1442. In this paper, we have shown that Tor provides a great set of building
  1443. blocks to start from. The next steps are to deploy prototype bridges and
  1444. bridge authorities, implement some of the proposed discovery strategies,
  1445. and then observe the system in operation and get more intuition about
  1446. the actual requirements and adversaries we're up against.
  1447. \bibliographystyle{plain} \bibliography{tor-design}
  1448. %\appendix
  1449. %\section{Counting Tor users by country}
  1450. %\label{app:geoip}
  1451. \end{document}
  1452. ship geoip db to bridges. they look up users who tls to them in the db,
  1453. and upload a signed list of countries and number-of-users each day. the
  1454. bridge authority aggregates them and publishes stats.
  1455. bridge relays have buddies
  1456. they ask a user to test the reachability of their buddy.
  1457. leaks O(1) bridges, but not O(n).
  1458. we should not be blockable by ordinary cisco censorship features.
  1459. that is, if they want to block our new design, they will need to
  1460. add a feature to block exactly this.
  1461. strategically speaking, this may come in handy.
  1462. Bridges come in clumps of 4 or 8 or whatever. If you know one bridge
  1463. in a clump, the authority will tell you the rest. Now bridges can
  1464. ask users to test reachability of their buddies.
  1465. Giving out clumps helps with dynamic IP addresses too. Whether it
  1466. should be 4 or 8 depends on our churn.
  1467. the account server. let's call it a database, it doesn't have to
  1468. be a thing that human interacts with.
  1469. so how do we reward people for being good?
  1470. \subsubsection{Public Bridges with Coordinated Discovery}
  1471. ****Pretty much this whole subsubsection will probably need to be
  1472. deferred until ``later'' and moved to after end document, but I'm leaving
  1473. it here for now in case useful.******
  1474. Rather than be entirely centralized, we can have a coordinated
  1475. collection of bridge authorities, analogous to how Tor network
  1476. directory authorities now work.
  1477. Key components
  1478. ``Authorities'' will distribute caches of what they know to overlapping
  1479. collections of nodes so that no one node is owned by one authority.
  1480. Also so that it is impossible to DoS info maintained by one authority
  1481. simply by making requests to it.
  1482. Where a bridge gets assigned is not predictable by the bridge?
  1483. If authorities don't know the IP addresses of the bridges they
  1484. are responsible for, they can't abuse that info (or be attacked for
  1485. having it). But, they also can't, e.g., control being sent massive
  1486. lists of nodes that were never good. This raises another question.
  1487. We generally decry use of IP address for location, etc. but we
  1488. need to do that to limit the introduction of functional but useless
  1489. IP addresses because, e.g., they are in China and the adversary
  1490. owns massive chunks of the IP space there.
  1491. We don't want an arbitrary someone to be able to contact the
  1492. authorities and say an IP address is bad because it would be easy
  1493. for an adversary to take down all the suspicious bridges
  1494. even if they provide good cover websites, etc. Only the bridge
  1495. itself and/or the directory authority can declare a bridge blocked
  1496. from somewhere.
  1497. 9. Bridge directories must not simply be a handful of nodes that
  1498. provide the list of bridges. They must flood or otherwise distribute
  1499. information out to other Tor nodes as mirrors. That way it becomes
  1500. difficult for censors to flood the bridge directory servers with
  1501. requests, effectively denying access for others. But, there's lots of
  1502. churn and a much larger size than Tor directories. We are forced to
  1503. handle the directory scaling problem here much sooner than for the
  1504. network in general. Authorities can pass their bridge directories
  1505. (and policy info) to some moderate number of unidentified Tor nodes.
  1506. Anyone contacting one of those nodes can get bridge info. the nodes
  1507. must remain somewhat synched to prevent the adversary from abusing,
  1508. e.g., a timed release policy or the distribution to those nodes must
  1509. be resilient even if they are not coordinating.
  1510. I think some kind of DHT like scheme would work here. A Tor node is
  1511. assigned a chunk of the directory. Lookups in the directory should be
  1512. via hashes of keys (fingerprints) and that should determine the Tor
  1513. nodes responsible. Ordinary directories can publish lists of Tor nodes
  1514. responsible for fingerprint ranges. Clients looking to update info on
  1515. some bridge will make a Tor connection to one of the nodes responsible
  1516. for that address. Instead of shutting down a circuit after getting
  1517. info on one address, extend it to another that is responsible for that
  1518. address (the node from which you are extending knows you are doing so
  1519. anyway). Keep going. This way you can amortize the Tor connection.
  1520. 10. We need some way to give new identity keys out to those who need
  1521. them without letting those get immediately blocked by authorities. One
  1522. way is to give a fingerprint that gets you more fingerprints, as
  1523. already described. These are meted out/updated periodically but allow
  1524. us to keep track of which sources are compromised: if a distribution
  1525. fingerprint repeatedly leads to quickly blocked bridges, it should be
  1526. suspect, dropped, etc. Since we're using hashes, there shouldn't be a
  1527. correlation with bridge directory mirrors, bridges, portions of the
  1528. network observed, etc. It should just be that the authorities know
  1529. about that key that leads to new addresses.
  1530. This last point is very much like the issues in the valet nodes paper,
  1531. which is essentially about blocking resistance wrt exiting the Tor network,
  1532. while this paper is concerned with blocking the entering to the Tor network.
  1533. In fact the tickets used to connect to the IPo (Introduction Point),
  1534. could serve as an example, except that instead of authorizing
  1535. a connection to the Hidden Service, it's authorizing the downloading
  1536. of more fingerprints.
  1537. Also, the fingerprints can follow the hash(q + '1' + cookie) scheme of
  1538. that paper (where q = hash(PK + salt) gave the q.onion address). This
  1539. allows us to control and track which fingerprint was causing problems.
  1540. Note that, unlike many settings, the reputation problem should not be
  1541. hard here. If a bridge says it is blocked, then it might as well be.
  1542. If an adversary can say that the bridge is blocked wrt
  1543. $\mathit{censor}_i$, then it might as well be, since
  1544. $\mathit{censor}_i$ can presumably then block that bridge if it so
  1545. chooses.
  1546. 11. How much damage can the adversary do by running nodes in the Tor
  1547. network and watching for bridge nodes connecting to it? (This is
  1548. analogous to an Introduction Point watching for Valet Nodes connecting
  1549. to it.) What percentage of the network do you need to own to do how
  1550. much damage. Here the entry-guard design comes in helpfully. So we
  1551. need to have bridges use entry-guards, but (cf. 3 above) not use
  1552. bridges as entry-guards. Here's a serious tradeoff (again akin to the
  1553. ratio of valets to IPos) the more bridges/client the worse the
  1554. anonymity of that client. The fewer bridges/client the worse the
  1555. blocking resistance of that client.