Top Banner
Data Science for Network Security Dmitry Orekhov
26

Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

May 27, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Data Sciencefor

Network Security

Dmitry Orekhov

Page 2: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Collecting Data

Page 3: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Internet

Data Flow

AnalyticsTelemetry

Traffic

Alerts,Actions

Page 4: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Internet

BA

C

Sensors: Vantage

Page 5: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Host

Services

Network

OSI

Syslogs

Specific logs

Traffic

Sensors: Domain

Page 6: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

• NetFlow is a traffic summarization standard developed by Cisco Systems and originally used for network services billing.

• The heart of NetFlow is the concept of a flow, which is an approximation of a TCP session.

• Plenty of Open Source implementations

Transport: NetFlow

Page 7: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Nmsg

DNSQr

DNS Payload

Transport: Nmsg

• Developed by Farsight Security for transporting network packets, particulary -DNS

• Low-latency and compactness

• Support binary and presentation forms; protobuf for protocols

• Open impelentation (GNU)

Page 8: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

SDN Controller

OpenFlowPacket-In

Network

Трафик

Свич SDN

Transport: OpenFlow

Page 9: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Use Case

Page 10: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

DNS Tunneling

?

Page 11: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

DNS

Question

Answer

Question

Answer

Page 12: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

DNS Message: Big Picture

DNS

Header

Question

Answer

QName

Resource Record

Resource Record

Name

Name

Page 13: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Base32

Page 14: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Here you are: Tunnel

DNS Packet DNS Packet DNS Packet

TCP Packet

...

TCP Packet

TCP Packet

TCP Packet

TCP Packet

TCP Packet

SSH Tunnel

Page 15: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Discovery methods

Page 16: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Payload analysis

• Size of request and response• Entropy of hostnames• Statistical Analysis• Uncommon Record Types

Page 17: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Traffic Analysis

• Volume of DNS traffic per IP address

• Volume of DNS traffic per domain• Number of hostnames per domain• Geographic location of DNS server• Domain history• Orphan DNS requests

Page 18: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Effective Intrusion Detection

DNS Message

Header

Question

Answer

QName

Resource Record

Resource Record

Name

Name

... needs deep packet inspection

Page 19: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

... and

… low-latency

DNS Message

DNS Message

DNS Message

Stream StreamStream Stream

Page 20: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Solution: Lambda Architecture

Page 21: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Online modelStreaming Processing (Spark Streaming)

Batch processing (MapReduce)

Transformation

Transformation

TransformationStream

Stream

Alert

Page 22: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

AlgorithmsIncremental algorithmsOutlier Detection• Median Absolute Deviation, MAD• Standard Deviation from average• Standard Deviation from Moving AverageПотоковая классификация• Incremental decision tree• Hoeffding Tree (VFDT)• Half-Spaсe Trees

Page 23: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Offline modelStreaming Processing (Spark Streaming)

Batch Processing (MapReduce)

FilterStream

Stream

Stream

Stre

am

Alert

Page 24: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Offline Model - Алгоритмы

Analyze entire data set at onceHypothesis tests• Simple outlier detection far a period• Statistical criteria• Kolmogorov-Smirnov testDecision TreesAuto Regressive (AR) Moving Average (MA)

Page 25: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

Data

Storage(Hive

or Cassandra)

ArchitectureSpark Streaming

Parsing Enrichment

Raw

Online Algorithms Alert Rules

Alerts

Kafka

Alert

TopicSpark/MapReduce

Batch

Network Appliance

Stream

Traffic

Topic

Page 26: Data Science for Network Security - LVEE• Developed by Farsight Security for transporting network packets, particulary - DNS • Low-latency and compactness • Support binary and

?