| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"           "DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="GENERATOR" content="TtH 3.59" /> <style type="text/css"> div.p { margin-top: 7pt;}</style> <style type="text/css"><!-- td div.comp { margin-top: -0.6ex; margin-bottom: -1ex;} td div.comb { margin-top: -0.6ex; margin-bottom: -.6ex;} td div.hrcomp { line-height: 0.9; margin-top: -0.8ex; margin-bottom: -1ex;} td div.norm {line-height:normal;} span.roman {font-family: serif; font-style: normal; font-weight: normal;}  span.overacc2 {position: relative;  left: .8em; top: -1.2ex;} span.overacc1 {position: relative;  left: .6em; top: -1.2ex;} --></style>         <title> Tor: The Second-Generation Onion Router </title></head><body> <h1 align="center">Tor: The Second-Generation Onion Router </h1> <div class="p"><!----></div><h3 align="center">Roger Dingledine, The Free Haven Project, <tt>arma@freehaven.net</tt><br>Nick Mathewson, The Free Haven Project, <tt>nickm@freehaven.net</tt><br>Paul Syverson, Naval Research Lab, <tt>syverson@itd.nrl.navy.mil</tt> </h3><div class="p"><!----></div><div class="p"><!----></div><h2> Abstract</h2>We present Tor, a circuit-based low-latency anonymous communicationservice. This second-generation Onion Routing system addresses limitationsin the original design by adding perfect forward secrecy, congestioncontrol, directory servers, integrity checking, configurable exit policies,and a practical design for location-hidden services via rendezvouspoints. Tor works on the real-worldInternet, requires no special privileges or kernel modifications, requireslittle synchronization or coordination between nodes, and provides areasonable tradeoff between anonymity, usability, and efficiency.We briefly describe our experiences with an international network ofmore than 30 nodes. We close with a list of open problems in anonymous communication.<div class="p"><!----></div><div class="p"><!----></div><div class="p"><!----></div> <h2><a name="tth_sEc1"><a name="sec:intro">1</a>  Overview</h2></a><div class="p"><!----></div>Onion Routing is a distributed overlay network designed to anonymizeTCP-based applications like web browsing, secure shell,and instant messaging. Clients choose a path through the network andbuild a <em>circuit</em>, in which each node (or "onion router" or "OR")in the path knows its predecessor and successor, but no other nodes inthe circuit.  Traffic flows down the circuit in fixed-size<em>cells</em>, which are unwrapped by a symmetric key at each node(like the layers of an onion) and relayed downstream. TheOnion Routing project published several design and analysispapers [<a href="#or-ih96" name="CITEor-ih96">27</a>,<a href="#or-jsac98" name="CITEor-jsac98">41</a>,<a href="#or-discex00" name="CITEor-discex00">48</a>,<a href="#or-pet00" name="CITEor-pet00">49</a>]. While a wide area OnionRouting network was deployed briefly, the only long-runningpublic implementation was a fragileproof-of-concept that ran on a single machine. Even this simple deploymentprocessed connections from over sixty thousand distinct IP addresses fromall over the world at a rate of about fifty thousand per day.But many critical design and deployment issues were neverresolved, and the design has not been updated in years. Herewe describe Tor, a protocol for asynchronous, loosely federated onionrouters that provides the following improvements over the old OnionRouting design:<div class="p"><!----></div><b>Perfect forward secrecy:</b> In the original Onion Routing design,a single hostile node could record traffic andlater compromise successive nodes in the circuit and force themto decrypt it. Rather than using a single multiply encrypted datastructure (an <em>onion</em>) to lay each circuit,Tor now uses an incremental or <em>telescoping</em> path-building design,where the initiator negotiates session keys with each successive hop inthe circuit.  Once these keys are deleted, subsequently compromised nodescannot decrypt old traffic.  As a side benefit, onion replay detectionis no longer necessary, and the process of building circuits is morereliable, since the initiator knows when a hop fails and can then tryextending to a new node.<div class="p"><!----></div><b>Separation of "protocol cleaning" from anonymity:</b>Onion Routing originally required a separate "applicationproxy" for each supported application protocol — most of which werenever written, so many applications were never supported.  Tor uses thestandard and near-ubiquitous SOCKS [<a href="#socks4" name="CITEsocks4">32</a>] proxy interface, allowingus to support most TCP-based programs without modification.  Tor nowrelies on the filtering features of privacy-enhancingapplication-level proxies such as Privoxy [<a href="#privoxy" name="CITEprivoxy">39</a>], without tryingto duplicate those features itself.<div class="p"><!----></div><b>No mixing, padding, or traffic shaping (yet):</b> OnionRouting originally called for batching and reordering cells as they arrived,assumed padding between ORs, and inlater designs added padding between onion proxies (users) andORs [<a href="#or-ih96" name="CITEor-ih96">27</a>,<a href="#or-jsac98" name="CITEor-jsac98">41</a>].  Tradeoffs between padding protectionand cost were discussed, and <em>traffic shaping</em> algorithms weretheorized [<a href="#or-pet00" name="CITEor-pet00">49</a>] to provide good security without expensivepadding, but no concrete padding scheme was suggested.Recent research [<a href="#econymics" name="CITEeconymics">1</a>]and deployment experience [<a href="#freedom21-security" name="CITEfreedom21-security">4</a>] suggest that thislevel of resource use is not practical or economical; and even fulllink padding is still vulnerable [<a href="#defensive-dropping" name="CITEdefensive-dropping">33</a>]. Thus,until we have a proven and convenient design for traffic shaping orlow-latency mixing that improves anonymity against a realisticadversary, we leave these strategies out.<div class="p"><!----></div><b>Many TCP streams can share one circuit:</b> Onion Routing originallybuilt a separate circuit for eachapplication-level request, but this requiredmultiple public key operations for every request, and also presenteda threat to anonymity from building so many circuits; seeSection <a href="#sec:maintaining-anonymity">9</a>.  Tor multiplexes multiple TCPstreams along each circuit to improve efficiency and anonymity.<div class="p"><!----></div><b>Leaky-pipe circuit topology:</b> Through in-band signalingwithin the circuit, Tor initiators can direct traffic to nodes partwaydown the circuit. This novel approachallows traffic to exit the circuit from the middle — possiblyfrustrating traffic shape and volume attacks based on observing the endof the circuit. (It also allows for long-range padding iffuture research shows this to be worthwhile.)<div class="p"><!----></div><b>Congestion control:</b> Earlier anonymity designs do notaddress traffic bottlenecks. Unfortunately, typical approaches toload balancing and flow control in overlay networks involve inter-nodecontrol communication and global views of traffic. Tor's decentralizedcongestion control uses end-to-end acks to maintain anonymitywhile allowing nodes at the edges of the network to detect congestionor flooding and send less data until the congestion subsides.<div class="p"><!----></div><b>Directory servers:</b> The earlier Onion Routing designplanned to flood state information through the network — an approachthat can be unreliable and complex. Tor takes a simplified view toward distributing thisinformation. Certain more trusted nodes act as <em>directoryservers</em>: they provide signed directories describing knownrouters and their current state. Users periodically download themvia HTTP.<div class="p"><!----></div><b>Variable exit policies:</b> Tor provides a consistent mechanismfor each node to advertise a policy describing the hostsand ports to which it will connect. These exit policies are criticalin a volunteer-based distributed infrastructure, because each operatoris comfortable with allowing different types of traffic to exitfrom his node.<div class="p"><!----></div><b>End-to-end integrity checking:</b> The original Onion Routingdesign did no integrity checking on data. Any node on thecircuit could change the contents of data cells as they passed by — forexample, to alter a connection request so it would connectto a different webserver, or to `tag' encrypted traffic and look forcorresponding corrupted traffic at the network edges [<a href="#minion-design" name="CITEminion-design">15</a>].Tor hampers these attacks by verifying data integrity before it leavesthe network.<div class="p"><!----></div><div class="p"><!----></div><b>Rendezvous points and hidden services:</b>Tor provides an integrated mechanism for responder anonymity vialocation-protected servers.  Previous Onion Routing designs includedlong-lived "reply onions" that could be used to build circuitsto a hidden server, but these reply onions did not provide forwardsecurity, and became useless if any node in the path went downor rotated its keys.  In Tor, clients negotiate <i>rendezvous points</i>to connect with hidden servers; reply onions are no longer required.<div class="p"><!----></div>Unlike Freedom [<a href="#freedom2-arch" name="CITEfreedom2-arch">8</a>], Tor does not require OS kernelpatches or network stack support.  This prevents us from anonymizingnon-TCP protocols, but has greatly helped our portability anddeployability.<div class="p"><!----></div><div class="p"><!----></div>We have implemented all of the above features, including rendezvouspoints. Our source code isavailable under a free license, and Toris not covered by the patent that affected distribution and use ofearlier versions of Onion Routing.We have deployed a wide-area alpha networkto test the design, to get more experience with usabilityand users, and to provide a research platform for experimentation.As of this writing, the network stands at 32 nodes spread over two continents.<div class="p"><!----></div>We review previous work in Section <a href="#sec:related-work">2</a>, describeour goals and assumptions in Section <a href="#sec:assumptions">3</a>,and then address the above list of improvements inSections <a href="#sec:design">4</a>, <a href="#sec:rendezvous">5</a>, and <a href="#sec:other-design">6</a>.We summarizein Section <a href="#sec:attacks">7</a> how our design stands up toknown attacks, and talk about our early deployment experiences inSection <a href="#sec:in-the-wild">8</a>. We conclude with a list of open problems inSection <a href="#sec:maintaining-anonymity">9</a> and future work for the OnionRouting project in Section <a href="#sec:conclusion">10</a>.<div class="p"><!----></div><div class="p"><!----></div> <h2><a name="tth_sEc2"><a name="sec:related-work">2</a>  Related work</h2></a><div class="p"><!----></div>Modern anonymity systems date to Chaum's <b>Mix-Net</b>design [<a href="#chaum-mix" name="CITEchaum-mix">10</a>]. Chaumproposed hiding the correspondence between sender and recipient bywrapping messages in layers of public-key cryptography, and relaying themthrough a path composed of "mixes."  Each mix in turndecrypts, delays, and re-orders messages before relaying themonward.<div class="p"><!----></div>Subsequent relay-based anonymity designs have diverged in twomain directions. Systems like <b>Babel</b> [<a href="#babel" name="CITEbabel">28</a>],<b>Mixmaster</b> [<a href="#mixmaster-spec" name="CITEmixmaster-spec">36</a>],and <b>Mixminion</b> [<a href="#minion-design" name="CITEminion-design">15</a>] have triedto maximize anonymity at the cost of introducing comparatively large andvariable latencies. Because of this decision, these <em>high-latency</em>networks resist strong global adversaries,but introduce too much lag for interactive tasks like web browsing,Internet chat, or SSH connections.<div class="p"><!----></div>Tor belongs to the second category: <em>low-latency</em> designs thattry to anonymize interactive network traffic. These systems handlea variety of bidirectional protocols. They also provide more convenientmail delivery than the high-latency anonymous emailnetworks, because the remote mail server provides explicit and timelydelivery confirmation. But because these designs typicallyinvolve many packets that must be delivered quickly, it isdifficult for them to prevent an attacker who can eavesdrop both ends of thecommunication from correlating the timing and volumeof traffic entering the anonymity network with traffic leaving it [<a href="#SS03" name="CITESS03">45</a>].Theseprotocols are similarly vulnerable to an active adversary who introducestiming patterns into traffic entering the network and looksfor correlated patterns among exiting traffic.Although some work has been done to frustrate these attacks, most designsprotect primarily against traffic analysis rather than trafficconfirmation (see Section <a href="#subsec:threat-model">3.1</a>).<div class="p"><!----></div>The simplest low-latency designs are single-hop proxies such as the<b>Anonymizer</b> [<a href="#anonymizer" name="CITEanonymizer">3</a>]: a single trusted server strips thedata's origin before relaying it.  These designs are easy toanalyze, but users must trust the anonymizing proxy.Concentrating the traffic to this single point increases the anonymity set(the people a given user is hiding among), but it is vulnerable if theadversary can observe all traffic entering and leaving the proxy.<div class="p"><!----></div>More complex are distributed-trust, circuit-based anonymizing systems.In these designs, a user establishes one or more medium-term bidirectionalend-to-end circuits, and tunnels data in fixed-size cells.Establishing circuits is computationally expensive and typicallyrequires public-keycryptography, whereas relaying cells is comparatively inexpensive andtypically requires only symmetric encryption.Because a circuit crosses several servers, and each server only knowsthe adjacent servers in the circuit, no single server can link auser to her communication partners.<div class="p"><!----></div>The <b>Java Anon Proxy</b> (also known as JAP or Web MIXes) uses fixed sharedroutes known as <em>cascades</em>.  As with a single-hop proxy, thisapproach aggregates users into larger anonymity sets, but again anattacker only needs to observe both ends of the cascade to bridge allthe system's traffic.  The Java Anon Proxy's designcalls for padding between end users and the head of thecascade [<a href="#web-mix" name="CITEweb-mix">7</a>]. However, it is not demonstrated whether the currentimplementation's padding policy improves anonymity.<div class="p"><!----></div><b>PipeNet</b> [<a href="#back01" name="CITEback01">5</a>,<a href="#pipenet" name="CITEpipenet">12</a>], another low-latency design proposedaround the same time as Onion Routing, gavestronger anonymity but allowed a single user to shutdown the network by not sending. Systems like <b>ISDNmixes</b> [<a href="#isdn-mixes" name="CITEisdn-mixes">38</a>] were designed for other environments withdifferent assumptions.<div class="p"><!----></div>In P2P designs like <b>Tarzan</b> [<a href="#tarzan:ccs02" name="CITEtarzan:ccs02">24</a>] and<b>MorphMix</b> [<a href="#morphmix:fc04" name="CITEmorphmix:fc04">43</a>], all participants both generatetraffic and relay traffic for others. These systems aim to concealwhether a given peer originated a requestor just relayed it from another peer. While Tarzan and MorphMix uselayered encryption as above, <b>Crowds</b> [<a href="#crowds-tissec" name="CITEcrowds-tissec">42</a>] simply assumesan adversary who cannot observe the initiator: it uses no public-keyencryption, so any node on a circuit can read users' traffic.<div class="p"><!----></div><b>Hordes</b> [<a href="#hordes-jcs" name="CITEhordes-jcs">34</a>] is based on Crowds but also uses multicastresponses to hide the initiator. <b>Herbivore</b> [<a href="#herbivore" name="CITEherbivore">25</a>] and<b>P</b><sup><b>5</b></sup> [<a href="#p5" name="CITEp5">46</a>] go even further, requiring broadcast.These systems are designed primarily for communication among peers,although Herbivore users can make external connections byrequesting a peer to serve as a proxy.<div class="p"><!----></div>Systems like <b>Freedom</b> and the original Onion Routing build circuitsall at once, using a layered "onion" of public-key encrypted messages,each layer of which provides session keys and the address of thenext server in the circuit. Tor as described herein, Tarzan, MorphMix,<b>Cebolla</b> [<a href="#cebolla" name="CITEcebolla">9</a>], and Rennhard's <b>Anonymity Network</b> [<a href="#anonnet" name="CITEanonnet">44</a>]build circuitsin stages, extending them one hop at a time.Section <a href="#subsubsec:constructing-a-circuit">4.2</a> describes how thisapproach enables perfect forward secrecy.<div class="p"><!----></div>Circuit-based designs must choose which protocol layerto anonymize. They may intercept IP packets directly, andrelay them whole (stripping the source address) along thecircuit [<a href="#freedom2-arch" name="CITEfreedom2-arch">8</a>,<a href="#tarzan:ccs02" name="CITEtarzan:ccs02">24</a>].  LikeTor, they may accept TCP streams and relay the data in those streams,ignoring the breakdown of that data into TCPsegments [<a href="#morphmix:fc04" name="CITEmorphmix:fc04">43</a>,<a href="#anonnet" name="CITEanonnet">44</a>]. Finally, like Crowds, they may acceptapplication-level protocols such as HTTP and relay the applicationrequests themselves.Making this protocol-layer decision requires a compromise between flexibilityand anonymity.  For example, a system that understands HTTPcan stripidentifying information from requests, can take advantage of cachingto limit the number of requests that leave the network, and can batchor encode requests to minimize the number of connections.On the other hand, an IP-level anonymizer can handle nearly any protocol,even ones unforeseen by its designers (though these systems requirekernel-level modifications to some operating systems, and so are morecomplex and less portable). TCP-level anonymity networks like Tor presenta middle approach: they are application neutral (so long as theapplication supports, or can be tunneled across, TCP), but by treatingapplication connections as data streams rather than raw TCP packets,they avoid the inefficiencies of tunneling TCP overTCP.<div class="p"><!----></div>Distributed-trust anonymizing systems need to prevent attackers fromadding too many servers and thus compromising user paths.Tor relies on a small set of well-known directory servers, run byindependent parties, to decide which nodes canjoin. Tarzan and MorphMix allow unknown users to run servers, and usea limited resource (like IP addresses) to prevent an attacker fromcontrolling too much of the network.  Crowds suggests requiringwritten, notarized requests from potential crowd members.<div class="p"><!----></div>Anonymous communication is essential for censorship-resistantsystems like Eternity [<a href="#eternity" name="CITEeternity">2</a>], Free Haven [<a href="#freehaven-berk" name="CITEfreehaven-berk">19</a>],Publius [<a href="#publius" name="CITEpublius">53</a>], and Tangler [<a href="#tangler" name="CITEtangler">52</a>]. Tor's rendezvouspoints enable connections between mutually anonymous entities; theyare a building block for location-hidden servers, which are needed byEternity and Free Haven.<div class="p"><!----></div><div class="p"><!----></div> <h2><a name="tth_sEc3"><a name="sec:assumptions">3</a>  Design goals and assumptions</h2></a><div class="p"><!----></div><font size="+1"><b>Goals</b></font><br />Like other low-latency anonymity designs, Tor seeks to frustrateattackers from linking communication partners, or from linkingmultiple communications to or from a single user.  Within thismain goal, however, several considerations have directedTor's evolution.<div class="p"><!----></div><b>Deployability:</b> The design must be deployed and used in thereal world.  Thus itmust not be expensive to run (for example, by requiring more bandwidththan volunteers are willing to provide); must not place a heavyliability burden on operators (for example, by allowing attackers toimplicate onion routers in illegal activities); and must not bedifficult or expensive to implement (for example, by requiring kernelpatches, or separate proxies for every protocol).  We also cannotrequire non-anonymous parties (such as websites)to run our software.  (Our rendezvous point design does not meetthis goal for non-anonymous users talking to hidden servers,however; see Section <a href="#sec:rendezvous">5</a>.)<div class="p"><!----></div><b>Usability:</b> A hard-to-use system has fewer users — and becauseanonymity systems hide users among users, a system with fewer usersprovides less anonymity.  Usability is thus not only a convenience:it is a security requirement [<a href="#econymics" name="CITEeconymics">1</a>,<a href="#back01" name="CITEback01">5</a>]. Tor shouldtherefore notrequire modifying familiar applications; should not introduce prohibitivedelays;and should require as few configuration decisionsas possible.  Finally, Tor should be easily implementable on all commonplatforms; we cannot require users to change their operating systemto be anonymous.  (Tor currently runs on Win32, Linux,Solaris, BSD-style Unix, MacOS X, and probably others.)<div class="p"><!----></div><b>Flexibility:</b> The protocol must be flexible and well-specified,so Tor can serve as a test-bed for future research.Many of the open problems in low-latency anonymitynetworks, such as generating dummy traffic or preventing Sybilattacks [<a href="#sybil" name="CITEsybil">22</a>], may be solvable independently from the issuessolved byTor. Hopefully future systems will not need to reinvent Tor's design.<div class="p"><!----></div><b>Simple design:</b> The protocol's design and securityparameters must be well-understood. Additional features impose implementationand complexity costs; adding unproven techniques to the design threatensdeployability, readability, and ease of security analysis. Tor aims todeploy a simple and stable system that integrates the best acceptedapproaches to protecting anonymity.<br /><div class="p"><!----></div><font size="+1"><b>Non-goals</b></font><a name="subsec:non-goals"></a><br />In favoring simple, deployable designs, we have explicitly deferredseveral possible goals, either because they are solved elsewhere, or becausethey are not yet solved.<div class="p"><!----></div><b>Not peer-to-peer:</b> Tarzan and MorphMix aim to scale to completelydecentralized peer-to-peer environments with thousands of short-livedservers, many of which may be controlled by an adversary.  This approachis appealing, but still has many openproblems [<a href="#tarzan:ccs02" name="CITEtarzan:ccs02">24</a>,<a href="#morphmix:fc04" name="CITEmorphmix:fc04">43</a>].<div class="p"><!----></div><b>Not secure against end-to-end attacks:</b> Tor does not claimto completely solve end-to-end timing or intersectionattacks. Some approaches, such as having users run their own onion routers,may help;see Section <a href="#sec:maintaining-anonymity">9</a> for more discussion.<div class="p"><!----></div><b>No protocol normalization:</b> Tor does not provide <em>protocolnormalization</em> like Privoxy or the Anonymizer. If senders want anonymity fromresponders while using complex and variableprotocols like HTTP, Tor must be layered with a filtering proxy suchas Privoxy to hide differences between clients, and expunge protocolfeatures that leak identity.Note that by this separation Tor can also provide services thatare anonymous to the network yet authenticated to the responder, likeSSH. Similarly, Tor does not integratetunneling for non-stream-based protocols like UDP; this must beprovided by an external service if appropriate.<div class="p"><!----></div><b>Not steganographic:</b> Tor does not try to conceal who is connectedto the network.<div class="p"><!----></div>     <h3><a name="tth_sEc3.1"><a name="subsec:threat-model">3.1</a>  Threat Model</h3></a><div class="p"><!----></div>A global passive adversary is the most commonly assumed threat whenanalyzing theoretical anonymity designs. But like all practicallow-latency systems, Tor does not protect against such a strongadversary. Instead, we assume an adversary who can observe some fractionof network traffic; who can generate, modify, delete, or delaytraffic;  who can operate onion routers of his own; and who cancompromise some fraction of the onion routers.<div class="p"><!----></div>In low-latency anonymity systems that use layered encryption, theadversary's typical goal is to observe both the initiator and theresponder. By observing both ends, passive attackers can confirm asuspicion that Alice istalking to Bob if the timing and volume patterns of the traffic on theconnection are distinct enough; active attackers can induce timingsignatures on the traffic to force distinct patterns. Ratherthan focusing on these <em>traffic confirmation</em> attacks,we aim to prevent <em>trafficanalysis</em> attacks, where the adversary uses traffic patterns to learnwhich points in the network he should attack.<div class="p"><!----></div>Our adversary might try to link an initiator Alice with hercommunication partners, or try to build a profile of Alice'sbehavior. He might mount passive attacks by observing the network edgesand correlating traffic entering and leaving the network — byrelationships in packet timing, volume, or externally visibleuser-selectedoptions. The adversary can also mount active attacks by compromisingrouters or keys; by replaying traffic; by selectively denying serviceto trustworthy routers to move users tocompromised routers, or denying service to users to see if trafficelsewhere in thenetwork stops; or by introducing patterns into traffic that can later bedetected. The adversary might subvert the directory servers to give usersdiffering views of network state. Additionally, he can try to decreasethe network's reliability by attacking nodes or by performing antisocialactivities from reliable nodes and trying to get them taken down — makingthe network unreliable flushes users to other less anonymoussystems, where they may be easier to attack. We summarizein Section <a href="#sec:attacks">7</a> how well the Tor design defends againsteach of these attacks.<div class="p"><!----></div><div class="p"><!----></div> <h2><a name="tth_sEc4"><a name="sec:design">4</a>  The Tor Design</h2></a><div class="p"><!----></div>The Tor network is an overlay network; each onion router (OR)runs as a normaluser-level process without any special privileges.Each onion router maintains a TLS [<a href="#TLS" name="CITETLS">17</a>]connection to every other onion router.Each userruns local software called an onion proxy (OP) to fetch directories,establish circuits across the network,and handle connections from user applications.  These onion proxies acceptTCP streams and multiplex them across the circuits. The onionrouter on the other sideof the circuit connects to the requested destinationsand relays data.<div class="p"><!----></div>Each onion router maintains a long-term identity key and a short-termonion key. The identitykey is used to sign TLS certificates, to sign the OR's <em>routerdescriptor</em> (a summary of its keys, address, bandwidth, exit policy,and so on), and (by directory servers) to sign directories. The onion key is used to decrypt requestsfrom users to set up a circuit and negotiate ephemeral keys. The TLS protocol also establishes a short-term link key when communicatingbetween ORs. Short-term keys are rotated periodically andindependently, to limit the impact of key compromise.<div class="p"><!----></div>Section <a href="#subsec:cells">4.1</a> presents the fixed-size<em>cells</em> that are the unit of communication in Tor. We describein Section <a href="#subsec:circuits">4.2</a> how circuits arebuilt, extended, truncated, and destroyed. Section <a href="#subsec:tcp">4.3</a>describes how TCP streams are routed through the network.  We addressintegrity checking in Section <a href="#subsec:integrity-checking">4.4</a>,and resource limiting in Section <a href="#subsec:rate-limit">4.5</a>.Finally,Section <a href="#subsec:congestion">4.6</a> talks about congestion control andfairness issues.<div class="p"><!----></div>     <h3><a name="tth_sEc4.1"><a name="subsec:cells">4.1</a>  Cells</h3></a><div class="p"><!----></div>Onion routers communicate with one another, and with users' OPs, viaTLS connections with ephemeral keys.  Using TLS conceals the data onthe connection with perfect forward secrecy, and prevents an attackerfrom modifying data on the wire or impersonating an OR.<div class="p"><!----></div>Traffic passes along these connections in fixed-size cells.  Each cellis 512 bytes, and consists of a header and a payload. The header includes a circuitidentifier (circID) that specifies which circuit the cell refers to(many circuits can be multiplexed over the single TLS connection), anda command to describe what to do with the cell's payload.  (Circuitidentifiers are connection-specific: each circuit has a differentcircID on each OP/OR or OR/OR connection it traverses.)Based on their command, cells are either <em>control</em> cells, which arealways interpreted by the node that receives them, or <em>relay</em> cells,which carry end-to-end stream data.   The control cell commands are:<em>padding</em> (currently used for keepalive, but also usable for linkpadding); <em>create</em> or <em>created</em> (used to set up a new circuit);and <em>destroy</em> (to tear down a circuit).<div class="p"><!----></div>Relay cells have an additional header (the relay header) at the frontof the payload, containing a streamID (stream identifier: many streams canbe multiplexed over a circuit); an end-to-end checksum for integritychecking; the length of the relay payload; and a relay command.The entire contents of the relay header and the relay cell payloadare encrypted or decrypted together as the relay cell moves along thecircuit, using the 128-bit AES cipher in counter mode to generate acipher stream.  The relay commands are: <em>relaydata</em> (for data flowing down the stream), <em>relay begin</em> (to open astream), <em>relay end</em> (to close a stream cleanly), <em>relayteardown</em> (to close a broken stream), <em>relay connected</em>(to notify the OP that a relay begin has succeeded), <em>relayextend</em> and <em>relay extended</em> (to extend the circuit by a hop,and to acknowledge), <em>relay truncate</em> and <em>relay truncated</em>(to tear down only part of the circuit, and to acknowledge), <em>relaysendme</em> (used for congestion control), and <em>relay drop</em> (used toimplement long-range dummies).We give a visual overview of cell structure plus the details of relaycell structure, and then describe each of these cell types and commandsin more detail below.<div class="p"><!----></div><div class="p"><!----></div><div class="p"><!----></div><a name="tth_fIg1"></a> <center><img src="cell-struct.png" alt="cell-struct.png" /></center><div class="p"><!----></div>     <h3><a name="tth_sEc4.2"><a name="subsec:circuits">4.2</a>  Circuits and streams</h3></a><div class="p"><!----></div>Onion Routing originally built one circuit for eachTCP stream.  Because building a circuit can take several tenths of asecond (due to public-key cryptography and network latency),this design imposed high costs on applications like web browsing thatopen many TCP streams.<div class="p"><!----></div>In Tor, each circuit can be shared by many TCP streams.  To avoiddelays, users construct circuits preemptively.  To limit linkabilityamong their streams, users' OPs build a new circuitperiodically if the previous ones have been used,and expire old used circuits that no longer have any open streams.OPs consider rotating to a new circuit once a minute: thuseven heavy users spend negligible timebuilding circuits, but a limited number of requests can be linkedto each other through a given exit node. Also, because circuits are builtin the background, OPs can recover from failed circuit creationwithout harming user experience.<br /><div class="p"><!----></div><div class="p"><!----></div><a name="tth_fIg1"></a> <center><img src="interaction.png" alt="interaction.png" /><center>Figure 1: Alice builds a two-hop circuit and begins fetching a web page.</center><a name="fig:interaction"></a></center><div class="p"><!----></div><a name="subsubsec:constructing-a-circuit"></a><font size="+1"><b>Constructing a circuit</b></font><br />A user's OP constructs circuits incrementally, negotiating asymmetric key with each OR on the circuit, one hop at a time. To begincreating a new circuit, the OP (call her Alice) sends a<em>create</em> cell to the first node in her chosen path (call him Bob).(She chooses a newcircID C<sub>AB</sub> not currently used on the connection from her to Bob.)The <em>create</em> cell'spayload contains the first half of the Diffie-Hellman handshake(g<sup>x</sup>), encrypted to the onion key of Bob. Bobresponds with a <em>created</em> cell containing g<sup>y</sup>along with a hash of the negotiated key K=g<sup>xy</sup>.<div class="p"><!----></div>Once the circuit has been established, Alice and Bob can send oneanother relay cells encrypted with the negotiatedkey.<a href="#tthFtNtAAB" name="tthFrefAAB"><sup>1</sup></a>  More detail is given inthe next section.<div class="p"><!----></div>To extend the circuit further, Alice sends a <em>relay extend</em> cellto Bob, specifying the address of the next OR (call her Carol), andan encrypted g<sup>x<sub>2</sub></sup> for her.  Bob copies the half-handshake into a<em>create</em> cell, and passes it to Carol to extend the circuit.(Bob chooses a new circID C<sub>BC</sub> not currently used on the connectionbetween him and Carol.  Alice never needs to know this circID; only Bobassociates C<sub>AB</sub> on his connection with Alice to C<sub>BC</sub> onhis connection with Carol.)When Carol responds with a <em>created</em> cell, Bob wraps the payloadinto a <em>relay extended</em> cell and passes it back to Alice.  Nowthe circuit is extended to Carol, and Alice and Carol share a common keyK<sub>2</sub> = g<sup>x<sub>2</sub> y<sub>2</sub></sup>.<div class="p"><!----></div>To extend the circuit to a third node or beyond, Aliceproceeds as above, always telling the last node in the circuit toextend one hop further.<div class="p"><!----></div>This circuit-level handshake protocol achieves unilateral entityauthentication (Alice knows she's handshaking with the OR, butthe OR doesn't care who is opening the circuit — Alice uses no public keyand remains anonymous) and unilateral key authentication(Alice and the OR agree on a key, and Alice knows only the OR learnsit). It also achieves forwardsecrecy and key freshness. More formally, the protocol is as follows(where E<sub>PK<sub>Bob</sub></sub>(·) is encryption with Bob's public key,H is a secure hash function, and <font face="symbol">|</font> is concatenation):<div class="p"><!----></div><a name="tth_tAb1"></a> <table><tr><td align="right">Alice </td><td align="center">-> </td><td align="center">Bob </td><td>: E<sub>PK<sub>Bob</sub></sub>(g<sup>x</sup>) </td></tr><tr><td align="right">Bob </td><td align="center">-> </td><td align="center">Alice </td><td>: g<sup>y</sup>, H(K <font face="symbol">|</font> "<span class="roman">handshake</span>")</td></tr></table><div class="p"><!----></div> In the second step, Bob proves that it was he who received g<sup>x</sup>,and who chose y. We use PK encryption in the first step(rather than, say, using the first two steps of STS, which has asignature in the second step) because a single cell is too small tohold both a public key and a signature. Preliminary analysis with theNRL protocol analyzer [<a href="#meadows96" name="CITEmeadows96">35</a>] shows this protocol to besecure (including perfect forward secrecy) under thetraditional Dolev-Yao model.<br /><div class="p"><!----></div><font size="+1"><b>Relay cells</b></font><br />Once Alice has established the circuit (so she shares keys with eachOR on the circuit), she can send relay cells.Upon receiving a relaycell, an OR looks up the corresponding circuit, and decrypts the relayheader and payload with the session key for that circuit.If the cell is headed away from Alice the OR then checks whether thedecrypted cell has a valid digest (as an optimization, the firsttwo bytes of the integrity check are zero, so in most cases we can avoidcomputing the hash).If valid, it accepts the relay cell and processes it as describedbelow.  Otherwise,the OR looks up the circID and OR for thenext step in the circuit, replaces the circID as appropriate, andsends the decrypted relay cell to the next OR.  (If the OR at the endof the circuit receives an unrecognized relay cell, an error hasoccurred, and the circuit is torn down.)<div class="p"><!----></div>OPs treat incoming relay cells similarly: they iteratively unwrap therelay header and payload with the session keys shared with eachOR on the circuit, from the closest to farthest.If at any stage the digest is valid, the cell must haveoriginated at the OR whose encryption has just been removed.<div class="p"><!----></div>To construct a relay cell addressed to a given OR, Alice assigns thedigest, and then iterativelyencrypts the cell payload (that is, the relay header and payload) withthe symmetric key of each hop up to that OR.  Because the digest isencrypted to a different value at each step, only at the targeted ORwill it have a meaningful value.<a href="#tthFtNtAAC" name="tthFrefAAC"><sup>2</sup></a>This <em>leaky pipe</em> circuit topologyallows Alice's streams to exit at different ORs on a single circuit.Alice may choose different exit points because of their exit policies,or to keep the ORs from knowing that two streamsoriginate from the same person.<div class="p"><!----></div>When an OR later replies to Alice with a relay cell, itencrypts the cell's relay header and payload with the single key itshares with Alice, and sends the cell back toward Alice along thecircuit.  Subsequent ORs add further layers of encryption as theyrelay the cell back to Alice.<div class="p"><!----></div>To tear down a circuit, Alice sends a <em>destroy</em> controlcell. Each OR in the circuit receives the <em>destroy</em> cell, closesall streams on that circuit, and passes a new <em>destroy</em> cellforward. But just as circuits are built incrementally, they can alsobe torn down incrementally: Alice can send a <em>relaytruncate</em> cell to a single OR on a circuit. That OR then sends a<em>destroy</em> cell forward, and acknowledges with a<em>relay truncated</em> cell. Alice can then extend the circuit todifferent nodes, without signaling to the intermediate nodes (ora limited observer) that she has changed her circuit.Similarly, if a node on the circuit goes down, the adjacentnode can send a <em>relay truncated</em> cell back to Alice.  Thus the"break a node and see which circuits go down"attack [<a href="#freedom21-security" name="CITEfreedom21-security">4</a>] is weakened.<div class="p"><!----></div>     <h3><a name="tth_sEc4.3"><a name="subsec:tcp">4.3</a>  Opening and closing streams</h3></a><div class="p"><!----></div>When Alice's application wants a TCP connection to a givenaddress and port, it asks the OP (via SOCKS) to make theconnection. The OP chooses the newest open circuit (or creates one ifneeded), and chooses a suitable OR on that circuit to be theexit node (usually the last node, but maybe others due to exit policyconflicts; see Section <a href="#subsec:exitpolicies">6.2</a>.) The OP then opensthe stream by sending a <em>relay begin</em> cell to the exit node,using a new random streamID. Once theexit node connects to the remote host, it respondswith a <em>relay connected</em> cell.  Upon receipt, the OP sends aSOCKS reply to notify the application of its success. The OPnow accepts data from the application's TCP stream, packaging it into<em>relay data</em> cells and sending those cells along the circuit tothe chosen OR.<div class="p"><!----></div>There's a catch to using SOCKS, however — some applications pass thealphanumeric hostname to the Tor client, while others resolve it intoan IP address first and then pass the IP address to the Tor client. Ifthe application does DNS resolution first, Alice thereby reveals herdestination to the remote DNS server, rather than sending the hostnamethrough the Tor network to be resolved at the far end. Common applicationslike Mozilla and SSH have this flaw.<div class="p"><!----></div>With Mozilla, the flaw is easy to address: the filtering HTTPproxy called Privoxy gives a hostname to the Tor client, so Alice'scomputer never does DNS resolution.But a portable general solution, such as is needed forSSH, isan open problem. Modifying or replacing the local nameservercan be invasive, brittle, and unportable. Forcing the resolverlibrary to prefer TCP rather than UDP is hard, and also hasportability problems. Dynamically intercepting system calls to theresolver library seems a promising direction. We could also providea tool similar to <em>dig</em> to perform a private lookup through theTor network. Currently, we encourage the use of privacy-aware proxieslike Privoxy wherever possible.<div class="p"><!----></div>Closing a Tor stream is analogous to closing a TCP stream: it uses atwo-step handshake for normal operation, or a one-step handshake forerrors. If the stream closes abnormally, the adjacent node simply sends a<em>relay teardown</em> cell. If the stream closes normally, the node sendsa <em>relay end</em> cell down the circuit, and the other side responds withits own <em>relay end</em> cell. Becauseall relay cells use layered encryption, only the destination OR knowsthat a given relay cell is a request to close a stream.  This two-stephandshake allows Tor to support TCP-based applications that use half-closedconnections.<div class="p"><!----></div>     <h3><a name="tth_sEc4.4"><a name="subsec:integrity-checking">4.4</a>  Integrity checking on streams</h3></a><div class="p"><!----></div>Because the old Onion Routing design used a stream cipher without integritychecking, traffic wasvulnerable to a malleability attack: though the attacker could notdecrypt cells, any changes to encrypted datawould create corresponding changes to the data leaving the network.This weakness allowed an adversary who could guess the encrypted contentto change a padding cell to a destroycell; change the destination address in a <em>relay begin</em> cell to theadversary's webserver; or change an FTP command from<tt>dir</tt> to <tt>rm *</tt>. (Even an externaladversary could do this, because the link encryption similarly used astream cipher.)<div class="p"><!----></div>Because Tor uses TLS on its links, external adversaries cannot modifydata. Addressing the insider malleability attack, however, ismore complex.<div class="p"><!----></div>We could do integrity checking of the relay cells at each hop, eitherby including hashes or by using an authenticating cipher mode likeEAX [<a href="#eax" name="CITEeax">6</a>], but there are some problems. First, these approachesimpose a message-expansion overhead at each hop, and so we would have toeither leak the path length or waste bytes by padding to a maximumpath length. Second, these solutions can only verify traffic comingfrom Alice: ORs would not be able to produce suitable hashes forthe intermediate hops, since the ORs on a circuit do not know theother ORs' session keys. Third, we have already accepted that our designis vulnerable to end-to-end timing attacks; so tagging attacks performedwithin the circuit provide no additional information to the attacker.<div class="p"><!----></div>Thus, we check integrity only at the edges of each stream. (Remember thatin our leaky-pipe circuit topology, a stream's edge could be any hopin the circuit.) When Alicenegotiates a key with a new hop, they each initialize a SHA-1digest with a derivative of that key,thus beginning with randomness that only the two of them know.Then they each incrementally add to the SHA-1 digest the contents ofall relay cells they create, and include with each relay cell thefirst four bytes of the current digest.  Each also keeps a SHA-1digest of data received, to verify that the received hashes are correct.<div class="p"><!----></div>To be sure of removing or modifying a cell, the attacker must be ableto deduce the current digest state (which depends on alltraffic between Alice and Bob, starting with their negotiated key).Attacks on SHA-1 where the adversary can incrementally add to a hashto produce a new valid hash don't work, because all hashes areend-to-end encrypted across the circuit.  The computational overheadof computing the digests is minimal compared to doing the AESencryption performed at each hop of the circuit. We use only fourbytes per cell to minimize overhead; the chance that an adversary willcorrectly guess a valid hashisacceptably low, given that the OP or OR tear down the circuit if theyreceive a bad hash.<div class="p"><!----></div>     <h3><a name="tth_sEc4.5"><a name="subsec:rate-limit">4.5</a>  Rate limiting and fairness</h3></a><div class="p"><!----></div>Volunteers are more willing to run services that can limittheir bandwidth usage. To accommodate them, Tor servers use atoken bucket approach [<a href="#tannenbaum96" name="CITEtannenbaum96">50</a>] toenforce a long-term average rate of incoming bytes, while stillpermitting short-term bursts above the allowed bandwidth.<div class="p"><!----></div><div class="p"><!----></div>Because the Tor protocol outputs about the same number of bytes as ittakes in, it is sufficient in practice to limit only incoming bytes.With TCP streams, however, the correspondence is not one-to-one:relaying a single incoming byte can require an entire 512-byte cell.(We can't just wait for more bytes, because the local application maybe awaiting a reply.) Therefore, we treat this case as if the entirecell size had been read, regardless of the cell's fullness.<div class="p"><!----></div>Further, inspired by Rennhard et al's design in [<a href="#anonnet" name="CITEanonnet">44</a>], acircuit's edges can heuristically distinguish interactive streams from bulkstreams by comparing the frequency with which they supply cells.  We canprovide good latency for interactive streams by giving them preferentialservice, while still giving good overall throughput to the bulkstreams. Such preferential treatment presents a possible end-to-endattack, but an adversary observing bothends of the stream can already learn this information through timingattacks.<div class="p"><!----></div>     <h3><a name="tth_sEc4.6"><a name="subsec:congestion">4.6</a>  Congestion control</h3></a><div class="p"><!----></div>Even with bandwidth rate limiting, we still need to worry aboutcongestion, either accidental or intentional. If enough users choose thesame OR-to-OR connection for their circuits, that connection can becomesaturated. For example, an attacker could send a large filethrough the Tor network to a webserver he runs, and thenrefuse to read any of the bytes at the webserver end of thecircuit. Without some congestion control mechanism, these bottleneckscan propagate back through the entire network. We don't need toreimplement full TCP windows (with sequence numbers,the ability to drop cells when we're full and retransmit later, and soon),because TCP already guarantees in-order delivery of eachcell.We describe our response below.<div class="p"><!----></div><b>Circuit-level throttling:</b>To control a circuit's bandwidth usage, each OR keeps track of twowindows. The <em>packaging window</em> tracks how many relay data cells the OR isallowed to package (from incoming TCP streams) for transmission back to the OP,and the <em>delivery window</em> tracks how many relay data cells it is willingto deliver to TCP streams outside the network. Each window is initialized(say, to 1000 data cells). When a data cell is packaged or delivered,the appropriate window is decremented. When an OR has received enoughdata cells (currently 100), it sends a <em>relay sendme</em> cell towards the OP,with streamID zero. When an OR receives a <em>relay sendme</em> cell withstreamID zero, it increments its packaging window. Either of these cellsincrements the corresponding window by 100. If the packaging windowreaches 0, the OR stops reading from TCP connections for all streamson the corresponding circuit, and sends no more relay data cells untilreceiving a <em>relay sendme</em> cell.<div class="p"><!----></div>The OP behaves identically, except that it must track a packaging windowand a delivery window for every OR in the circuit. If a packaging windowreaches 0, it stops reading from streams destined for that OR.<div class="p"><!----></div><b>Stream-level throttling</b>:The stream-level congestion control mechanism is similar to thecircuit-level mechanism. ORs and OPs use <em>relay sendme</em> cellsto implement end-to-end flow control for individual streams acrosscircuits. Each stream begins with a packaging window (currently 500 cells),and increments the window by a fixed value (50) upon receiving a <em>relaysendme</em> cell. Rather than always returning a <em>relay sendme</em> cell as soonas enough cells have arrived, the stream-level congestion control alsohas to check whether data has been successfully flushed onto the TCPstream; it sends the <em>relay sendme</em> cell only when the number of bytes pendingto be flushed is under some threshold (currently 10 cells' worth).<div class="p"><!----></div><div class="p"><!----></div>These arbitrarily chosen parameters seem to give tolerable throughputand delay; see Section <a href="#sec:in-the-wild">8</a>.<div class="p"><!----></div> <h2><a name="tth_sEc5"><a name="sec:rendezvous">5</a>  Rendezvous Points and hidden services</h2></a><div class="p"><!----></div>Rendezvous points are a building block for <em>location-hiddenservices</em> (also known as <em>responder anonymity</em>) in the Tornetwork.  Location-hidden services allow Bob to offer a TCPservice, such as a webserver, without revealing his IP address.This type of anonymity protects against distributed DoS attacks:attackers are forced to attack the onion routing networkbecause they do not know Bob's IP address.<div class="p"><!----></div>Our design for location-hidden servers has the following goals.<b>Access-control:</b> Bob needs a way to filter incoming requests,so an attacker cannot flood Bob simply by making many connections to him.<b>Robustness:</b> Bob should be able to maintain a long-term pseudonymousidentity even in the presence of router failure. Bob's service mustnot be tied to a single OR, and Bob must be able to migrate his serviceacross ORs. <b>Smear-resistance:</b>A social attackershould not be able to "frame" a rendezvous router byoffering an illegal or disreputable location-hidden service andmaking observers believe the router created that service.<b>Application-transparency:</b> Although we require usersto run special software to access location-hidden servers, we must notrequire them to modify their applications.<div class="p"><!----></div>We provide location-hiding for Bob by allowing him to advertiseseveral onion routers (his <em>introduction points</em>) as contactpoints. He may do this on any robust efficientkey-value lookup system with authenticated updates, such as adistributed hash table (DHT) like CFS [<a href="#cfs:sosp01" name="CITEcfs:sosp01">11</a>].<a href="#tthFtNtAAD" name="tthFrefAAD"><sup>3</sup></a> Alice, the client, chooses an OR as her<em>rendezvous point</em>. She connects to one of Bob's introductionpoints, informs him of her rendezvous point, and then waits for himto connect to the rendezvous point. This extra level of indirectionhelps Bob's introduction points avoid problems associated with servingunpopular files directly (for example, if Bob servesmaterial that the introduction point's community finds objectionable,or if Bob's service tends to get attacked by network vandals).The extra level of indirection also allows Bob to respond to some requestsand ignore others.<div class="p"><!----></div>     <h3><a name="tth_sEc5.1">5.1</a>  Rendezvous points in Tor</h3><div class="p"><!----></div>The following steps areperformed on behalf of Alice and Bob by their local OPs;application integration is described more fully below.<div class="p"><!----></div><dl compact="compact"> <dt><b></b></dt>	<dd><li>Bob generates a long-term public key pair to identify his service.</dd> <dt><b></b></dt>	<dd><li>Bob chooses some introduction points, and advertises them on      the lookup service, signing the advertisement with his public key.  He      can add more later.</dd> <dt><b></b></dt>	<dd><li>Bob builds a circuit to each of his introduction points, and tells      them to wait for requests.</dd> <dt><b></b></dt>	<dd><li>Alice learns about Bob's service out of band (perhaps Bob told her,      or she found it on a website).  She retrieves the details of Bob's      service from the lookup service.  If Alice wants to access Bob's      service anonymously, she must connect to the lookup service via Tor.</dd> <dt><b></b></dt>	<dd><li>Alice chooses an OR as the rendezvous point (RP) for her connection to      Bob's service. She builds a circuit to the RP, and gives it a      randomly chosen "rendezvous cookie" to recognize Bob.</dd> <dt><b></b></dt>	<dd><li>Alice opens an anonymous stream to one of Bob's introduction      points, and gives it a message (encrypted with Bob's public key)      telling it about herself,      her RP and rendezvous cookie, and the      start of a DH      handshake. The introduction point sends the message to Bob.</dd> <dt><b></b></dt>	<dd><li>If Bob wants to talk to Alice, he builds a circuit to Alice's      RP and sends the rendezvous cookie, the second half of the DH      handshake, and a hash of the session      key they now share. By the same argument as in      Section <a href="#subsubsec:constructing-a-circuit">4.2</a>, Alice knows she      shares the key only with Bob.</dd> <dt><b></b></dt>	<dd><li>The RP connects Alice's circuit to Bob's. Note that RP can't      recognize Alice, Bob, or the data they transmit.</dd> <dt><b></b></dt>	<dd><li>Alice sends a <em>relay begin</em> cell along the circuit. It      arrives at Bob's OP, which connects to Bob's      webserver.</dd> <dt><b></b></dt>	<dd><li>An anonymous stream has been established, and Alice and Bob      communicate as normal.</dd></dl><div class="p"><!----></div>When establishing an introduction point, Bob provides the onion routerwith the public key identifying his service.  Bob signs hismessages, so others cannot usurp his introduction pointin the future. He uses the same public key to establish the otherintroduction points for his service, and periodically refreshes hisentry in the lookup service.<div class="p"><!----></div>The message that Alice givesthe introduction point includes a hash of Bob's public key and an optional initial authorization token (theintroduction point can do prescreening, for example to block replays). Hermessage to Bob may include an end-to-end authorization token so Bobcan choose whether to respond.The authorization tokens can be used to provide selective access:important users can get uninterrupted access.During normal situations, Bob's service might simply be offereddirectly from mirrors, while Bob gives out tokens to high-priority users. Ifthe mirrors are knocked down,those users can switch to accessing Bob's service viathe Tor rendezvous system.<div class="p"><!----></div>Bob's introduction points are themselves subject to DoS — he mustopen many introduction points or risk such an attack.He can provide selected users with a current list or future schedule ofunadvertised introduction points;this is most practicalif there is a stable and large group of introduction pointsavailable. Bob could also give secret public keysfor consulting the lookup service. All of these approacheslimit exposure even whensome selected users collude in the DoS.<div class="p"><!----></div>     <h3><a name="tth_sEc5.2">5.2</a>  Integration with user applications</h3><div class="p"><!----></div>Bob configures his onion proxy to know the local IP address and port of hisservice, a strategy for authorizing clients, and his public key. The onionproxy anonymously publishes a signed statement of Bob'spublic key, an expiration time, andthe current introduction points for his service onto the lookup service,indexedby the hash of his public key.  Bob's webserver is unmodified,and doesn't even know that it's hidden behind the Tor network.<div class="p"><!----></div>Alice's applications also work unchanged — her client interfaceremains a SOCKS proxy.  We encode all of the necessary informationinto the fully qualified domain name (FQDN) Alice uses when establishing herconnection. Location-hidden services use a virtual top level domaincalled <tt>.onion</tt>: thus hostnames take the form <tt>x.y.onion</tt> where<tt>x</tt> is the authorization cookie and <tt>y</tt> encodes the hash ofthe public key. Alice's onion proxyexamines addresses; if they're destined for a hidden server, it decodesthe key and starts the rendezvous as described above.<div class="p"><!----></div>     <h3><a name="tth_sEc5.3">5.3</a>  Previous rendezvous work</h3><div class="p"><!----></div>Rendezvous points in low-latency anonymity systems were firstdescribed for use in ISDN telephony [<a href="#jerichow-jsac98" name="CITEjerichow-jsac98">30</a>,<a href="#isdn-mixes" name="CITEisdn-mixes">38</a>].Later low-latency designs used rendezvous points for hiding locationof mobile phones and low-power locationtrackers [<a href="#federrath-ih96" name="CITEfederrath-ih96">23</a>,<a href="#reed-protocols97" name="CITEreed-protocols97">40</a>].  Rendezvous foranonymizing low-latencyInternet connections was suggested in early Onion Routingwork [<a href="#or-ih96" name="CITEor-ih96">27</a>], but the first published design was by IanGoldberg [<a href="#ian-thesis" name="CITEian-thesis">26</a>]. His design differs fromours in three ways. First, Goldberg suggests that Alice should manuallyhunt down a current location of the service via Gnutella; our approachmakes lookup transparent to the user, as well as faster and more robust.Second, in Tor the client and server negotiate session keyswith Diffie-Hellman, so plaintext is not exposed even at the rendezvouspoint. Third,our design minimizes the exposure from running theservice, to encourage volunteers to offer introduction and rendezvousservices. Tor's introduction points do not output any bytes to theclients; the rendezvous points don't know the client or the server,and can't read the data being transmitted. The indirection scheme isalso designed to include authentication/authorization — if Alice doesn'tinclude the right cookie with her request for service, Bob need not evenacknowledge his existence.<div class="p"><!----></div> <h2><a name="tth_sEc6"><a name="sec:other-design">6</a>  Other design decisions</h2></a><div class="p"><!----></div>     <h3><a name="tth_sEc6.1"><a name="subsec:dos">6.1</a>  Denial of service</h3></a><div class="p"><!----></div>Providing Tor as a public service creates many opportunities fordenial-of-service attacks against the network.  Whileflow control and rate limiting (discussed inSection <a href="#subsec:congestion">4.6</a>) prevent users from consuming morebandwidth than routers are willing to provide, opportunities remain forusers toconsume more network resources than their fair share, or to render thenetwork unusable for others.<div class="p"><!----></div>First of all, there are several CPU-consuming denial-of-serviceattacks wherein an attacker can force an OR to perform expensivecryptographic operations.  For example, an attacker can fake the start of a TLS handshake, forcing the OR to carry out its(comparatively expensive) half of the handshake at no real computationalcost to the attacker.<div class="p"><!----></div>We have not yet implemented any defenses for these attacks, but severalapproaches are possible. First, ORs canrequire clients to solve a puzzle [<a href="#puzzles-tls" name="CITEpuzzles-tls">16</a>] while beginning newTLS handshakes or accepting <em>create</em> cells.  So long as thesetokens are easy to verify and computationally expensive to produce, thisapproach limits the attack multiplier.  Additionally, ORs can limitthe rate at which they accept <em>create</em> cells and TLS connections,so thatthe computational work of processing them does not drown out thesymmetric cryptography operations that keep cellsflowing.  This rate limiting could, however, allow an attackerto slow down other users when they build new circuits.<div class="p"><!----></div><div class="p"><!----></div>Adversaries can also attack the Tor network's hosts and networklinks. Disrupting a single circuit or link breaks all streams passingalong that part of the circuit. Users similarly lose servicewhen a router crashes or its operator restarts it. The currentTor design treats such attacks as intermittent network failures, anddepends on users and applications to respond or recover as appropriate. Afuture design could use an end-to-end TCP-like acknowledgment protocol,so no streams are lost unless the entry or exit point isdisrupted. This solution would require more buffering at the networkedges, however, and the performance and anonymity implications from thisextra complexity still require investigation.<div class="p"><!----></div>     <h3><a name="tth_sEc6.2"><a name="subsec:exitpolicies">6.2</a>  Exit policies and abuse</h3></a><div class="p"><!----></div><div class="p"><!----></div>Exit abuse is a serious barrier to wide-scale Tor deployment. Anonymitypresents would-be vandals and abusers with an opportunity to hidethe origins of their activities. Attackers can harm the Tor network byimplicating exit servers for their abuse. Also, applications that commonlyuse IP-based authentication (such as institutional mail or webservers)can be fooled by the fact that anonymous connections appear to originateat the exit OR.<div class="p"><!----></div>We stress that Tor does not enable any new class of abuse. Spammersand other attackers already have access to thousands of misconfiguredsystems worldwide, and the Tor network is far from the easiest wayto launch attacks.But because theonion routers can be mistaken for the originators of the abuse,and the volunteers who run them may not want to deal with the hassle ofexplaining anonymity networks to irate administrators, we must block or limitabuse through the Tor network.<div class="p"><!----></div>To mitigate abuse issues, each onion router's <em>exit policy</em>describes to which external addresses and ports the router willconnect. On one end of the spectrum are <em>open exit</em>nodes that will connect anywhere. On the other end are <em>middleman</em>nodes that only relay traffic to other Tor nodes, and <em>private exit</em>nodes that only connect to a local host or network.  A privateexit can allow a client to connect to a given host ornetwork more securely — an external adversary cannot eavesdrop trafficbetween the private exit and the final destination, and so is less sure ofAlice's destination and activities. Most onion routers in the currentnetwork function as<em>restricted exits</em> that permit connections to the world at large,but prevent access to certain abuse-prone addresses and services suchas SMTP.The OR might also be able to authenticate clients toprevent exit abuse without harming anonymity [<a href="#or-discex00" name="CITEor-discex00">48</a>].<div class="p"><!----></div><div class="p"><!----></div>Many administrators use port restrictions to support only alimited set of services, such as HTTP, SSH, or AIM.This is not a complete solution, of course, since abuse opportunities for theseprotocols are still well known.<div class="p"><!----></div>We have not yet encountered any abuse in the deployed network, but ifwe do we should consider using proxies to clean traffic for certainprotocols as it leaves the network.  For example, much abusive HTTPbehavior (such as exploiting buffer overflows or well-known scriptvulnerabilities) can be detected in a straightforward manner.Similarly, one could run automatic spam filtering software (such asSpamAssassin) on email exiting the OR network.<div class="p"><!----></div>ORs may also rewrite exiting traffic to appendheaders or other information indicating that the traffic has passedthrough an anonymity service.  This approach is commonly usedby email-only anonymity systems.  ORs can alsorun on servers with hostnames like <tt>anonymous</tt> to furtheralert abuse targets to the nature of the anonymous traffic.<div class="p"><!----></div>A mixture of open and restricted exit nodes allows the mostflexibility for volunteers running servers. But while having manymiddleman nodes provides a large and robust network,having only a few exit nodes reduces the number of pointsan adversary needs to monitor for traffic analysis, and places agreater burden on the exit nodes.  This tension can be seen in theJava Anon Proxycascade model, wherein only one node in each cascade needs to handleabuse complaints — but an adversary only needs to observe the entryand exit of a cascade to perform traffic analysis on all thatcascade's users. The hydra model (many entries, few exits) presents adifferent compromise: only a few exit nodes are needed, but anadversary needs to work harder to watch all the clients; seeSection <a href="#sec:conclusion">10</a>.<div class="p"><!----></div>Finally, we note that exit abuse must not be dismissed as a peripheralissue: when a system's public image suffers, it can reduce the numberand diversity of that system's users, and thereby reduce the anonymityof the system itself.  Like usability, public perception is asecurity parameter.  Sadly, preventing abuse of open exit nodes is anunsolved problem, and will probably remain an arms race for theforeseeable future.  The abuse problems faced by Princeton's CoDeeNproject [<a href="#darkside" name="CITEdarkside">37</a>] give us a glimpse of likely issues.<div class="p"><!----></div>     <h3><a name="tth_sEc6.3"><a name="subsec:dirservers">6.3</a>  Directory Servers</h3></a><div class="p"><!----></div>First-generation Onion Routing designs [<a href="#freedom2-arch" name="CITEfreedom2-arch">8</a>,<a href="#or-jsac98" name="CITEor-jsac98">41</a>] usedin-band network status updates: each router flooded a signed statementto its neighbors, which propagated it onward. But anonymizing networkshave different security goals than typical link-state routing protocols.For example, delays (accidental or intentional)that can cause different parts of the network to have different viewsof link-state and topology are not only inconvenient: they giveattackers an opportunity to exploit differences in client knowledge.We also worry about attacks to deceive aclient about the router membership list, topology, or current networkstate. Such <em>partitioning attacks</em> on client knowledge help anadversary to efficiently deploy resourcesagainst a target [<a href="#minion-design" name="CITEminion-design">15</a>].<div class="p"><!----></div>Tor uses a small group of redundant, well-known onion routers totrack changes in network topology and node state, including keys andexit policies.  Each such <em>directory server</em> acts as an HTTPserver, so clients can fetch current network stateand router lists, and so other ORs can uploadstate information.  Onion routers periodically publish signedstatements of their state to each directory server. The directory serverscombine this information with their own views of network liveness,and generate a signed description (a <em>directory</em>) of the entirenetwork state. Client software ispre-loaded with a list of the directory servers and their keys,to bootstrap each client's view of the network.<div class="p"><!----></div>When a directory server receives a signed statement for an OR, itchecks whether the OR's identity key is recognized. Directoryservers do not advertise unrecognized ORs — if they did,an adversary could take over the network by creating manyservers [<a href="#sybil" name="CITEsybil">22</a>]. Instead, new nodes must be approved by thedirectoryserver administrator before they are included. Mechanisms for automatednode approval are an area of active research, and are discussed morein Section <a href="#sec:maintaining-anonymity">9</a>.<div class="p"><!----></div>Of course, a variety of attacks remain. An adversary who controlsa directory server can track clients by providing them differentinformation — perhaps by listing only nodes under its control, or byinforming only certain clients about a given node. Even an externaladversary can exploit differences in client knowledge: clients who usea node listed on one directory server but not the others are vulnerable.<div class="p"><!----></div>Thus these directory servers must be synchronized and redundant, sothat they can agree on a common directory.  Clients should only trustthis directory if it is signed by a threshold of the directoryservers.<div class="p"><!----></div>The directory servers in Tor are modeled after those inMixminion [<a href="#minion-design" name="CITEminion-design">15</a>], but our situation is easier. First,we make thesimplifying assumption that all participants agree on the set ofdirectory servers. Second, while Mixminion needs to predict nodebehavior, Tor only needs a threshold consensus of the currentstate of the network. Third, we assume that we can fall back to thehuman administrators to discover and resolve problems when a consensusdirectory cannot be reached. Since there are relatively few directoryservers (currently 3, but we expect as many as 9 as the network scales),we can afford operations like broadcast to simplify the consensus-buildingprotocol.<div class="p"><!----></div>To avoid attacks where a router connects to all the directory serversbut refuses to relay traffic from other routers, the directory serversmust also build circuits and use them to anonymously test routerreliability [<a href="#mix-acc" name="CITEmix-acc">18</a>]. Unfortunately, this defense is not yetdesigned orimplemented.<div class="p"><!----></div>Using directory servers is simpler and more flexible than flooding.Flooding is expensive, and complicates the analysis when westart experimenting with non-clique network topologies. Signeddirectories can be cached by otheronion routers,so directory servers are not a performancebottleneck when we have many users, and do not aid traffic analysis byforcing clients to announce their existence to anycentral point.<div class="p"><!----></div> <h2><a name="tth_sEc7"><a name="sec:attacks">7</a>  Attacks and Defenses</h2></a><div class="p"><!----></div>Below we summarize a variety of attacks, and discuss how well ourdesign withstands them.<br /><div class="p"><!----></div><font size="+1"><b>Passive attacks</b></font><br /><em>Observing user traffic patterns.</em> Observing a user's connectionwill not reveal her destination or data, but it willreveal traffic patterns (both sent and received). Profiling via userconnection patterns requires further processing, because multipleapplication streams may be operating simultaneously or in series overa single circuit.<div class="p"><!----></div><em>Observing user content.</em> While content at the user end is encrypted,connections to responders may not be (indeed, the responding websiteitself may be hostile). While filtering content is not a primary goalof Onion Routing, Tor can directly use Privoxy and relatedfiltering services to anonymize application data streams.<div class="p"><!----></div><em>Option distinguishability.</em> We allow clients to chooseconfiguration options. For example, clients concerned about requestlinkability should rotate circuits more often than those concernedabout traceability. Allowing choice may attract users with different needs; but clients who arein the minority may lose more anonymity by appearing distinct than theygain by optimizing their behavior [<a href="#econymics" name="CITEeconymics">1</a>].<div class="p"><!----></div><em>End-to-end timing correlation.</em>  Tor only minimally hidessuch correlations. An attacker watching patterns oftraffic at the initiator and the responder will beable to confirm the correspondence with high probability. Thegreatest protection currently available against such confirmation is to hidethe connection between the onion proxy and the first Tor node,by running the OP on the Tor node or behind a firewall. This approachrequires an observer to separate traffic originating at the onionrouter from traffic passing through it: a global observer can do this,but it might be beyond a limited observer's capabilities.<div class="p"><!----></div><em>End-to-end size correlation.</em> Simple packet countingwill also be effective in confirmingendpoints of a stream. However, even without padding, we may have somelimited protection: the leaky pipe topology means different numbersof packets may enter one end of a circuit than exit at the other.<div class="p"><!----></div><em>Website fingerprinting.</em> All the effective passiveattacks above are traffic confirmation attacks,which puts them outside our design goals. There is alsoa passive traffic analysis attack that is potentially effective.Rather than searching exit connections for timing and volumecorrelations, the adversary may build up a database of"fingerprints" containing file sizes and access patterns fortargeted websites. He can later confirm a user's connection to a givensite simply by consulting the database. This attack hasbeen shown to be effective against SafeWeb [<a href="#hintz-pet02" name="CITEhintz-pet02">29</a>].It may be less effective against Tor, sincestreams are multiplexed within the same circuit, andfingerprinting will be limited tothe granularity of cells (currently 512 bytes). Additionaldefenses could includelarger cell sizes, padding schemes to group websitesinto large sets, and linkpadding or long-range dummies.<a href="#tthFtNtAAE" name="tthFrefAAE"><sup>4</sup></a><br /><div class="p"><!----></div><font size="+1"><b>Active attacks</b></font><br /><em>Compromise keys.</em> An attacker who learns the TLS session key cansee control cells and encrypted relay cells on every circuit on thatconnection; learning a circuitsession key lets him unwrap one layer of the encryption. An attackerwho learns an OR's TLS private key can impersonate that OR for the TLSkey's lifetime, but he mustalso learn the onion key to decrypt <em>create</em> cells (and because ofperfect forward secrecy, he cannot hijack already established circuitswithout also compromising their session keys). Periodic key rotationlimits the window of opportunity for these attacks. On the other hand,an attacker who learns a node's identity key can replace that nodeindefinitely by sending new forged descriptors to the directory servers.<div class="p"><!----></div><em>Iterated compromise.</em> A roving adversary who cancompromise ORs (by system intrusion, legal coercion, or extralegalcoercion) could march down the circuit compromising thenodes until he reaches the end.  Unless the adversary can completethis attack within the lifetime of the circuit, however, the ORswill have discarded the necessary information before the attack canbe completed.  (Thanks to the perfect forward secrecy of sessionkeys, the attacker cannot force nodes to decrypt recordedtraffic once the circuits have been closed.)  Additionally, buildingcircuits that cross jurisdictions can make legal coercionharder — this phenomenon is commonly called "jurisdictionalarbitrage." The Java Anon Proxy project recently experienced theneed for this approach, whena German court forced them to add a backdoor totheir nodes [<a href="#jap-backdoor" name="CITEjap-backdoor">51</a>].<div class="p"><!----></div><em>Run a recipient.</em> An adversary running a webservertrivially learns the timing patterns of users connecting to it, andcan introduce arbitrary patterns in its responses.End-to-end attacks become easier: if the adversary can induceusers to connect to his webserver (perhaps by advertisingcontent targeted to those users), he now holds one end of theirconnection.  There is also a danger that applicationprotocols and associated programs can be induced to reveal informationabout the initiator. Tor depends on Privoxy and similar protocol cleanersto solve this latter problem.<div class="p"><!----></div><em>Run an onion proxy.</em> It is expected that end users willnearly always run their own local onion proxy. However, in somesettings, it may be necessary for the proxy to runremotely — typically, in institutions that wantto monitor the activity of those connecting to the proxy.Compromising an onion proxy compromises all future connectionsthrough it.<div class="p"><!----></div><em>DoS non-observed nodes.</em> An observer who can only watch someof the Tor network can increase the value of this trafficby attacking non-observed nodes to shut them down, reducetheir reliability, or persuade users that they are not trustworthy.The best defense here is robustness.<div class="p"><!----></div><em>Run a hostile OR.</em>  In addition to being a local observer,an isolated hostile node can create circuits through itself, or altertraffic patterns to affect traffic at other nodes. Nonetheless, a hostilenode must be immediately adjacent to both endpoints to compromise theanonymity of a circuit. If an adversary canrun multiple ORs, and can persuade the directory serversthat those ORs are trustworthy and independent, then occasionallysome user will choose one of those ORs for the start and anotheras the end of a circuit. If an adversarycontrols m > 1 of N nodes, he can correlate at most([m/N])<sup>2</sup> of the traffic — although anadversarycould still attract a disproportionately large amount of trafficby running an OR with a permissive exit policy, or bydegrading the reliability of other routers.<div class="p"><!----></div><em>Introduce timing into messages.</em> This is simply a strongerversion of passive timing attacks already discussed earlier.<div class="p"><!----></div><em>Tagging attacks.</em> A hostile node could "tag" acell by altering it. If thestream were, for example, an unencrypted request to a Web site,the garbled content coming out at the appropriate time would confirmthe association. However, integrity checks on cells preventthis attack.<div class="p"><!----></div><em>Replace contents of unauthenticated protocols.</em>  Whenrelaying an unauthenticated protocol like HTTP, a hostile exit nodecan impersonate the target server. Clientsshould prefer protocols with end-to-end authentication.<div class="p"><!----></div><em>Replay attacks.</em> Some anonymity protocols are vulnerableto replay attacks.  Tor is not; replaying one side of a handshakewill result in a different negotiated session key, and so the restof the recorded session can't be used.<div class="p"><!----></div><em>Smear attacks.</em> An attacker could use the Tor network forsocially disapproved acts, to bring thenetwork into disrepute and get its operators to shut it down.Exit policies reduce the possibilities for abuse, butultimately the network requires volunteers who can toleratesome political heat.<div class="p"><!----></div><em>Distribute hostile code.</em> An attacker could trick usersinto running subverted Tor software that did not, in fact, anonymizetheir connections — or worse, could trick ORs into running weakenedsoftware that provided users with less anonymity.  We address thisproblem (but do not solve it completely) by signing all Tor releaseswith an official public key, and including an entry in the directorythat lists which versions are currently believed to be secure.  Toprevent an attacker from subverting the official release itself(through threats, bribery, or insider attacks), we provide allreleases in source code form, encourage source audits, andfrequently warn our users never to trust any software (even fromus) that comes without source.<br /><div class="p"><!----></div><font size="+1"><b>Directory attacks</b></font><br /><em>Destroy directory servers.</em>  If a few directoryservers disappear, the others still decide on a validdirectory.  So long as any directory servers remain in operation,they will still broadcast their views of the network and generate aconsensus directory.  (If more than half are destroyed, thisdirectory will not, however, have enough signatures for clients touse it automatically; human intervention will be necessary forclients to decide whether to trust the resulting directory.)<div class="p"><!----></div><em>Subvert a directory server.</em>  By taking over a directory server,an attacker can partially influence the final directory.  Since ORsare included or excluded by majority vote, the corrupt directory canat worst cast a tie-breaking vote to decide whether to includemarginal ORs.  It remains to be seen how often such marginal casesoccur in practice.<div class="p"><!----></div><em>Subvert a majority of directory servers.</em> An adversary who controlsmore than half the directory servers can include as many compromisedORs in the final directory as he wishes. We must ensure that directoryserver operators are independent and attack-resistant.<div class="p"><!----></div><em>Encourage directory server dissent.</em>  The directoryagreement protocol assumes that directory server operators agree onthe set of directory servers.  An adversary who can persuade someof the directory server operators to distrust one another couldsplit the quorum into mutually hostile camps, thus partitioningusers based on which directory they use.  Tor does not addressthis attack.<div class="p"><!----></div><em>Trick the directory servers into listing a hostile OR.</em>Our threat model explicitly assumes directory server operators willbe able to filter out most hostile ORs.<div class="p"><!----></div><em>Convince the directories that a malfunctioning OR isworking.</em>  In the current Tor implementation, directory serversassume that an OR is running correctly if they can start a TLSconnection to it.  A hostile OR could easily subvert this test byaccepting TLS connections from ORs but ignoring all cells. Directoryservers must actively test ORs by building circuits and streams asappropriate.  The tradeoffs of a similar approach are discussedin [<a href="#mix-acc" name="CITEmix-acc">18</a>].<br /><div class="p"><!----></div><font size="+1"><b>Attacks against rendezvous points</b></font><br /><em>Make many introduction requests.</em>  An attacker couldtry to deny Bob service by flooding his introduction points withrequests.  Because the introduction points can block requests thatlack authorization tokens, however, Bob can restrict the volume ofrequests he receives, or require a certain amount of computation forevery request he receives.<div class="p"><!----></div><em>Attack an introduction point.</em> An attacker coulddisrupt a location-hidden service by disabling its introductionpoints.  But because a service's identity is attached to its publickey, the service can simply re-advertiseitself at a different introduction point. Advertisements can also bedone secretly so that only high-priority clients know the address ofBob's introduction points or so that different clients know of differentintroduction points. This forces the attacker to disable all possibleintroduction points.<div class="p"><!----></div><em>Compromise an introduction point.</em> An attacker who controlsBob's introduction point can flood Bob withintroduction requests, or prevent valid introduction requests fromreaching him. Bob can notice a flood, and close the circuit.  To noticeblocking of valid requests, however, he should periodically test theintroduction point by sending rendezvous requests and makingsure he receives them.<div class="p"><!----></div><em>Compromise a rendezvous point.</em>  A rendezvouspoint is no more sensitive than any other OR ona circuit, since all data passing through the rendezvous is encryptedwith a session key shared by Alice and Bob.<div class="p"><!----></div> <h2><a name="tth_sEc8"><a name="sec:in-the-wild">8</a>  Early experiences: Tor in the Wild</h2></a><div class="p"><!----></div>As of mid-May 2004, the Tor network consists of 32 nodes(24 in the US, 8 in Europe), and more are joining each week as the codematures. (For comparison, the current remailer networkhas about 40 nodes.) Each node has at least a 768Kb/768Kb connection, andmany have 10Mb. The number of users varies (and of course, it's hard totell for sure), but we sometimes have several hundred users — administrators atseveral companies have begun sending their entire departments' webtraffic through Tor, to block other divisions oftheir company from reading their traffic. Tor users have reported usingthe network for web browsing, FTP, IRC, AIM, Kazaa, SSH, andrecipient-anonymous email via rendezvous points. One user has anonymouslyset up a Wiki as a hidden service, where other users anonymously publishthe addresses of their hidden services.<div class="p"><!----></div>Each Tor node currently processes roughly 800,000 relaycells (a bit under half a gigabyte) per week. On average, about 80%of each 498-byte payload is full for cells going back to the client,whereas about 40% is full for cells coming from the client. (The differencearises because most of the network's traffic is web browsing.) Interactivetraffic like SSH brings down the average a lot — once we have moreexperience, and assuming we can resolve the anonymity issues, we maypartition traffic into two relay cell sizes: one to handlebulk traffic and one for interactive traffic.<div class="p"><!----></div>Based in part on our restrictive default exit policy (wereject SMTP requests) and our low profile, we have had no abuseissues since the network was deployed in October2003. Our slow growth rate gives us time to add features,resolve bugs, and get a feel for what users actually want from ananonymity system.  Even though having more users would bolster ouranonymity sets, we are not eager to attract the Kazaa or warezcommunities — we feel that we must build a reputation for privacy, humanrights, research, and other socially laudable activities.<div class="p"><!----></div>As for performance, profiling shows that Tor spends almostall its CPU time in AES, which is fast.  Current latency is attributableto two factors. First, network latency is critical: we areintentionally bouncing traffic around the world several times. Second,our end-to-end congestion control algorithm focuses on protectingvolunteer servers from accidental DoS rather than on optimizingperformance. To quantify these effects, we did some informal tests using a network of 4nodes on the same machine (a heavily loaded 1GHz Athlon). We downloaded a 60megabyte file from <tt>debian.org</tt> every 30 minutes for 54 hours (108 samplepoints). It arrived in about 300 seconds on average, compared to 210s for adirect download. We ran a similar test on the production Tor network,fetching the front page of <tt>cnn.com</tt> (55 kilobytes):while a directdownload consistently took about 0.3s, the performance through Tor varied.Some downloads were as fast as 0.4s, with a median at 2.8s, and90% finishing within 5.3s.  It seems that as the network expands, the chanceof building a slow circuit (one that includes a slow or heavily loaded nodeor link) is increasing.  On the other hand, as our users remain satisfiedwith this increased latency, we can address our performance incrementally as weproceed with development. <div class="p"><!----></div><div class="p"><!----></div><div class="p"><!----></div>Although Tor's clique topology and full-visibility directories presentscaling problems, we still expect the network to support a few hundrednodes and maybe 10,000 users before we're forced to becomemore distributed. With luck, the experience we gain running the currenttopology will help us choose among alternatives when the time comes.<div class="p"><!----></div> <h2><a name="tth_sEc9"><a name="sec:maintaining-anonymity">9</a>  Open Questions in Low-latency Anonymity</h2></a><div class="p"><!----></div>In addition to the non-goals inSection <a href="#subsec:non-goals">3</a>, many questions must be solvedbefore we can be confident of Tor's security.<div class="p"><!----></div>Many of these open issues are questions of balance. For example,how often should users rotate to fresh circuits? Frequent rotationis inefficient, expensive, and may lead to intersection attacks andpredecessor attacks [<a href="#wright03" name="CITEwright03">54</a>], but infrequent rotation makes theuser's traffic linkable. Besides opening fresh circuits, clients canalso exit from the middle of the circuit,or truncate and re-extend the circuit. More analysis isneeded to determine the proper tradeoff.<div class="p"><!----></div><div class="p"><!----></div>How should we choose path lengths? If Alice always uses two hops,then both ORs can be certain that by colluding they will learn aboutAlice and Bob. In our current approach, Alice always chooses at leastthree nodes unrelated to herself and her destination.Should Alice choose a random path length (e.g. from a geometricdistribution) to foil an attacker whouses timing to learn that he is the fifth hop and thus concludes thatboth Alice and the responder are running ORs?<div class="p"><!----></div>Throughout this paper, we have assumed that end-to-end trafficconfirmation will immediately and automatically defeat a low-latencyanonymity system. Even high-latency anonymity systems can bevulnerable to end-to-end traffic confirmation, if the traffic volumesare high enough, and if users' habits are sufficientlydistinct [<a href="#statistical-disclosure" name="CITEstatistical-disclosure">14</a>,<a href="#limits-open" name="CITElimits-open">31</a>]. Can anything bedone tomake low-latency systems resist these attacks as well as high-latencysystems? Tor already makes some effort to conceal the starts and ends ofstreams by wrapping long-range control commands in identical-lookingrelay cells. Link padding could frustrate passive observers who countpackets; long-range padding could work against observers who own thefirst hop in a circuit. But more research remains to find an efficientand practical approach. Volunteers prefer not to run constant-bandwidthpadding; but no convincing traffic shaping approach has beenspecified. Recent work on long-range padding [<a href="#defensive-dropping" name="CITEdefensive-dropping">33</a>]shows promise. One could also try to reduce correlation in packet timingby batching and re-ordering packets, but it is unclear whether this couldimprove anonymity without introducing so much latency as to render thenetwork unusable.<div class="p"><!----></div>A cascade topology may better defend against traffic confirmation byaggregating users, and making padding andmixing more affordable.  Does the hydra topology (many input nodes,few output nodes) work better against some adversaries? Are we goingto get a hydra anyway because most nodes will be middleman nodes?<div class="p"><!----></div>Common wisdom suggests that Alice should run her own OR for bestanonymity, because traffic coming from her node could plausibly havecome from elsewhere. How much mixing does this approach need?  Is itimmediately beneficial because of real-world adversaries that can'tobserve Alice's router, but can run routers of their own?<div class="p"><!----></div>To scale to many users, and to prevent an attacker from observing thewhole network, it may be necessaryto support far more servers than Tor currently anticipates.This introduces several issues.  First, if approval by a central setof directory servers is no longer feasible, what mechanism should be usedto prevent adversaries from signing up many colluding servers? Second,if clients can no longer have a complete picture of the network,how can they perform discovery while preventing attackers frommanipulating or exploiting gaps in their knowledge?  Third, if thereare too many servers for every server to constantly communicate withevery other, which non-clique topology should the network use?(Restricted-route topologies promise comparable anonymity with betterscalability [<a href="#danezis-pets03" name="CITEdanezis-pets03">13</a>], but whatever topology we choose, weneed some way to keep attackers from manipulating their position withinit [<a href="#casc-rep" name="CITEcasc-rep">21</a>].) Fourth, if no central authority is trackingserver reliability, how do we stop unreliable servers from makingthe network unusable?  Fifth, do clients receive so much anonymityfrom running their own ORs that we should expect them all to doso [<a href="#econymics" name="CITEeconymics">1</a>], or do we need another incentive structure tomotivate them?  Tarzan and MorphMix present possible solutions.<div class="p"><!----></div><div class="p"><!----></div>When a Tor node goes down, all its circuits (and thus streams) must break.Will users abandon the system because of this brittleness? How welldoes the method in Section <a href="#subsec:dos">6.1</a> allow streams to survivenode failure? If affected users rebuild circuits immediately, how muchanonymity is lost? It seems the problem is even worse in a peer-to-peerenvironment — such systems don't yet provide an incentive for peers tostay connected when they're done retrieving content, so we would expecta higher churn rate.<div class="p"><!----></div><div class="p"><!----></div> <h2><a name="tth_sEc10"><a name="sec:conclusion">10</a>  Future Directions</h2></a><div class="p"><!----></div>Tor brings together many innovations into a unified deployable system. Thenext immediate steps include:<div class="p"><!----></div><em>Scalability:</em> Tor's emphasis on deployability and design simplicityhas led us to adopt a clique topology, semi-centralizeddirectories, and a full-network-visibility model for clientknowledge. These properties will not scale past a few hundred servers.Section <a href="#sec:maintaining-anonymity">9</a> describes some promisingapproaches, but more deployment experience will be helpful in learningthe relative importance of these bottlenecks.<div class="p"><!----></div><em>Bandwidth classes:</em> This paper assumes that all ORs havegood bandwidth and latency. We should instead adopt the MorphMix model,where nodes advertise their bandwidth level (DSL, T1, T3), andAlice avoids bottlenecks by choosing nodes that match orexceed her bandwidth. In this way DSL users can usefully join the Tornetwork.<div class="p"><!----></div><em>Incentives:</em> Volunteers who run nodes are rewarded with publicityand possibly better anonymity [<a href="#econymics" name="CITEeconymics">1</a>]. More nodes means increasedscalability, and more users can mean more anonymity. We need to continueexamining the incentive structures for participating in Tor. Further,we need to explore more approaches to limiting abuse, and understandwhy most people don't bother using privacy systems.<div class="p"><!----></div><em>Cover traffic:</em> Currently Tor omits cover traffic — its costsin performance and bandwidth are clear but its security benefits arenot well understood. We must pursue more research on link-level covertraffic and long-range cover traffic to determine whether some simple paddingmethod offers provable protection against our chosen adversary.<div class="p"><!----></div><div class="p"><!----></div><em>Caching at exit nodes:</em> Perhaps each exit node should run acaching web proxy [<a href="#shsm03" name="CITEshsm03">47</a>], to improve anonymity for cached pages(Alice's request neverleaves the Tor network), to improve speed, and to reduce bandwidth cost.On the other hand, forward security is weakened because cachesconstitute a record of retrieved files.  We must find the rightbalance between usability and security.<div class="p"><!----></div><em>Better directory distribution:</em>Clients currently download a description ofthe entire network every 15 minutes. As the state grows largerand clients more numerous, we may need a solution in whichclients receive incremental updates to directory state.More generally, we must find morescalable yet practical ways to distribute up-to-date snapshots ofnetwork status without introducing new attacks.<div class="p"><!----></div><em>Further specification review:</em> Our publicbyte-level specification [<a href="#tor-spec" name="CITEtor-spec">20</a>] needsexternal review.  We hope that as Toris deployed, more people will examine itsspecification.<div class="p"><!----></div><em>Multisystem interoperability:</em> We are currently working with thedesigner of MorphMix to unify the specification and implementation ofthe common elements of our two systems. So far, this seemsto be relatively straightforward.  Interoperability will allow testingand direct comparison of the two designs for trust and scalability.<div class="p"><!----></div><em>Wider-scale deployment:</em> The original goal of Tor was togain experience in deploying an anonymizing overlay network, andlearn from having actual users.  We are now at a point in designand development where we can start deploying a wider network.  Oncewe have many actual users, we will doubtlessly be betterable to evaluate some of our design decisions, including ourrobustness/latency tradeoffs, our performance tradeoffs (includingcell size), our abuse-prevention mechanisms, andour overall usability.<div class="p"><!----></div><div class="p"><!----></div><h2>Acknowledgments</h2> We thank Peter Palfrader, Geoff Goodell, Adam Shostack, Joseph Sokol-Margolis,   John Bashinski, and Zack Brown   for editing and comments; Matej Pfajfar, Andrei Serjantov, Marc Rennhard for design discussions; Bram Cohen for congestion control discussions; Adam Back for suggesting telescoping circuits; and Cathy Meadows for formal analysis of the <em>extend</em> protocol. This work has been supported by ONR and DARPA.<div class="p"><!----></div><div class="p"><!----></div><div class="p"><!----></div><h2>References</h2><dl compact="compact"><font size="-1"></font> <dt><a href="#CITEeconymics" name="econymics">[1]</a></dt><dd>A. Acquisti, R. Dingledine, and P. Syverson. On the economics of anonymity. In R. N. Wright, editor, <em>Financial Cryptography</em>.  Springer-Verlag, LNCS 2742, 2003.<div class="p"><!----></div></dd> <dt><a href="#CITEeternity" name="eternity">[2]</a></dt><dd>R. Anderson. The eternity service. In <em>Pragocrypt '96</em>, 1996.<div class="p"><!----></div></dd> <dt><a href="#CITEanonymizer" name="anonymizer">[3]</a></dt><dd>The Anonymizer. <tt><http://anonymizer.com/>.<div class="p"><!----></div></tt></dd> <dt><a href="#CITEfreedom21-security" name="freedom21-security">[4]</a></dt><dd>A. Back, I. Goldberg, and A. Shostack. Freedom systems 2.1 security issues and analysis. White paper, Zero Knowledge Systems, Inc., May 2001.<div class="p"><!----></div></dd> <dt><a href="#CITEback01" name="back01">[5]</a></dt><dd>A. Back, U. Möller, and A. Stiglic. Traffic analysis attacks and trade-offs in anonymity providing  systems. In I. S. Moskowitz, editor, <em>Information Hiding (IH 2001)</em>, pages  245-257. Springer-Verlag, LNCS 2137, 2001.<div class="p"><!----></div></dd> <dt><a href="#CITEeax" name="eax">[6]</a></dt><dd>M. Bellare, P. Rogaway, and D. Wagner. The EAX mode of operation: A two-pass authenticated-encryption  scheme optimized for simplicity and efficiency. In <em>Fast Software Encryption 2004</em>, February 2004.<div class="p"><!----></div></dd> <dt><a href="#CITEweb-mix" name="web-mix">[7]</a></dt><dd>O. Berthold, H. Federrath, and S. Köpsell. Web MIXes: A system for anonymous and unobservable Internet  access. In H. Federrath, editor, <em>Designing Privacy Enhancing  Technologies: Workshop on Design Issue in Anonymity and Unobservability</em>.  Springer-Verlag, LNCS 2009, 2000.<div class="p"><!----></div></dd> <dt><a href="#CITEfreedom2-arch" name="freedom2-arch">[8]</a></dt><dd>P. Boucher, A. Shostack, and I. Goldberg. Freedom systems 2.0 architecture. White paper, Zero Knowledge Systems, Inc., December 2000.<div class="p"><!----></div></dd> <dt><a href="#CITEcebolla" name="cebolla">[9]</a></dt><dd>Z. Brown. Cebolla: Pragmatic IP Anonymity. In <em>Ottawa Linux Symposium</em>, June 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEchaum-mix" name="chaum-mix">[10]</a></dt><dd>D. Chaum. Untraceable electronic mail, return addresses, and digital  pseudo-nyms. <em>Communications of the ACM</em>, 4(2), February 1981.<div class="p"><!----></div></dd> <dt><a href="#CITEcfs:sosp01" name="cfs:sosp01">[11]</a></dt><dd>F. Dabek, M. F. Kaashoek, D. Karger, R. Morris, and I. Stoica. Wide-area cooperative storage with CFS. In <em>18th ACM Symposium on Operating Systems Principles  (SOSP '01)</em>, Chateau Lake Louise, Banff, Canada, October 2001.<div class="p"><!----></div></dd> <dt><a href="#CITEpipenet" name="pipenet">[12]</a></dt><dd>W. Dai. Pipenet 1.1. Usenet post, August 1996. <tt><http://www.eskimo.com/ weidai/pipenet.txt> First mentioned in a  post to the cypherpunks list, Feb. 1995.<div class="p"><!----></div></tt></dd> <dt><a href="#CITEdanezis-pets03" name="danezis-pets03">[13]</a></dt><dd>G. Danezis. Mix-networks with restricted routes. In R. Dingledine, editor, <em>Privacy Enhancing Technologies (PET  2003)</em>. Springer-Verlag LNCS 2760, 2003.<div class="p"><!----></div></dd> <dt><a href="#CITEstatistical-disclosure" name="statistical-disclosure">[14]</a></dt><dd>G. Danezis. Statistical disclosure attacks. In <em>Security and Privacy in the Age of Uncertainty (SEC2003)</em>,  pages 421-426, Athens, May 2003. IFIP TC11, Kluwer.<div class="p"><!----></div></dd> <dt><a href="#CITEminion-design" name="minion-design">[15]</a></dt><dd>G. Danezis, R. Dingledine, and N. Mathewson. Mixminion: Design of a type III anonymous remailer protocol. In <em>2003 IEEE Symposium on Security and Privacy</em>, pages 2-15.  IEEE CS, May 2003.<div class="p"><!----></div></dd> <dt><a href="#CITEpuzzles-tls" name="puzzles-tls">[16]</a></dt><dd>D. Dean and A. Stubblefield. Using Client Puzzles to Protect TLS. In <em>Proceedings of the 10th USENIX Security Symposium</em>. USENIX,  Aug. 2001.<div class="p"><!----></div></dd> <dt><a href="#CITETLS" name="TLS">[17]</a></dt><dd>T. Dierks and C. Allen. The TLS Protocol - Version 1.0. IETF RFC 2246, January 1999.<div class="p"><!----></div></dd> <dt><a href="#CITEmix-acc" name="mix-acc">[18]</a></dt><dd>R. Dingledine, M. J. Freedman, D. Hopwood, and D. Molnar. A Reputation System to Increase MIX-net Reliability. In I. S. Moskowitz, editor, <em>Information Hiding (IH 2001)</em>, pages  126-141. Springer-Verlag, LNCS 2137, 2001.<div class="p"><!----></div></dd> <dt><a href="#CITEfreehaven-berk" name="freehaven-berk">[19]</a></dt><dd>R. Dingledine, M. J. Freedman, and D. Molnar. The free haven project: Distributed anonymous storage service. In H. Federrath, editor, <em>Designing Privacy Enhancing  Technologies: Workshop on Design Issue in Anonymity and Unobservability</em>.  Springer-Verlag, LNCS 2009, July 2000.<div class="p"><!----></div></dd> <dt><a href="#CITEtor-spec" name="tor-spec">[20]</a></dt><dd>R. Dingledine and N. Mathewson. Tor protocol specifications. <tt><http://freehaven.net/tor/tor-spec.txt>.<div class="p"><!----></div></tt></dd> <dt><a href="#CITEcasc-rep" name="casc-rep">[21]</a></dt><dd>R. Dingledine and P. Syverson. Reliable MIX Cascade Networks through Reputation. In M. Blaze, editor, <em>Financial Cryptography</em>. Springer-Verlag,  LNCS 2357, 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEsybil" name="sybil">[22]</a></dt><dd>J. Douceur. The Sybil Attack. In <em>Proceedings of the 1st International Peer To Peer Systems  Workshop (IPTPS)</em>, Mar. 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEfederrath-ih96" name="federrath-ih96">[23]</a></dt><dd>H. Federrath, A. Jerichow, and A. Pfitzmann. MIXes in mobile communication systems: Location management with  privacy. In R. Anderson, editor, <em>Information Hiding, First International  Workshop</em>, pages 121-135. Springer-Verlag, LNCS 1174, May 1996.<div class="p"><!----></div></dd> <dt><a href="#CITEtarzan:ccs02" name="tarzan:ccs02">[24]</a></dt><dd>M. J. Freedman and R. Morris. Tarzan: A peer-to-peer anonymizing network layer. In <em>9th ACM Conference on Computer and Communications  Security (CCS 2002)</em>, Washington, DC, November 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEherbivore" name="herbivore">[25]</a></dt><dd>S. Goel, M. Robson, M. Polte, and E. G. Sirer. Herbivore: A scalable and efficient protocol for anonymous  communication. Technical Report TR2003-1890, Cornell University Computing and  Information Science, February 2003.<div class="p"><!----></div></dd> <dt><a href="#CITEian-thesis" name="ian-thesis">[26]</a></dt><dd>I. Goldberg. <em>A Pseudonymous Communications Infrastructure for the Internet</em>. PhD thesis, UC Berkeley, Dec 2000.<div class="p"><!----></div></dd> <dt><a href="#CITEor-ih96" name="or-ih96">[27]</a></dt><dd>D. M. Goldschlag, M. G. Reed, and P. F. Syverson. Hiding routing information. In R. Anderson, editor, <em>Information Hiding, First International  Workshop</em>, pages 137-150. Springer-Verlag, LNCS 1174, May 1996.<div class="p"><!----></div></dd> <dt><a href="#CITEbabel" name="babel">[28]</a></dt><dd>C. Gülcü and G. Tsudik. Mixing E-mail with Babel. In <em>Network and Distributed Security Symposium (NDSS 96)</em>,  pages 2-16. IEEE, February 1996.<div class="p"><!----></div></dd> <dt><a href="#CITEhintz-pet02" name="hintz-pet02">[29]</a></dt><dd>A. Hintz. Fingerprinting websites using traffic analysis. In R. Dingledine and P. Syverson, editors, <em>Privacy Enhancing  Technologies (PET 2002)</em>, pages 171-178. Springer-Verlag, LNCS 2482, 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEjerichow-jsac98" name="jerichow-jsac98">[30]</a></dt><dd>A. Jerichow, J. Müller, A. Pfitzmann, B. Pfitzmann, and M. Waidner. Real-time mixes: A bandwidth-efficient anonymity protocol. <em>IEEE Journal on Selected Areas in Communications</em>,  16(4):495-509, May 1998.<div class="p"><!----></div></dd> <dt><a href="#CITElimits-open" name="limits-open">[31]</a></dt><dd>D. Kesdogan, D. Agrawal, and S. Penz. Limits of anonymity in open environments. In F. Petitcolas, editor, <em>Information Hiding Workshop (IH  2002)</em>. Springer-Verlag, LNCS 2578, October 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEsocks4" name="socks4">[32]</a></dt><dd>D. Koblas and M. R. Koblas. SOCKS. In <em>UNIX Security III Symposium (1992 USENIX Security  Symposium)</em>, pages 77-83. USENIX, 1992.<div class="p"><!----></div></dd> <dt><a href="#CITEdefensive-dropping" name="defensive-dropping">[33]</a></dt><dd>B. N. Levine, M. K. Reiter, C. Wang, and M. Wright. Timing analysis in low-latency mix-based systems. In A. Juels, editor, <em>Financial Cryptography</em>. Springer-Verlag,  LNCS (forthcoming), 2004.<div class="p"><!----></div></dd> <dt><a href="#CITEhordes-jcs" name="hordes-jcs">[34]</a></dt><dd>B. N. Levine and C. Shields. Hordes: A multicast-based protocol for anonymity. <em>Journal of Computer Security</em>, 10(3):213-240, 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEmeadows96" name="meadows96">[35]</a></dt><dd>C. Meadows. The NRL protocol analyzer: An overview. <em>Journal of Logic Programming</em>, 26(2):113-131, 1996.<div class="p"><!----></div></dd> <dt><a href="#CITEmixmaster-spec" name="mixmaster-spec">[36]</a></dt><dd>U. Möller, L. Cottrell, P. Palfrader, and L. Sassaman. Mixmaster Protocol - Version 2. Draft, July 2003. <tt><http://www.abditum.com/mixmaster-spec.txt>.<div class="p"><!----></div></tt></dd> <dt><a href="#CITEdarkside" name="darkside">[37]</a></dt><dd>V. S. Pai, L. Wang, K. Park, R. Pang, and L. Peterson. The Dark Side of the Web: An Open Proxy's View. <tt><http://codeen.cs.princeton.edu/>.<div class="p"><!----></div></tt></dd> <dt><a href="#CITEisdn-mixes" name="isdn-mixes">[38]</a></dt><dd>A. Pfitzmann, B. Pfitzmann, and M. Waidner. ISDN-mixes: Untraceable communication with very small bandwidth  overhead. In <em>GI/ITG Conference on Communication in Distributed Systems</em>,  pages 451-463, February 1991.<div class="p"><!----></div></dd> <dt><a href="#CITEprivoxy" name="privoxy">[39]</a></dt><dd>Privoxy. <tt><http://www.privoxy.org/>.<div class="p"><!----></div></tt></dd> <dt><a href="#CITEreed-protocols97" name="reed-protocols97">[40]</a></dt><dd>M. G. Reed, P. F. Syverson, and D. M. Goldschlag. Protocols using anonymous connections: Mobile applications. In B. Christianson, B. Crispo, M. Lomas, and M. Roe, editors, <em>  Security Protocols: 5th International Workshop</em>, pages 13-23.  Springer-Verlag, LNCS 1361, April 1997.<div class="p"><!----></div></dd> <dt><a href="#CITEor-jsac98" name="or-jsac98">[41]</a></dt><dd>M. G. Reed, P. F. Syverson, and D. M. Goldschlag. Anonymous connections and onion routing. <em>IEEE Journal on Selected Areas in Communications</em>,  16(4):482-494, May 1998.<div class="p"><!----></div></dd> <dt><a href="#CITEcrowds-tissec" name="crowds-tissec">[42]</a></dt><dd>M. K. Reiter and A. D. Rubin. Crowds: Anonymity for web transactions. <em>ACM TISSEC</em>, 1(1):66-92, June 1998.<div class="p"><!----></div></dd> <dt><a href="#CITEmorphmix:fc04" name="morphmix:fc04">[43]</a></dt><dd>M. Rennhard and B. Plattner. Practical anonymity for the masses with morphmix. In A. Juels, editor, <em>Financial Cryptography</em>. Springer-Verlag,  LNCS (forthcoming), 2004.<div class="p"><!----></div></dd> <dt><a href="#CITEanonnet" name="anonnet">[44]</a></dt><dd>M. Rennhard, S. Rafaeli, L. Mathy, B. Plattner, and D. Hutchison. Analysis of an Anonymity Network for Web Browsing. In <em>IEEE 7th Intl. Workshop on Enterprise Security (WET ICE  2002)</em>, Pittsburgh, USA, June 2002.<div class="p"><!----></div></dd> <dt><a href="#CITESS03" name="SS03">[45]</a></dt><dd>A. Serjantov and P. Sewell. Passive attack analysis for connection-based anonymity systems. In <em>Computer Security - ESORICS 2003</em>. Springer-Verlag, LNCS  2808, October 2003.<div class="p"><!----></div></dd> <dt><a href="#CITEp5" name="p5">[46]</a></dt><dd>R. Sherwood, B. Bhattacharjee, and A. Srinivasan. p<sup>5</sup>: A protocol for scalable anonymous communication. In <em>IEEE Symposium on Security and Privacy</em>, pages 58-70. IEEE  CS, 2002.<div class="p"><!----></div></dd> <dt><a href="#CITEshsm03" name="shsm03">[47]</a></dt><dd>A. Shubina and S. Smith. Using caching for browsing anonymity. <em>ACM SIGEcom Exchanges</em>, 4(2), Sept 2003.<div class="p"><!----></div></dd> <dt><a href="#CITEor-discex00" name="or-discex00">[48]</a></dt><dd>P. Syverson, M. Reed, and D. Goldschlag. Onion Routing access configurations. In <em>DARPA Information Survivability Conference and Exposition  (DISCEX 2000)</em>, volume 1, pages 34-40. IEEE CS Press, 2000.<div class="p"><!----></div></dd> <dt><a href="#CITEor-pet00" name="or-pet00">[49]</a></dt><dd>P. Syverson, G. Tsudik, M. Reed, and C. Landwehr. Towards an Analysis of Onion Routing Security. In H. Federrath, editor, <em>Designing Privacy Enhancing  Technologies: Workshop on Design Issue in Anonymity and Unobservability</em>,  pages 96-114. Springer-Verlag, LNCS 2009, July 2000.<div class="p"><!----></div></dd> <dt><a href="#CITEtannenbaum96" name="tannenbaum96">[50]</a></dt><dd>A. Tannenbaum. Computer networks, 1996.<div class="p"><!----></div></dd> <dt><a href="#CITEjap-backdoor" name="jap-backdoor">[51]</a></dt><dd>The AN.ON Project. German police proceeds against anonymity service. Press release, September 2003.  <tt><http://www.datenschutzzentrum.de/material/themen/presse/anon-bka_e.htm>.<div class="p"><!----></div></tt></dd> <dt><a href="#CITEtangler" name="tangler">[52]</a></dt><dd>M. Waldman and D. Mazières. Tangler: A censorship-resistant publishing system based on document  entanglements. In <em>8<sup>th</sup> ACM Conference on Computer and Communications  Security (CCS-8)</em>, pages 86-135. ACM Press, 2001.<div class="p"><!----></div></dd> <dt><a href="#CITEpublius" name="publius">[53]</a></dt><dd>M. Waldman, A. Rubin, and L. Cranor. Publius: A robust, tamper-evident, censorship-resistant and  source-anonymous web publishing system. In <em>Proc. 9th USENIX Security Symposium</em>, pages 59-72, August  2000.<div class="p"><!----></div></dd> <dt><a href="#CITEwright03" name="wright03">[54]</a></dt><dd>M. Wright, M. Adler, B. N. Levine, and C. Shields. Defending anonymous communication against passive logging attacks. In <em>IEEE Symposium on Security and Privacy</em>, pages 28-41. IEEE  CS, May 2003.</dd></dl><div class="p"><!----></div><hr /><h3>Footnotes:</h3><div class="p"><!----></div><a name="tthFtNtAAB"></a><a href="#tthFrefAAB"><sup>1</sup></a>Actually, the negotiated key is used to derive two  symmetric keys: one for each direction.<div class="p"><!----></div><a name="tthFtNtAAC"></a><a href="#tthFrefAAC"><sup>2</sup></a>        With 48 bits of digest per cell, the probability of an accidentalcollision is far lower than the chance of hardware failure.<div class="p"><!----></div><a name="tthFtNtAAD"></a><a href="#tthFrefAAD"><sup>3</sup></a>Rather than rely on an external infrastructure, the Onion Routing networkcan run the lookup service itself.  Our current implementation provides asimple lookup system on thedirectory servers.<div class="p"><!----></div><a name="tthFtNtAAE"></a><a href="#tthFrefAAE"><sup>4</sup></a>Note that this fingerprintingattack should not be confused with the much more complicated latencyattacks of [<a href="#back01" name="CITEback01">5</a>], which require a fingerprint of the latenciesof all circuits through the network, combined with those from thenetwork edges to the target user and the responder website.<br /><br /><hr /><small>File translated fromT<sub><font size="-1">E</font></sub>Xby <a href="http://hutchinson.belmont.ma.us/tth/">T<sub><font size="-1">T</font></sub>H</a>,version 3.59.<br />On 18 May 2004, 10:45.</small></body></html>
 |