strata san jose 2016 - reduce false positives in security

46
Powerball Predictor Photo Credit: Sean McGrath Crystal ball tells me with 99% accuracy if a powerball prediction is a winner.

Upload: ram-shankar-siva-kumar

Post on 11-Apr-2017

10.855 views

Category:

Engineering


3 download

TRANSCRIPT

Page 5: Strata San Jose 2016 - Reduce False Positives in Security
Page 7: Strata San Jose 2016 - Reduce False Positives in Security

Base Rate Fallacy

Page 8: Strata San Jose 2016 - Reduce False Positives in Security

Why False Positives?

Page 9: Strata San Jose 2016 - Reduce False Positives in Security

Case Study: Outlier Detection

Using an outlier detection system to identify fraudsters within the environment.

Page 10: Strata San Jose 2016 - Reduce False Positives in Security

For a set of generating mechanisms find the unusual ones.

Page 11: Strata San Jose 2016 - Reduce False Positives in Security

Example Time Series

Page 13: Strata San Jose 2016 - Reduce False Positives in Security

Solution: Feedback Loop

Page 16: Strata San Jose 2016 - Reduce False Positives in Security

Fraud: Takeaways

- Concept Drift is a shift in behavior.- Feedback combats concept drift.- Implicit Feedback > Explicit Feedback

Page 17: Strata San Jose 2016 - Reduce False Positives in Security

IDS: Anatomy of Successful Detection

Page 18: Strata San Jose 2016 - Reduce False Positives in Security

Context: Security Analyst

Page 19: Strata San Jose 2016 - Reduce False Positives in Security

Red team Kill Chain

Page 20: Strata San Jose 2016 - Reduce False Positives in Security

Blue team Kill Chain

Page 21: Strata San Jose 2016 - Reduce False Positives in Security

False positives: Lose Ability to Triage

Page 22: Strata San Jose 2016 - Reduce False Positives in Security

Fact: You cannot salvage a false positive with Contextual Info or Visualization

Page 23: Strata San Jose 2016 - Reduce False Positives in Security

What is a Successful detection?

Properties + Frameworks

Page 24: Strata San Jose 2016 - Reduce False Positives in Security

Successful detection captures Adversary TTP from Sensor data ignoring Expected activity

Source: @MSwannMSFT

Page 25: Strata San Jose 2016 - Reduce False Positives in Security

Properties of a Successful Detection

Adaptability

Credible

Interpretability

Actionable

Page 26: Strata San Jose 2016 - Reduce False Positives in Security

Basic Advanced

Less Useful

More U

seful

Sophistication of Algorithms

Usefulness of A

lerts

Secu

rity

Dom

ain

Kno

wle

dge

Framework for a Successful detection

Page 27: Strata San Jose 2016 - Reduce False Positives in Security

Basic Advanced

Less Useful

More U

seful

Sophistication of Algorithms

Usefulness of A

lerts

Secu

rity

Dom

ain

Kno

wle

dge

Outlier

Page 28: Strata San Jose 2016 - Reduce False Positives in Security

Basic Advanced

Less Useful

More U

seful

Sophistication of Algorithms

Usefulness of A

lerts

Secu

rity

Dom

ain

Kno

wle

dge

Outlier

Anomaly

Increase Complexity

Page 29: Strata San Jose 2016 - Reduce False Positives in Security

Basic Advanced

Less Useful

More U

seful

Sophistication of Algorithms

Usefulness of A

lerts

Secu

rity

Dom

ain

Kno

wle

dge

Outlier

AnomalyIncrease Complexity

Security InterestingAlerts

Incr

e ase

Dom

ain

Kno

wle

dgeSuccessful

Detections incorporate Domain Knowledge Alerts

Page 30: Strata San Jose 2016 - Reduce False Positives in Security

How to encode Domain Knowledge: Embrace Rules

• Business Heuristics to filter out the “Security interesting anomalies”

• Rules can take many forms: •TI feeds •IOCs, IOAs•TTPs

• Rules are awesome • Credible, Interpretable, Adaptable (to some

extent), Actionable!• Highest Precision • Highest Recall

Page 31: Strata San Jose 2016 - Reduce False Positives in Security

Three ways to combine ML and Rules

Page 32: Strata San Jose 2016 - Reduce False Positives in Security

Three Ways to combine Rules and ML 1.Above Machine Learning Systems

a.Business Heuristics to filter alerts i. “For account _foo_, only raise sev 2 alerts until March 28th, 2016”,

Page 33: Strata San Jose 2016 - Reduce False Positives in Security

Work by Dan Mace et. al, Microsoft

Page 34: Strata San Jose 2016 - Reduce False Positives in Security

2. Below Machine Learning Systemsa. Featurizations - “If IP address present in List of malicious IP dataset, flag 1”b. Utilizes Threat Intel feeds (Cymru, Virus total, FireEye)

Page 35: Strata San Jose 2016 - Reduce False Positives in Security

3: Combining Rules and Machine Learning together using Markov Logic Networks

Initial Ideas given by Vinod Nair, MSR

Page 36: Strata San Jose 2016 - Reduce False Positives in Security

Intuition

•Rules alone place a set of hard constraintson the set of possible worlds•Let’s make them soft constraints:When a world violates a formula,It becomes less probable, not impossible•Give each formula a weight(Higher weight ⇒ Stronger constraint)

Source: Lectures by Pedro Domingos

Page 37: Strata San Jose 2016 - Reduce False Positives in Security

Interactive logons from service accounts causes attack

Similar service accounts tend to have similar logon behavior

Example: Service Accounts

Domain Knowledge

Page 38: Strata San Jose 2016 - Reduce False Positives in Security

Example: Service Accounts

Encode as First Order Logic

Page 39: Strata San Jose 2016 - Reduce False Positives in Security

Example: Service Accounts

1.5

1.1

Example: Service Accounts

AssociateEach Rule With the Learned Weight

Page 40: Strata San Jose 2016 - Reduce False Positives in Security

Example: Service Accounts

1.5

1.1

Attack(A)

InteractiveLogon(A)

InteractiveLogon(B)

Attack(B)

Example: Service Accounts

Consider two service accounts: A,B

Page 41: Strata San Jose 2016 - Reduce False Positives in Security

Example: Service Accounts

1.5

1.1

Attack(A)

InteractiveLogon(A)

InteractiveLogon(B)

Attack(B)Similar(A,

B)

Similar(B,A)

Similar(A,A)

Similar(B,B)

Page 42: Strata San Jose 2016 - Reduce False Positives in Security

Example: Service Accounts

1.5

1.1

Attack(A)

InteractiveLogon(A)

InteractiveLogon(B)

Attack(B)Similar(A,

B)

Similar(B,A)

Similar(A,A)

Similar(B,B)

Page 43: Strata San Jose 2016 - Reduce False Positives in Security

Example: Service Accounts

1.5

1.1

Attack(A)

InteractiveLogon(A)

InteractiveLogon(B)

Attack(B)Similar(A,

B)

Similar(B,A)

Similar(A,A)

Similar(B,B)

Page 44: Strata San Jose 2016 - Reduce False Positives in Security

•How to learn the structure? •Begin with hand-coded rules•Use Inductive Logic Programming, but need to infer arbitrary clause

•How to learn the weights? •For generative learning, depend on pseudolikelihood

•Checkout Alchemy -- http://alchemy.cs.washington.edu/

Page 45: Strata San Jose 2016 - Reduce False Positives in Security

Call for Action - After the conference • One Week

•Review •@CodyRioux - IPython Notebook•@Ram_ssk - Follow Up material

•Think comprehensively about Rules

• One Month •Ask your data scientists to literature review section

•Implement the rules on TOP of ML systems

• One quarter•Implement a feedback system to capture training data

•Implement all TI feeds within an ML System

•Play with Alchemy

Page 46: Strata San Jose 2016 - Reduce False Positives in Security

Literature● The Base-Rate Fallacy and its Implications for the Difficulty of Intrusion Detection

(Alexsson, 1999)

● Enhancing Performance Prediction Robustness by Combining Analytical Modeling

and Machine Learning (Didona et al., 2015)

● Richardson, Matthew, and Pedro Domingos. "Markov logic networks."Machine

learning 62.1-2 (2006): 107-136.