• Aucun résultat trouvé

Passive DNS Using the DNS for fun and profit Alexandre Dulaunoy March 4, 2016

N/A
N/A
Protected

Academic year: 2022

Partager "Passive DNS Using the DNS for fun and profit Alexandre Dulaunoy March 4, 2016"

Copied!
14
0
0

Texte intégral

(1)

Passive DNS

Using the DNS for fun and profit

Alexandre Dulaunoy

March 4, 2016

(2)

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)

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

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 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 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)

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)

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)

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)

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)

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)

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)

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)

Q and A

Thanks for listening.

Références

Documents relatifs

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

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

(1) By looking in detail to the movements of the body segments and their dispersion it appears that large corrective responses are observed only after 200 to 300 ms following the

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

As more health care providers and educators, including many family physicians, embark on these short terms of service abroad, refecting on our individual and collective

Either this means that your project is doomed to fail and you will never manage to build a time machine; or it means that the project will succeed but that you are not going to use

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