• Aucun résultat trouvé

DNS and Security?

N/A
N/A
Protected

Academic year: 2022

Partager "DNS and Security?"

Copied!
14
0
0

Texte intégral

(1)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Passive DNS

Using the DNS for fun and profit

Alexandre Dulaunoy

November 28, 2014

(2)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Domain Name Space and Structure

Domain Name Space and Structure 1/3

The domain name space is structured in a tree.

The DNS root zone is at the top and provide information on how to reach top-level domains (ccTLD, gTLD).

Security is limited and DNSSEC is not currently largely deployed.

(3)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Name Servers Roles

Name Servers Roles 2/3

Authoritative name server

Give answers about domain name configured by the local name administrator.

Recursive and caching name server

They recursively lookup domains by querying and caching to/from authoritative name server.

It’s recommended to keep separated the authoritative name server from the recursive name server.

(4)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

DNS Protocol

DNS Protocol 3/3

DNS uses UDP or TCP over port 53. The core element for the DNS procotol is the RR (Resource Record). Each record is composed of various fields: NAME, TYPE, CLASS, TTL, RDLENGTH and RDATA.

(5)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

DNS and Security?

Everyone relies on DNS on Internet even malware.

Can we monitor DNS passively to discover malware infection or limiting its impact?

First passive DNS implemented in 2004 by Florian Weimer.

Discovering of malware fast-flux domains, malicious domains/IP, hijacked domains...

Privacy is critical when doing passive DNS.

(6)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

DNS and Security - Quick Workshop

From simple DNS monitoring (tshark -r capture.cap -n -Tfields -e dns.qry.name) to dnscap

(https://github.com/adulau/dnscap).

Can you use the DNS queries/answers for network forensic analysis (use the initial pcap file)?

Using Passive DNS services and how this can help for network forensic analysis

(7)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Background and History

In 2005, Florian Weimer described Passive DNS replication at the 17th FIRST annual conference

Nowadays Passive DNS software are created1 and used worldwide

In 2011, we started to work on a common output format for Passive DNS systems at the FIRST annual conference After discussions with many authors of passive DNS, version 02 of the internet-draft is published

(8)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Main objectives of the internet-draft

Consistent naming of fields across Passive DNS software based on the most common Passive DNS implementations Minimal set of fields to be supported

Minimal set of optional fields to be supported Way to add ”additional” fields via a simple registry mechanism (IANA-like)

Simple and easily parsable format

A gentle reminder regarding privacy aspects of Passive DNS

(9)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Sample output www.terena.org

1 {" c o u n t ": 868 , " t i m e _ f i r s t ": 1 2 9 8 3 9 8 0 0 2 , " r r t y p e ": " A "

, " r r n a m e ": " www . t e r e n a . org ", " r d a t a ": "

1 9 2 . 8 7 . 3 0 . 6 ", " t i m e _ l a s t ": 1 3 8 3 1 2 4 2 5 2 }

2 {" c o u n t ": 89 , " t i m e _ f i r s t ": 1 3 8 3 7 2 9 6 9 0 , " r r t y p e ": "

C N A M E ", " r r n a m e ": " www . t e r e n a . org ", " r d a t a ": "

g o d z i l l a . t e r e n a . org ", " t i m e _ l a s t ": 1 3 9 1 5 1 7 6 4 3 } 3 {" c o u n t ": 110 , " t i m e _ f i r s t ": 1 2 9 8 3 9 8 0 0 2 , " r r t y p e ": "

A A A A ", " r r n a m e ": " www . t e r e n a . org ", " r d a t a ": "

2 0 0 1 : 6 1 0 : 1 4 8 : d e a d ::6 ", " t i m e _ l a s t ": 1 3 6 6 7 0 8 4 5 }

(10)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Mandatory fields

rrname : name of the queried resource records JSON String

rrtype: resource record type

JSON String (interpreted type of resource type if known) rdata : resource records of the query(ied) resource(s)

JSON String or an array of string if more than one unique triple time first : first time that the resource record triple (rrname, rrtype, rdata) was seen

time last : last time that the resource record triple (rrname, rrtype, rdata) was seen

JSON Number (epoch value) UTC TZ

(11)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Optional fields

count : how many authoritative DNS answers were received by the Passive DNS collector

JSON Number

bailiwick : closest enclosing zone delegated to a nameserver served in the zone of the resource records

JSON String

(12)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Additionals fields

sensor id: Passive DNS sensor information JSON String

zone time first : specific first/last time seen when imported from a master file

zone time last JSON Number

Additional fields can be requested via https://github.com/

adulau/pdns-qof/wiki/Additional-Fields

(13)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Bibliography

DNS and BIND, Fifth Edition, Cricket Liu, Paul Albitz.

Passive Monitoring of DNS Anomalies, Bojan Zdrnja , Nevil Brownlee , and Duane Wessels.

Passive DNS - Common Output Format https://datatracker.ietf.org/doc/

draft-dulaunoy-kaplan-passive-dns-cof/

(14)

DNS protocol in 3 slides DNS and Security? DNS and Security - Quick Workshop Bibliography Q and A

Q and A

Thanks for listening.

Références

Documents relatifs

In summary, dismantling is a psychic movement which is a process of sensorial de-consensus where senses roam “to the most attractive object of the moment” (Meltzer, 1975, p. He

The purpose of F irs t L ink is to increase unders tand ing and awareness among ind iv idua ls w i th demen t ia and the ir fam i ly members /careg ivers of A lzhe imer’s

-The present simple -Developing ideas -Topic: write about a person’s.. difficulties(physical problem) -Write about

To obtain an asymptotic formula for the MRT, we show that in the long time asymptotics, where winding occurs, the GOUP can be approximated by a standard Ornstein- Uhlenbeck

It is based on an iterative algorithm and leads to an efficient approximation of Brownian hitting times for curved boundaries, and, by extension, can deal with diffusion

Perruquetti, “Finite time stability of non linear systems,” in IEEE Conference on Decision and Control, (Hawaii, USA), pp.. Orlov, “Finite time stability and robust control syn-

Modeling biological or physical stochastic systems often requires to handle with one-dimensional diffusion processes.. Two types

JSON String or an array of string if more than one unique triple time first : first time that the resource record triple (rrname, rrtype, rdata) was seen. time last : last time that