october 15, 2002serguei a. mokhov, [email protected] 1 intro to dns soen321 - information...
TRANSCRIPT
![Page 1: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/1.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
1
Intro to DNS
SOEN321 - Information Systems Security
![Page 3: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/3.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
3
DNS• Domain Name System
– a distributed naming service for the entire Internet (including WWW)
– provides unified host-name-to-network-address and vice-versa lookup needed for remote computing
$ ping yahoo.com
Pinging yahoo.com [66.218.71.198] with 32 bytes of data:
Reply from 66.218.71.198: bytes=32 time=113ms TTL=244
![Page 4: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/4.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
4
DNS
• Other capabilities:– Info about Name Servers– Canonical host names– Mail Exchange (MX) records
![Page 5: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/5.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
5
DNS
• Hierarchyroot
org netcom
mydomain amazonyahoo
www
![Page 6: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/6.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
6
DNS Tools in UNIX
• Tools– host– dig– nslookup (deprecated)
![Page 7: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/7.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
7
DNS Tools Examplehaida.mokhov [~] % host -a wwwTrying "www.cs.concordia.ca";; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3704;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 4
;; QUESTION SECTION:;www.cs.concordia.ca. IN ANY
;; ANSWER SECTION:www.cs.concordia.ca. 86400 IN CNAME spider.cs.concordia.ca.
;; AUTHORITY SECTION:cs.concordia.ca. 86400 IN NS clyde.concordia.ca.cs.concordia.ca. 86400 IN NS Jerome.McRCIM.McGill.EDU.cs.concordia.ca. 86400 IN NS pollen.cs.concordia.ca.cs.concordia.ca. 86400 IN NS manitou.cs.concordia.ca.cs.concordia.ca. 86400 IN NS alcor.concordia.ca.
;; ADDITIONAL SECTION:alcor.concordia.ca. 81883 IN A 132.205.7.51clyde.concordia.ca. 81827 IN A 132.205.1.1pollen.cs.concordia.ca. 86400 IN A 132.205.44.61manitou.cs.concordia.ca. 86400 IN A 132.205.4.3
Received 243 bytes from 132.205.64.63#53 in 3 ms
![Page 8: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/8.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
8
Name Serves
• Manage certain part of the name space• Help clients to find info within the
hierarchy• DNS Query - returns list of name servers
– One of the NS resolves client’s query– If name not found, pass on to another NS– The one that has the answer, sends it back, and
the previous NS caches it for the future.
![Page 9: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/9.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
9
DNS Threats
• Recall from firewalls and the rest (D. Probst):– Filtering DNS: How does one prevent DNS
contamination (corruption)? Mail can be rerouted, passwords captured, etc. We need separate DNS for inside and outside.
– Tunneling over DNS is used to gain command-line access to remote utilities. With a proxy-based firewall, deny external DNS access to anything other than your proxy server. If you are using a packet filter, your options for blocking a DNS tunnel are limited.
![Page 10: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/10.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
10
DNS Cache Poisoning
• Was more actual in the past:– A NS doesn’t have a name for a requested host– Asks another NS, another NS may have been
weak and compromised, or for some other reason had invalid name for the host requested.
– Our NS would cache the wrong name, and this can propagate over
– So, real amazon.com might have been redirected to elsewhere, get the consequences...
![Page 11: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/11.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
11
DNS Cache Poisoning
• Attack types: DNS spoofing, host name spoofing
• One of the reasons: earlier versions of bind simply had bugs; servers trusted by <name, IP>
• Solution:– DNS triple: <name, IP, public key>
![Page 12: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/12.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
12
Host Name Spoofing
• PTR records
• Mapping IP to a domain name
• All the transactions a legitimate– DNS server according to the protocol tries to
resolve a query using legitimate DNS Server, but the PTR deliberately was made to point elsewhere.
![Page 13: October 15, 2002Serguei A. Mokhov, mokhov@cs.concordia.ca 1 Intro to DNS SOEN321 - Information Systems Security](https://reader036.vdocuments.us/reader036/viewer/2022072013/56649e565503460f94b4e0ae/html5/thumbnails/13.jpg)
October 15, 2002 Serguei A. Mokhov, [email protected]
13
DNS Spoofing
• In combo with hostname spoofing:– Messing up the PTR– And forcing the NS to have invalid resource
record (RR) in their cache.