the effect of dns on tor’s anonymity - ripe 74 · the effect of dns on tor’s anonymity benjamin...

48
/48 The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University Laura M. Roberts Princeton University Philipp Winter Princeton University Nick Feamster Princeton University 1

Upload: hoangnga

Post on 31-Mar-2018

231 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

The Effect of DNS on Tor’s AnonymityBenjamin Greschbach KTH Royal Institute of Technology

Tobias Pulls Karlstad University

Laura M. Roberts Princeton University

Philipp Winter Princeton University

Nick Feamster Princeton University

1

Page 2: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

www.generic-adult-content-site.com

2

Page 3: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

www.generic-adult-content-site.com

3

Page 4: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How is DNS handled in Tor?

example.com

DNS resolver

Tor client Guard Middle Exit

4

Page 5: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How is DNS handled in Tor?

example.com

DNS resolver

Tor client Guard Middle Exit

Where’s

example.co

m?

5

Page 6: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How is DNS handled in Tor?

example.com

DNS resolver

Tor client Guard Middle Exit

6

Where’s

example.co

m?

Page 7: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Exit relays perform DNS resolution.

example.com

DNS resolver

Tor client Guard Middle Exit

Where’s example.com?

7

Page 8: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Research Questions

example.com

DNS resolver

Tor client Guard Middle Exit

Where’s example.com?

?8

Page 9: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Research Questions

example.com

DNS resolver

Tor client Guard Middle Exit

Where’s example.com?

??

9

Page 10: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How DNS can be used to compromise Tor.

example.com

DNS resolver

Tor client Guard Middle Exit

Where’s example.com?

??

?

10

Page 11: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

11

Page 12: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

12

User Tor network

Exit relay

Web server

Adversary

HTTP(S)

Page 13: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

13

User Tor network

Exit relay

Web server

DNS server

Adversary

DNS

HTTP(S)

Page 14: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

14

Page 15: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

15

Page 16: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

16

Page 17: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

17

Page 18: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

18

Page 19: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

19

Page 20: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

20

Page 21: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

21

Page 22: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How exposed are DNS queries?

22

Page 23: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

DNS traffic traverses ASes that are not otherwise traversed by TCP traffic.

23

For half of all of the Alexa Top 1,000 websites, DNS-only ASes account for 57% or more of all traversed ASes

Page 24: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

What resolvers do exit relays use?

24

Page 25: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

What resolvers do exit relays use?

25

Page 26: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

What resolvers do exit relays use?

26

Page 27: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

What resolvers do exit relays use?

27

Page 28: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

What resolvers do exit relays use?

Resolver Min (%) Max (%) Median (%)

Google 23.57 42.33 32.84

Local 7.71 15.95 11.56

OVH 1.96 14.13 6.57

OpenDNS 0.05 5.62 0.76

Percentage of observed DNS queries28

Page 29: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

What resolvers do exit relays use?

Resolver Min (%) Max (%) Median (%)

Google 23.57 42.33 32.84

Local 7.71 15.95 11.56

OVH 1.96 14.13 6.57

OpenDNS 0.05 5.62 0.76

Percentage of observed DNS queries29

Page 30: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

What resolvers do exit relays use?

Resolver Min (%) Max (%) Median (%)

Google 23.57 42.33 32.84

Local 7.71 15.95 11.56

OVH 1.96 14.13 6.57

OpenDNS 0.05 5.62 0.76

Percentage of observed DNS queries30

Page 31: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How can an attacker leverage DNS?

31

Page 32: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How can an attacker leverage DNS?

32

User Tor network

Exit relay

Web server

Adversary

HTTP(S)

Page 33: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How can an attacker leverage DNS?

33

User Tor network

Exit relay

Web server

Adversary

HTTP(S)

Page 34: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How can an attacker leverage DNS?

34

User Tor network

Exit relay

Web server

DNS server

Adversary

DNS

HTTP(S)

Page 35: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

How can an attacker leverage DNS?

35

Page 36: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Attacker augments website fingerprinting attack with DNS data

● We extended Wang et al.’s Wa-kNN classifier (USENIX Security’14)

● Close-the-world attack

● High precision attack

○ Accepts Wa-kNN’s website classification only if that website was observed in DNS traffic

● Our attacks are very precise for unpopular websites

36

Page 37: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Our attacks at Internet-scale●Place Tor clients in top five Tor usage countries

●Simulate clients’ online behavior

○Cf. Johnson et al. CCS’13

● Simulate Tor clients’ path selection

○TorPS (github.com/torps/torps)

●Run traceroutes client →guard and exit → destination

○Use RIPE Atlas!

●Check for overlapping autonomous systems

○Set intersection

37

Page 38: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

RIPE Atlas probes

38

Page 39: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Analyzed four Tor exit relay DNS set-up scenarios

What if all Tor exit relays were set up to use their ISPs’ resolvers?

What if all Tor exit relays were set up to use Google’s 8.8.8.8 public resolver?

What if all Tor exit relays were set up to do their own DNS resolution?

What if all Tor exit relays were set up as they currently are (status quo)?

39

Page 40: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Fraction of compromised streams

40

Page 41: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Immediate Countermeasures

● Recommendations for exit relay operators

○ Don’t use Google’s 8.8.8.8

○ Use ISP’s resolver

○ Run their own resolver with QNAME minimization

● But it depends! Further study is required

41

Page 42: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Long-term Solutions

● Add confidentiality to DNS

○ T-DNS (Zhu et al. Oakland’15)

● Improve website fingerprinting defenses

42

Page 43: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Contributions

Discovered that DNS exposes Tor users’ behavior to more adversaries than

previously thought

43

Page 44: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Contributions

Discovered that DNS exposes Tor users’ behavior to more adversaries than

previously thought

Discovered that Google gets to learn a lot about Tor users’ online activity

44

Page 45: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Contributions

Discovered that DNS exposes Tor users’ behavior to more adversaries than

previously thought

Discovered that Google gets to learn a lot about Tor users’ online activity

Created proof-of-concept deanonymization attacks that demonstrate how DNS

can make website fingerprinting attacks more precise

45

Page 46: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Contributions

Discovered that DNS exposes Tor users’ behavior to more adversaries than

previously thought

Discovered that Google gets to learn a lot about Tor users’ online activity

Created proof-of-concept deanonymization attacks that demonstrate how DNS

can make website fingerprinting attacks more precise

Performed simulations at Internet-scale in order to understand how our attacks

could affect real people

46

Page 47: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

Contributions

Our work compels researchers to continue exploring how to make DNS more

secure

47

Page 48: The Effect of DNS on Tor’s Anonymity - RIPE 74 · The Effect of DNS on Tor’s Anonymity Benjamin Greschbach KTH Royal Institute of Technology Tobias Pulls Karlstad University

/48

● Paper, data, code, and replication

instructions: https://nymity.ch/tor-dns/

● Contact: [email protected] Nick Tobias

Fin

PhilippBenjaminLaura48