data-driven threat intelligence: metrics on indicator ... · using tiq-test – data prep •...

57
Data - Driven Threat Intelligence: Metrics on Indicator Dissemination and Sharing (# ddti ) Alex Pinto Chief Data Scientist MLSec Project @alexcpsec @MLSecProject Alexandre Sieira CTO Niddel @AlexandreSieira @NiddelCorp

Upload: others

Post on 27-May-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

Data-DrivenThreatIntelligence:MetricsonIndicatorDisseminationandSharing

(#ddti)

AlexPintoChiefDataScientist

MLSec Project@alexcpsec

@MLSecProject

AlexandreSieiraCTONiddel

@AlexandreSieira@NiddelCorp

Page 2: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

• CyberWar… ThreatIntel–Whatisitgoodfor?

• CombineandTIQ-test• Measuringindicators• ThreatIntelligenceSharing• Futureresearchdirection(i.e.willworkfordata)

Agenda

HTto@RCISCwendy

Page 3: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

50-ishSlides3KeyTakeaways

2HeartfeltandgenuinedefensesofThreatIntelligenceProviders

1Predictionon“TheFutureofThreatIntelligenceSharing”

PresentationMetrics!!

Page 4: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

WhatisTIgoodfor(1)Attribution

Page 5: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

WhatisTIgoodforanyway?

TYto@bfist forhisworkonhttp://sony.attributed.to

Page 6: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

WhatisTIgoodfor(2)– CyberMaps!!

TYto@hrbrmstr forhisworkonhttps://github.com/hrbrmstr/pewpew

Page 7: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

WhatisTIgoodforanyway?

• (3)Howaboutactualdefense?• Strategicandtactical:planning• Technicalindicators:DFIRandmonitoring

Page 8: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

AffirmingtheConsequentFallacy

1. IfA,thenB.2. B.3. Therefore,A.

1. Evilmalwaretalksto8.8.8.8.2. Iseetrafficto8.8.8.8.3. ZOMG,APT!!!

Page 9: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

ButthisisaData-Driventalk!

Page 10: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

CombineandTIQ-Test• Combine(https://github.com/mlsecproject/combine)• GathersTIdata(ip/host)fromInternetandlocalfiles• Normalizesthedataandenrichesit(AS/Geo/pDNS)• CanexporttoCSV,“tiq-testformat”andCRITs• ComingSoon™:CybOX /STIX/SILK/ArcSight CEF

• TIQ-Test(https://github.com/mlsecproject/tiq-test)• RunsstatisticalsummariesandtestsonTIfeeds• Generateschartsbasedonthetestsandsummaries• WritteninR(becauseyoushouldlearnastatlanguage)

Page 11: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

• https://github.com/mlsecproject/tiq-test-Summer2015

Page 12: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 13: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

UsingTIQ-TEST– FeedsSelected• Datasetwasseparatedinto“inbound”and“outbound”

TYto@kafeine andJohnBambenek foraccesstotheirfeeds

Page 14: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

UsingTIQ-TEST– DataPrep• Extractthe“raw”informationfromindicatorfeeds• BothIPaddressesandhostnameswereextracted

Page 15: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

UsingTIQ-TEST– DataPrep• ConvertthehostnamedatatoIPaddresses:• ActiveIPaddressesfortherespectivedate(“A”query)• PassiveDNSfromFarsight Security(DNSDB)

• ForeachIPrecord(includingtheonesfromhostnames):• Addasnumber andasname (fromMaxMind ASNDB)• Addcountry (fromMaxMind GeoLite DB)• Addrhost (againfromDNSDB)– mostpopular“PTR”

Page 16: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

UsingTIQ-TEST– DataPrepDone

Page 17: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

NoveltyTestMeasuringaddedanddropped

indicators

Page 18: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

NoveltyTest- Inbound

Page 19: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

AgingTestIsanyonecleaningthismessup

eventually?

Page 20: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

INBOUND

Page 21: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

OUTBOUND

Page 22: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

PopulationTest• LetususetheASNandGeoIP databasesthatweusedtoenrichourdataasareferenceofthe“true”population.

• But,but,humanbeingsareunpredictable!Wewillneverbeabletoforecastthis!

Page 23: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 24: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

Isyoursamplingpollasrandomasyouthink?

Page 25: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

Canwegetabetterlook?• Statisticalinference-basedcomparisonmodels(hypothesistesting)• Exactbinomialtests(whenwehavethe“true”pop)• Chi-squaredproportiontests(similartoindependence tests)

Page 26: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 27: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

OverlapTestMoredatacanbebetter,butmake

sureitisnotthesamedata

Page 28: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

OverlapTest- Inbound

Page 29: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

OverlapTest- Outbound

Page 30: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

UniquenessTest

Page 31: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

UniquenessTest

• “Domain-basedindicatorsareuniquetoonelistbetween96.16%and97.37%”

• “IP-basedindicatorsareuniquetoonelistbetween82.46%and95.24%ofthetime”

Page 32: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 33: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

Ihatequotingmyself,but…

Page 34: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

KeyTakeaway#1

MORE!=BETTERThreatIntelligenceIndicatorFeeds

ThreatIntelligenceProgram

KeyTakeaway#1

Page 35: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

Intermission

Page 36: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 37: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

KeyTakeaway#2

Page 38: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

KeyTakeaway#1"ThesearetheproblemsThreatIntelligenceSharingishereto

solve!”

Right?

Page 39: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

HerdImmunity,isit?

Source:www.vaccines.gov

Page 40: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

HerdImmunity…

…wouldimplythatothersinyoursharingcommunitybeingimmunetomalwareAmeantyouwouldn’tgetitevenifyouwerestillvulnerable toit.

Page 41: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

ThreatIntelligenceSharing

• Howmanyindicatorsarebeingshared?

• Howmanymembersdoactuallyshareandhowmanyjustleech?

• Canwemeasurethat?Whatasuper-deeee-duperidea!

Page 42: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

ThreatIntelligenceSharingWewouldliketothankthekindcontributionofdatafromthefinefolksatFacebookThreatExchangeandThreatConnect…

…andalsothesharingcommunitiesthatchosetoremainanonymous.Youknowwhoyouare,andwe❤ youtoo.

Page 43: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

ThreatIntelligenceSharing– Data

Fromaperiodof2015-03-01to2015-05-31:- NumberofIndicatorsShared

§ Perday§ Permember

Notsharingthisdata– privacyconcernsforthemembersandcommunities

Page 44: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

Updatefrequencychart

Page 45: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 46: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 47: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

OVERLAPSLIDE

Page 48: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

OVERLAPSLIDE

Page 49: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

UNIQUENESSSLIDE

Page 50: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

MATURITY?

Page 51: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

“Reddit ofThreat

Intelligence”?

Page 52: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 53: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

KeyTakeaway#1

'Howcansharingmakemebetterunderstandwhatare

attacksthat“aretargeted”andwhatare“commodity”?'

Page 54: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

KeyTakeaway#1

TELEMETRY>CONTENT

KeyTakeaway#3(AlsoPrediction#1)

Page 55: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

MoreTakeaways(Ilied)

• Analyzeyourdata.Extractmorevaluefromit!• IfyouABSOLUTELYHAVETObuyThreatIntelligenceordata,evaluateitfirst.

• Trythesampledata,replicatetheexperiments:• https://github.com/mlsecproject/tiq-test-Summer2015• http://rpubs.com/alexcpsec/tiq-test-Summer2015

• Sharedatawithus.I’llmakesureitgetsproperexercise!

Page 56: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective
Page 57: Data-Driven Threat Intelligence: Metrics on Indicator ... · Using TIQ-TEST – Data Prep • Convert the hostname data to IP addresses: • Active IP addresses for the respective

Thanks!

• Q&A?• Feedback!

”Themeasureofintelligenceistheabilitytochange."- AlbertEinstein

AlexPinto@alexcpsec

@MLSecProject

Alexandre Sieira@AlexandreSieira@NiddelCorp