38
GLOBAL BOTNET DETECTOR BRENTON MALLEN

Global Botnet Detector

Embed Size (px)

Citation preview

Page 1: Global Botnet Detector

GLOBAL BOTNET DETECTORBRENTON MALLEN

Page 2: Global Botnet Detector

ABOUT ME

HI THERE!

Data Scientist at Distil Networks

Email: [email protected] Blog: carpefridiem.wordpress.com

Twitter: @BrentonMallen

2

Page 3: Global Botnet Detector

MOTIVATION

WHAT’S MY MOTIVATION?

▸ Product of an investigation of a DDoS attack on a customer

▸ Wanted a means to be alerted

▸ Wanted a means to identify a group of users potentially responsible

3

Page 4: Global Botnet Detector

BOTS & BOTNETS

WHAT ARE THESE BOTS I KEEP HEARING ABOUT?

▸ Automated code that pretends to be human

▸ Used to traverse them internets

▸ Not all bots are bad

4

Page 5: Global Botnet Detector

BOTS & BOTNETS

IS A BOT REALLY ALL THAT DANGEROUS?

▸ Botnets can cause damage:

▸ DDoS

▸ Mass Security Breaches

▸ Mass Data Theft

5

Page 6: Global Botnet Detector

ANALOGY

HOW ABOUT AN ANALOGY?

6

Page 7: Global Botnet Detector

ANALOGY

HOW ABOUT AN ANALOGY?

7

Page 8: Global Botnet Detector

ANALOGY

Casual Traffic Botnet Traffic

8

HOW ABOUT AN ANALOGY?

Page 9: Global Botnet Detector

BOTNET DETECTOR

WHAT ARE THE GOALS OF A BOTNET DETECTOR?

▸ Detect

▸ Presence of a Botnet

▸ Identify

▸ List of Suspects

9

Page 10: Global Botnet Detector

BOTNET DETECTOR

WHAT TOOLS DO WE USE?

▸ Python

▸ Boto

▸ Numpy

▸ AWS

▸ Hadoop

▸ Hive

▸ M-R Streaming

1.25 Billion Logs = 600 GB of Data per Day

10

Page 11: Global Botnet Detector

BOTNET DETECTOR

HOW DO WE DETECT A BOTNET?

▸ Part 1: Detect - For a given site, for each time window:

AGGREGATE COUNTRY TRAFFIC

CHECK FOR COORDINATED TRAFFIC

PRODUCE ALERT

11

Page 12: Global Botnet Detector

SITE TRAFFIC

WHAT DOES THE TRAFFIC LOOK LIKE?

Time

Requ

est C

ount

Page 13: Global Botnet Detector

BOTNET DETECTION

CROSS-COUNTRY CORRELATION

TIME WINDOW

Country (A-Z)

Country (A-Z)

1.0

0.0

-1.0

13

Page 14: Global Botnet Detector

BOTNET DETECTION

CROSS-COUNTRY CORRELATION

TIME WINDOW

Country (A-Z)

Country (A-Z)

1.0

0.0

-1.0

14

Page 15: Global Botnet Detector

BOTNET DETECTION

CROSS-COUNTRY CORRELATION

TIME WINDOW

Country (A-Z)

Country (A-Z)

1.0

0.0

-1.0

15

Page 16: Global Botnet Detector

BOTNET DETECTION

CROSS-COUNTRY CORRELATION

TIME WINDOW

Country (A-Z)

Country (A-Z)

1.0

0.0

-1.0

16

Page 17: Global Botnet Detector

BOTNET DETECTION

CROSS-COUNTRY CORRELATION

TIME WINDOW

Country (A-Z)

Country (A-Z)

1.0

0.0

-1.0

17

Page 18: Global Botnet Detector

BOTNET DETECTION

CASUAL TRAFFIC

Country (A-Z)

Country (A-Z)

Country (A-Z)

SUSPICIOUS TRAFFIC1.0

0.0

-1.0

CROSS-COUNTRY CORRELATION

18

Page 19: Global Botnet Detector

CORRELATION COEFFICIENT 2D-HISTOGRAM

BOTNET DETECTION

0 —>

-1.0

0.0

1.0

CASUAL TRAFFIC

Site A Site B

Time Time

19

Page 20: Global Botnet Detector

BOTNET DETECTION

CORRELATION COEFFICIENT 2D-HISTOGRAM

0 —>

-1.0

0.0

1.0

CASUAL TRAFFIC

Site A Site B

Time Time

20

Page 21: Global Botnet Detector

-1.0

0.0

1.0

BOTNET DETECTION

CORRELATION COEFFICIENT 2D-HISTOGRAM

0 —>

CASUAL TRAFFIC

Site A Site B

21

Page 22: Global Botnet Detector

BOTNET DETECTION

0 —>

-1.0

0.0

1.0

Site CTime

22

Page 23: Global Botnet Detector

BOTNET DETECTION

0 —>

-1.0

0.0

1.0

Site CTime

23

Page 24: Global Botnet Detector

BOTNET DETECTION

0 —>

-1.0

0.0

1.0

Site CTime

24

Page 25: Global Botnet Detector

BOTNET DETECTION

0 —>

-1.0

0.0

1.0

Site CTime

25

Page 26: Global Botnet Detector

BOTNET DETECTION

0 —>

-1.0

0.0

1.0

Site CTime

26

Page 27: Global Botnet Detector

BOTNET DETECTION

0 —>

-1.0

0.0

1.0

Site CTime

27

Page 28: Global Botnet Detector

BOTNET DETECTION

ALERT PARAMETER

Time

Ener

gy28

Page 29: Global Botnet Detector

BOTNET DETECTION

ALERT PARAMETER

Alert Threshold

Time

Ener

gy29

Page 30: Global Botnet Detector

IDENTIFY PARTICIPANTS

HOW DO WE FIND THOSE RESPONSIBLE?

▸ Part 2: Identify Participants

▸ From Detection Phase

▸ Times of Alerts

▸ Participating Countries

▸ Requires User Fingerprint

▸ ID Based on Various User Configuration Parameters

30

Page 31: Global Botnet Detector

IDENTIFY PARTICIPANTS

HOW DO WE FIND THOSE RESPONSIBLE?

ISOLATE USERS IN COUNTRIES

CHECK FOR MULTI-COUNTRY PRESENCE

FIND COORDINATED USERS

31

Page 32: Global Botnet Detector

IDENTIFY PARTICIPANTS

Argentina - South AfricaIndonesia - Russian Federation

0.77

0.94

Requ

est C

ount

s

Time

Threat Score

32

A1

A2

B1

B2

Page 33: Global Botnet Detector

IDENTIFY PARTICIPANTS

WHAT DOES THE FINAL OUTPUT LOOK LIKE?

ID Threat Score007E6ABE-A48C-3DE5-81E0-CBECBC2C96AB 0.8207EF4DBE-EC0D-3BCE-A5BA-5910FF2457F5 0.970CCA9DA5-D63D-34E9-85A1-55154E5480E2 0.9617C00FD8-E931-3789-AAC4-ED004C9143DB 0.9022533F87-4B97-356A-95A4-84D5A8841F63 0.782E1C87C1-90BF-37BB-9A33-C482038AEE57 0.922F91B34E-AB15-389B-BCB6-8D913135D 0.953F6B5DF3-607E-3F1F-8050-2932B11D9E8A 0.9446069A1E-F077-3F78-870A-C9BD7A0E1740 0.8158A8DB25-2B99-3D2F-BA6D-50D1A8CFF3E9 0.7758CBD814-CAC1-3644-8AB9-99A3C07A8E8F 0.706336DAC7-6508-3E79-9D99-37034A7C2E3F 0.83655A6266-D316-360C-BAC1-76F26F3C0643 0.7266C3A2B1-2953-3848-882C-591224C77E33 0.91

Page 34: Global Botnet Detector

RECAP

WHAT DID WE DO?

DETECTED THE PRESENCE OF A

BOTNET

SCRUTINIZED USERS FROM PARTICIPATING

COUNTRIES

PRODUCED A LIST OF SUSPECT USERS

Page 35: Global Botnet Detector

PERFORMANCE

HOW DOES IT PERFORM?

▸ Prototype - Looks at Past Data

▸ Applied to an attack investigation

▸ 10 alerts over the month in question

▸ 100% of responsible users*

▸ Botnet Limited to Cross-Country

▸ Lacks Sub-Country insight

* Deemed responsible by the customer

35

Page 36: Global Botnet Detector

FUTURE WORK

WHERE DO WE GO FROM HERE?▸ Integrate into ML product

▸ Extract Features from Suspects

▸ Address Pitfalls

▸ Inefficiencies Due to Sparsity, Intra-country Activity

▸ 24/7 Streaming Process Across all customer sites

▸ Utilize New Tools

▸ Spark, storm, etc.

▸ Internal Platform

36

Page 37: Global Botnet Detector

QUESTIONS?

THANK YOU

37

Page 38: Global Botnet Detector