botconf 2013 - dns-based botnet c2 server detection

32
DNS Based Botnet C2 Server Detection Spatial Statistics as a detection metric

Upload: sensepost

Post on 13-Nov-2014

791 views

Category:

Technology


2 download

DESCRIPTION

Presentation at Botconf 2013 by Etienne Stalmans

TRANSCRIPT

Page 1: Botconf 2013 - DNS-based Botnet C2 Server Detection

DNS Based Botnet C2 Server DetectionSpatial Statistics as a detection metric

Page 2: Botconf 2013 - DNS-based Botnet C2 Server Detection

whois@kamp_staaldraad

[email protected]

Page 3: Botconf 2013 - DNS-based Botnet C2 Server Detection

Geographic Analysis

https://ww

w.team

-cymru.org/im

ages/conficker-2009-01-29-dark-full.jpg

Page 4: Botconf 2013 - DNS-based Botnet C2 Server Detection

Research Goals● Accurately detect botnet traffic

○ Assume no prior knowledge○ Lightweight○ Fast○ Adaptable

● Early detection

Page 5: Botconf 2013 - DNS-based Botnet C2 Server Detection

Examining DNS

DNS

Web Browsing

P2P

Mail

Bots

Practically Everything

Page 6: Botconf 2013 - DNS-based Botnet C2 Server Detection

DNS Fast-Flux● Short TTL

● Multiple A Records

● Different IP Ranges

Page 7: Botconf 2013 - DNS-based Botnet C2 Server Detection

DNS Fast-Flux

● Multiple ASNs● Multiple Countries● Multiple Timezones● Multiple Unique Location Identifiers

Page 8: Botconf 2013 - DNS-based Botnet C2 Server Detection

Widely Dispersed Networks

Page 9: Botconf 2013 - DNS-based Botnet C2 Server Detection

Spatial Statistics

Spatial Measureshttp://earth-info.nga.mil/GandG/coordsys/images/MGRS_1km_Polygon_Shapefiles_Coverage.jpg

Page 10: Botconf 2013 - DNS-based Botnet C2 Server Detection

Spatial Measures

Page 11: Botconf 2013 - DNS-based Botnet C2 Server Detection

Nearest Neighbours Fast-Flux Domains Benign Domains

Page 12: Botconf 2013 - DNS-based Botnet C2 Server Detection

Spatial Statistics

Spatial Statisticshttps://upload.wikimedia.org/wikipedia/commons/c/c7/Snow-cholera-map.jpg

Page 13: Botconf 2013 - DNS-based Botnet C2 Server Detection

First Law of Geography

"All things are related, but near things are more related than far things." - W. Tobler

Page 14: Botconf 2013 - DNS-based Botnet C2 Server Detection

Autocorrelation

Page 15: Botconf 2013 - DNS-based Botnet C2 Server Detection

Moran's Index

Page 16: Botconf 2013 - DNS-based Botnet C2 Server Detection

Geary's Coefficient

Page 17: Botconf 2013 - DNS-based Botnet C2 Server Detection

Building the Classifiers

Page 18: Botconf 2013 - DNS-based Botnet C2 Server Detection

Classifier Training

Benign Dataset

Fast-Flux Dataset

Page 19: Botconf 2013 - DNS-based Botnet C2 Server Detection

Classifier Training

Moran's I: Timezones

Page 20: Botconf 2013 - DNS-based Botnet C2 Server Detection

Moran's I: UTM

Page 21: Botconf 2013 - DNS-based Botnet C2 Server Detection

Geary's C: UTM

Page 22: Botconf 2013 - DNS-based Botnet C2 Server Detection

Geary's C: MGRS

Page 23: Botconf 2013 - DNS-based Botnet C2 Server Detection

Classifier Results

Page 24: Botconf 2013 - DNS-based Botnet C2 Server Detection

Moran Classifier Results97% Timezones UTM 95%95% MGRS

Accuracy

Page 25: Botconf 2013 - DNS-based Botnet C2 Server Detection

Geary Classifier Results95% Timezones UTM 96%95% MGRS

Accuracy

Page 26: Botconf 2013 - DNS-based Botnet C2 Server Detection

● Determine resource usage● Impact on normal network performance● Scalability

Evaluating Performance

Page 27: Botconf 2013 - DNS-based Botnet C2 Server Detection

Classifier Performance Impacthttp://beyond.customline.com/wp-content/uploads/2012/04/Cheetah-performance.jpg

Page 28: Botconf 2013 - DNS-based Botnet C2 Server Detection

Measured Performance

Page 29: Botconf 2013 - DNS-based Botnet C2 Server Detection

Measured Performance20,000 domain lookups

Processed in 13 seconds

6.501×10-4 seconds per domain

Page 30: Botconf 2013 - DNS-based Botnet C2 Server Detection

BenefitsFast SmallLow maintenance Scalable

Page 31: Botconf 2013 - DNS-based Botnet C2 Server Detection

Future Work● Combine classifiers into stand-alone solution● Combine detection and blocking● Increase accuracy of geo-location

Page 32: Botconf 2013 - DNS-based Botnet C2 Server Detection

Conclusion

@kamp_staaldraad

[email protected]