YAF: Yet Another Flowmeter Chris Inacio <inacio@cert.org> - - PowerPoint PPT Presentation

yaf yet another flowmeter
SMART_READER_LITE
LIVE PREVIEW

YAF: Yet Another Flowmeter Chris Inacio <inacio@cert.org> - - PowerPoint PPT Presentation

YAF: Yet Another Flowmeter Chris Inacio <inacio@cert.org> Brian Trammell <trammell@tik.ee.ethz.ch> Wednesday, November 10, 2010 Yet Another Flowmeter Flowmeter What is flow Why do you want flow So why YAF


slide-1
SLIDE 1

YAF: Yet Another Flowmeter

Chris Inacio <inacio@cert.org> Brian Trammell <trammell@tik.ee.ethz.ch>

Wednesday, November 10, 2010

slide-2
SLIDE 2

Yet Another Flowmeter

  • Flowmeter
  • What is flow
  • Why do you want

flow

  • So why

YAF

Wednesday, November 10, 2010

slide-3
SLIDE 3

flow

  • The simple version: a very brief

summarization of a network connection

  • The key values
  • IP address source & destination
  • Protocol
  • Transport source & destination port

Wednesday, November 10, 2010

slide-4
SLIDE 4

flow

  • And the rest…
  • Time / Date etc.
  • Lots of variations / possibilities here
  • Number of packets sent / received
  • Number of bytes sent / received

Wednesday, November 10, 2010

slide-5
SLIDE 5

But I don’t do billing? (or even if you do)

Wednesday, November 10, 2010

slide-6
SLIDE 6

Kaminsky DNS protocol vulnerability

  • Cache poisoning via DNS transaction ID

guessing

  • Not enough randomness, makes guessing

easy

Wednesday, November 10, 2010

slide-7
SLIDE 7

Wednesday, November 10, 2010

slide-8
SLIDE 8

Objectives in YAF’s construction

  • Compliant to standard for flow, IPFIX
  • Biflow based construction
  • High performance (based on profiling)
  • Flexible L2 decoding
  • Open design for adding enhancements

Wednesday, November 10, 2010

slide-9
SLIDE 9

libpcap capture DAG capture dumpfile input

Napatech

capture de-encapsulation partial defrag decode & lookup flow modification flush & export frag table flow table IPFIX file IPFIX export

Wednesday, November 10, 2010

slide-10
SLIDE 10

Condensed IPFIX Primer

Message Header Set Header Set Record Record ... Record Set Header Set Record Record ... Record Set Header Set Record Record ... Record Set Header Set Record Record ... Record Set Header Template Template ID IE count Information Element Length Information Element Length ... ... Information Element Length Template Template ID IE count Information Element Length Information Element Length ... ... Information Element Length Template Template ID IE count Information Element Length Information Element Length ... ... Information Element Length

Wednesday, November 10, 2010

slide-11
SLIDE 11

Condensed IPFIX Primer

Set Header [2] Template [257] Template [258] Template [310] Template Set Message Set Header [257] Record Record Record Data Set Set Header [310] Record Record Record Data Set Set Header [258] Record Record Record Data Set Message

Wednesday, November 10, 2010

slide-12
SLIDE 12

Packet Features Capture Type

Network Capture Spectrum

Wednesday, November 10, 2010

slide-13
SLIDE 13

Packet Features Capture Type

Headers Network Capture Spectrum Traditional Flow (NetFlow v5)

Wednesday, November 10, 2010

slide-14
SLIDE 14

Packet Features Capture Type

Headers Hybrid Network Capture Spectrum YAF

Wednesday, November 10, 2010

slide-15
SLIDE 15

Packet Features Capture Type

Headers Hybrid Full Capture Network Capture Spectrum

Wednesday, November 10, 2010

slide-16
SLIDE 16

Current YAF Capture

(minimal privacy impact)

  • Balancing Act Between Understanding Our

Network and Privacy

  • Basic flow information:
  • Who talked to whom, how much, when
  • Application labeling:
  • Banner analysis for port independent

protocol checking

Wednesday, November 10, 2010

slide-17
SLIDE 17

Current YAF capture

(minimal privacy impact)

  • Application labeling (continued)
  • can recognize:
  • HTTP

, SSH, SMTP , Gnutella, Yahoo Messenger, DNS, FTP , SSL/TLS, SLP , IMAP , IRC, RTSP , SIP , RSYNC, PPTP , NNTP , TFTP , Teredo, MySQL, POP3

Wednesday, November 10, 2010

slide-18
SLIDE 18

Current YAF capture

(minimal privacy impact)

  • Entropy analysis
  • Good indication if traffic is encrypted
  • r compressed

Wednesday, November 10, 2010

slide-19
SLIDE 19

Current YAF Capture

  • DNS capture
  • Because it is the root of almost all valid

network transactions

  • We can limit capture to just Authoritative

and NXDomain responses

  • Or capture all DNS transaction

information

Wednesday, November 10, 2010

slide-20
SLIDE 20

Current YAF Capture

  • Highly detailed capture for specific

protocols:

  • HTTP
  • Server, User-Agent, GET, Connection
  • HTTP

, Referer, Location, Host

  • Content-Length, Age, Content-Type
  • Accept, Accept-Language,(Result Code)

Wednesday, November 10, 2010

slide-21
SLIDE 21

Current YAF Capture

  • Other in depth protocols
  • FTP

, IMAP , RTSP , SIP , SMTP , SSH

  • Soon to be added
  • X.509 Certificates
  • Primarily from recognized SSL/TLS

protocol negotiations

Wednesday, November 10, 2010

slide-22
SLIDE 22

Internet

YAF / Capture Device

HTTP IPFIX mediator FTP SSH flow DNS X.509 SMTP IPFIX mediator DNS processor PCAP Wednesday, November 10, 2010

slide-23
SLIDE 23

Capturing Flow (and

  • thers) using IPFIX
  • Using the IPFIX model, we can turn on

many features in YAF, and filter with mediators

  • We can enhance our handling of specific

data types, still carry the information in IPFIX, and send to future places

Wednesday, November 10, 2010

slide-24
SLIDE 24

Finishing the Full Deployment

  • We have some of the backend tools to

handle the various different data types from YAF now. (Storage and analysis)

  • Working on the simple/dumb backend

(probably MySQL based) to just capture data (may not scale well enough)

  • IPFIX mediator toolkit materials are

available

Wednesday, November 10, 2010

slide-25
SLIDE 25

Objectives Met?

  • YAF is deployed in LARGE scale

environments now

  • We have been able to quickly add both

network encapsulation types and specific network traffic data decoders quickly

  • IPFIX has proven to be both compact and

flexible

Wednesday, November 10, 2010

slide-26
SLIDE 26

Where do you fit in?

  • It is available for you to use
  • You can enhance and extend it - we are

willing to take contributions

  • Adding certain new detectors (especially

for text based protocols) is really easy

  • You tell me

Wednesday, November 10, 2010

slide-27
SLIDE 27

Getting YAF

http://tools.netsa.cert.org netsa-help@cert.org

Wednesday, November 10, 2010

slide-28
SLIDE 28

Questions? Comments?

Gratuitous plug: Salt Lake City Marriott Downtown Salt Lake City, Utah January 10-13, 2011

Wednesday, November 10, 2010

slide-29
SLIDE 29

Backups

Wednesday, November 10, 2010

slide-30
SLIDE 30

Packet Features Privacy Capture Type Packet Details Privacy

Wednesday, November 10, 2010

slide-31
SLIDE 31

Packet Features Privacy Capture Type Packet Details Privacy

Wednesday, November 10, 2010