Docsity

Intrusion Detection - Computer Security | CSE 543, Study notes of Computer Science

Partial preview of the text

Download Intrusion Detection - Computer Security | CSE 543 and more Study notes Computer Science in PDF only on Docsity!

CSE 543 - Computer Security

Lecture 24 - Intrusion Detection

November 29, 2007

URL: http://www.cse.psu.edu/~tjaeger/cse543-f07/

Background and Experiment

  • Background

Outline the Problem

  • May use an example scenario

Material Related to the Solution

  • Why hasn’t it been solved
  • Experiment

Big Insight -- Hypothesis -- Claim

  • Show Why It Would Be Interesting To Test

Experimental Approach

Expected Results

  • Informal Proof That Claim May Be True

Types of Intrusions

  • Network

Malformed (and unauthenticated) packet

Let through the firewall

Reaches the network-facing daemon

Can we detect intrusions from packet contents?

Host 

Input to daemon

Triggers a vulnerability (buffer overflow)

Injects attacker code

Performs malicious action

Can we detect intrusions from process behavior?

Intrusion Detection (def. by Forrest)

  • An IDS system find anomalies

“The IDS approach to security is based on the assumption that a system will not be secure, but that violations of security policy (intrusions) can be detected by monitoring and analyzing system behavior.” [Forrest 98]

However you do it, it requires

Training the IDS ( training )

Looking for anomalies ( detection )

This is an explosive area in computer security, that has led to lots of new tools, applications, industry 

Anomaly Detection

  • Compares profile of normal systems operation to monitored state

Hypothesis: any attack causes enough deviation from profile (generally true?)

  • Q: How do you derive normal operation?

AI: learn operational behavior from training data

Expert: construct profile from domain knowledge

Black-box analysis (vs. white or grey?)

Q: Will a profile from one environment be good for others? 
  • Pitfall: false learning

Misuse Detection

  • Profile signatures of known attacks

Monitor operational state for signature

Hypothesis: attacks of the same kind has enough similarity to distinguish from normal behavior

  • Q: Where do these signatures come from?

Record: recorded progression of known attacks

Expert: domain knowledge

AI: Learn by negative and positive feedback 

Sequences of System Calls

  • Forrest et al. in early-mid 90s, understand the characteristics of an intrusion
  • Idea: match sequence of system calls with profiles
  • n-grams of system call sequences (learned)

Match sliding windows of sequences

If not found, then trigger anomaly

Use n-grams of length 5, 6, 11.

If found, then it is normal (w.r.t. learned sequences) WRITE READ WRITE SEND SEND READ WRITE SEND 

Event Stream Attack Profile

Evaluating Forrest et al.

  • The qualitative measure of detection is the departure of the trace from the database of n-grams
  • Further they measure how far a particular n-gram i departs by computing the minimum Hamming distance of the sample from the database d min = min( d(i,j) | for all normal j in n-gram database) this is called the anomaly signal.
  • Result: on lpr, sendmail, etc.

About .05-.07% false positive rates

And S A = maximum dmin =~.

  • Is this good?

Pr( x ) function, probability of event x

Pr(sunny) = .8 (80% of sunny day)

Pr(x|y), probability of x given y

Conditional probability

Pr(cavity|toothache) =.

60% chance of cavity given you have a toothache

Bayes’ Rule (of conditional probability)

Now: Pr(cavity) = .5, Pr(toothache) =.

Bayes’ Rule

Pr(B|A) =

Pr(A|B) Pr(B)

Pr(A)

The (base-rate) Bayesian Fallacy

Setup

Pr(T) is attack probability, 1/10,

Pr(T) =.

Pr(F) is probability of event flagging, unknown

Pr(F|T) is 99% accurate (much higher than most known techniques

Pr(F|T) =.

Deriving Pr(F)

Pr(F) = Pr(F|T)Pr(T) + Pr(F|!T)Pr(!T)

Pr(F) = (.99)(.0001) + (.01)(.9999) =.

Now, what’s Pr(T|F)?

Where is Anomaly Detection Useful?

System Attack Density P(T) Detector Flagging Pr(F) Detector Accuracy Pr(F|T) True Positives P(T|F) A 0.1^ 0. B 0.001^ 0. C 0.1^ 0. D 0.00001^ 0. Pr(B|A) = Pr(A|B) Pr(B) Pr(A)

Where is Anomaly Detection Useful?

System Attack Density P(T) Detector Flagging Pr(F) Detector Accuracy Pr(F|T) True Positives P(T|F) A 0.1^ 0.38^ 0.65^ 0. B 0.001^ 0.01098^ 0.99^ 0. C 0.1^ 0.108^ 0.99^ 0. D 0.00001^ 0.00002^ 0.99999^ 0. Pr(B|A) = Pr(A|B) Pr(B) Pr(A)

The reality …

  • Intrusion detections systems are good at catching demonstrably bad behavior (and some subtle)
  • Alarms are the problem

How do you suppress them?

and not suppress the true positives?

This is a limitation of probabilistic pattern matching , and nothing to do with bad science

  • Beware: the fact that an IDS system is not alarming does not mean the network is safe
  • All too often: used as a tool to demonstrate all safe, but is not really appropriate for that.