| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505 | \documentclass{llncs}\usepackage{url}\usepackage{amsmath}\usepackage{epsfig}\setlength{\textwidth}{5.9in}\setlength{\textheight}{8.4in}\setlength{\topmargin}{.5cm}\setlength{\oddsidemargin}{1cm}\setlength{\evensidemargin}{1cm}\newenvironment{tightlist}{\begin{list}{$\bullet$}{  \setlength{\itemsep}{0mm}    \setlength{\parsep}{0mm}    %  \setlength{\labelsep}{0mm}    %  \setlength{\labelwidth}{0mm}    %  \setlength{\topsep}{0mm}    }}{\end{list}}\begin{document}\title{Challenges in deploying low-latency anonymity (DRAFT)}\author{Roger Dingledine\inst{1} \andNick Mathewson\inst{1} \andPaul Syverson\inst{2}}\institute{The Free Haven Project \email{<\{arma,nickm\}@freehaven.net>} \andNaval Research Laboratory \email{<syverson@itd.nrl.navy.mil>}}\maketitle\pagestyle{plain}\begin{abstract}  There are many unexpected or unexpectedly difficult obstacles to  deploying anonymous communications.  Drawing on our experiences deploying  Tor (the second-generation onion routing network), we describe social  challenges and technical issues that must be faced  in building, deploying, and sustaining a scalable, distributed, low-latency  anonymity network.\end{abstract}\section{Introduction}% Your network is not practical unless it is sustainable and distributed.Anonymous communication is full of surprises.  This paper discusses someunexpected challenges arising from our experiences deploying Tor, alow-latency general-purpose anonymous communication system.  We will discusssome of the difficulties we have experienced and how we have met them (or howwe plan to meet them, if we know).  We also discuss some lesstroublesome open problems that we must nevertheless eventually address.%We will describe both those future challenges that we intend to explore and%those that we have decided not to explore and why.Tor is an overlay network for anonymizing TCP streams over theInternet~\cite{tor-design}.  It addresses limitations in earlier OnionRouting designs~\cite{or-ih96,or-jsac98,or-discex00,or-pet00} by addingperfect forward secrecy, congestion control, directory servers, dataintegrity, configurable exit policies, and location-hidden services usingrendezvous points.  Tor works on the real-world Internet, requires no specialprivileges or kernel modifications, requires little synchronization orcoordination between nodes, and provides a reasonable trade-off betweenanonymity, usability, and efficiency.We deployed the public Tor network in October 2003; since then it hasgrown to over a hundred volunteer-operated nodesand as much as 80 megabits ofaverage traffic per second.  Tor's research strategy has focused on deployinga network to as many users as possible; thus, we have resisted designs thatwould compromise deployability by imposing high resource demands on nodeoperators, and designs that would compromise usability by imposingunacceptable restrictions on which applications we support.  Although thisstrategy hasdrawbacks (including a weakened threat model, as discussed below), it hasmade it possible for Tor to serve many thousands of users and attractfunding from diverse sources whose goals range from security on anational scale down to individual liberties.In~\cite{tor-design} we gave an overall view of Tor'sdesign and goals.  Here we describe some policy, social, and technicalissues that we face as we continue deployment.Rather than providing complete solutions to every problem, weinstead lay out the challenges and constraints that we have observed whiledeploying Tor.  In doing so, we aim to provide a research agendaof general interest to projects attempting to buildand deploy practical, usable anonymity networks in the wild.%While the Tor design paper~\cite{tor-design} gives an overall view its%design and goals,%this paper describes the policy and technical issues that Tor faces as%we continue deployment. Rather than trying to provide complete solutions%to every problem here, we lay out the assumptions and constraints%that we have observed through deploying Tor in the wild. In doing so, we%aim to create a research agenda for others to%help in addressing these issues.% Section~\ref{sec:what-is-tor} gives an%overview of the Tor%design and ours goals. Sections~\ref{sec:crossroads-policy}%and~\ref{sec:crossroads-design} go on to describe the practical challenges,%both policy and technical respectively,%that stand in the way of moving%from a practical useful network to a practical useful anonymous network.%\section{What Is Tor}\section{Background}Here we give a basic overview of the Tor design and its properties, andcompare Tor to other low-latency anonymity designs.\subsection{Tor, threat models, and distributed trust}\label{sec:what-is-tor}%Here we give a basic overview of the Tor design and its properties. For%details on the design, assumptions, and security arguments, we refer%the reader to the Tor design paper~\cite{tor-design}.Tor provides \emph{forward privacy}, so that users can connect toInternet sites without revealing their logical or physical locationsto those sites or to observers.  It also provides \emph{location-hiddenservices}, so that servers can support authorized users withoutgiving an effective vector for physical or online attackers.Tor provides these protections even when a portion of itsinfrastructure is compromised.To connect to a remote server via Tor, the client software learns a signedlist of Tor nodes from one of several central \emph{directory servers}, andincrementally creates a private pathway or \emph{circuit} of encryptedconnections through authenticated Tor nodes on the network, negotiating aseparate set of encryption keys for each hop along the circuit.  The circuitis extended one node at a time, and each node along the way knows only theimmediately previous and following nodes in the circuit, so no individual Tornode knows the complete path that each fixed-sized data packet (or\emph{cell}) will take.%Because each node sees no more than one hop in the%circuit,Thus, neither an eavesdropper nor a compromised node cansee both the connection's source and destination.  Later requests use a newcircuit, to complicate long-term linkability between different actions bya single user.Tor also helps servers hide their locations whileproviding services such as web publishing or instantmessaging.  Using ``rendezvous points'', other Tor users canconnect to these authenticated hidden services, neither one learning theother's network identity.Tor attempts to anonymize the transport layer, not the application layer.This approach is useful for applications such as SSHwhere authenticated communication is desired. However, when anonymity fromthose with whom we communicate is desired,application protocols that include personally identifying information needadditional application-level scrubbing proxies, such asPrivoxy~\cite{privoxy} for HTTP\@.  Furthermore, Tor does not relay arbitraryIP packets; it only anonymizes TCP streams and DNS requests%, and only supports%connections via SOCKS(but see Section~\ref{subsec:tcp-vs-ip}).Most node operators do not want to allow arbitrary TCP traffic. % to leave%their server.To address this, Tor provides \emph{exit policies} soeach exit node can block the IP addresses and ports it is unwilling to allow.Tor nodes advertise their exit policies to the directory servers, so thatclient can tell which nodes will support their connections.As of January 2005, the Tor network has grown to around a hundred nodeson four continents, with a total capacity exceeding 1Gbit/s. Appendix Ashows a graph of the number of working nodes over time, as well as agraph of the number of bytes being handled by the network over time.The network is now sufficiently diverse for further developmentand testing; but of course we always encourage new nodesto join.Tor research and development has been funded by ONR and DARPAfor use in securing governmentcommunications, and by the Electronic Frontier Foundation for usein maintaining civil liberties for ordinary citizens online. The Torprotocol is one of the leading choicesfor the anonymizing layer in the European Union's PRIME directive tohelp maintain privacy in Europe.The AN.ON project in Germanyhas integrated an independent implementation of the Tor protocol intotheir popular Java Anon Proxy anonymizing client.% This wide variety of%interests helps maintain both the stability and the security of the%network.\medskip\noindent{\bf Threat models and design philosophy.}The ideal Tor network would be practical, useful and anonymous. Whentrade-offs arise between these properties, Tor's research strategy has beento remain useful enough to attract many users,and practical enough to support them.  Only subject to theseconstraints do we try to maximizeanonymity.\footnote{This is not the only possibledirection in anonymity research: designs exist that provide more anonymitythan Tor at the expense of significantly increased resource requirements, ordecreased flexibility in application support (typically because of increasedlatency).  Such research does not typically abandon aspirations towarddeployability or utility, but instead tries to maximize deployability andutility subject to a certain degree of structural anonymity (structural becauseusability and practicality affect usage which affects the actual anonymityprovided by the network \cite{econymics,back01}).}%{We believe that these%approaches can be promising and useful, but that by focusing on deploying a%usable system in the wild, Tor helps us experiment with the actual parameters%of what makes a system ``practical'' for volunteer operators and ``useful''%for home users, and helps illuminate undernoticed issues which any deployed%volunteer anonymity network will need to address.}Because of our strategy, Tor has a weaker threat model than many designs inthe literature.  In particular, because wesupport interactive communications without impractically expensive padding,we fall prey to a varietyof intra-network~\cite{back01,attack-tor-oak05,flow-correlation04} andend-to-end~\cite{danezis-pet2004,SS03} anonymity-breaking attacks.Tor does not attempt to defend against a global observer.  In general, anattacker who can measure both ends of a connection through the Tor network% I say 'measure' rather than 'observe', to encompass murdoch-danezis% style attacks. -RDcan correlate the timing and volume of data on that connection as it entersand leaves the network, and so link communication partners.Known solutions to this attack would seem to require introducing aprohibitive degree of traffic padding between the user and the network, orintroducing an unacceptable degree of latency (but see Section\ref{subsec:mid-latency}).  Also, it is not clear that these methods wouldwork at all against a minimally active adversary who could introduce timingpatterns or additional traffic.  Thus, Tor only attempts to defend againstexternal observers who cannot observe both sides of a user's connections.Against internal attackers who sign up Tor nodes, the situation is morecomplicated.  In the simplest case, if an adversary has compromised $c$ of$n$ nodes on the Tor network, then the adversary will be able to compromisea random circuit with probability $\frac{c^2}{n^2}$ (since the circuitinitiator chooses hops randomly).  But there arecomplicating factors:(1)~If the user continues to build random circuits over time, an adversary  is pretty certain to see a statistical sample of the user's traffic, and  thereby can build an increasingly accurate profile of her behavior.  (See  Section~\ref{subsec:helper-nodes} for possible solutions.)(2)~An adversary who controls a popular service outside the Tor network  can be certain to observe all connections to that service; he  can therefore trace connections to that service with probability  $\frac{c}{n}$.(3)~Users do not in fact choose nodes with uniform probability; they  favor nodes with high bandwidth or uptime, and exit nodes that  permit connections to their favorite services.(See Section~\ref{subsec:routing-zones} for discussion of largeradversaries and our dispersal goals.)% I'm trying to make this paragraph work without reference to the% analysis/confirmation distinction, which we haven't actually introduced% yet, and which we realize isn't very stable anyway.  Also, I don't want to% deprecate these attacks if we can't demonstrate that they don't work, since% in case they *do* turn out to work well against Tor, we'll look pretty% foolish. -NMMore powerful attacks may exist. In \cite{hintz-pet02} it wasshown that an attacker who can catalog data volumes of popularresponder destinations (say, websites with consistent data volumes) may notneed toobserve both ends of a stream to learn source-destination links for thoseresponders.Similarly, latencies of going through various routes can becataloged~\cite{back01} to connect endpoints.% Also, \cite{kesdogan:pet2002} takes the% attack another level further, to narrow down where you could be% based on an intersection attack on subpages in a website. -RDIt has not yet been shown whether these attacks will succeed or failin the presence of the variability and volume quantization introduced by theTor network, but it seems likely that these factors will at best delayrather than halt the attacks in the cases where they succeed.Along similar lines, the same paper suggests a ``cloggingattack'' in which the throughput on a circuit is observed to slowdown when an adversary clogs the right nodes with his own traffic.To determine the nodes in a circuit this attack requires the abilityto continuously monitor the traffic exiting the network on a circuitthat is up long enough to probe all network nodes in binary fashion.% Though somewhat related, clogging and interference are really different% attacks with different assumptions about adversary distribution and% capabilities as well as different techniques. -pfsMurdoch and Danezis~\cite{attack-tor-oak05} show a practicalinterference attack against portions ofthe fifty node Tor network as deployed in mid 2004.An outside attacker can actively trace a circuit through the Tor networkby observing changes in the latency of hisown traffic sent through various Tor nodes. This can be donesimultaneously at multiple nodes; however, like clogging,this attack only revealsthe Tor nodes in the circuit, not initiator and responder addresses,so it is still necessary to discover the endpoints to complete aneffective attack. Increasing the size and diversity of the Tor network mayhelp counter these attacks.%discuss $\frac{c^2}{n^2}$, except how in practice the chance of owning%the last hop is not $c/n$ since that doesn't take the destination (website)%into account. so in cases where the adversary does not also control the%final destination we're in good shape, but if he *does* then we'd be better%off with a system that lets each hop choose a path.%%Isn't it more accurate to say ``If the adversary _always_ controls the final% dest, we would be just as well off with such as system.'' ?  If not, why% not? -nm% Sure. In fact, better off, since they seem to scale more easily. -rd%Murdoch and Danezis describe an attack%\cite{attack-tor-oak05} that lets an attacker determine the nodes used%in a circuit; yet s/he cannot identify the initiator or responder,%e.g., client or web server, through this attack. So the endpoints%remain secure, which is the goal. It is conceivable that an%adversary could attack or set up observation of all connections%to an arbitrary Tor node in only a few minutes.  If such an adversary%were to exist, s/he could use this probing to remotely identify a node%for further attack.  Of more likely immediate practical concern%an adversary with active access to the responder traffic%wants to keep a circuit alive long enough to attack an identified%node. Thus it is important to prevent the responding end of the circuit%from keeping it open indefinitely. %Also, someone could identify nodes in this way and if in their%jurisdiction, immediately get a subpoena (if they even need one)%telling the node operator(s) that she must retain all the active%circuit data she now has.%Further, the enclave model, which had previously looked to be the most%generally secure, seems particularly threatened by this attack, since%it identifies endpoints when they're also nodes in the Tor network:%see Section~\ref{subsec:helper-nodes} for discussion of some ways to%address this issue.\medskip\noindent{\bf Distributed trust.}In practice Tor's threat model is based ondispersal and diversity.Our defense lies in having a diverse enough set of nodesto prevent most real-worldadversaries from being in the right places to attack users,by distributing each transactionover several nodes in the network.  This ``distributed trust'' approachmeans the Tor network can be safely operated and used by a wide varietyof mutually distrustful users, providing sustainability and security.%than some previous attempts at anonymizing networks.No organization can achieve this security on its own.  If a singlecorporation or government agency were to build a private network toprotect its operations, any connections entering or leaving that networkwould be obviously linkable to the controlling organization.  The membersand operations of that agency would be easier, not harder, to distinguish.Instead, to protect our networks from traffic analysis, we mustcollaboratively blend the traffic from many organizations and privatecitizens, so that an eavesdropper can't tell which users are which,and who is looking for what information.  %By bringing more users onto%the network, all users become more secure~\cite{econymics}.%[XXX I feel uncomfortable saying this last sentence now. -RD]%[So, I took it out. I think we can do without it. -PFS]The Tor network has a broad range of users, including ordinary citizensconcerned about their privacy, corporationswho don't want to reveal information to their competitors, and lawenforcement and government intelligence agencies who needto do operations on the Internet without being noticed.Naturally, organizations will not want to depend on others for theirsecurity.  If most participating providers are reliable, Tor toleratessome hostile infiltration of the network.  For maximum protection,the Tor design includes an enclave approach that lets data be encrypted(and authenticated) end-to-end, so high-sensitivity users can be sure ithasn't been read or modified.  This even works for Internet services thatdon't have built-in encryption and authentication, such as unencryptedHTTP or chat, and it requires no modification of those services.\subsection{Related work}Tor differs from other deployed systems for traffic analysis resistancein its security and flexibility.  Mix networks such asMixmaster~\cite{mixmaster-spec} or its successor Mixminion~\cite{minion-design}gain the highest degrees of anonymity at the expense of introducing highlyvariable delays, making them unsuitable for applications such as webbrowsing.  Commercial single-hopproxies~\cite{anonymizer} can provide good performance, buta single compromise can expose all users' traffic, and a single-pointeavesdropper can perform traffic analysis on the entire network.%Also, their proprietary implementations place any infrastructure that%depends on these single-hop solutions at the mercy of their providers'%financial health as well as network security.The JavaAnon Proxy~\cite{web-mix} provides similar functionality to Tor buthandles only web browsing rather than all TCP\@.%Some peer-to-peer file-sharing overlay networks such as%Freenet~\cite{freenet} and Mute~\cite{mute}The Freedom network from Zero-Knowledge Systems~\cite{freedom21-security}was even more flexible than Tor intransporting arbitrary IP packets, and also supportedpseudonymity in addition to anonymity; but it hada different approach to sustainability (collecting money from usersand paying ISPs to run Tor nodes), and was eventually shut down due to financialload.  Finally, %potentially more scalable% [I had added 'potentially' because the scalability of these designs% is not established, and I am uncomfortable making the% bolder unmodified assertion. Roger took 'potentially' out.% Here's an attempt at more neutral wording -pfs]peer-to-peer designs that are intended to be more scalable,for example Tarzan~\cite{tarzan:ccs02} andMorphMix~\cite{morphmix:fc04}, have been proposed in the literature buthave not been fielded. These systems differ somewhatin threat model and presumably practical resistance to threats.Note that MorphMix differs from Tor only innode discovery and circuit setup; so Tor's architecture is flexibleenough to contain a MorphMix experiment.We direct the interested readerto~\cite{tor-design} for a more in-depth review of related work.%XXXX six-four. crowds. i2p.%XXXX%have a serious discussion of morphmix's assumptions, since they would%seem to be the direct competition. in fact tor is a flexible architecture%that would encompass morphmix, and they're nearly identical except for%path selection and node discovery. and the trust system morphmix has%seems overkill (and/or insecure) based on the threat model we've picked.% this para should probably move to the scalability / directory system. -RD% Nope. Cut for space, except for small comment added above -PFS\section{Social challenges}Many of the issues the Tor project needs to address extend beyondsystem design and technology development. In particular, theTor project's \emph{image} with respect to its users and the rest ofthe Internet impacts the security it can provide.With this image issue in mind, this section discusses the Tor user base andTor's interaction with other services on the Internet.\subsection{Communicating security}Usability for anonymity systemscontributes to their security, because usabilityaffects the possible anonymity set~\cite{econymics,back01}.Conversely, an unusable system attracts few users and thus can't providemuch anonymity.This phenomenon has a second-order effect: knowing this, users shouldchoose which anonymity system to use based in part on how usableand secure\emph{others} will find it, in order to get the protection of a largeranonymity set. Thus we might supplement the adage ``usability is a securityparameter''~\cite{back01} with a new one: ``perceived usability is asecurity parameter.'' From here we can better understand the effectsof publicity on security: the more convincing youradvertising, the more likely people will believe you have users, and thusthe more users you will attract. Perversely, over-hyped systems (if theyare not too broken) may be a better choice than modestly promoted ones,if the hype attracts more users~\cite{usability-network-effect}.So it follows that we should come up with ways to accurately communicatethe available security levels to the user, so she can make informeddecisions. JAP aims to do this by including acomforting `anonymity meter' dial in the software's graphical interface,giving the user an impression of the level of protection for her currenttraffic.However, there's a catch. For users to share the same anonymity set,they need to act like each other. An attacker who can distinguisha given user's traffic from the rest of the traffic will not bedistracted by anonymity set size. For high-latency systems likeMixminion, where the threat model is based on mixing messages with eachother, there's an arms race between end-to-end statistical attacks andcounter-strategies~\cite{statistical-disclosure,minion-design,e2e-traffic,trickle02}.But for low-latency systems like Tor, end-to-end \emph{trafficcorrelation} attacks~\cite{danezis-pet2004,defensive-dropping,SS03}allow an attacker who can observe both ends of a communicationto correlate packet timing and volume, quickly linkingthe initiator to her destination.Like Tor, the current JAP implementation does not pad connectionsapart from using small fixed-size cells for transport. In fact,JAP's cascade-based network topology may be more vulnerable to theseattacks, because its network has fewer edges. JAP was born out ofthe ISDN mix design~\cite{isdn-mixes}, where padding made sense becauseevery user had a fixed bandwidth allocation and altering the timingpattern of packets could be immediately detected. But in its current contextas an Internet web anonymizer, adding sufficient padding to JAPwould probably be prohibitively expensive and ineffective against aminimally active attacker.\footnote{Even if JAP couldfund higher-capacity nodes indefinitely, our experiencesuggests that many users would not accept the increased per-userbandwidth requirements, leading to an overall much smaller user base. Butsee Section~\ref{subsec:mid-latency}.} Therefore, since under this threatmodel the number of concurrent users does not seem to have much impacton the anonymity provided, we suggest that JAP's anonymity meter is notaccurately communicating security levels to its users.On the other hand, while the number of active concurrent users may notmatter as much as we'd like, it still helps to have some other userson the network. We investigate this issue next.\subsection{Reputability and perceived social value}Another factor impacting the network's security is its reputability:the perception of its social value based on its current user base. If Alice isthe only user who has ever downloaded the software, it might be sociallyaccepted, but she's not getting much anonymity. Add a thousandactivists, and she's anonymous, but everyone thinks she's an activist too.Add a thousanddiverse citizens (cancer survivors, privacy enthusiasts, and so on)and now she's harder to profile.Furthermore, the network's reputability affects its operator base: more peopleare willing to run a service if they believe it will be used by human rightsworkers than if they believe it will be used exclusively for disreputableends.  This effect becomes stronger if node operators themselves think theywill be associated with their users' disreputable ends.So the more cancer survivors on Tor, the better for the human rightsactivists. The more malicious hackers, the worse for the normal users. Thus,reputability is an anonymity issue for two reasons. First, it impactsthe sustainability of the network: a network that's always about to beshut down has difficulty attracting and keeping adequate nodes.Second, a disreputable network is more vulnerable to legal andpolitical attacks, since it will attract fewer supporters.While people therefore have an incentive for the network to be used for``more reputable'' activities than their own, there are still trade-offsinvolved when it comes to anonymity. To follow the above example, anetwork used entirely by cancer survivors might welcome file sharersonto the network, though of course they'd prefer a widervariety of users.Reputability becomes even more tricky in the case of privacy networks,since the good uses of the network (such as publishing by journalists indangerous countries) are typically kept private, whereas network abusesor other problems tend to be more widely publicized.The impact of public perception on security is especially importantduring the bootstrapping phase of the network, where the first fewwidely publicized uses of the network can dictate the types of users itattracts next.As an example, some U.S.~Department of Energypenetration testing engineers are tasked with compromising DoE computersfrom the outside. They only have a limited number of ISPs from which tolaunch their attacks, and they found that the defenders were recognizingattacks because they came from the same IP space. These engineers wantedto use Tor to hide their tracks. First, from a technical standpoint,Tor does not support the variety of IP packets one would like to use insuch attacks (see Section~\ref{subsec:tcp-vs-ip}). But aside from this,we also decided that it would probably be poor precedent to encouragesuch use---even legal use that improves national security---and managedto dissuade them.%% "outside of academia, jap has just lost, permanently".  (That is,%% even though the crime detection issues are resolved and are unlikely%% to go down the same way again, public perception has not been kind.)\subsection{Sustainability and incentives}One of the unsolved problems in low-latency anonymity designs ishow to keep the nodes running.  ZKS's Freedom networkdepended on paying third parties to run its servers; the JAP project'sbandwidth depends on grants to pay for its bandwidth andadministrative expenses.  In Tor, bandwidth and administrative costs aredistributed across the volunteers who run Tor nodes, so we at least havereason to think that the Tor network could survive without continued researchfunding.\footnote{It also helps that Tor is implemented with free and open  source software that can be maintained by anybody with the ability and  inclination.}  But why are these volunteers running nodes, and what can wedo to encourage more volunteers to do so?We have not formally surveyed Tor node operators to learn why they arerunning nodes, butfrom the information they have provided, it seems that many of them run Tornodes for reasons of personal interest in privacy issues.  It is possiblethat others are running Tor nodes to protect their ownanonymity, but of course they arehardly likely to tell us specifics if they are.%Significantly, Tor's threat model changes the anonymity incentives for running%a node.  In a high-latency mix network, users can receive additional%anonymity by running their own node, since doing so obscures when they are%injecting messages into the network.  But, anybody observing all I/O to a Tor%node can tell when the node is generating traffic that corresponds to%none of its incoming traffic.%%I didn't buy the above for reason's subtle enough that I just cut it -PFSTor exit node operators do attain a degree of``deniability'' for traffic that originates at that exit node.  For  example, it is likely in practice that HTTP requests from a Tor node's IP  will be assumed to be from the Tor network.  More significantly, people and organizations who use Tor for  anonymity depend on the  continued existence of the Tor network to do so; running a node helps to  keep the network operational.%\item Local Tor entry and exit nodes allow users on a network to run in an%  `enclave' configuration.  [XXXX need to resolve this. They would do this%   for E2E encryption + auth?]%We must try to make the costs of running a Tor node easily minimized.Since Tor is run by volunteers, the most crucial software usability issue isusability by operators: when an operator leaves, the network becomes lessusable by everybody.  To keep operators pleased, we must try to keep Tor'sresource and administrative demands as low as possible.Because of ISP billing structures, many Tor operators have underused capacitythat they are willing to donate to the network, at no additional monetarycost to them.  Features to limit bandwidth have been essential to adoption.Also useful has been a ``hibernation'' feature that allows a Tor node thatwants to provide high bandwidth, but no more than a certain amount in agiving billing cycle, to become dormant once its bandwidth is exhausted, andto reawaken at a random offset into the next billing cycle.  This feature hasinteresting policy implications, however; seethe next section below.Exit policies help to limit administrative costs by limiting the frequency ofabuse complaints (see Section~\ref{subsec:tor-and-blacklists}). We discusstechnical incentive mechanisms in Section~\ref{subsec:incentives-by-design}.%[XXXX say more.  Why else would you run a node? What else can we do/do we%  already do to make running a node more attractive?]%[We can enforce incentives; see Section 6.1. We can rate-limit clients.%  We can put "top bandwidth nodes lists" up a la seti@home.]\subsection{Bandwidth and file-sharing}\label{subsec:bandwidth-and-file-sharing}%One potentially problematical area with deploying Tor has been our response%to file-sharing applications.Once users have configured their applications to work with Tor, the largestremaining usability issue is performance.  Users begin to sufferwhen websites ``feel slow.''Clients currently try to build their connections through nodes that theyguess will have enough bandwidth.  But even if capacity is allocatedoptimally, it seems unlikely that the current network architecture will haveenough capacity to provide every user with as much bandwidth as she wouldreceive if she weren't using Tor, unless far more nodes join the network.%Limited capacity does not destroy the network, however.  Instead, usage tends%towards an equilibrium: when performance suffers, users who value performance%over anonymity tend to leave the system, thus freeing capacity until the%remaining users on the network are exactly those willing to use that capacity%there is.Much of Tor's recent bandwidth difficulties have come from file-sharingapplications.  These applications provide two challenges toany anonymizing network: their intensive bandwidth requirement, and thedegree to which they are associated (correctly or not) with copyrightinfringement.High-bandwidth protocols can make the network unresponsive,but tend to be somewhat self-correcting as lack of bandwidth drives awayusers who need it.  Issues of copyright violation,however, are more interesting.  Typical exit node operators want to helppeople achieve private and anonymous speech, not to help people (say) hostVin Diesel movies for download; and typical ISPs would rather notdeal with customers who draw menacing lettersfrom the MPAA\@.  While it is quite likely that the operators are doing nothingillegal, many ISPs have policies of dropping users who get repeated legalthreats regardless of the merits of those threats, and many operators wouldprefer to avoid receiving even meritless legal threats.So when letters arrive, operators are likely to facepressure to block file-sharing applications entirely, in order to avoid thehassle.But blocking file-sharing is not easy: popularprotocols have evolved to run on non-standard ports toget around other port-based bans.  Thus, exit node operators who want toblock file-sharing would have to find some way to integrate Tor with aprotocol-aware exit filter.  This could be a technically expensiveundertaking, and one with poor prospects: it is unlikely that Tor exit nodeswould succeed where so many institutional firewalls have failed.  Anotherpossibility for sensitive operators is to run a restrictive node thatonly permits exit connections to a restricted range of ports that arenot frequently associated with file sharing.  There are increasingly few suchports.Other possible approaches might include rate-limiting connections, especiallylong-lived connections or connections to file-sharing ports, so thathigh-bandwidth connections do not flood the network.  We might also want togive priority to cells on low-bandwidth connections to keep them interactive,but this could have negative anonymity implications.For the moment, it seems that Tor's bandwidth issues have rendered itunattractive for bulk file-sharing traffic; this may continue to be so in thefuture.  Nevertheless, Tor will likely remain attractive for limited use infile-sharing protocols that have separate control and data channels.%[We should say more -- but what?  That we'll see a similar%  equilibriating effect as with bandwidth, where sensitive ops switch to%  middleman, and we become less useful for file-sharing, so the file-sharing%  people back off, so we get more ops since there's less file-sharing, so the%  file-sharers come back, etc.]%XXXX%in practice, plausible deniability is hypothetical and doesn't seem very%convincing. if ISPs find the activity antisocial, they don't care *why*%your computer is doing that behavior.\subsection{Tor and blacklists}\label{subsec:tor-and-blacklists}It was long expected that, alongside legitimate users, Tor would alsoattract troublemakers who exploit Tor to abuse services on theInternet with vandalism, rude mail, and so on.Our initial answer to this situation was to use ``exit policies''to allow individual Tor nodes to block access to specific IP/port ranges.This approach aims to make operators more willing to run Tor by allowingthem to prevent their nodes from being used for abusing particularservices.  For example, all Tor nodes currently block SMTP (port 25),to avoid being used for spam.Exit policies are useful, but they are insufficient: if not all nodesblock a given service, that service may try to block Tor instead.While being blockable is important to being good netizens, we would liketo encourage services to allow anonymous access. Services should notneed to decide between blocking legitimate anonymous use and allowingunlimited abuse.This is potentially a bigger problem than it may appear.On the one hand, services should be allowed to refuse connections fromsources of possible abuse.But when a Tor node administrator decides whether he prefers to be ableto post to Wikipedia from his IP address, or to allow people to readWikipedia anonymously through his Tor node, he is making the decisionfor others as well. (For a while, Wikipediablocked all posting from all Tor nodes based on IP addresses.) Ifthe Tor node shares an address with a campus or corporate NAT,then the decision can prevent the entire population from posting.This is a loss for both Torand Wikipedia: we don't want to compete for (or divvy up) theNAT-protected entities of the world.Worse, many IP blacklists are coarse-grained: they ignore Tor's exitpolicies, partly because it's easier to implement and partlyso they can punishall Tor nodes. One IP blacklist even bansevery class C network that contains a Tor node, and recommends banning SMTPfrom these networks even though Tor does not allow SMTP at all.  Thisstrategic decision aims to discourage theoperation of anything resembling an open proxy by encouraging its neighborsto shut it down to get unblocked themselves. This pressure evenaffects Tor nodes running in middleman mode (disallowing all exits) whenthose nodes are blacklisted too.Problems of abuse occur mainly with services such as IRC networks andWikipedia, which rely on IP blocking to ban abusive users.  While at firstblush this practice might seem to depend on the anachronistic assumption thateach IP is an identifier for a single user, it is actually more reasonable inpractice: it assumes that non-proxy IPs are a costly resource, and that anabuser can not change IPs at will.  By blocking IPs which are used by Tornodes, open proxies, and service abusers, these systems hope to makeongoing abuse difficult.  Although the system is imperfect, it workstolerably well for them in practice.Of course, we would prefer that legitimate anonymous users be able toaccess abuse-prone services.  One conceivable approach would requirewould-be IRC users, for instance, to register accounts if they want toaccess the IRC network from Tor.  In practice this would notsignificantly impede abuse if creating new accounts were easily automatable;this is why services use IP blocking.  To deter abuse, pseudonymousidentities need to require a significant switching cost in resources or humantime.  Some popular webmail applicationsimpose cost with Reverse Turing Tests, but this step may not deter allabusers.  Freedom used blind signatures to limitthe number of pseudonyms for each paying account, but Tor has neither theability nor the desire to collect payment.We stress that as far as we can tell, most Tor uses are notabusive. Most services have not complained, and others are activelyworking to find ways besides banning to cope with the abuse. For example,the Freenode IRC network had a problem with a coordinated group ofabusers joining channels and subtly taking over the conversation; butwhen they labelled all users coming from Tor IPs as ``anonymous users,''removing the ability of the abusers to blend in, the abuse stopped.%The use of squishy IP-based ``authentication'' and ``authorization''%has not broken down even to the level that SSNs used for these%purposes have in commercial and public record contexts. Externalities%and misplaced incentives cause a continued focus on fighting identity%theft by protecting SSNs rather than developing better authentication%and incentive schemes \cite{price-privacy}. Similarly we can expect a%continued use of identification by IP number as long as there is no%workable alternative.%[XXX Mention correct DNS-RBL implementation. -NM]\section{Design choices}In addition to social issues, Tor also faces some design trade-offs that mustbe investigated as the network develops.\subsection{Transporting the stream vs transporting the packets}\label{subsec:stream-vs-packet}\label{subsec:tcp-vs-ip}Tor transports streams; it does not tunnel packets.It has often been suggested that like the old Freedomnetwork~\cite{freedom21-security}, Tor should``obviously'' anonymize IP trafficat the IP layer. Before this could be done, many issues need to be resolved:\begin{enumerate}\setlength{\itemsep}{0mm}\setlength{\parsep}{0mm}\item \emph{IP packets reveal OS characteristics.}  We would still need to doIP-level packet normalization, to stop things like TCP fingerprintingattacks. %There likely exist libraries that can help with this.This is unlikely to be a trivial task, given the diversity and complexity ofTCP stacks.\item \emph{Application-level streams still need scrubbing.} We still needTor to be easy to integrate with user-level application-specific proxiessuch as Privoxy. So it's not just a matter of capturing packets andanonymizing them at the IP layer.\item \emph{Certain protocols will still leak information.} For example, wemust rewrite DNS requests so they are delivered to an unlinkable DNS serverrather than the DNS server at a user's ISP; thus, we must understand theprotocols we are transporting.\item \emph{The crypto is unspecified.} First we need a block-level encryptionapproach that can provide security despitepacket loss and out-of-order delivery. Freedom allegedly had one, but it wasnever publicly specified.Also, TLS over UDP is not yet implemented orspecified, though some early work has begun~\cite{dtls}.\item \emph{We'll still need to tune network parameters.} Since the aboveencryption system will likely need sequence numbers (and maybe more) to doreplay detection, handle duplicate frames, and so on, we will be reimplementinga subset of TCP anyway---a notoriously tricky path.\item \emph{Exit policies for arbitrary IP packets mean building a secureIDS\@.}  Our node operators tell us that exit policies are one ofthe main reasons they're willing to run Tor.Adding an Intrusion Detection System to handle exit policies wouldincrease the security complexity of Tor, and would likely not work anyway,as evidenced by the entire field of IDS and counter-IDS papers. Manypotential abuse issues are resolved by the fact that Tor only transportsvalid TCP streams (as opposed to arbitrary IP including malformed packetsand IP floods), so exit policies become even \emph{more} important aswe become able to transport IP packets. We also need to compactlydescribe exit policies so clients can predictwhich nodes will allow which packets to exit.\item \emph{The Tor-internal name spaces would need to be redesigned.} Wesupport hidden service {\tt{.onion}} addresses (and other special addresses,like {\tt{.exit}} which lets the user request a particular exit node),by intercepting the addresses when they are passed to the Tor client.Doing so at the IP level would require a more complex interface betweenTor and the local DNS resolver.\end{enumerate}This list is discouragingly long, but being able to transport moreprotocols obviously has some advantages. It would be good to learn whichitems are actual roadblocks and which are easier to resolve than we think.To be fair, Tor's stream-based approach has run intostumbling blocks as well. While Tor supports the SOCKS protocol,which provides a standardized interface for generic TCP proxies, manyapplications do not support SOCKS\@. For them we already need toreplace the networking system calls with SOCKS-awareversions, or run a SOCKS tunnel locally, neither of which iseasy for the average user. %---even with good instructions.Even when applications can use SOCKS, they often make DNS requeststhemselves before handing an IP address to Tor, which advertiseswhere the user is about to connect.We are still working on more usable solutions.%So to actually provide good anonymity, we need to make sure that%users have a practical way to use Tor anonymously.  Possibilities include%writing wrappers for applications to anonymize them automatically; improving%the applications' support for SOCKS; writing libraries to help application%writers use Tor properly; and implementing a local DNS proxy to reroute DNS%requests to Tor so that applications can simply point their DNS resolvers at%localhost and continue to use SOCKS for data only.\subsection{Mid-latency}\label{subsec:mid-latency}Some users need to resist traffic correlation attacks.  Higher-latencymix-networks introduce variability into messagearrival times: as timing variance increases, timing correlation attacksrequire increasingly more data~\cite{e2e-traffic}. Can we improve Tor'sresistance without losing too much usability?We need to learn whether we can trade a small increase in latencyfor a large anonymity increase, or if we'd end up trading a lot oflatency for only a minimal security gain. A trade-off might be worthwhileeven if wecould only protect certain use cases, such as infrequent short-durationtransactions. % To answer this questionWe might adapt the techniques of~\cite{e2e-traffic} to a lower-latency mixnetwork, where the messages are batches of cells in temporally clusteredconnections. These large fixed-size batches can also help resist volumesignature attacks~\cite{hintz-pet02}. We could also experiment with trafficshaping to get a good balance of throughput and security.%Other padding regimens might supplement the%mid-latency option; however, we should continue the caution with which%we have always approached padding lest the overhead cost us too much%performance or too many volunteers.We must keep usability in mind too. How much can latency increasebefore we drive users away? We've already been forced to increaselatency slightly, as our growing network incorporates more DSL andcable-modem nodes and more nodes in distant continents. Perhaps we canharness this increased latency to improve anonymity rather than justreduce usability. Further, if we let clients label certain circuits asmid-latency as they are constructed, we could handle both types of trafficon the same network, giving users a choice between speed and security---andgiving researchers a chance to experiment with parameters to improve thequality of those choices.\subsection{Enclaves and helper nodes}\label{subsec:helper-nodes}It has long been thought that users can improve their anonymity byrunning their own node~\cite{tor-design,or-ih96,or-pet00}, and usingit in an \emph{enclave} configuration, where all their circuits beginat the node under their control. Running Tor clients or servers atthe enclave perimeter is useful when policy or other requirementsprevent individual machines within the enclave from running Torclients~\cite{or-jsac98,or-discex00}.Of course, Tor's default path length ofthree is insufficient for these enclaves, since the entry and/or exit% [edit war: without the ``and/'' the natural reading here% is aut rather than vel. And the use of the plural verb does not work -pfs]themselves are sensitive. Tor thus increments path length by onefor each sensitive endpoint in the circuit.Enclaves also help to protect against end-to-end attacks, since it'spossible that traffic coming from the node has simply been relayed fromelsewhere. However, if the node has recognizable behavior patterns,an attacker who runs nodes in the network can triangulate over time togain confidence that it is in fact originating the traffic. Wright etal.~\cite{wright03} introduce the notion of a \emph{helper node}---asingle fixed entry node for each user---to combat this \emph{predecessorattack}.However, the attack in~\cite{attack-tor-oak05} shows that simply addingto the path length, or using a helper node, may not protect an enclavenode. A hostile web server can send constant interference traffic toall nodes in the network, and learn which nodes are involved in thecircuit (though at least in the current attack, he can't learn theirorder). Using randomized path lengths may help some, since the attackerwill never be certain he has identified all nodes in the path unlesshe probes the entire network, but aslong as the network remains small this attack will still be feasible.Helper nodes also aim to help Tor clients, because choosing entry and exitpointsrandomly and changing them frequently allows an attacker who controlseven a few nodes to eventually link some of their destinations. The goalis to take the risk once and for all about choosing a bad entry node,rather than taking a new risk for each new circuit. (Choosing fixedexit nodes is less useful, since even an honest exit node still doesn'tprotect against a hostile website.) But obstacles remain beforewe can implement helper nodes.For one, the literature does not describe how to choose helpers from a listof nodes that changes over time.  If Alice is forced to choose a new entryhelper every $d$ days and $c$ of the $n$ nodes are bad, she can expectto choose a compromised node aroundevery $dc/n$ days. Statistically over time this approach only helpsif she is better at choosing honest helper nodes than at choosinghonest nodes.  Worse, an attacker with the ability to DoS nodes couldforce users to switch helper nodes more frequently, or removeother candidate helpers.%Do general DoS attacks have anonymity implications? See e.g. Adam%Back's IH paper, but I think there's more to be pointed out here. -RD% Not sure what you want to say here. -NM%Game theory for helper nodes: if Alice offers a hidden service on a%server (enclave model), and nobody ever uses helper nodes, then against%George+Steven's attack she's totally nailed. If only Alice uses a helper%node, then she's still identified as the source of the data. If everybody%uses a helper node (including Alice), then the attack identifies the%helper node and also Alice, and knows which one is which. If everybody%uses a helper node (but not Alice), then the attacker figures the real%source was a client that is using Alice as a helper node. [How's my%logic here?] -RD%% Not sure about the logic.  For the attack to work with helper nodes, the%attacker needs to guess that Alice is running the hidden service, right?%Otherwise, how can he know to measure her traffic specifically? -NM%% In the Murdoch-Danezis attack, the adversary measures all servers. -RD%point to routing-zones section re: helper nodes to defend against%big stuff.\subsection{Location-hidden services}\label{subsec:hidden-services}% This section is first up against the wall when the revolution comes.Tor's \emph{rendezvous points}let users provide TCP services to other Tor users without revealingthe service's location. Since this feature is relatively recent, we describeherea couple of our early observations from its deployment.First, our implementation of hidden services seems less hidden than we'dlike, since they build a different rendezvous circuit for each user,and an external adversary can induce them toproduce traffic. This insecurity means that they may not be suitable asa building block for Free Haven~\cite{freehaven-berk} or other anonymouspublishing systems that aim to provide long-term security, though helpernodes, as discussed above, would seem to help.\emph{Hot-swap} hidden services, where more than one location canprovide the service and loss of any one location does not imply achange in service, would help foil intersection and observation attackswhere an adversary monitors availability of a hidden service and alsomonitors whether certain users or servers are online. The designchallenges in providing such services without otherwise compromisingthe hidden service's anonymity remain an open problem;however, see~\cite{move-ndss05}.In practice, hidden services are used for more than just providing privateaccess to a web server or IRC server. People are using hidden servicesas a poor man's VPN and firewall-buster. Many people want to be ableto connect to the computers in their private network via secure shell,and rather than playing with dyndns and trying to pierce holes in theirfirewall, they run a hidden service on the inside and then rendezvouswith that hidden service externally.News sites like Bloggers Without Borders (www.b19s.org) are advertisinga hidden-service address on their front page. Doing this can provideincreased robustness if they use the dual-IP approach we describein~\cite{tor-design},but in practice they do it to increase visibilityof the Tor project and their support for privacy, and to offera way for their users, using unmodified software, to get end-to-endencryption and authentication to their website.\subsection{Location diversity and ISP-class adversaries}\label{subsec:routing-zones}Anonymity networks have long relied on diversity of node location forprotection against attacks---typically an adversary who can observe alarger fraction of the network can launch a more effective attack. Oneway to achieve dispersal involves growing the network so a given adversarysees less. Alternately, we can arrange the topology so traffic can enteror exit at many places (for example, by using a free-route networklike Tor rather than a cascade network like JAP). Lastly, we can usedistributed trust to spread each transaction over multiple jurisdictions.But how do we decide whether two nodes are in related locations?Feamster and Dingledine defined a \emph{location diversity} metricin~\cite{feamster:wpes2004}, and began investigating a variant of locationdiversity based on the fact that the Internet is divided into thousands ofindependently operated networks called {\em autonomous systems} (ASes).The key insight from their paper is that while we typically think of aconnection as going directly from the Tor client to the first Tor node,actually it traverses many different ASes on each hop. An adversary atany of these ASes can monitor or influence traffic. Specifically, givenplausible initiators and recipients, and given random path selection,some ASes in the simulation were able to observe 10\% to 30\% of thetransactions (that is, learn both the origin and the destination) onthe deployed Tor network (33 nodes as of June 2004).The paper concludes that for best protection against the AS-leveladversary, nodes should be in ASes that have the most links to other ASes:Tier-1 ISPs such as AT\&T and Abovenet. Further, a given transactionis safest when it starts or ends in a Tier-1 ISP\@. Therefore, assuminginitiator and responder are both in the U.S., it actually \emph{hurts}our location diversity to use far-flung nodes incontinents like Asia or South America.% it's not just entering or exiting from them. using them as the middle% hop reduces your effective path length, which you presumably don't% want because you chose that path length for a reason.%% Not sure I buy that argument. Two end nodes in the right ASs to% discourage linking are still not known to each other. If some% adversary in a single AS can bridge the middle node, it shouldn't% therefore be able to identify initiator or responder; although it could% contribute to further attacks given more assumptions.% Nonetheless, no change to the actual text for now.Many open questions remain. First, it will be an immense engineeringchallenge to get an entire BGP routing table to each Tor client, or tosummarize it sufficiently. Without a local copy, clients won't beable to safely predict what ASes will be traversed on the various pathsthrough the Tor network to the final destination. Tarzan~\cite{tarzan:ccs02}and MorphMix~\cite{morphmix:fc04} suggest that we compare IP prefixes todetermine location diversity; but the above paper showed that in practicemany of the Mixmaster nodes that share a single AS have entirely differentIP prefixes. When the network has scaled to thousands of nodes, does IPprefix comparison become a more useful approximation? % Alternatively, can%relevant parts of the routing tables be summarized centrally and delivered to%clients in a less verbose format?%% i already said "or to summarize is sufficiently" above. is that not%% enough? -RD%Second, we can take advantage of caching certain content at theexit nodes, to limit the number of requests that need to leave thenetwork at all. What about taking advantage of caches like Akamai orGoogle~\cite{shsm03}? (Note that they're also well-positioned as globaladversaries.)%Third, if we follow the recommendations in~\cite{feamster:wpes2004} and tailor path selectionto avoid choosing endpoints in similar locations, how much are we hurtinganonymity against larger real-world adversaries who can take advantageof knowing our algorithm?%Fourth, can we use this knowledge to figure out which gaps in our networkmost affect our robustness to this class of attack, and go recruitnew nodes with those ASes in mind?%Tor's security relies in large part on the dispersal properties of its%network. We need to be more aware of the anonymity properties of various%approaches so we can make better design decisions in the future.\subsection{The Anti-censorship problem}\label{subsec:china}Citizens in a variety of countries, such as most recently China andIran, are blocked from accessing various sites outsidetheir country. These users try to find any tools available to allowthem to get-around these firewalls. Some anonymity networks, such asSix-Four~\cite{six-four}, are designed specifically with this goal inmind; others like the Anonymizer~\cite{anonymizer} are paid by sponsorssuch as Voice of America to encourage Internetfreedom. Even though Tor wasn'tdesigned with ubiquitous access to the network in mind, thousands ofusers across the world are now using it for exactly this purpose.% Academic and NGO organizations, peacefire, \cite{berkman}, etcAnti-censorship networks hoping to bridge country-level blocks facea variety of challenges. One of these is that they need to find enoughexit nodes---servers on the `free' side that are willing to relaytraffic from users to their final destinations. Anonymizingnetworks like Tor are well-suited to this task since we havealready gathered a set of exit nodes that are willing to tolerate somepolitical heat.The other main challenge is to distribute a list of reachable relaysto the users inside the country, and give them software to use those relays,without letting the censors also enumerate this list and block eachrelay. Anonymizer solves this by buying lots of seemingly-unrelated IPaddresses (or having them donated), abandoning old addresses as they are`used up,' and telling a few users about the new ones. Distributedanonymizing networks again have an advantage here, in that we alreadyhave tens of thousands of separate IP addresses whose users mightvolunteer to provide this service since they've already installed and usethe software for their own privacy~\cite{koepsell:wpes2004}. Becausethe Tor protocol separates routing from network discovery \cite{tor-design},volunteers could configure their Tor clientsto generate node descriptors and send them to a special directoryserver that gives them out to dissidents who need to get around blocks.Of course, this still doesn't prevent the adversaryfrom enumerating and preemptively blocking the volunteer relays.Perhaps a tiered-trust system could be built where a few individuals aregiven relays' locations. They could then recommend other individualsby telling themthose addresses, thus providing a built-in incentive to avoid letting theadversary intercept them. Max-flow trust algorithms~\cite{advogato}might help to bound the number of IP addresses leaked to the adversary. Groupslike the W3C are looking into using Tor as a component in an overall system tohelp address censorship; we wish them success.%\cite{infranet}\section{Scaling}\label{sec:scaling}Tor is running today with hundreds of nodes and tens of thousands ofusers, but it will certainly not scale to millions.Scaling Tor involves four main challenges. First, to get alarge set of nodes, we must address incentives forusers to carry traffic for others. Next is safe node discovery, bothwhile bootstrapping (Tor clients must robustly find an initialnode list) and later (Tor clients must learn about a fair sampleof honest nodes and not let the adversary control circuits).We must also detect and handle node speed and reliability as the networkbecomes increasingly heterogeneous: since the speed and reliabilityof a circuit is limited by its worst link, we must learn to track andpredict performance. Finally, we must stop assuming that all points onthe network can connect to all other points.\subsection{Incentives by Design}\label{subsec:incentives-by-design}There are three behaviors we need to encourage for each Tor node: relayingtraffic; providing good throughput and reliability while doing it;and allowing traffic to exit the network from that node.We encourage these behaviors through \emph{indirect} incentives: thatis, by designing the system and educating users in such a way that userswith certain goals will choose to relay traffic.  Onemain incentive for running a Tor node is social: volunteersaltruistically donate their bandwidth and time.  We encourage this withpublic rankings of the throughput and reliability of nodes, much likeseti@home.  We further explain to users that they can getdeniability for any traffic emerging from the same address as a Torexit node, and they can use their own Tor nodeas an entry or exit point with confidence that it's not run by an adversary.Further, users may run a node simply because they need such a networkto be persistently available and usable, and the value of supporting thisexceeds any countervening costs.Finally, we can encourage operators by improving the usability and featureset of the software:rate limiting support and easy packaging decrease the hassle ofmaintaining a node, and our configurable exit policies allow eachoperator to advertise a policy describing the hosts and ports to whichhe feels comfortable connecting.To date these incentives appear to have been adequate. As the system scalesor as new issues emerge, however, we may also need to provide \emph{direct} incentives:providing payment or other resources in return for high-quality service.Paying actual money is problematic: decentralized e-cash systems arenot yet practical, and a centralized collection system not only reducesrobustness, but also has failed in the past (the history of commercialanonymizing networks is littered with failed attempts).  A more promisingoption is to use a tit-for-tat incentive scheme, where nodes provide betterservice to nodes that have provided good service for them.Unfortunately, such an approach introduces new anonymity problems.There are many surprising ways for nodes to game the incentive andreputation system to undermine anonymity---such systems are typicallydesigned to encourage fairness in storage or bandwidth usage, notfairness of provided anonymity. An adversary can attract more trafficby performing well or can target individual users by selectivelyperforming, to undermine their anonymity. Typically a user whochooses evenly from all nodes is most resistant to an adversarytargeting him, but that approach hampers the efficient useof heterogeneous nodes.%When a node (call him Steve) performs well for Alice, does Steve gain%reputation with the entire system, or just with Alice? If the entire%system, how does Alice tell everybody about her experience in a way that%prevents her from lying about it yet still protects her identity? If%Steve's behavior only affects Alice's behavior, does this allow Steve to%selectively perform only for Alice, and then break her anonymity later%when somebody (presumably Alice) routes through his node?A possible solution is a simplified approach to the tit-for-tatincentive scheme based on two rules: (1) each node should measure theservice it receives from adjacent nodes, and provide service relativeto the received service, but (2) when a node is making decisions thataffect its own security (such as building a circuit for its ownapplication connections), it should choose evenly from a sufficientlylarge set of nodes that meet some minimum servicethreshold~\cite{casc-rep}.  This approach allows us to discouragebad servicewithout opening Alice up as much to attacks.  All of this requiresfurther study.\subsection{Trust and discovery}\label{subsec:trust-and-discovery}The published Tor design is deliberately simplistic in hownew nodes are authorized and how clients are informed about Tornodes and their status.All nodes periodically upload a signed descriptionof their locations, keys, and capabilities to each of several well-known {\it  directory servers}.  These directory servers construct a signed summaryof all known Tor nodes (a ``directory''), and a signed statement of whichnodes theybelieve to be operational then (a ``network status'').  Clientsperiodically download a directory to learn the latest nodes andkeys, and more frequently download a network status to learn which nodes arelikely to be running.  Tor nodes also operate as directory caches, tolighten the bandwidth on the directory servers.To prevent Sybil attacks (wherein an adversary signs up manypurportedly independent nodes to increase her network view),this designrequires the directory server operators to manuallyapprove new nodes.  Unapproved nodes are included in the directory,but clientsdo not use them at the start or end of their circuits.  In practice,directory administrators perform little actual verification, and tend toapprove any Tor node whose operator can compose a coherent email.This proceduremay prevent trivial automated Sybil attacks, but will do littleagainst a clever and determined attacker.There are a number of flaws in this system that need to be addressed as wemove forward. First,each directory server represents an independent point of failure: anycompromised directory server could start recommending only compromisednodes.Second, as more nodes join the network, %the more unreasonable it%becomes to expect clients to know about them all.directoriesbecome infeasibly large, and downloading the list of nodes becomesburdensome.Third, the validation scheme may do as much harm as it does good.  It does not prevent clever attackers from mounting Sybil attacks,and it may deter node operators from joining the network---ifthey expect the validation process to be difficult, or they do not shareany languages in common with the directory server operators.We could try to move the system in several directions, depending on ourchoice of threat model and requirements.  If we did not need to increasenetwork capacity to support more users, we could simply adopt even stricter validation requirements, and reduce the number ofnodes in the network to a trusted minimum.  But, we can only do that if can simultaneously make node capacityscale much more than we anticipate to be feasible soon, and if we can findentities willing to run such nodes, an equally daunting prospect.In order to address the first two issues, it seems wise to move to a systemincluding a number of semi-trusted directory servers, no one of which cancompromise a user on its own.  Ultimately, of course, we cannot escape theproblem of a first introducer: since most users will run Tor in whateverconfiguration the software ships with, the Tor distribution itself willremain a single point of failure so long as it includes the seedkeys for directory servers, a list of directory servers, or any other meansto learn which nodes are on the network.  But omitting this informationfrom the Tor distribution would only delegate the trust problem to eachindividual user. %, most of whom are presumably less informed about how to make%trust decisions than the Tor developers.A well publicized, widely available, authoritatively and independentlyendorsed and signed list of initial directory servers and their keysis a possible solution. But, setting that up properly is itself a large bootstrapping task.%Network discovery, sybil, node admission, scaling. It seems that the code%will ship with something and that's our trust root. We could try to get%people to build a web of trust, but no. Where we go from here depends%on what threats we have in mind. Really decentralized if your threat is%RIAA; less so if threat is to application data or individuals or...\subsection{Measuring performance and capacity}\label{subsec:performance}One of the paradoxes with engineering an anonymity network is that we'd liketo learn as much as we can about how traffic flows so we can improve thenetwork, but we want to prevent others from learning how traffic flows inorder to trace users' connections through the network.  Furthermore, manymechanisms that help Tor run efficientlyrequire measurements about the network.Currently, nodes try to deduce their own available bandwidth (based on howmuch traffic they have been able to transfer recently) and include thisinformation in the descriptors they upload to the directory. Clientschoose servers weighted by their bandwidth, neglecting really slowservers and capping the influence of really fast ones.%This is, of course, eminently cheatable.  A malicious node can get adisproportionate amount of traffic simply by claiming to have more bandwidththan it does.  But better mechanisms have their problems.  If bandwidth datais to be measured rather than self-reported, it is usually possible fornodes to selectively provide better service for the measuring party, orsabotage the measured value of other nodes.  Complex solutions formix networks have been proposed, but do not address the issuescompletely~\cite{mix-acc,casc-rep}.Even with no cheating, network measurement is complex.  It is commonfor views of a node's latency and/or bandwidth to vary wildly betweenobservers.  Further, it is unclear whether total bandwidth is reallythe right measure; perhaps clients should instead be considering nodesbased on unused bandwidth or observed throughput.%How to measure performance without letting people selectively deny service%by distinguishing pings. Heck, just how to measure performance at all. In%practice people have funny firewalls that don't match up to their exit%policies and Tor doesn't deal.%%Network investigation: Is all this bandwidth publishing thing a good idea?%How can we collect stats better? Note weasel's smokeping, at%http://seppia.noreply.org/cgi-bin/smokeping.cgi?target=Tor%which probably gives george and steven enough info to break tor?%And even if we can collect and use this network information effectively,we must ensurethat it is not more useful to attackers than to us.  While itseems plausible that bandwidth data alone is not enough to revealsender-recipient connections under most circumstances, it could certainlyreveal the path taken by large traffic flows under low-usage circumstances.\subsection{Non-clique topologies}Tor's comparatively weak threat model may allow easier scaling thanotherdesigns.  High-latency mix networks need to avoid partitioning attacks, wherenetwork splits let an attacker distinguish users in different partitions.Since Tor assumes the adversary cannot cheaply observe nodes at will,a network split may not decrease protection much.Thus, one option when the scale of a Tor networkexceeds some size is simply to split it. Nodes could be allocated intopartitions while hampering collaborating hostile nodes from taking overa single partition~\cite{casc-rep}.Clients could switch betweennetworks, even on a per-circuit basis.%Future analysis may uncover%other dangers beyond those affecting mix-nets.More conservatively, we can try to scale a single Tor network. Likelyproblems with adding more servers to a single Tor network include anexplosion in the number of sockets needed on each server as more serversjoin, and increased coordination overhead to keep each users' view ofthe network consistent. As we grow, we will also have more instances ofservers that can't reach each other simply due to Internet topology orrouting problems.%include restricting the number of sockets and the amount of bandwidth%used by each node.  The number of sockets is determined by the network's%connectivity and the number of users, while bandwidth capacity is determined%by the total bandwidth of nodes on the network.  The simplest solution to%bandwidth capacity is to add more nodes, since adding a Tor node of any%feasible bandwidth will increase the traffic capacity of the network.  So as%a first step to scaling, we should focus on making the network tolerate more%nodes, by reducing the interconnectivity of the nodes; later we can reduce%overhead associated with directories, discovery, and so on.We can address these points by reducing the network's connectivity.Danezis~\cite{danezis-pets03} considersthe anonymity implications of restricting routes on mix networks andrecommends an approach based on expander graphs (where any subgraph is likelyto have many neighbors).  It is not immediately clear that this approach willextend to Tor, which has a weaker threat model but higher performancerequirements: instead of analyzing theprobability of an attacker's viewing whole paths, we will need to examine theattacker's likelihood of compromising the endpoints.%Tor may not need an expander graph per se: itmay be enough to have a single central subnet that is highly connected, likean Internet backbone. %  As an%example, assume fifty nodes of relatively high traffic capacity.  This%\emph{center} forms a clique.  Assume each center node can%handle 200 connections to other nodes (including the other ones in the%center). Assume every noncenter node connects to three nodes in the%center and anyone out of the center that they want to.  Then the%network easily scales to c. 2500 nodes with commensurate increase in%bandwidth.There are many open questions: how to distribute connectivity information(presumably nodes will learn about the central nodeswhen they download Tor), whether central nodeswill need to function as a `backbone', and so on. As above,this could reduce the amount of anonymity available from a mix-net,but for a low-latency network where anonymity derives largely fromthe edges, it may be feasible.%In a sense, Tor already has a non-clique topology.%Individuals can set up and run Tor nodes without informing the%directory servers. This allows groups to run a%local Tor network of private nodes that connects to the public Tor%network. This network is hidden behind the Tor network, and its%only visible connection to Tor is at those points where it connects.%As far as the public network, or anyone observing it, is concerned,%they are running clients.\section{The Future}\label{sec:conclusion}Tor is the largest and most diverse low-latency anonymity networkavailable, but we are still in the beginning stages of deployment. Severalmajor questions remain.First, will our volunteer-based approach to sustainability work in thelong term? As we add more features and destabilize the network, thedevelopers spend a lot of time keeping the server operators happy. Eventhough Tor is free software, the network would likely stagnate and die atthis stage if the developers stopped actively working on it. We may getan unexpected boon from the fact that we're a general-purpose overlaynetwork: as Tor grows more popular, other groups who need an overlaynetwork on the Internet are starting to adapt Tor to their needs.%Second, Tor is only one of many components that preserve privacy online.For applications where it is desirable tokeep identifying information out of application traffic, someone must buildmore and better protocol-aware proxies that are usable by ordinary people.%Third, we need to gain a reputation for social good, and learn how tocoexist with the variety of Internet services and their establishedauthentication mechanisms. We can't just keep escalating the blackliststandoff forever.%Fourth, the current Torarchitecture does not scale even to handle current user demand. We mustfind designs and incentives to let some clients relay traffic too, withoutsacrificing too much anonymity.These are difficult and open questions. Yet choosing not to solve themmeans leaving most users to a less secure network or no anonymizingnetwork at all.\bibliographystyle{plain} \bibliography{tor-design}\clearpage\appendix\begin{figure}[t]%\unitlength=1in\centering%\begin{picture}(6.0,2.0)%\put(3,1){\makebox(0,0)[c]{\epsfig{figure=graphnodes,width=6in}}}%\end{picture}\mbox{\epsfig{figure=graphnodes,width=5in}}\caption{Number of Tor nodes over time, through January 2005. Lowestline is number of exitnodes that allow connections to port 80. Middle line is total number ofverified (registered) Tor nodes. The line above that represents nodesthat are running but not yet registered.}\label{fig:graphnodes}\end{figure}\begin{figure}[t]\centering\mbox{\epsfig{figure=graphtraffic,width=5in}}\caption{The sum of traffic reported by each node over time, throughJanuary 2005. The bottompair show average throughput, and the top pair represent the largest 15minute burst in each 4 hour period.}\label{fig:graphtraffic}\end{figure}\end{document}%Making use of nodes with little bandwidth, or high latency/packet loss.%Running Tor nodes behind NATs, behind great-firewalls-of-China, etc.%Restricted routes. How to propagate to everybody the topology? BGP%style doesn't work because we don't want just *one* path. Point to%Geoff's stuff.
 |