SlideShare a Scribd company logo
1 of 38
Download to read offline
1 · www.nic.at
DNSheads Vienna #5 · public
Briefing „Encrypted DNS“
DNS over TLS / DNS over HTTPS
DNSheads Vienna #5 · public
2019-01-30 · Alex Mayrhofer · Head of Research & Development
2 · www.nic.at
DNSheads Vienna #5 · public
Background
Why DNS encryption was developed
3 · www.nic.at
DNSheads Vienna #5 · public
The DNS anno circa 2012
• Sensational Success Story
 Age 25, and practically unmodified
• Today: „Nothing goes“ without DNS
• Clear text. Everything
 „DNS is public anyways?“
• 99% UDP, 1% TCP „fallback“
 Worst TCP support ever!
• DNSSEC? Makes everything secure, doesn‘t it !!?!
 Does only „sign“, not „encrypt“
• 2013: Snowden revelations
 NSA: „Clear text PII data … mmmmm…“
 IETF: „Ohh sheesh – we didn‘t expect *that* scale!“
Photo by Simone Acquaroli on Unsplash
4 · www.nic.at
DNSheads Vienna #5 · public
„Pervasive Monitoring is an Attack“
• RFC 7258 – „Pervasive Monitoring is a technical
attack that should be mitigated in the design of
IETF protocols, where possible“
• Consequence: Review of all important procotols
• DNS – there‘s not even a standardized *option*
for encryption
• Worse – contains „privacy defeating“ mechanism
 Unneccessarily transmits full QNAME in many cases
 EDNS(0) Client Subnet
• Leak of Meta-Data & Fingerprinting
 Re-identification of individuals across networks
But, but…
ohhhhh…
Photo by Kote Puerto on Unsplash
5 · www.nic.at
DNSheads Vienna #5 · public
„We need encryption“
But where to start?
6 · www.nic.at
DNSheads Vienna #5 · public
The DNS Protocol arena
„Recursive DNS Server“
„Authoritative DNS Server“
7 · www.nic.at
DNSheads Vienna #5 · public
IETF DPRIVE* („PRIVate Exchange“)
• 2014: „Let‘s deal with the stub resolver
to recursor leg“
 Most significant information leakage
 1:few Relation – Authentication simple
 „Don‘t attempt to boil the ocean“
• 2018: Re-Chartering: Includes
„recursive to authoritative“
 More complex: m:n connections
(Authentication!)
 Milestone for end of 2019
*https://datatracker.ietf.org/wg/dprive/about/
8 · www.nic.at
DNSheads Vienna #5 · public
DNS over (D)TLS
IETF: DPRIVE / DNSOP / (TLS)
9 · www.nic.at
DNSheads Vienna #5 · public
Liste of relevant RFCs
• RFC 7626 – DNS Privacy Considerations (DPRIVE)
• RFC 7766 – TCP Transport for DNS (DNSOP)
• RFC 7816 – QNAME Minimization (DNSOP)
• RFC 7828 – EDNS keepalive (DNSOP)
• RFC 7858 – DNS over TLS (DPRIVE)
• RFC 8094 – DNS over DTLS (DPRIVE)
• RFC 7830 (+RFC 8467) – DNS Padding (DPRIVE)
• RFC 8310 – Usage Profiles
• RFC 8446 – TLS 1.3 (TLS)
10 · www.nic.at
DNSheads Vienna #5 · public
RFC 7626 – DNS Privacy Considerations
• Privacy aspects / issues in areas of the DNS:
 In the DNS message (Query Name, IP Adresse)
 On the server
 On the Wire
 Re-Identification based on patterns
• Kills the „DNS is public anyways!“ argument
 Website of „Alcoholics Anonymous“ is public
 The fact that someone visits that website regularly is definitely
privacy relevant!
• Practical example (similar..)
 drugstoremorningafterpillvienna16.at
 (Browser search requests leaking to the DNS?)
11 · www.nic.at
DNSheads Vienna #5 · public
RFC 7766 – TCP Transport for DNS
• Goal: Establish DNS over TCP als „first class citizen“
• Features
 Persistent connections (Client supposed to close connections)
 Connection re-use
 Pipelining
 Response Reordering
 TCP Fast Open
 Similar: „Happy Eyeballs“
12 · www.nic.at
DNSheads Vienna #5 · public
RFC 7816 – QNAME Minimization
13 · www.nic.at
DNSheads Vienna #5 · public
RFC 7828 – EDNS keepalive
• EDNS Option for Session Management
• For TCP only!
• Clients: „Please leave connection open for X seconds“
• Server: „Ok, leave it open for X seconds“ or „Please
close connection now!“
14 · www.nic.at
DNSheads Vienna #5 · public
RFC 7858 – DNS over TLS (DoT)
• New Port 853 / TCP
• „On the wire“ protocol is unmodified
• Authentification: Certificates usw? -> RFC 8310
 „Opportunistic“ vs. „Strict“
 Chicken/Egg -> Bootstrapping des DoT Servers wie?
• Does not change the „path“ of the DNS message
 Existing Recursive Nameserver can simply offer an additional,
encrypted channel
15 · www.nic.at
DNSheads Vienna #5 · public
RFC 8094 – DNS over DTLS
• Port 853 / UDP
• „Same Same but Different“
• Experimental!
 Issues with fragmentation
 DTLS is not widely implemented
• Performance advantage of UDP?
 Mostly because TCP implementation used to be so „lousy“.
16 · www.nic.at
DNSheads Vienna #5 · public
EDNS(0) Padding
It‘s required for privacy – but, why?
17 · www.nic.at
DNSheads Vienna #5 · public
EDNS(0) Padding – why?
• Encryption removes „direct“ access to the information
 What‘s left for the Attacker?
• „Pretty Bad Privacy – Pitfalls of DNS Encryption“*
 Haya Shulman @ IETF 93
 Applied Networking Research Price – IRTF
• Side Channel information is key!
 Countermeasures
*https://www.ietf.org/proceedings/93/slides/slides-93-irtfopen-1.pdf
18 · www.nic.at
DNSheads Vienna #5 · public
Application Queries – it‘s a stream
• A Pattern - Not just a single query/response pair
19 · www.nic.at
DNSheads Vienna #5 · public
Encrypted DNS
• Streams still create size/timing „patterns“
20 · www.nic.at
DNSheads Vienna #5 · public
Size based Correlation
• Compare with known clear text patterns
• Even works with a subset of message sizes
21 · www.nic.at
DNSheads Vienna #5 · public
Introducing Padding
• Obfuscates the size pattern -> Hampers correlation
• More „hits“ -> less likely that identification is possible
22 · www.nic.at
DNSheads Vienna #5 · public
RFC 7830 – EDNS(0) Padding Option
• EDNS Option code 12
https://tools.ietf.org/html/rfc7830
23 · www.nic.at
DNSheads Vienna #5 · public
DNS over HTTPS
An alternative encryption scheme, driven by browser vendors
24 · www.nic.at
DNSheads Vienna #5 · public
Motivation – Browser Vendors
• (a) Browsers do a lot of DNS these days
 Websites + assets (JS, Ads, Statistics…), CDNs
 Certificate Validation (OCSP), SafeBrowsing lists, updates, …
 More direct control over the DNS API desired
• (b) Timing and availability is critical
 „Happy Eyeballs“ – Slow or lousy (local) DNS servers create bad
user experience
 „Bad Hotel WiFi“ is often „Bad Hotel DNS“…
• (c) DNS is used for censorship
 Circumventing local (censoring) DNS servers protects Freedom of
Speech
 Eg. Google Jigsaw
ttps://dnsserver.example.net/dns-query{?dns}
25 · www.nic.at
DNSheads Vienna #5 · public
IETF DoH* (DNS over HTTPs) group
• Founded 2017
• 2018: RFC 8484
 GET or POST
 URI Templates (https://dnsserver.example.net/dns-
query{?dns})
 Wire-Format: application/dns-message (identical zu „normal“
DNS), oder JSON
 HTTP Response-Code always 2xx (if successful), no matter
which DNS response code
*https://datatracker.ietf.org/wg/doh/about/
26 · www.nic.at
DNSheads Vienna #5 · public
Effects of encrypted DNS
The implications of typical operational models
27 · www.nic.at
DNSheads Vienna #5 · public
„Plain“ DNS
28 · www.nic.at
DNSheads Vienna #5 · public
DNS over TLS
29 · www.nic.at
DNSheads Vienna #5 · public
DNS over HTTPS (typical)
30 · www.nic.at
DNSheads Vienna #5 · public
Concerns regarding DoH
• 4 Browser Vendors
• Few big public recursor vendors (1.1.1.1, 8.8.8.8,
9.9.9.9)
• Market concentration / Control?
 Pre-configured public recursors
 Example: Mozilla / Cloudflare discussion
• Media echo (German only, sorry!)
 https://Heise.de/-4203225.html („Die DNS Gruft gehört
ausgelüftet“)
 https://heise.de/-4205380.html („Vom DNS, aktuellen Hypes,
Überwachung und Zensur“)
31 · www.nic.at
DNSheads Vienna #5 · public
Implementations
Server, Clients, Tools
32 · www.nic.at
DNSheads Vienna #5 · public
DoT Clients
https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Implementation+Status
33 · www.nic.at
DNSheads Vienna #5 · public
DoT Server Software
34 · www.nic.at
DNSheads Vienna #5 · public
DoT (and DoH) public recursors
• Google DNS (8.8.8.8)
• Cloudflare (1.1.1.1)
• Quad9 (9.9.9.9)
• CleanBrowsing (various, with Filters)
35 · www.nic.at
DNSheads Vienna #5 · public
DoH
• Clients
 Mozilla Firefox
 Google Chrome
 (plus test tools)
• Server Software
 https://github.com/facebookexperimental/doh-proxy
 https://github.com/curl/curl/wiki/DNS-over-HTTPS#doh-tools
36 · www.nic.at
DNSheads Vienna #5 · public
Android 9 – DNS over TLS by default
• Uses DNS over TLS if available
on local nameserver
• Falls back to unencrypted DNS
if unavailable
37 · www.nic.at
DNSheads Vienna #5 · public
Exec Summary
• DNS can now be encrypted, either via TLS or HTTPS
• DNS over HTTPs is more „disruptive“ than DNS over TLS
• Public recursors have implemented either (or both)
 But few local providers have implemented it (see below :-/)
• Browser Vendors are implementing DNS over HTTPs
 Ongoing policy discussions around pre-configuration of recursors
• Android 9 implements DNS over TLS *by default*
 Automatically uses it if available (see above :-/)
 Google suggesting to configure „dns.google“ manually
• Windows / MacOS – no „out of the box“ solutions –
„Stubby“
38 · www.nic.at
DNSheads Vienna #5 · public
nic.at GmbH
Jakob-Haringer-Str. 8/V · 5020 Salzburg · Austria
T +43 662 4669 -34 · F -29
alexander.mayrhofer@nic.at · www.nic.at

More Related Content

What's hot

Dhcp presentation 01
Dhcp presentation 01Dhcp presentation 01
Dhcp presentation 01
maverick4489
 

What's hot (20)

Dns presentation
Dns presentationDns presentation
Dns presentation
 
Dns
DnsDns
Dns
 
F5 DDoS Protection
F5 DDoS ProtectionF5 DDoS Protection
F5 DDoS Protection
 
Cyclone DDS: Sharing Data in the IoT Age
Cyclone DDS: Sharing Data in the IoT AgeCyclone DDS: Sharing Data in the IoT Age
Cyclone DDS: Sharing Data in the IoT Age
 
DNS Security
DNS SecurityDNS Security
DNS Security
 
Dns security
Dns securityDns security
Dns security
 
Breaking the cyber kill chain!
Breaking the cyber kill chain!Breaking the cyber kill chain!
Breaking the cyber kill chain!
 
Https
HttpsHttps
Https
 
Security of DNS
Security of DNSSecurity of DNS
Security of DNS
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNS
 
Dhcp presentation 01
Dhcp presentation 01Dhcp presentation 01
Dhcp presentation 01
 
V.P.N And Proxy server
V.P.N And Proxy serverV.P.N And Proxy server
V.P.N And Proxy server
 
Failover cluster
Failover clusterFailover cluster
Failover cluster
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
Manage Your Akamai-as-Code with Terraform
Manage Your Akamai-as-Code with TerraformManage Your Akamai-as-Code with Terraform
Manage Your Akamai-as-Code with Terraform
 
InterPlanetary File System (IPFS)
InterPlanetary File System (IPFS)InterPlanetary File System (IPFS)
InterPlanetary File System (IPFS)
 
Ports and protocols
Ports and protocolsPorts and protocols
Ports and protocols
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Terraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeTerraform -- Infrastructure as Code
Terraform -- Infrastructure as Code
 

Similar to Encrypted DNS - DNS over TLS / DNS over HTTPS

Similar to Encrypted DNS - DNS over TLS / DNS over HTTPS (20)

How to send DNS over anything encrypted
How to send DNS over anything encryptedHow to send DNS over anything encrypted
How to send DNS over anything encrypted
 
RIPE 71 and IETF 94 reports webinar
RIPE 71 and IETF 94 reports webinarRIPE 71 and IETF 94 reports webinar
RIPE 71 and IETF 94 reports webinar
 
DNS / DNSSEC / DANE / DPRIVE Results at IETF93 Hackathon
DNS / DNSSEC / DANE / DPRIVE Results at IETF93 HackathonDNS / DNSSEC / DANE / DPRIVE Results at IETF93 Hackathon
DNS / DNSSEC / DANE / DPRIVE Results at IETF93 Hackathon
 
Internet Week 2018: 1.1.1.0/24 A report from the (anycast) trenches
Internet Week 2018: 1.1.1.0/24 A report from the (anycast) trenchesInternet Week 2018: 1.1.1.0/24 A report from the (anycast) trenches
Internet Week 2018: 1.1.1.0/24 A report from the (anycast) trenches
 
ION Sri Lanka - DANE: The Future of TLS
ION Sri Lanka - DANE: The Future of TLSION Sri Lanka - DANE: The Future of TLS
ION Sri Lanka - DANE: The Future of TLS
 
Qunog12-DNS暗号化
Qunog12-DNS暗号化Qunog12-DNS暗号化
Qunog12-DNS暗号化
 
ION Bucharest - Deploying DNSSEC
ION Bucharest - Deploying DNSSECION Bucharest - Deploying DNSSEC
ION Bucharest - Deploying DNSSEC
 
DNSTap Webinar
DNSTap WebinarDNSTap Webinar
DNSTap Webinar
 
Introduction To The DANE Protocol (DNSSEC)
Introduction To The DANE Protocol  (DNSSEC)Introduction To The DANE Protocol  (DNSSEC)
Introduction To The DANE Protocol (DNSSEC)
 
8 technical-dns-workshop-day4
8 technical-dns-workshop-day48 technical-dns-workshop-day4
8 technical-dns-workshop-day4
 
DNSSEC/DANE/TLS Testing in Go6Lab
DNSSEC/DANE/TLS Testing in Go6LabDNSSEC/DANE/TLS Testing in Go6Lab
DNSSEC/DANE/TLS Testing in Go6Lab
 
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
 
Understanding DNS Security
Understanding DNS SecurityUnderstanding DNS Security
Understanding DNS Security
 
Understanding and Deploying DNSSEC, by Champika Wijayatunga [APRICOT 2015]
Understanding and Deploying DNSSEC, by Champika Wijayatunga [APRICOT 2015]Understanding and Deploying DNSSEC, by Champika Wijayatunga [APRICOT 2015]
Understanding and Deploying DNSSEC, by Champika Wijayatunga [APRICOT 2015]
 
Windows Server 2016 Webinar
Windows Server 2016 WebinarWindows Server 2016 Webinar
Windows Server 2016 Webinar
 
DNS Over HTTPS by Michael Casadevall
DNS Over HTTPS by Michael CasadevallDNS Over HTTPS by Michael Casadevall
DNS Over HTTPS by Michael Casadevall
 
NZNOG 2020: DOH
NZNOG 2020: DOHNZNOG 2020: DOH
NZNOG 2020: DOH
 
Namespaces for Local Networks
Namespaces for Local NetworksNamespaces for Local Networks
Namespaces for Local Networks
 
An Introduction to DANE - Securing TLS using DNSSEC
An Introduction to DANE - Securing TLS using DNSSECAn Introduction to DANE - Securing TLS using DNSSEC
An Introduction to DANE - Securing TLS using DNSSEC
 
Setting Up .Onion Addresses for your Enterprise, v3.5
Setting Up .Onion Addresses for your Enterprise, v3.5Setting Up .Onion Addresses for your Enterprise, v3.5
Setting Up .Onion Addresses for your Enterprise, v3.5
 

More from Alex Mayrhofer

More from Alex Mayrhofer (7)

RDAP @ .at
RDAP @ .at RDAP @ .at
RDAP @ .at
 
Die Registry als Kristallkugel - verrät uns das DNS etwas über die Zukunft?
Die Registry als Kristallkugel - verrät uns das DNS etwas über die Zukunft?Die Registry als Kristallkugel - verrät uns das DNS etwas über die Zukunft?
Die Registry als Kristallkugel - verrät uns das DNS etwas über die Zukunft?
 
RRDG Data Sharing Specifications
RRDG Data Sharing SpecificationsRRDG Data Sharing Specifications
RRDG Data Sharing Specifications
 
DNS Magnitude - DNSheads Vienna #6
DNS Magnitude - DNSheads Vienna #6DNS Magnitude - DNSheads Vienna #6
DNS Magnitude - DNSheads Vienna #6
 
DNSheads Vienna #6
DNSheads Vienna #6DNSheads Vienna #6
DNSheads Vienna #6
 
Encrypted DNS research @ nic.at
Encrypted DNS research @ nic.atEncrypted DNS research @ nic.at
Encrypted DNS research @ nic.at
 
DNSheads Vienna #5
DNSheads Vienna #5DNSheads Vienna #5
DNSheads Vienna #5
 

Recently uploaded

Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Chandigarh Call girls 9053900678 Call girls in Chandigarh
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 

Recently uploaded (20)

Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft DatingDubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
 
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
Enjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Samalka Delhi >༒8448380779 Escort Service
 

Encrypted DNS - DNS over TLS / DNS over HTTPS

  • 1. 1 · www.nic.at DNSheads Vienna #5 · public Briefing „Encrypted DNS“ DNS over TLS / DNS over HTTPS DNSheads Vienna #5 · public 2019-01-30 · Alex Mayrhofer · Head of Research & Development
  • 2. 2 · www.nic.at DNSheads Vienna #5 · public Background Why DNS encryption was developed
  • 3. 3 · www.nic.at DNSheads Vienna #5 · public The DNS anno circa 2012 • Sensational Success Story  Age 25, and practically unmodified • Today: „Nothing goes“ without DNS • Clear text. Everything  „DNS is public anyways?“ • 99% UDP, 1% TCP „fallback“  Worst TCP support ever! • DNSSEC? Makes everything secure, doesn‘t it !!?!  Does only „sign“, not „encrypt“ • 2013: Snowden revelations  NSA: „Clear text PII data … mmmmm…“  IETF: „Ohh sheesh – we didn‘t expect *that* scale!“ Photo by Simone Acquaroli on Unsplash
  • 4. 4 · www.nic.at DNSheads Vienna #5 · public „Pervasive Monitoring is an Attack“ • RFC 7258 – „Pervasive Monitoring is a technical attack that should be mitigated in the design of IETF protocols, where possible“ • Consequence: Review of all important procotols • DNS – there‘s not even a standardized *option* for encryption • Worse – contains „privacy defeating“ mechanism  Unneccessarily transmits full QNAME in many cases  EDNS(0) Client Subnet • Leak of Meta-Data & Fingerprinting  Re-identification of individuals across networks But, but… ohhhhh… Photo by Kote Puerto on Unsplash
  • 5. 5 · www.nic.at DNSheads Vienna #5 · public „We need encryption“ But where to start?
  • 6. 6 · www.nic.at DNSheads Vienna #5 · public The DNS Protocol arena „Recursive DNS Server“ „Authoritative DNS Server“
  • 7. 7 · www.nic.at DNSheads Vienna #5 · public IETF DPRIVE* („PRIVate Exchange“) • 2014: „Let‘s deal with the stub resolver to recursor leg“  Most significant information leakage  1:few Relation – Authentication simple  „Don‘t attempt to boil the ocean“ • 2018: Re-Chartering: Includes „recursive to authoritative“  More complex: m:n connections (Authentication!)  Milestone for end of 2019 *https://datatracker.ietf.org/wg/dprive/about/
  • 8. 8 · www.nic.at DNSheads Vienna #5 · public DNS over (D)TLS IETF: DPRIVE / DNSOP / (TLS)
  • 9. 9 · www.nic.at DNSheads Vienna #5 · public Liste of relevant RFCs • RFC 7626 – DNS Privacy Considerations (DPRIVE) • RFC 7766 – TCP Transport for DNS (DNSOP) • RFC 7816 – QNAME Minimization (DNSOP) • RFC 7828 – EDNS keepalive (DNSOP) • RFC 7858 – DNS over TLS (DPRIVE) • RFC 8094 – DNS over DTLS (DPRIVE) • RFC 7830 (+RFC 8467) – DNS Padding (DPRIVE) • RFC 8310 – Usage Profiles • RFC 8446 – TLS 1.3 (TLS)
  • 10. 10 · www.nic.at DNSheads Vienna #5 · public RFC 7626 – DNS Privacy Considerations • Privacy aspects / issues in areas of the DNS:  In the DNS message (Query Name, IP Adresse)  On the server  On the Wire  Re-Identification based on patterns • Kills the „DNS is public anyways!“ argument  Website of „Alcoholics Anonymous“ is public  The fact that someone visits that website regularly is definitely privacy relevant! • Practical example (similar..)  drugstoremorningafterpillvienna16.at  (Browser search requests leaking to the DNS?)
  • 11. 11 · www.nic.at DNSheads Vienna #5 · public RFC 7766 – TCP Transport for DNS • Goal: Establish DNS over TCP als „first class citizen“ • Features  Persistent connections (Client supposed to close connections)  Connection re-use  Pipelining  Response Reordering  TCP Fast Open  Similar: „Happy Eyeballs“
  • 12. 12 · www.nic.at DNSheads Vienna #5 · public RFC 7816 – QNAME Minimization
  • 13. 13 · www.nic.at DNSheads Vienna #5 · public RFC 7828 – EDNS keepalive • EDNS Option for Session Management • For TCP only! • Clients: „Please leave connection open for X seconds“ • Server: „Ok, leave it open for X seconds“ or „Please close connection now!“
  • 14. 14 · www.nic.at DNSheads Vienna #5 · public RFC 7858 – DNS over TLS (DoT) • New Port 853 / TCP • „On the wire“ protocol is unmodified • Authentification: Certificates usw? -> RFC 8310  „Opportunistic“ vs. „Strict“  Chicken/Egg -> Bootstrapping des DoT Servers wie? • Does not change the „path“ of the DNS message  Existing Recursive Nameserver can simply offer an additional, encrypted channel
  • 15. 15 · www.nic.at DNSheads Vienna #5 · public RFC 8094 – DNS over DTLS • Port 853 / UDP • „Same Same but Different“ • Experimental!  Issues with fragmentation  DTLS is not widely implemented • Performance advantage of UDP?  Mostly because TCP implementation used to be so „lousy“.
  • 16. 16 · www.nic.at DNSheads Vienna #5 · public EDNS(0) Padding It‘s required for privacy – but, why?
  • 17. 17 · www.nic.at DNSheads Vienna #5 · public EDNS(0) Padding – why? • Encryption removes „direct“ access to the information  What‘s left for the Attacker? • „Pretty Bad Privacy – Pitfalls of DNS Encryption“*  Haya Shulman @ IETF 93  Applied Networking Research Price – IRTF • Side Channel information is key!  Countermeasures *https://www.ietf.org/proceedings/93/slides/slides-93-irtfopen-1.pdf
  • 18. 18 · www.nic.at DNSheads Vienna #5 · public Application Queries – it‘s a stream • A Pattern - Not just a single query/response pair
  • 19. 19 · www.nic.at DNSheads Vienna #5 · public Encrypted DNS • Streams still create size/timing „patterns“
  • 20. 20 · www.nic.at DNSheads Vienna #5 · public Size based Correlation • Compare with known clear text patterns • Even works with a subset of message sizes
  • 21. 21 · www.nic.at DNSheads Vienna #5 · public Introducing Padding • Obfuscates the size pattern -> Hampers correlation • More „hits“ -> less likely that identification is possible
  • 22. 22 · www.nic.at DNSheads Vienna #5 · public RFC 7830 – EDNS(0) Padding Option • EDNS Option code 12 https://tools.ietf.org/html/rfc7830
  • 23. 23 · www.nic.at DNSheads Vienna #5 · public DNS over HTTPS An alternative encryption scheme, driven by browser vendors
  • 24. 24 · www.nic.at DNSheads Vienna #5 · public Motivation – Browser Vendors • (a) Browsers do a lot of DNS these days  Websites + assets (JS, Ads, Statistics…), CDNs  Certificate Validation (OCSP), SafeBrowsing lists, updates, …  More direct control over the DNS API desired • (b) Timing and availability is critical  „Happy Eyeballs“ – Slow or lousy (local) DNS servers create bad user experience  „Bad Hotel WiFi“ is often „Bad Hotel DNS“… • (c) DNS is used for censorship  Circumventing local (censoring) DNS servers protects Freedom of Speech  Eg. Google Jigsaw ttps://dnsserver.example.net/dns-query{?dns}
  • 25. 25 · www.nic.at DNSheads Vienna #5 · public IETF DoH* (DNS over HTTPs) group • Founded 2017 • 2018: RFC 8484  GET or POST  URI Templates (https://dnsserver.example.net/dns- query{?dns})  Wire-Format: application/dns-message (identical zu „normal“ DNS), oder JSON  HTTP Response-Code always 2xx (if successful), no matter which DNS response code *https://datatracker.ietf.org/wg/doh/about/
  • 26. 26 · www.nic.at DNSheads Vienna #5 · public Effects of encrypted DNS The implications of typical operational models
  • 27. 27 · www.nic.at DNSheads Vienna #5 · public „Plain“ DNS
  • 28. 28 · www.nic.at DNSheads Vienna #5 · public DNS over TLS
  • 29. 29 · www.nic.at DNSheads Vienna #5 · public DNS over HTTPS (typical)
  • 30. 30 · www.nic.at DNSheads Vienna #5 · public Concerns regarding DoH • 4 Browser Vendors • Few big public recursor vendors (1.1.1.1, 8.8.8.8, 9.9.9.9) • Market concentration / Control?  Pre-configured public recursors  Example: Mozilla / Cloudflare discussion • Media echo (German only, sorry!)  https://Heise.de/-4203225.html („Die DNS Gruft gehört ausgelüftet“)  https://heise.de/-4205380.html („Vom DNS, aktuellen Hypes, Überwachung und Zensur“)
  • 31. 31 · www.nic.at DNSheads Vienna #5 · public Implementations Server, Clients, Tools
  • 32. 32 · www.nic.at DNSheads Vienna #5 · public DoT Clients https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Implementation+Status
  • 33. 33 · www.nic.at DNSheads Vienna #5 · public DoT Server Software
  • 34. 34 · www.nic.at DNSheads Vienna #5 · public DoT (and DoH) public recursors • Google DNS (8.8.8.8) • Cloudflare (1.1.1.1) • Quad9 (9.9.9.9) • CleanBrowsing (various, with Filters)
  • 35. 35 · www.nic.at DNSheads Vienna #5 · public DoH • Clients  Mozilla Firefox  Google Chrome  (plus test tools) • Server Software  https://github.com/facebookexperimental/doh-proxy  https://github.com/curl/curl/wiki/DNS-over-HTTPS#doh-tools
  • 36. 36 · www.nic.at DNSheads Vienna #5 · public Android 9 – DNS over TLS by default • Uses DNS over TLS if available on local nameserver • Falls back to unencrypted DNS if unavailable
  • 37. 37 · www.nic.at DNSheads Vienna #5 · public Exec Summary • DNS can now be encrypted, either via TLS or HTTPS • DNS over HTTPs is more „disruptive“ than DNS over TLS • Public recursors have implemented either (or both)  But few local providers have implemented it (see below :-/) • Browser Vendors are implementing DNS over HTTPs  Ongoing policy discussions around pre-configuration of recursors • Android 9 implements DNS over TLS *by default*  Automatically uses it if available (see above :-/)  Google suggesting to configure „dns.google“ manually • Windows / MacOS – no „out of the box“ solutions – „Stubby“
  • 38. 38 · www.nic.at DNSheads Vienna #5 · public nic.at GmbH Jakob-Haringer-Str. 8/V · 5020 Salzburg · Austria T +43 662 4669 -34 · F -29 alexander.mayrhofer@nic.at · www.nic.at