dns prefetching when good things go bad
play

DNS PREFETCHING: WHEN GOOD THINGS GO BAD Srinivas Krishnan and - PowerPoint PPT Presentation

DNS PREFETCHING: WHEN GOOD THINGS GO BAD Srinivas Krishnan and Fabian Monrose 1 1 Information quest 1980 1990 2000 2010 Timeline 2 2 Information quest 1980 1990 2000 2010 Latency: Hours Minutes Seconds Timeline 2 2


  1. DNS PREFETCHING: WHEN GOOD THINGS GO BAD Srinivas Krishnan and Fabian Monrose 1 1

  2. Information quest 1980 1990 2000 2010 Timeline 2 2

  3. Information quest 1980 1990 2000 2010 Latency: Hours Minutes Seconds Timeline 2 2

  4. Information quest 1980 1990 2000 2010 Latency: Hours Minutes Seconds Timeline 2 2

  5. Information quest 1980 1990 2000 2010 Latency: Hours Minutes Seconds Milliseconds Timeline 2 2

  6. Browser Wars Scripting Render 3 3

  7. Browsing and DNS Cache www.unc.edu root . Cache DNS dmtns07.turner.com ns2.unc.edu. cnn.com Server unc.edu bristol.cs.unc.edu. cs.unc.edu unc.edu NS 86400 ns2.unc.edu Cache ns2.unc.edu A 86400 152.2.253.100 Cache unc.edu A 86400 152.19.240.120 <domain> <A, CNAME, NS> <TTL> <meta> 4 4

  8. DNS Optimization • Proactive DNS pre-resolutions • Two basic approaches: • Guess as the user types • Fetch <href> links from a rendered page • Focus on reducing user perceived latency 5 5

  9. DNS PRE-RESOLUTION Gambling Addiction www.google.com CNAME 586186 www.l.google.com www.l.google.com A 60 www.l.google.com DNS Server Cache 6 6

  10. DNS PRE-RESOLUTION Gambling Addiction www.google.com CNAME 586186 www.l.google.com www.l.google.com A 60 www.l.google.com DNS Server sac.edu Cache 6 6

  11. DNS PRE-RESOLUTION Gambling Addiction www.google.com CNAME 586186 www.l.google.com www.l.google.com A 60 www.l.google.com DNS Server sac.edu A 73136 sac.edu Cache 6 6

  12. DNS PRE-RESOLUTION Gambling Addiction www.google.com CNAME 586186 www.l.google.com www.l.google.com A 60 www.l.google.com DNS Server sac.edu A 73136 sac.edu gamblersanonymous.org. A 73416 casinogambling.about.com.CNAME 900 treatment-centers.net. CNAME 3600 robertperkinson.com. A 86400 Cache en.wikipedia.org. CNAME 1052 ncpgambling.org. A 73416, helpguide.org. A 73340 gamblingaddiction.org. A 3600 Prefetching 6 6

  13. Privacy Threat • Reconnaissance of an enterprise • Ability to track users • Exploit: • Ability to probe a DNS server to infer cache hits. • Online probes with target search • Offline probe with no prior knowledge 7 7

  14. Online Probing Was a target search performed by a client ? • Build a profile of target search • Use cache snooping • Check for presence of profile • Report 8 8

  15. Building a Profile www.howstuffworks.com. ama-assn.org learn.genetics.utah.edu. www.humancloning.org. www.time.com. www.ornl.gov. en.wikipedia.org www.globalchange.com www.ncsl.org 9 9

  16. Building a Profile MinTTL Decay Curve Domains howstuffworks.com. ama-assn.org genetics.utah.edu. humancloning.org. time.com. ornl.gov. en.wikipedia.org globalchange.com ncsl.org 10 10

  17. Building a Profile MinTTL Decay Curve Domains ama-assn.org. genetics.utah.edu. humancloning.org. ornl.gov. globalchange.com ncsl.org 10 10

  18. Building a Profile MinTTL Decay Curve Domains Human Cloning 1.0 ama-assn.org 1800 ama-assn.org. .9 genetics.utah.edu. 3600 .8 A genetics.utah.edu. c .7 humancloning.org 3600 humancloning.org. c .6 u ornl.gov 86400 ornl.gov. r .5 a .4 globalchange.com 600 globalchange.com c y .3 ncsl.org ncsl.org 86400 .2 .1 .0 0 3 10 38 97 209 Time in Cache 10 10

  19. Building a Profile Decay Curve Get Scan Rate Human Cloning 1.0 95% 5 Mins .9 90% 10 Mins .8 A c 80% 20 Mins .7 c 75% 30 Mins .6 u r .5 50% 60 Mins a c .4 y .3 .2 .1 .0 0 3 10 38 97 209 Time in Cache 11 11

  20. Probe Attacker ama-assn.org. genetics.utah.edu ? genetics.utah.edu. DNS Server humancloning.org. ornl.gov. globalchange.com Cache Hit ncsl.org 12 12

  21. Probe ama-assn.org. ? Attacker genetics.utah.edu.? humancloning.org. ? ama-assn.org. ornl.gov. genetics.utah.edu. DNS Server globalchange.com ? humancloning.org. ncsl.org ? ornl.gov. globalchange.com ncsl.org 12 12

  22. Probe Confidence = % of Elements with same age Current Auth Domain Age TTL TTL ama-assn.org 1498 1800 302 genetics.utah.edu. 3298 3600 302 humancloning.org 3301 3600 299 ornl.gov 86099 86400 301 globalchange.com 298 600 302 ncsl.org 86101 86400 299 12 12

  23. And if we had access to logs ? • Can we extract all searches ? 13 13

  24. DNS Cache: privacy leaks Goal: Reconstruct Search Term from DNS Cache Search Cluster By Extract Age Keywords Term Rank n-Suggest steroid.com 600s steroid (1) steroid steroid steroid, baseball steroidsinbaseball.net 598s (2) baseball baseball steroid, baseball, baseballsteroidera.com 602s (3) era era steroid baseball baseball steroids steriod baseball era 14 14

  25. Case I: Preliminary Results ~500 Clients Target Control DNS DNS Server Server • 50 queries • Over 4 hours • Variable scan rate Inject Queries 15 15

  26. Case I: Preliminary Results ~500 Clients Target Control DNS DNS Server Server Build Profile • 50 queries • Over 4 hours • Variable scan rate Inject Queries 15 15

  27. Case I: Preliminary Results ~500 Clients Target Control DNS DNS Server Server Probe Server • 50 queries @Scan Rate • Over 4 hours • Variable scan rate Inject Queries 15 15

  28. Selected Results 1 Scan Rate Average Gay Rights Gambling Addiction Accuracy Racism in America Genetic Engineering 10 Mins 90% 0.9 30 Mins 85% 0.8 Achieved Accuracy 60 Mins 65% 0.7 0.6 0.5 0.4 0 10 20 30 40 50 60 70 80 90 Scan Rate (Minutes) 16 16

  29. Case II: Preliminary results ~500 Clients Cache Snaphot @5 mins Target DNS Server Collect Data Disk • 50 queries • Over 24 hours Inject Queries 17 17

  30. Case II: Preliminary results ~500 Clients Cache Snaphot @5 mins Target DNS Server Disk • 50 queries • Over 24 hours Inject Queries Reconstruct 17 17

  31. Snapshot of Results First Second Third Actual Query Guess Guess Guess gambling addiction gambling age addict Gambling Addiction Alcohol Withdrawal alcohol withdrawal alcoholics anonymous alcohol poisoning Syndrome symptoms Gun Control gunbroker guns for sale - racism america racism today racism facts Racism In America biological warfare weapons - Biological Weapons 18 18

  32. Limitations • Current profiles are non-adaptive, hence searches on “hot topics” will lead to high false negatives • Similarly, if majority of prefetched domains do not have identifiable keywords, search reconstruction will fail 19 19

  33. Summary • Wide-scale study required to fully gauge the effect of DNS prefetching (w.r.t. its privacy implications) • Effect on DNS server load remains unclear • Reduction of user-perceived latency at the cost of privacy • Primary focus is to foster discussion on the effects of DNS prefetching 20 20

  34. Questions 21 21

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend