Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are...
Transcript of Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are...
![Page 1: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/1.jpg)
1
Tor: a quick overview
Roger DingledineThe Tor Project
https://torproject.org/
![Page 2: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/2.jpg)
2
What is Tor?
● Online anonymity 1) software, 2) network, 3) protocol
● Open source, freely available● Community of researchers, developers,
users, and relay operators● Funding from US DoD, Electronic
Frontier Foundation, Voice of America, Google, NLnet, Human Rights Watch, ...
![Page 3: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/3.jpg)
3
● 501(c)(3) non-profit organization dedicated to the research and development of tools for online anonymity and privacy
The Tor Project, Inc.
![Page 4: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/4.jpg)
4
Estimated 400,000 daily Tor users
![Page 5: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/5.jpg)
5
Threat model:what can the attacker do?
AliceAnonymity network Bob
watch (or be!) Bob!
watch Alice!
Control part of the network!
![Page 6: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/6.jpg)
6
Anonymity isn't cryptography: Cryptography just protects contents.
Alice
Bob
“Hi, Bob!”“Hi, Bob!” <gibberish>
attacker
![Page 7: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/7.jpg)
7
Anonymity isn't just wishful thinking...“You can't prove it was me!”
“Promise you won't look!”
“Promise you won't remember!”
“Promise you won't tell!”
“I didn't write my name on it!”
“Isn't the Internet already anonymous?”
![Page 8: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/8.jpg)
8
Anonymity serves different interests for different user groups.
Anonymity
Private citizens“It's privacy!”
![Page 9: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/9.jpg)
9
Anonymity serves different interests for different user groups.
Anonymity
Private citizens
Businesses
“It's network security!”
“It's privacy!”
![Page 10: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/10.jpg)
10
Anonymity serves different interests for different user groups.
Anonymity
Private citizens
Governments Businesses
“It's traffic-analysisresistance!”
“It's network security!”
“It's privacy!”
![Page 11: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/11.jpg)
11
Anonymity serves different interests for different user groups.
Anonymity
Private citizens
Governments Businesses
“It's traffic-analysisresistance!”
“It's network security!”
“It's privacy!”
Blocked users“It's reachability!”
![Page 12: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/12.jpg)
12
Regular citizens don't want to be watched and tracked.
(the network can track too)
Hostile Bob
Incompetent Bob
Indifferent Bob
“Oops, I lost the logs.” The AOL fiasco
“I sell the logs.”
“Hey, they aren't my secrets.”
Name, address,age, friends,
interests(medical, financial, etc),
unpopular opinions,illegal opinions....
BloggerAlice
8-year-oldAlice
SickAlice
ConsumerAlice
OppressedAlice
....
![Page 13: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/13.jpg)
13
Businesses need to keep trade secrets.
AliceCorp
Competitor
Competitor
Compromisednetwork
“Oh, your employees are reading our patents/jobs page/product sheets?”
“Hey, it's Alice! Give her the 'Alice' version!”
“Wanna buy a list of Alice's suppliers?What about her customers?
What about her engineering department'sfavorite search terms?”
![Page 14: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/14.jpg)
14
Law enforcement needs anonymity to get the job done.
OfficerAlice
Investigatedsuspect
Stingtarget
Anonymoustips
“Why is alice.localpolice.gov reading my website?”
“Why no, alice.localpolice.gov!I would never sell counterfeits on ebay!”
Witness/informerAlice
“Is my family safe if Igo after these guys?”
OrganizedCrime
“Are they really going to ensuremy anonymity?”
![Page 15: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/15.jpg)
15
Governments need anonymityfor their security
Coalitionmember
Alice
Sharednetwork
Defense inDepth
UntrustedISP
“Do I really want to reveal myinternal network topology?”
“What about insiders?”
AgentAlice
“What does FBI Google for?”Compromisedservice
“What will you bid for a list of BaghdadIP addresses that get email from .gov?”
“Somebody in that hotel room justchecked his Navy.mil mail!”
![Page 16: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/16.jpg)
16
Journalists and activists need Tor for their personal safety
BlockedAlice
Filteredwebsite
Monitorednetwork
MonitoringISP
“What does the Global Voices website say today?”
“I want to tell people what's going on in my country”
“I think they're watching. I'm not even going to try.”
Activist/Whistleblower
Alice “Where are the bloggers connecting from?”“I run livejournal and track my users”
“Of course I tell China about my users”Monitored
website
“Did you just post to that website?”
![Page 17: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/17.jpg)
17
You can't get anonymity on your own: private solutions are ineffective...
OfficerAlice
Investigatedsuspect
...
AliceCorp
Competitor
CitizenAlice
AliceCorpanonymity net
Municipalanonymity net
Alice's smallanonymity net
“Looks like a cop.”
“It's somebody at AliceCorp!”
“One of the 25 userson AliceNet.”
![Page 18: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/18.jpg)
18
... so, anonymity loves company!
OfficerAlice
Investigatedsuspect
...
AliceCorp
Competitor
CitizenAlice
Sharedanonymity net
“???”
“???”
“???”
![Page 19: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/19.jpg)
19
Yes, bad people need anonymity too.But they are already doing well.
Evil Criminal Alice
Stolen mobilephones
Compromisedbotnet
Open wireless nets
.....
![Page 20: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/20.jpg)
20
Current situation: Bad people on the Internet are doing fine
TrojansVirusesExploits
PhishingSpam
BotnetsZombies
EspionageDDoS
Extortion
![Page 21: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/21.jpg)
21
The simplest designs use a single relay to hide connections.
Bob2
Bob1
Bob3
Alice2
Alice1
Alice3
Relay
E(Bob3,“X”)
E(Bob1, “Y”)
E(Bob2, “Z”)
“Y”
“Z”
“X”
(example: some commercial proxy providers)
![Page 22: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/22.jpg)
22
But a single relay (or eavesdropper!) is a single point of failure.
Bob2
Bob1
Bob3
Alice2
Alice1
Alice3
EvilRelay
E(Bob3,“X”)
E(Bob1, “Y”)
E(Bob2, “Z”)
“Y”
“Z”
“X”
![Page 23: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/23.jpg)
23
... or a single point of bypass.
Bob2
Bob1
Bob3
Alice2
Alice1
Alice3
IrrelevantRelay
E(Bob3,“X”)
E(Bob1, “Y”)
E(Bob2, “Z”)
“Y”
“Z”
“X”
Timing analysis bridges all connections through relay ⇒ An attractive fat target
![Page 24: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/24.jpg)
24
So, add multiple relays so thatno single one can betray Alice.
BobAlice
R1
R2
R3
R4 R5
![Page 25: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/25.jpg)
25
A corrupt first hop can tell that Alice is talking, but not to whom.
BobAlice
R1
R2
R3
R4 R5
![Page 26: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/26.jpg)
26
A corrupt final hop can tell that somebody is talking to Bob,
but not who.BobAlice
R1
R2
R3
R4 R5
![Page 27: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/27.jpg)
27
Alice makes a session key with R1...And then tunnels to R2...and to R3
BobAlice
R1
R2
R3
R4 R5
Bob2
![Page 28: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/28.jpg)
28
Snooping on Exit Relays● Lots of press in 2007 about people
watching traffic coming out of Tor.● If you want end-to-end encryption (like
https), then you need to get it separately.● Tor hides your location; it doesn't
magically encrypt all traffic on the Internet.
● Though Tor does protect from your local network.
![Page 29: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/29.jpg)
29
Javascript, cookies, history, etc● Javascript refresh attack● Cookies, History, browser window size,
user-agent, language, http auth, ... ● Mike Perry's Torbutton extension for
Firefox fixes many of these, but not all
![Page 30: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/30.jpg)
30
Flash is dangerous too
● Some apps are bad at obeying their proxy settings.
● Adobe PDF plugin. Flash. Other plugins. Extensions. Especially Windows stuff: did you know that Microsoft Word is a network app?
![Page 31: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/31.jpg)
31
The basic Tor design uses a simple centralized directory protocol.
S2
S1Alice
Trusted directory
Trusted directory
S3
cache
cache
Servers publishself-signeddescriptors.
Authoritiespublish a consensuslist of all descriptors
Alice downloadsconsensus anddescriptors fromanywhere
![Page 32: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/32.jpg)
32
Choose how to install it● Tor Browser Bundle: standalone
Windows exe with Tor, Vidalia, Firefox, Torbutton, Polipo, e.g. for USB stick
● Vidalia bundle: an installer for Windows or OS X
● Tor VM: Transparent proxy for Windows
● “Net installer” via our secure updater● Incognito Linux LiveCD
![Page 33: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/33.jpg)
33
Usability for relay operators is key.
● Rate limiting: shouldn't eat too much bandwidth● Exit policies: not everyone is willing to emit arbitrary traffic.
allow 18.0.0.0/8:*allow *:22allow *:80reject *:*
![Page 34: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/34.jpg)
34
![Page 35: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/35.jpg)
35
Tor is only a piece of the puzzle
● Assume the users aren't attacked by their hardware and software–No spyware installed, no cameras
watching their screens, etc● Assume the users can fetch a
genuine copy of Tor: from a friend, via PGP signatures, etc.
![Page 36: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/36.jpg)
36
![Page 37: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/37.jpg)
37
![Page 38: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/38.jpg)
38
Six performance problems
● Tor's congestion/flow control is not good● Some users bulk-transfer over Tor● Not enough capacity (run a relay!)● Load balancing isn't right● Not just high latency, but high variability● High directory downloading overhead
![Page 39: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/39.jpg)
39
How to scale the network?
● The clients need to learn info about the relays they can use. Eventually this means partial network knowledge, and nonclique topology.
● Everybodyarelay, and the anonymity questions that come with that.
![Page 40: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/40.jpg)
40
Advocacy and education
● Unending stream of people (e.g. in DC) who make critical policy decisions without much technical background
● Worse, there's a high churn rate● Need to teach policymakers, business
leaders, law enforcement, journalists, ...● Data retention? Internet driver's license?
![Page 41: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/41.jpg)
41
![Page 42: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/42.jpg)
42
![Page 43: Tor: a quick overview - Drexel CCIgreenie/cs645/slides-sweden2.pdf · “Oh, your employees are reading our patents/jobs page/product sheets?” ... Viruses Exploits Phishing Spam](https://reader034.fdocuments.net/reader034/viewer/2022050301/5f6a32491a7bf53700007b24/html5/thumbnails/43.jpg)
43
Publicity attracts attention
● Many circumvention tools launch with huge media splashes. (The media loves this.)
● But publicity attracts attention of the censors.● We threaten their appearance of control, so
they must respond.● We can control the pace of the arms race.