dnssec aggressive cache rfc 8198
play

DNSSEC aggressive cache (RFC 8198) Protection from random subdomain - PowerPoint PPT Presentation

DNSSEC aggressive cache (RFC 8198) Protection from random subdomain attacks Petr paek petr.spacek@nic.cz 2018-05-16 Talk outline Aggressive cache theory expectations efficiency Normal traffic measurements


  1. DNSSEC aggressive cache (RFC 8198) Protection from random subdomain attacks Petr Špaček • petr.spacek@nic.cz • 2018-05-16

  2. Talk outline ● Aggressive cache ● theory ● expectations ● efficiency ● Normal traffic ● measurements ● Random subdomain attack ● theory ● measurements

  3. Aggressive cache: Theory $ dig +dnssec nonexistent.example.com nonexistent.example.com ;; AUTHORITY SECTION: example.com. example.com. NSEC www. w.exa xampl ple.c .com. m. NS SOA

  4. Aggressive cache: Expectations ● Use of NSEC/NSEC3 RRs to ● decrease latency ● decrease resource utilization ● increase privacy ● increase resilience

  5. Aggressive cache: Efficiency ● Query pattern ● normal traffic ● random subdomain attack ● Distribution of names in DNS zones ● Wildcards ● TTL

  6. Aggressive cache vs. Normal traffic

  7. Normal traffic: Experimental setup ● Replay query PCAP to BIND 9.12.0 ● synth-from-dnssec yes / no; ● Record to PCAP ● traffic to auth ● answers ● Analyze ● # packets to auth ● bandwidth to auth ● latency for answers

  8. Expectations vs. normal traffic ● Root zone ● eliminates query leaks – stops 50-65 % queries to root ☑ privacy protection ● ● Others zones ● nothing to see here ● negligible impact on normal traffic ● not enough signed domains?

  9. Aggressive cache vs. Random subdomain attack

  10. R.S.A. traffic: Theory attacker's recursive auth JavaScript resolver server unknowing not a target target collaborators collateral damage

  11. R.S.A. traffic: Query pattern ● 1000 simulated clients ● Next query right after answer ● Pseudorandom unique query names (256 bits) ● GCZDKQIS7F7TTHXBIBC4HHZDYTFCPH5XLR6P GEI3WIESK7BS45WQ.test.knot-resolver.cz. A ● GCZDKQIS7F7TTHXBIBC4HHZDYTFCPH5XLR6P GEI3WIESK7BS45WQ.test.knot-resolver.cz. AAAA ● OF6OVT2SNIV54B7HI77V5TJ3TFVULN5AMQ2Z6I WQX6GBHQ254LNQ.test.knot-resolver.cz. A

  12. R.S.A. traffic: Experimental setup ● Auth server with a test zone ● signed using NSEC ● extrapolation for NSEC 3: ( size * 1.5 size * 1.5) ● Replay random query names to Knot Resolver ● Record traffic from resolver to auth ● Analyze ● # packets to auth ● bandwidth to auth

  13. R.S.A. traffic: Tools ● Knot DNS 2.6.4 ● RSASHA256 2048 b, automatic signing – big answers ● Knot Resolver 2.1.1 ● "unlimited" cache size (20 GiB) ● dnsperf 2.1.0 to replay queries ● libtrace 3.0.21 to analyze packet #, bandwidth

  14. R.S.A. scenarios ● Unsigned zone (baseline) ● Signed zone ● SOA minimum, NSEC TTL – 3600 s / 60 s ● name distribution (real zones) – small zone with wildcard (50 names + 1 wildcard) – medium size zone (14k names) – big zone (110k names) – huge zone (1M names)

  15. R.S.A.: unsigned zone (abs baseline) cache size: 19.2 GB

  16. R.S.A.: unsigned zone (baseline %) cache size: 100 %

  17. R.S.A.: 50 names + wildcard, TTL 60 cache size: 0.0006 %

  18. R.S.A.: 14k names, TTL 3600 cache size: 0.004 %

  19. R.S.A.: 110k names, TTL 3600 cache size: 0.13 %

  20. R.S.A.: 110k names, TTL 3600 cache size: 0.13 %

  21. R.S.A.: 110k names, TTL 3600 cache size: 0.13 %

  22. R.S.A.: 1M names, TTL 3600 cache size: 0.56 %

  23. R.S.A.: 1M names, TTL 3600 cache size: 0.56 %

  24. R.S.A.: 1M names, TTL 3600 cache size: 0.56 %

  25. R.S.A.: 1M names, TTL 3600 cache size: 0.56 %

  26. R.S.A.: 1M names, TTL 60 cache size: 0.53 %

  27. R.S.A.: 1M names, TTL 60 cache size: 0.53 %

  28. Promises & R.S.A. traffic ☑ Much better cache usage ● ☑ Significantly lower network utilization ● ● Eliminates R.S.A. traffic (over time) ● NSEC is more efficient than NSEC 3 ● RSA 2048 b NSEC 3 => 150 % size of NSEC ● NSEC & NSEC 3 provide effective protection ● NSEC 3 not supported by resolvers yet

  29. Upgrade, sign, VALIDATE ☑ Privacy protection (leaked queries) ● ☑ Protection from random subdomain attacks ● ☑ Avoids problems with EDNS ● ● EDNS workaround sunset in 2019

  30. Knot news for summer 2018 ● Knot Resolver 2.4 ● Knot DNS 2.7 ● Performance ● NSEC 3 support for optimizations aggressive cache ● Security audit ● DNS cookies follow @KnotDNS

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