roadmap-future.tex 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  1. \documentclass{article}
  2. \usepackage{url}
  3. \newenvironment{tightlist}{\begin{list}{$\bullet$}{
  4. \setlength{\itemsep}{0mm}
  5. \setlength{\parsep}{0mm}
  6. % \setlength{\labelsep}{0mm}
  7. % \setlength{\labelwidth}{0mm}
  8. % \setlength{\topsep}{0mm}
  9. }}{\end{list}}
  10. \newcommand{\tmp}[1]{{\bf #1} [......] \\}
  11. \newcommand{\plan}[1]{ {\bf (#1)}}
  12. \begin{document}
  13. \title{Tor Development Roadmap: Wishlist for 2008 and beyond}
  14. \author{Roger Dingledine \and Nick Mathewson}
  15. \maketitle
  16. \pagestyle{plain}
  17. \section{Introduction}
  18. Tor (the software) and Tor (the overall software/network/support/document
  19. suite) are now experiencing all the crises of success. Over the next
  20. years, we're probably going to grow even more in terms of users, developers,
  21. and funding than before. This document attempts to lay out all the
  22. well-understood next steps that Tor needs to take. We should periodically
  23. reorganize it to reflect current and intended priorities.
  24. \section{Everybody can be a relay}
  25. We've made a lot of progress towards letting an ordinary Tor client also
  26. serve as a Tor relay. But these issues remain.
  27. \subsection{UPNP}
  28. We should teach Vidalia how to speak UPNP to automatically open and
  29. forward ports on common (e.g. Linksys) routers. There are some promising
  30. Qt-based UPNP libs out there, and in any case there are others (e.g. in
  31. Perl) that we can base it on.
  32. \subsection{``ORPort auto'' to look for a reachable port}
  33. Vidalia defaults to port 443 on Windows and port 8080 elsewhere. But if
  34. that port is already in use, or the ISP filters incoming connections
  35. on that port (some cablemodem providers filter 443 inbound), the user
  36. needs to learn how to notice this, and then pick a new one and type it
  37. into Vidalia.
  38. We should add a new option ``auto'' that cycles through a set of preferred
  39. ports, testing bindability and reachability for each of them, and only
  40. complains to the user once it's given up on the common options.
  41. \subsection{Incentives design}
  42. Roger has been working with researchers at Rice University to simulate
  43. and analyze a new design where the directory authorities assign gold
  44. stars to well-behaving relays, and then all the relays give priority
  45. to traffic from gold-starred relays. The great feature of the design is
  46. that not only does it provide the (explicit) incentive to run a relay,
  47. but it also aims to grow the overall capacity of the network, so even
  48. non-relays will benefit.
  49. It needs more analysis, and perhaps more design work, before we try
  50. deploying it.
  51. \subsection{Windows libevent}
  52. Tor relays still don't work well or reliably on Windows XP or Windows
  53. Vista, because we don't use the Windows-native ``overlapped IO''
  54. approach. Christian King made a good start at teaching libevent about
  55. overlapped IO during Google Summer of Code 2007, and next steps are
  56. to a) finish that, b) teach Tor to do openssl calls on buffers rather
  57. than directly to the network, and c) teach Tor to use the new libevent
  58. buffers approach.
  59. \subsection{Network scaling}
  60. If we attract many more relays, we will need to handle the growing pains
  61. in terms of getting all the directory information to all the users.
  62. The first piece of this issue is a practical question: since the
  63. directory size scales linearly with more relays, at some point it
  64. will no longer be practical for every client to learn about every
  65. relay. We can try to reduce the amount of information each client needs
  66. to fetch (e.g. based on fetching less information preemptively as in
  67. Section~\ref{subsec:fewer-descriptor-fetches} below), but eventually
  68. clients will need to learn about only a subset of the network, and we
  69. will need to design good ways to divide up the network information.
  70. The second piece is an anonymity question that arises from this
  71. partitioning: if Tor's security comes from having all the clients
  72. behaving in similar ways, yet we are now giving different clients
  73. different directory information, how can we minimize the new anonymity
  74. attacks we introduce?
  75. \subsection{Using fewer sockets}
  76. Since in the current network every Tor relay can reach every other Tor
  77. relay, and we have many times more users than relays, pretty much every
  78. possible link in the network is in use. That is, the current network
  79. is a clique in practice.
  80. And since each of these connections requires a TCP socket, it's going
  81. to be hard for the network to grow much larger: many systems come with
  82. a default of 1024 file descriptors allowed per process, and raising
  83. that ulimit is hard for end users. Worse, many low-end gateway/firewall
  84. routers can't handle this many connections in their routing table.
  85. One approach is a restricted-route topology~\cite{danezis:pet2003}:
  86. predefine which relays can reach which other relays, and communicate
  87. these restrictions to the clients. We would need to compute which links
  88. are acceptable in a way that's decentralized yet scalable, and we would
  89. need an efficient (compact) way to characterize the topology information
  90. so all the users could keep up to date.
  91. Another approach would be to switch to UDP-based transport between
  92. relays, so we don't need to keep the TCP sockets open at all. Needs more
  93. investigation too.
  94. \subsection{Auto bandwidth detection and rate limiting, especially for
  95. asymmetric connections.}
  96. \subsection{Better algorithms for giving priority to local traffic}
  97. Proposal 111 made a lot of progress at separating local traffic from
  98. relayed traffic, so Tor users can rate limit the relayed traffic at a
  99. stricter level. But since we want to pass both traffic classes over the
  100. same TCP connection, we can't keep them entirely separate. The current
  101. compromise is that we treat all bytes to/from a given connectin as
  102. local traffic if any of the bytes within the past N seconds were local
  103. bytes. But a) we could use some more intelligent heuristics, and b)
  104. this leaks information to an active attacker about when local traffic
  105. was sent/received.
  106. \subsection{Tolerate absurdly wrong clocks, even for servers}
  107. \subsection{First a bridge, then a public relay?}
  108. Metrics for deciding when you're fast enough and stable enough
  109. to opt to switch from being a bridge relay to a public relay.
  110. \subsection{Risks from being a relay}
  111. \section{Tor on low resources / slow links}
  112. \subsection{Reducing directory fetches further}
  113. \label{subsec:fewer-descriptor-fetches}
  114. \subsection{AvoidDiskWrites}
  115. \subsection{Using less ram}
  116. \subsection{Better DoS resistance for tor servers / authorities}
  117. \section{Blocking resistance}
  118. \subsection{Better bridge-address-distribution strategies}
  119. \subsection{Get more volunteers running bridges}
  120. \subsection{Handle multiple bridge authorities}
  121. \subsection{Anonymity for bridge users: second layer of entry guards, etc?}
  122. \subsection{More TLS normalization}
  123. \subsection{Harder to block Tor software distribution}
  124. \subsection{Integration with Psiphon}
  125. \section{Packaging}
  126. \subsection{Switch Privoxy out for Polipo}
  127. - Make Vidalia able to launch more programs itself
  128. \subsection{Continue Torbutton improvements}
  129. especially better docs
  130. \subsection{Vidalia and stability (especially wrt ongoing Windows problems)}
  131. \subsection{Polipo support on Windows}
  132. \subsection{Auto update for Tor, Vidalia, others}
  133. \subsection{Tor browser bundle for USB and standalone use}
  134. \subsection{LiveCD solution}
  135. \subsection{VM-based solution}
  136. \subsection{Tor-on-enclave-firewall configuration}
  137. \subsection{General tutorials on what common applications are Tor-friendly}
  138. \subsection{Controller libraries (torctl) plus documentation}
  139. \subsection{Localization and translation (Vidalia, Torbutton, web pages)}
  140. \section{Interacting better with Internet sites}
  141. \subsection{Make tordnsel (tor exitlist) better and more well-known}
  142. \subsection{Nymble}
  143. \subsection{Work with Wikipedia, Slashdot, Google(, IRC networks)}
  144. \subsection{IPv6 support for exit destinations}
  145. \section{Network health}
  146. \subsection{torflow / soat to detect bad relays}
  147. \subsection{make authorities more automated}
  148. \subsection{torstatus pages and better trend tracking}
  149. \subsection{better metrics for assessing network health / growth}
  150. - geoip usage-by-country reporting and aggregation
  151. (Once that's working, switch to Directory guards)
  152. \section{Performance research}
  153. \subsection{Load balance better}
  154. \subsection{Improve our congestion control algorithms}
  155. \subsection{Two-hops vs Three-hops}
  156. \subsection{Transport IP packets end-to-end}
  157. \section{Outreach and user education}
  158. \subsection{"Who uses Tor" use cases}
  159. \subsection{Law enforcement contacts}
  160. - "Was this IP address a Tor relay recently?" database
  161. \subsection{Commercial/enterprise outreach. Help them use Tor well and
  162. not fear it.}
  163. \subsection{NGO outreach and training.}
  164. - "How to be a safe blogger"
  165. \subsection{More activist coordinators, more people to answer user questions}
  166. \subsection{More people to hold hands of server operators}
  167. \subsection{Teaching the media about Tor}
  168. \subsection{The-dangers-of-plaintext awareness}
  169. \subsection{check.torproject.org and other "privacy checkers"}
  170. \subsection{Stronger legal FAQ for US}
  171. \subsection{Legal FAQs for other countries}
  172. \section{Anonymity research}
  173. \subsection{estimate relay bandwidth more securely}
  174. \subsection{website fingerprinting attacks}
  175. \subsection{safer e2e defenses}
  176. \subsection{Using Tor when you really need anonymity. Can you compose it
  177. with other steps, like more trusted guards or separate proxies?}
  178. \subsection{Topology-aware routing; routing-zones, steven's pet2007 paper.}
  179. \subsection{Exactly what do guard nodes provide?}
  180. Entry guards seem to defend against all sorts of attacks. Can we work
  181. through all the benefits they provide? Papers like Nikita's CCS 2007
  182. paper make me think their value is not well-understood by the research
  183. community.
  184. \section{Organizational growth and stability}
  185. \subsection{A contingency plan if Roger gets hit by a bus}
  186. - Get a new executive director
  187. \subsection{More diversity of funding}
  188. - Don't rely on any one funder as much
  189. - Don't rely on any sector or funder category as much
  190. \subsection{More Tor-funded people who are skilled at peripheral apps like
  191. Vidalia, Torbutton, Polipo, etc}
  192. \subsection{More coordinated media handling and strategy}
  193. \subsection{Clearer and more predictable trademark behavior}
  194. \subsection{More outside funding for internships, etc e.g. GSoC.}
  195. \section{Hidden services}
  196. \subsection{Scaling: how to handle many hidden services}
  197. \subsection{Performance: how to rendezvous with them quickly}
  198. \subsection{Authentication/authorization: how to tolerate DoS / load}
  199. \section{Tor as a general overlay network}
  200. \subsection{Choose paths / exit by country}
  201. \subsection{Easier to run your own private servers and have Tor use them
  202. anywhere in the path}
  203. \subsection{Easier to run an independent Tor network}
  204. \section{Code security/correctness}
  205. \subsection{veracode}
  206. \subsection{code audit}
  207. \subsection{more fuzzing tools}
  208. \subsection{build farm, better testing harness}
  209. \subsection{Long-overdue code refactoring and cleanup}
  210. \section{Protocol security}
  211. \subsection{safer circuit handshake}
  212. \subsection{protocol versioning for future compatibility}
  213. \subsection{cell sizes}
  214. \subsection{adapt to new key sizes, etc}
  215. \section{Code and design infrastructure}
  216. \subsection{Protocol revision}
  217. To maintain backward compatibility, we've postponed major protocol
  218. changes and redesigns for a long time. Because of this, there are a number
  219. of sensible revisions we've been putting off until we could deploy several of
  220. them at once. To do each of these, we first need to discuss design
  221. alternatives with other cryptographers and outside collaborators to
  222. make sure that our choices are secure.
  223. First of all, our protocol needs better {\bf versioning support} so that we
  224. can make backward-incompatible changes to our core protocol. There are
  225. difficult anonymity issues here, since many naive designs would make it easy
  226. to tell clients apart (and then track them) based on their supported versions.
  227. With protocol versioning support would come the ability to {\bf future-proof
  228. our ciphersuites}. For example, not only our OR protocol, but also our
  229. directory protocol, is pretty firmly tied to the SHA-1 hash function, which
  230. though not yet known to be insecure for our purposes, has begun to show
  231. its age. We should
  232. remove assumptions throughout our design based on the assumption that public
  233. keys, secret keys, or digests will remain any particular size indefinitely.
  234. Our OR {\bf authentication protocol}, though provably
  235. secure\cite{tap:pet2006}, relies more on particular aspects of RSA and our
  236. implementation thereof than we had initially believed. To future-proof
  237. against changes, we should replace it with a less delicate approach.
  238. \plan{For all the above: 2 person-months to specify, spread over several
  239. months with time for interaction with external participants. One
  240. person-month to implement. Start specifying in early 2007.}
  241. We might design a {\bf stream migration} feature so that streams tunneled
  242. over Tor could be more resilient to dropped connections and changed IPs.
  243. \plan{Not in 2007.}
  244. A new protocol could support {\bf multiple cell sizes}. Right now, all data
  245. passes through the Tor network divided into 512-byte cells. This is
  246. efficient for high-bandwidth protocols, but inefficient for protocols
  247. like SSH or AIM that send information in small chunks. Of course, we need to
  248. investigate the extent to which multiple sizes could make it easier for an
  249. adversary to fingerprint a traffic pattern. \plan{Not in 2007.}
  250. As a part of our design, we should investigate possible {\bf cipher modes}
  251. other than counter mode. For example, a mode with built-in integrity
  252. checking, error propagation, and random access could simplify our protocol
  253. significantly. Sadly, many of these are patented and unavailable for us.
  254. \plan{Not in 2007.}
  255. \subsection{Scalability}
  256. \subsubsection{Improved directory efficiency}
  257. We should {\bf have routers upload their descriptors even less often}, so
  258. that clients do not need to download replacements every 18 hours whether any
  259. information has changed or not. (As of Tor 0.1.2.3-alpha, clients tolerate
  260. routers that don't upload often, but routers still upload at least every 18
  261. hours to support older clients.) \plan{Must do, but not until 0.1.1.x is
  262. deprecated in mid 2007. 1 week.}
  263. \subsubsection{Non-clique topology}
  264. Our current network design achieves a certain amount of its anonymity by
  265. making clients act like each other through the simple expedient of making
  266. sure that all clients know all servers, and that any server can talk to any
  267. other server. But as the number of servers increases to serve an
  268. ever-greater number of clients, these assumptions become impractical.
  269. At worst, if these scalability issues become troubling before a solution is
  270. found, we can design and build a solution to {\bf split the network into
  271. multiple slices} until a better solution comes along. This is not ideal,
  272. since rather than looking like all other users from a point of view of path
  273. selection, users would ``only'' look like 200,000--300,000 other
  274. users.\plan{Not unless needed.}
  275. We are in the process of designing {\bf improved schemes for network
  276. scalability}. Some approaches focus on limiting what an adversary can know
  277. about what a user knows; others focus on reducing the extent to which an
  278. adversary can exploit this knowledge. These are currently in their infancy,
  279. and will probably not be needed in 2007, but they must be designed in 2007 if
  280. they are to be deployed in 2008.\plan{Design in 2007; unknown difficulty.
  281. Write a paper.}
  282. \subsubsection{Relay incentives}
  283. To support more users on the network, we need to get more servers. So far,
  284. we've relied on volunteerism to attract server operators, and so far it's
  285. served us well. But in the long run, we need to {\bf design incentives for
  286. users to run servers} and relay traffic for others. Most obviously, we
  287. could try to build the network so that servers offered improved service for
  288. other servers, but we would need to do so without weakening anonymity and
  289. making it obvious which connections originate from users running servers. We
  290. have some preliminary designs~\cite{incentives-txt,tor-challenges},
  291. but need to perform
  292. some more research to make sure they would be safe and effective.\plan{Write
  293. a draft paper; 2 person-months.}
  294. (XXX we did that)
  295. \subsection{Portability}
  296. Our {\bf Windows implementation}, though much improved, continues to lag
  297. behind Unix and Mac OS X, especially when running as a server. We hope to
  298. merge promising patches from Christian King to address this point, and bring
  299. Windows performance on par with other platforms.\plan{Do in 2007; 1.5 months
  300. to integrate not counting Mike's work.}
  301. We should have {\bf better support for portable devices}, including modes of
  302. operation that require less RAM, and that write to disk less frequently (to
  303. avoid wearing out flash RAM).\plan{Optional; 2 weeks.}
  304. \subsection{Performance: resource usage}
  305. We've been working on {\bf using less RAM}, especially on servers. This has
  306. paid off a lot for directory caches in the 0.1.2, which in some cases are
  307. using 90\% less memory than they used to require. But we can do better,
  308. especially in the area around our buffer management algorithms, by using an
  309. approach more like the BSD and Linux kernels use instead of our current ring
  310. buffer approach. (For OR connections, we can just use queues of cell-sized
  311. chunks produced with a specialized allocator.) This could potentially save
  312. around 25 to 50\% of the memory currently allocated for network buffers, and
  313. make Tor a more attractive proposition for restricted-memory environments
  314. like old computers, mobile devices, and the like.\plan{Do in 2007; 2-3 weeks
  315. plus one week measurement.} (XXX We did this, but we need to do something
  316. more/else.)
  317. \subsection{Performance: network usage}
  318. We know too little about how well our current path
  319. selection algorithms actually spread traffic around the network in practice.
  320. We should {\bf research the efficacy of our traffic allocation} and either
  321. assure ourselves that it is close enough to optimal as to need no improvement
  322. (unlikely) or {\bf identify ways to improve network usage}, and get more
  323. users' traffic delivered faster. Performing this research will require
  324. careful thought about anonymity implications.
  325. We should also {\bf examine the efficacy of our congestion control
  326. algorithm}, and see whether we can improve client performance in the
  327. presence of a congested network through dynamic `sendme' window sizes or
  328. other means. This will have anonymity implications too if we aren't careful.
  329. \plan{For both of the above: research, design and write
  330. a measurement tool in 2007: 1 month. See if we can interest a graduate
  331. student.}
  332. We should work on making Tor's cell-based protocol perform better on
  333. networks with low bandwidth
  334. and high packet loss.\plan{Do in 2007 if we're funded to do it; 4-6 weeks.}
  335. \subsection{Performance scenario: one Tor client, many users}
  336. We should {\bf improve Tor's performance when a single Tor handles many
  337. clients}. Many organizations want to manage a single Tor client on their
  338. firewall for many users, rather than having each user install a separate
  339. Tor client. We haven't optimized for this scenario, and it is likely that
  340. there are some code paths in the current implementation that become
  341. inefficient when a single Tor is servicing hundreds or thousands of client
  342. connections. (Additionally, it is likely that such clients have interesting
  343. anonymity requirements the we should investigate.) We should profile Tor
  344. under appropriate loads, identify bottlenecks, and fix them.\plan{Do in 2007
  345. if we're funded to do it; 4-8 weeks.}
  346. \subsection{Tor servers on asymmetric bandwidth}
  347. Tor should work better on servers that have asymmetric connections like cable
  348. or DSL. Because Tor has separate TCP connections between each
  349. hop, if the incoming bytes are arriving just fine and the outgoing bytes are
  350. all getting dropped on the floor, the TCP push-back mechanisms don't really
  351. transmit this information back to the incoming streams.\plan{Do in 2007 since
  352. related to bandwidth limiting. 3-4 weeks.}
  353. \subsection{Running Tor as both client and server}
  354. Many performance tradeoffs and balances that might need more attention.
  355. We first need to track and fix whatever bottlenecks emerge; but we also
  356. need to invent good algorithms for prioritizing the client's traffic
  357. without starving the server's traffic too much.\plan{No idea; try
  358. profiling and improving things in 2007.}
  359. \subsection{Protocol redesign for UDP}
  360. Tor has relayed only TCP traffic since its first versions, and has used
  361. TLS-over-TCP to do so. This approach has proved reliable and flexible, but
  362. in the long term we will need to allow UDP traffic on the network, and switch
  363. some or all of the network to using a UDP transport. {\bf Supporting UDP
  364. traffic} will make Tor more suitable for protocols that require UDP, such
  365. as many VOIP protocols. {\bf Using a UDP transport} could greatly reduce
  366. resource limitations on servers, and make the network far less interruptible
  367. by lossy connections. Either of these protocol changes would require a great
  368. deal of design work, however. We hope to be able to enlist the aid of a few
  369. talented graduate students to assist with the initial design and
  370. specification, but the actual implementation will require significant testing
  371. of different reliable transport approaches.\plan{Maybe do a design in 2007 if
  372. we find an interested academic. Ian or Ben L might be good partners here.}
  373. \section{Blocking resistance}
  374. \subsection{Design for blocking resistance}
  375. We have written a design document explaining our general approach to blocking
  376. resistance. We should workshop it with other experts in the field to get
  377. their ideas about how we can improve Tor's efficacy as an anti-censorship
  378. tool.
  379. \subsection{Implementation: client-side and bridges-side}
  380. Bridges will want to be able to {\bf listen on multiple addresses and ports}
  381. if they can, to give the adversary more ports to block.
  382. \subsection{Research: anonymity implications from becoming a bridge}
  383. see arma's bridge proposal; e.g. should bridge users use a second layer of
  384. entry guards?
  385. \subsection{Implementation: bridge authority}
  386. we run some
  387. directory authorities with a slightly modified protocol that doesn't leak
  388. the entire list of bridges. Thus users can learn up-to-date information
  389. for bridges they already know about, but they can't learn about arbitrary
  390. new bridges.
  391. we need a design for distributing the bridge authority over more than one
  392. server
  393. \subsection{Normalizing the Tor protocol on the wire}
  394. Additionally, we should {\bf resist content-based filters}. Though an
  395. adversary can't see what users are saying, some aspects of our protocol are
  396. easy to fingerprint {\em as} Tor. We should correct this where possible.
  397. Look like Firefox; or look like nothing?
  398. Future research: investigate timing similarities with other protocols.
  399. \subsection{Research: scanning-resistance}
  400. \subsection{Research/Design/Impl: how users discover bridges}
  401. Our design anticipates an arms race between discovery methods and censors.
  402. We need to begin the infrastructure on our side quickly, preferably in a
  403. flexible language like Python, so we can adapt quickly to censorship.
  404. phase one: personal bridges
  405. phase two: families of personal bridges
  406. phase three: more structured social network
  407. phase four: bag of tricks
  408. Research: phase five...
  409. Integration with Psiphon, etc?
  410. \subsection{Document best practices for users}
  411. Document best practices for various activities common among
  412. blocked users (e.g. WordPress use).
  413. \subsection{Research: how to know if a bridge has been blocked?}
  414. \subsection{GeoIP maintenance, and "private" user statistics}
  415. How to know if the whole idea is working?
  416. \subsection{Research: hiding whether the user is reading or publishing?}
  417. \subsection{Research: how many bridges do you need to know to maintain
  418. reachability?}
  419. \subsection{Resisting censorship of the Tor website, docs, and mirrors}
  420. We should take some effort to consider {\bf initial distribution of Tor and
  421. related information} in countries where the Tor website and mirrors are
  422. censored. (Right now, most countries that block access to Tor block only the
  423. main website and leave mirrors and the network itself untouched.) Falling
  424. back on word-of-mouth is always a good last resort, but we should also take
  425. steps to make sure it's relatively easy for users to get ahold of a copy.
  426. \section{Security}
  427. \subsection{Security research projects}
  428. We should investigate approaches with some promise to help Tor resist
  429. end-to-end traffic correlation attacks. It's an open research question
  430. whether (and to what extent) {\bf mixed-latency} networks, {\bf low-volume
  431. long-distance padding}, or other approaches can resist these attacks, which
  432. are currently some of the most effective against careful Tor users. We
  433. should research these questions and perform simulations to identify
  434. opportunities for strengthening our design without dropping performance to
  435. unacceptable levels. %Cite something
  436. \plan{Start doing this in 2007; write a paper. 8-16 weeks.}
  437. We've got some preliminary results suggesting that {\bf a topology-aware
  438. routing algorithm}~\cite{feamster:wpes2004} could reduce Tor users'
  439. vulnerability against local or ISP-level adversaries, by ensuring that they
  440. are never in a position to watch both ends of a connection. We need to
  441. examine the effects of this approach in more detail and consider side-effects
  442. on anonymity against other kinds of adversaries. If the approach still looks
  443. promising, we should investigate ways for clients to implement it (or an
  444. approximation of it) without having to download routing tables for the whole
  445. Internet. \plan{Not in 2007 unless a graduate student wants to do it.}
  446. %\tmp{defenses against end-to-end correlation} We don't expect any to work
  447. %right now, but it would be useful to learn that one did. Alternatively,
  448. %proving that one didn't would free up researchers in the field to go work on
  449. %other things.
  450. %
  451. % See above; I think I got this.
  452. We should research the efficacy of {\bf website fingerprinting} attacks,
  453. wherein an adversary tries to match the distinctive traffic and timing
  454. pattern of the resources constituting a given website to the traffic pattern
  455. of a user's client. These attacks work great in simulations, but in
  456. practice we hear they don't work nearly as well. We should get some actual
  457. numbers to investigate the issue, and figure out what's going on. If we
  458. resist these attacks, or can improve our design to resist them, we should.
  459. % add cites
  460. \plan{Possibly part of end-to-end correlation paper. Otherwise, not in 2007
  461. unless a graduate student is interested.}
  462. \subsection{Implementation security}
  463. We should also {\bf mark RAM that holds key material as non-swappable} so
  464. that there is no risk of recovering key material from a hard disk
  465. compromise. This would require submitting patches upstream to OpenSSL, where
  466. support for marking memory as sensitive is currently in a very preliminary
  467. state.\plan{Nice to do, but not in immediate Tor scope.}
  468. There are numerous tools for identifying trouble spots in code (such as
  469. Coverity or even VS2005's code analysis tool) and we should convince somebody
  470. to run some of them against the Tor codebase. Ideally, we could figure out a
  471. way to get our code checked periodically rather than just once.\plan{Almost
  472. no time once we talk somebody into it.}
  473. We should try {\bf protocol fuzzing} to identify errors in our
  474. implementation.\plan{Not in 2007 unless we find a grad student or
  475. undergraduate who wants to try.}
  476. Our guard nodes help prevent an attacker from being able to become a chosen
  477. client's entry point by having each client choose a few favorite entry points
  478. as ``guards'' and stick to them. We should implement a {\bf directory
  479. guards} feature to keep adversaries from enumerating Tor users by acting as
  480. a directory cache.\plan{Do in 2007; 2 weeks.}
  481. \subsection{Detect corrupt exits and other servers}
  482. With the success of our network, we've attracted servers in many locations,
  483. operated by many kinds of people. Unfortunately, some of these locations
  484. have compromised or defective networks, and some of these people are
  485. untrustworthy or incompetent. Our current design relies on authority
  486. administrators to identify bad nodes and mark them as nonfunctioning. We
  487. should {\bf automate the process of identifying malfunctioning nodes} as
  488. follows:
  489. We should create a generic {\bf feedback mechanism for add-on tools} like
  490. Mike Perry's ``Snakes on a Tor'' to report failing nodes to authorities.
  491. \plan{Do in 2006; 1-2 weeks.}
  492. We should write tools to {\bf detect more kinds of innocent node failure},
  493. such as nodes whose network providers intercept SSL, nodes whose network
  494. providers censor popular websites, and so on. We should also try to detect
  495. {\bf routers that snoop traffic}; we could do this by launching connections
  496. to throwaway accounts, and seeing which accounts get used.\plan{Do in 2007;
  497. ask Mike Perry if he's interested. 4-6 weeks.}
  498. We should add {\bf an efficient way for authorities to mark a set of servers
  499. as probably collaborating} though not necessarily otherwise dishonest.
  500. This happens when an administrator starts multiple routers, but doesn't mark
  501. them as belonging to the same family.\plan{Do during v2.1 directory protocol
  502. redesign; 1-2 weeks to implement.}
  503. To avoid attacks where an adversary claims good performance in order to
  504. attract traffic, we should {\bf have authorities measure node performance}
  505. (including stability and bandwidth) themselves, and not simply believe what
  506. they're told. We also measure stability by tracking MTBF. Measuring
  507. bandwidth will be tricky, since it's hard to distinguish between a server with
  508. low capacity, and a high-capacity server with most of its capacity in
  509. use. See also Nikita's NDSS 2008 paper.\plan{Do it if we can interest
  510. a grad student.}
  511. {\bf Operating a directory authority should be easier.} We rely on authority
  512. operators to keep the network running well, but right now their job involves
  513. too much busywork and administrative overhead. A better interface for them
  514. to use could free their time to work on exception cases rather than on
  515. adding named nodes to the network.\plan{Do in 2007; 4-5 weeks.}
  516. \subsection{Protocol security}
  517. In addition to other protocol changes discussed above,
  518. % And should we move some of them down here? -NM
  519. we should add {\bf hooks for denial-of-service resistance}; we have some
  520. preliminary designs, but we shouldn't postpone them until we really need them.
  521. If somebody tries a DDoS attack against the Tor network, we won't want to
  522. wait for all the servers and clients to upgrade to a new
  523. version.\plan{Research project; do this in 2007 if funded.}
  524. \section{Development infrastructure}
  525. \subsection{Build farm}
  526. We've begun to deploy a cross-platform distributed build farm of hosts
  527. that build and test the Tor source every time it changes in our development
  528. repository.
  529. We need to {\bf get more participants}, so that we can test a larger variety
  530. of platforms. (Previously, we've only found out when our code had broken on
  531. obscure platforms when somebody got around to building it.)
  532. We need also to {\bf add our dependencies} to the build farm, so that we can
  533. ensure that libraries we need (especially libevent) do not stop working on
  534. any important platform between one release and the next.
  535. \plan{This is ongoing as more buildbots arrive.}
  536. \subsection{Improved testing harness}
  537. Currently, our {\bf unit tests} cover only about 20\% of the code base. This
  538. is uncomfortably low; we should write more and switch to a more flexible
  539. testing framework.\plan{Ongoing basis, time permitting.}
  540. We should also write flexible {\bf automated single-host deployment tests} so
  541. we can more easily verify that the current codebase works with the
  542. network.\plan{Worthwhile in 2007; would save lots of time. 2-4 weeks.}
  543. We should build automated {\bf stress testing} frameworks so we can see which
  544. realistic loads cause Tor to perform badly, and regularly profile Tor against
  545. these loads. This would give us {\it in vitro} performance values to
  546. supplement our deployment experience.\plan{Worthwhile in 2007; 2-6 weeks.}
  547. We should improve our memory profiling code.\plan{...}
  548. \subsection{Centralized build system}
  549. We currently rely on a separate packager to maintain the packaging system and
  550. to build Tor on each platform for which we distribute binaries. Separate
  551. package maintainers is sensible, but separate package builders has meant
  552. long turnaround times between source releases and package releases. We
  553. should create the necessary infrastructure for us to produce binaries for all
  554. major packages within an hour or so of source release.\plan{We should
  555. brainstorm this at least in 2007.}
  556. \subsection{Improved metrics}
  557. We need a way to {\bf measure the network's health, capacity, and degree of
  558. utilization}. Our current means for doing this are ad hoc and not
  559. completely accurate
  560. We need better ways to {\bf tell which countries are users are coming from,
  561. and how many there are}. A good perspective of the network helps us
  562. allocate resources and identify trouble spots, but our current approaches
  563. will work less and less well as we make it harder for adversaries to
  564. enumerate users. We'll probably want to shift to a smarter, statistical
  565. approach rather than our current ``count and extrapolate'' method.
  566. \plan{All of this in 2007 if funded; 4-8 weeks}
  567. % \tmp{We'd like to know how much of the network is getting used.}
  568. % I think this is covered above -NM
  569. \subsection{Controller library}
  570. We've done lots of design and development on our controller interface, which
  571. allows UI applications and other tools to interact with Tor. We could
  572. encourage the development of more such tools by releasing a {\bf
  573. general-purpose controller library}, ideally with API support for several
  574. popular programming languages.\plan{2006 or 2007; 1-2 weeks.}
  575. \section{User experience}
  576. \subsection{Get blocked less, get blocked less broadly}
  577. Right now, some services block connections from the Tor network because
  578. they don't have a better
  579. way to keep vandals from abusing them than blocking IP addresses associated
  580. with vandalism. Our approach so far has been to educate them about better
  581. solutions that currently exist, but we should also {\bf create better
  582. solutions for limiting vandalism by anonymous users} like credential and
  583. blind-signature based implementations, and encourage their use. Other
  584. promising starting points including writing a patch and explanation for
  585. Wikipedia, and helping Freenode to document, maintain, and expand its
  586. current Tor-friendly position.\plan{Do a writeup here in 2007; 1-2 weeks.}
  587. Those who do block Tor users also block overbroadly, sometimes blacklisting
  588. operators of Tor servers that do not permit exit to their services. We could
  589. obviate innocent reasons for doing so by designing a {\bf narrowly-targeted Tor
  590. RBL service} so that those who wanted to overblock Tor could no longer
  591. plead incompetence.\plan{Possibly in 2007 if we decide it's a good idea; 3
  592. weeks.}
  593. \subsection{All-in-one bundle}
  594. We need a well-tested, well-documented bundle of Tor and supporting
  595. applications configured to use it correctly. We have an initial
  596. implementation well under way, but it will need additional work in
  597. identifying requisite Firefox extensions, identifying security threats,
  598. improving user experience, and so on. This will need significantly more work
  599. before it's ready for a general public release.
  600. \subsection{LiveCD Tor}
  601. We need a nice bootable livecd containing a minimal OS and a few applications
  602. configured to use it correctly. The Anonym.OS project demonstrated that this
  603. is quite feasible, but their project is not currently maintained.
  604. \subsection{A Tor client in a VM}
  605. \tmp{a.k.a JanusVM} which is quite related to the firewall-level deployment
  606. section below. JanusVM is a Linux kernel running in VMWare. It gets an IP
  607. address from the network, and serves as a DHCP server for its host Windows
  608. machine. It intercepts all outgoing traffic and redirects it into Privoxy,
  609. Tor, etc. This Linux-in-Windows approach may help us with scalability in
  610. the short term, and it may also be a good long-term solution rather than
  611. accepting all security risks in Windows.
  612. %\subsection{Interface improvements}
  613. %\tmp{Allow controllers to manipulate server status.}
  614. % (Why is this in the User Experience section?) -RD
  615. % I think it's better left to a generic ``make controller iface better'' item.
  616. \subsection{Firewall-level deployment}
  617. Another useful deployment mode for some users is using {\bf Tor in a firewall
  618. configuration}, and directing all their traffic through Tor. This can be a
  619. little tricky to set up currently, but it's an effective way to make sure no
  620. traffic leaves the host un-anonymized. To achieve this, we need to {\bf
  621. improve and port our new TransPort} feature which allows Tor to be used
  622. without SOCKS support; to {\bf add an anonymizing DNS proxy} feature to Tor;
  623. and to {\bf construct a recommended set of firewall configurations} to redirect
  624. traffic to Tor.
  625. This is an area where {\bf deployment via a livecd}, or an installation
  626. targeted at specialized home routing hardware, could be useful.
  627. \subsection{Assess software and configurations for anonymity risks}
  628. Right now, users and packagers are more or less on their own when selecting
  629. Firefox extensions. We should {\bf assemble a recommended list of browser
  630. extensions} through experiment, and include this in the application bundles
  631. we distribute.
  632. We should also describe {\bf best practices for using Tor with each class of
  633. application}. For example, Ethan Zuckerman has written a detailed
  634. tutorial on how to use Tor, Firefox, GMail, and Wordpress to blog with
  635. improved safety. There are many other cases on the Internet where anonymity
  636. would be helpful, and there are a lot of ways to screw up using Tor.
  637. The Foxtor and Torbutton extensions serve similar purposes; we should pick a
  638. favorite, and merge in the useful features of the other.
  639. %\tmp{clean up our own bundled software:
  640. %E.g. Merge the good features of Foxtor into Torbutton}
  641. %
  642. % What else did you have in mind? -NM
  643. \subsection{Localization}
  644. Right now, most of our user-facing code is internationalized. We need to
  645. internationalize the last few hold-outs (like the Tor expert installer), and get
  646. more translations for the parts that are already internationalized.
  647. Also, we should look into a {\bf unified translator's solution}. Currently,
  648. since different tools have been internationalized using the
  649. framework-appropriate method, different tools require translators to localize
  650. them via different interfaces. Inasmuch as possible, we should make
  651. translators only need to use a single tool to translate the whole Tor suite.
  652. \section{Support}
  653. It would be nice to set up some {\bf user support infrastructure} and
  654. {\bf contributor support infrastructure}, especially focusing on server
  655. operators and on coordinating volunteers.
  656. This includes intuitive and easy ticket systems for bug reports and
  657. feature suggestions (not just mailing lists with a half dozen people
  658. and no clear roles for who answers what), but it also includes a more
  659. personalized and efficient framework for interaction so we keep the
  660. attention and interest of the contributors, and so we make them feel
  661. helpful and wanted.
  662. \section{Documentation}
  663. \subsection{Unified documentation scheme}
  664. We need to {\bf inventory our documentation.} Our documentation so far has
  665. been mostly produced on an {\it ad hoc} basis, in response to particular
  666. needs and requests. We should figure out what documentation we have, which of
  667. it (if any) should get priority, and whether we can't put it all into a
  668. single format.
  669. We could {\bf unify the docs} into a single book-like thing. This will also
  670. help us identify what sections of the ``book'' are missing.
  671. \subsection{Missing technical documentation}
  672. We should {\bf revise our design paper} to reflect the new decisions and
  673. research we've made since it was published in 2004. This will help other
  674. researchers evaluate and suggest improvements to Tor's current design.
  675. Other projects sometimes implement the client side of our protocol. We
  676. encourage this, but we should write {\bf a document about how to avoid
  677. excessive resource use}, so we don't need to worry that they will do so
  678. without regard to the effect of their choices on server resources.
  679. \subsection{Missing user documentation}
  680. Our documentation falls into two broad categories: some is `discoursive' and
  681. explains in detail why users should take certain actions, and other
  682. documentation is `comprehensive' and describes all of Tor's features. Right
  683. now, we have no document that is both deep, readable, and thorough. We
  684. should correct this by identifying missing spots in our design.
  685. \bibliographystyle{plain} \bibliography{tor-design}
  686. \end{document}