Passive DNS Collection and Analysis The 'dnstap' Approach. Dr. Paul Vixie, CEO Farsight Security, Inc.

Similar documents
dnstap: high speed DNS logging without packet capture Robert Edmonds Farsight Security, Inc.

DNS as a Forensics Tool. Dr. Paul Vixie, CEO Farsight Security, Inc FIRST, Boston

Use Domain Name System and IP Version 6

DNSwitness: A Generic Platform For DNS-based Measurements

page 1 DNS Rate Limiting W. Matthijs Mekking matthijs@nlnetlabs.nl 28 Feb 2013 Stichting NLnet Labs

Building Nameserver Clusters with Free Software

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

SIE, PassiveDNS, and data combining

NETNOD Autumn 2014 October 2, 2014

How do I get to

Internet Security [1] VU Engin Kirda

Georgia College & State University

DNS as a Control Point for Cyber Risk. Dr. Paul Vixie, CEO Farsight Security

Solution of Exercise Sheet 5

Ralph Dolmans A solution for the DNS amplification attack problem

DNSSEC update TF Mobility, Vienna

Internet Control Protocols Reading: Chapter 3

Chapter 25 Domain Name System Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

DNS Architecture Case Study: Resiliency and Disaster Recovery

A distributed system is defined as

Decoding DNS data. Using DNS traffic analysis to identify cyber security threats, server misconfigurations and software bugs

JPNIC Public Forum. Paul Vixie. Chairman, Internet Software Consortium. January 21, 2003

DNS and issues in connecting UNINET-ZA to the Internet

Domain Name System :49:44 UTC Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement

The Root of the Matter: Hints or Slaves

IPV6 SERVICES DEPLOYMENT

Domain Name System (DNS) Fundamentals

Identifying Patterns in DNS Traffic

Blocking DNS Messages is Dangerous

DNS and BIND. David White

Introduction to Computer Networks

Motivation. Domain Name System (DNS) Flat Namespace. Hierarchical Namespace

Defending your DNS in a post-kaminsky world. Paul Wouters <paul@xelerance.com>

Accommodating IP Version 6 Address Resource Records for the Root of the Domain Name System

DNS Basics. DNS Basics

Lecture 2 CS An example of a middleware service: DNS Domain Name System

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose

Response Policy Zones for the Domain Name System (DNS RPZ) By Paul Vixie, ISC (et.al.) 2010 World Tour

Introduction to Network Operating Systems

Iperf Tutorial. Jon Dugan Summer JointTechs 2010, Columbus, OH

Teldat Router. DNS Client

Development of the Domain Name System. Joey Brown David Margolies

Building a Linux IPv6 DNS Server

An Introduction to the Domain Name System

Domain Name System (DNS)

DNSSEC Applying cryptography to the Domain Name System

The Domain Name System

The OSI model has seven layers. The principles that were applied to arrive at the seven layers can be briefly summarized as follows:

Why contribute passive DNS data to ISC?

How to Add Domains and DNS Records

The Domain Name System

Forouzan: Chapter 17. Domain Name System (DNS)

N-CAP Users Guide Everything You Need to Know About Using the Internet! How Firewalls Work

Domain Name System (DNS) Session-1: Fundamentals. Ayitey Bulley

Measuring IP Performance. Geoff Huston Telstra

Limi Kalita / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (3), 2014, Socket Programming

Network Security - ISA 656 Firewalls & NATs

Question: 3 When using Application Intelligence, Server Time may be defined as.

Passive Monitoring of DNS Anomalies

DNS Resolving using nslookup

DEPLOYMENT GUIDE Version 1.1. DNS Traffic Management using the BIG-IP Local Traffic Manager

CSE 127: Computer Security. Network Security. Kirill Levchenko

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Advanced DNS Course. Module 4. DNS Load Balancing

DNS ActiveX Control for Microsoft Windows. Copyright Magneto Software All rights reserved

19 Domain Name System (DNS)

The Domain Name System (DNS) Jason Hermance Nerces Kazandjian Long-Quan Nguyen

Protocols. Packets. What's in an IP packet

Firewalls P+S Linux Router & Firewall 2013

Introduction To Computer Networking

Distributed Systems. 09. Naming. Paul Krzyzanowski. Rutgers University. Fall 2015

Transparent Redirection of Network Sockets 1

DNS at NLnet Labs. Matthijs Mekking

DOMAIN NAME SECURITY EXTENSIONS

Network Intrusion Detection Systems. Beyond packet filtering

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

CDN SERVICE ICSS ROUTE MANAGED DNS DEUTSCHE TELEKOM AG INTERNATIONAL CARRIER SALES AND SOLUTIONS (ICSS)

KAREL UCAP DNS AND DHCP CONCEPTS MANUAL MADE BY: KAREL ELEKTRONIK SANAYI ve TICARET A.S. Organize Sanayi Gazneliler Caddesi 10

3. The Domain Name Service

Domain Name System (DNS)

Centralized logging system based on WebSockets protocol

DNSwitness: recent developments and the new passive monitor

Access Control: Firewalls (1)

Domain Name System. CS 571 Fall , Kenneth L. Calvert University of Kentucky, USA All rights reserved

Domain Name System. DNS is an example of a large scale client-server application. Copyright 2014 Jim Martin

A versatile platform for DNS metrics with its application to IPv6

DNS Conformance Test Specification For Client

F5 Intelligent DNS Scale. Philippe Bogaerts Senior Field Systems Engineer mailto: Mob.:

Build Your Own SIE. Oct 22, 2012 Baltimore, MD. Eric Ziegast

PROFESSIONAL. Node.js BUILDING JAVASCRIPT-BASED SCALABLE SOFTWARE. Pedro Teixeira WILEY. John Wiley & Sons, Inc.

LECTURE 4 NETWORK INFRASTRUCTURE

z/os V1R11 Communications Server system management and monitoring

Improving DNS performance using Stateless TCP in FreeBSD 9

Lightweight DNS for Multipurpose and Multifunctional Devices

The Future of DNS. Johan Ihrén Netnod. October 15,

DNSSEC in your workflow

Chapter 3. Internet Applications and Network Programming

Glossary of Technical Terms Related to IPv6

Meeting Worldwide Demand for your Content

Transcription:

Passive DNS Collection and Analysis The 'dnstap' Approach Dr. Paul Vixie, CEO Farsight Security, Inc.

Importance of Measuring DNS High volume low latency datagram protocol sie-xyzzy1 547,128,709,757 bytes, 80 sources ( 82%) sie-xyzzy2 40,787,371,148 bytes, 141 sources ( 6%) sie-xyzzy3 21,650,049,219 bytes, 12 sources ( 3%) Enables almost all other network flows A, AAAA, MX, NS, SRV records Traffic analysis: NetFlow vs. DNS NetFlow tells you what DNS tells you why (and how )

Challenges of Measuring DNS Historically, turning on logging in a DNS server slows it down to the speed of the file system Operationally, measurement loss is always better So, success in DNS measurement has come from an asynchronous approach BPF/pcap NCAP (2006) look for authoritative responses, reassembling UDP datagrams as necessary (EDNS) NMSG (2009) like NCAP but wants to also see requests, and log complete DNS transactions

Passive DNS Data Flow Authority Servers Farsight SIE DNS Cache Recursive Servers PII Farsight DNSDB Stub Resolvers

Problems with NMSG Approach Blind to off-the-wire events like cache expiry due to DNS TTL, cache purge due to LRU. Meaning is not tagged NMSG receiver has to impute stub vs. cache miss transaction type. Currently blind to TCP/53 noting that there can be many transactions per TCP/53 session.

Enter dnstap (DNS Tap) Server-embedded TCP output streams Reliable front-loss Transactions, events: all tagged Apache licensed

dnstap Architecture

dnstap Server-Embedded dnstap messages are generated from within DNS implementations, via instrumentation So, no UDP fragment reassembly, no matching of on-wire queries with on-wire responses, and no worries about TCP/53 We have this working in unbound and knot nsd, powerdns and BIND: coming

dnstap TCP Output Streams A dnstap stream is a reliable byte stream So it can be a file, or a TCP session (Files? Some people really do like rsync ) TCP means we won t use >80% of channel TCP is easier on (inevitably) stateful firewalls Yet, TCP is unfortunately very (too) reliable

dnstap Reliable Front-Loss TCP protocol vs. Sockets API Nonblocking UDP socket rejects full datagrams Nonblocking TCP socket rejects overflow octets Which breaks framing unless sender keeps state But we want total message loss in this case! And we want such messages dropped early Solution: dnstap writer thread Lockless SP/SC ring buffer dnstap socket is blocking, so, thread can block Reliable front-loss occurs when ring buffer is full

Congestion (Thanks: Van Jacobson)

dnstap Message Types Present: Stub {Query, Response} Authoritative {Q, R} Resolver {Q, R} Client {Q, R} Forwarder {Q, R} Prospective: RRL bucket {Start, End} Zone transfer in {S, E} Zone transfer out {S, E} Cache purge (LRU) Cache expiry (TTL)

dnstap Licensing/Packaging Using Apache Open Source License V2.0 We loved BSD/ISC license, but AOSL2 is better Protocol, reference API, reference toolset Our commercial interest is: wide adoption So, it s all on GitHub (see http://dnstap.info/ ) We intend to patch all F/L/OSS DNS servers dnstap is structured as a copy-in, not a dependency, noting that it depends on protobuf-c

Context of DNS Measurements Farsight (was ISC) SIE Security Info. Exchange Commoditize security-relevant Internet telemetry Channels for Passive DNS (raw, dedup d, validated, filtered, chaff) Filtered output goes into DNSDB Hierarchical MTBL (Google Sorted String Table) RESTful API, JSON output Stored everything from SIE since June 2010 SIE and DNSDB are cash-free for nonprofit research/academia (pay us in data of like kind)

Passive DNS, SIE, DNSDB Context

Demonstration SIE nmsgtool, tcpdump DNSDB API online dnsdb_query tool SRA SIE Remote Access DNSDB UI web user interface for LEA

Summary Passive DNS monitoring (NCAP, NMSG) dnstap (coming during 2014) Worked example: SIE and DNSDB More Information: http://dnstap.info/ https://dnsdb.info/ https://api.dnsdb.info/ http://github.com/farsightsec