• No results found

Intrusion Detection Systems

N/A
N/A
Protected

Academic year: 2021

Share "Intrusion Detection Systems"

Copied!
32
0
0

Loading.... (view fulltext now)

Full text

(1)

Intrusion Detection Systems

Intrusion Detection Systems

Principles, Architecture

Principles, Architecture

and Measurements

and Measurements

S3 HUT,6.5.2003, Ville Jussila ([email protected])

(2)

Contents

Contents

Motivation for Intrusion Detection

Motivation for Intrusion Detection

Different Types of IDSs

Different Types of IDSs

Simple Process Model for ID

Simple Process Model for ID

Advanced Technologies

Advanced Technologies

NSS Test Results

NSS Test Results

(3)

What is Intrusion Detection

What is Intrusion Detection

Intrusion detection systems (IDSs) are

Intrusion detection systems (IDSs) are designed for designed for detecting, blocking and reporting unauthorized

detecting, blocking and reporting unauthorized

activity in

activity in computer networks.computer networks.

“The life expectancy of a default installation of Linux Red The life expectancy of a default installation of Linux Red Hat 6.2 server is estimated to be less than 72 hours.

Hat 6.2 server is estimated to be less than 72 hours.”” “

“The fastest compromise happened in 15 minutes The fastest compromise happened in 15 minutes (including scanning, probing and attacking)

(including scanning, probing and attacking)”” “

“Netbios scans affecting Windows computers were Netbios scans affecting Windows computers were executed with the average of 17 per day

executed with the average of 17 per day”” (source: Honeynet Project)

(4)

What Was Done in the Thesis

What Was Done in the Thesis

•A detailed literature study and analysis of the A detailed literature study and analysis of the current state and problems of

current state and problems of intrusion detection. intrusion detection. •

• Generic architecture planning analysis and two Generic architecture planning analysis and two case studies of IDS deployment

case studies of IDS deployment

•Architecture design based on Snort/ACID + LAMP Architecture design based on Snort/ACID + LAMP (Linux, Apache, MySQL, PHP) based IDS +

(Linux, Apache, MySQL, PHP) based IDS +

evaluation of this architecture

evaluation of this architecture

•Internet hacker activity measurements (about Internet hacker activity measurements (about month)

(5)

Unauthorized Use of Computer Systems Within Last

Unauthorized Use of Computer Systems Within Last

12 Months

12 Months (source CSI/FBI Study)(source CSI/FBI Study)

0 10 20 30 40 50 60 70 80 Y es No Don't Know Percentage of Respondents 1996 1997 1998 1999 2000 2001 2002

1.

(6)

In

In year 2002 most common attacks year 2002 most common attacks werewere:: 1.

1. Virus (78%)Virus (78%) 2.

2. Insider Abuse of Net Access (78%)Insider Abuse of Net Access (78%) 3.

3. Laptop theft (55%)Laptop theft (55%) 4.

4. Denial of Service and System Penetration (40%)Denial of Service and System Penetration (40%) 5.

5. Unauthorized Access by Insiders (38%)Unauthorized Access by Insiders (38%) Most Common Attacks (source CSI/FBI)

Most Common Attacks (source CSI/FBI)

1.

1.

Motivation for Intrusion Detection

Motivation for Intrusion Detection

(

(7)

Applications IDS

Applications IDS

– Watch application logsWatch application logs –

– Watch user actionsWatch user actions –

– Stop attacks targeted against an applicationStop attacks targeted against an application

Advantages

Advantages

– Encrypted data can be readEncrypted data can be read

Problems

Problems

– Positioned too high in the attack chain (the Positioned too high in the attack chain (the attacks reach the application)

attacks reach the application)

2. Different Types of IDSs

2. Different Types of IDSs

Application

(8)

Host IDS

Host IDS

– Watch kernel operationsWatch kernel operations –

– Watch network interfaceWatch network interface –

– Stop illegal system operationsStop illegal system operations –

– Drop attack packets at network driverDrop attack packets at network driver

Advantages

Advantages

– Encrypted data can be readEncrypted data can be read –

– Each host contributes to the detection processEach host contributes to the detection process

Problems

Problems

– Positioned too high in the attack chain (the Positioned too high in the attack chain (the attacks reach the network driver)

attacks reach the network driver)

2. Different Types of IDSs

2. Different Types of IDSs

Application

(9)

Network IDS

Network IDS

– Watch network trafficWatch network traffic –

– Watch active services and serversWatch active services and servers –

– Report and possibly stop network level attacksReport and possibly stop network level attacks

Advantages

Advantages

– Attacks can be stopped early enough (before Attacks can be stopped early enough (before they reach the hosts or applications)

they reach the hosts or applications)

– Attack information from different subnets can be Attack information from different subnets can be correlated

correlated

Problems

Problems

– Encrypted data cannot be readEncrypted data cannot be read –

– Annoyances to normal traffic if for some reason Annoyances to normal traffic if for some reason normal traffic is dropped

normal traffic is dropped

2. Different Types of IDSs

2. Different Types of IDSs

Application

(10)

2. Different Types of IDSs

2. Different Types of IDSs

Application

Application--, Host, Host-- and Network IDS and Network IDS -- ComparisonComparison

Application-based Host-based Network-based

Technique Application monitoring Host system monitoring Network segment monitoring

Data Rate Low Moderate High

Placement Application, userland process Kernel, system process Network node

Cost ($) Low to Moderate Moderate High

Maintenance Effort Moderate Moderate to High Low

Encrypted Data Supported Supported Unsupported

(11)

Diagram

Diagram

3. Simple Process Model for ID

3. Simple Process Model for ID

Capture Data Analyse Data Respond

Iterate

For example applications log

For example applications log

network driver, or network cable

network driver, or network cable

Parse data, filter data and execute

Parse data, filter data and execute

Detection Algorithms

Detection Algorithms

Drop packets, send alerts,

Drop packets, send alerts,

update routing tables,

update routing tables,

kill processes etc.

(12)

Misuse Detection

Misuse Detection

3. Simple Process Model for ID

3. Simple Process Model for ID

Alert tcp !192.168.1.0/24 any -> 192.168.1.0/24 111

(Content: “|00 01 86 A5|”;msg:”External Mountd access”;)

– SSearchearch attack signatures, which are patterns, attack signatures, which are patterns, byte code or expressions belonging to a specific

byte code or expressions belonging to a specific

attack.

attack.

– often called signatureoften called signature--based detectionbased detection –

– A sA signatureignature is created by analysing an attack is created by analysing an attack method

method

–TThe patterns are stored inside the IDShe patterns are stored inside the IDS Example Rule:

(13)

Anomaly Detection

Anomaly Detection

3. Simple Process Model for ID

3. Simple Process Model for ID

“Distinguish abnormal from normal”

Threshold Detection

• X events in Y seconds triggers the alarm Statistical Measures

• Current traffic profile matches the ”normal” profile Rule-Based Methods

• Jack never logs in at 6 to 8 AM

• If Jack just sent email from Espoo office, he should not send email from New York office at the same time

(14)

Anomaly/Misuse Detection

Anomaly/Misuse Detection –– ComparisonComparison

3. Simple Process Model for ID

3. Simple Process Model for ID

Method Misuse Detection Anomaly Detection

Technique Detect Patterns of Interest Deviations from Learned Norms Generalization Problematic Yes

Specifity Yes No Sensitivity High Moderate False Alarms Low Moderate

(15)

Responses

Responses

3. Simple Process Model for ID

3. Simple Process Model for ID

•Alerts and notifications: email, SMS, pager (important issue: alert path must be bulletproof)

•Increase Surveillance: log more

•Throttling: slow down malicious traffic

•Blocking Access: drop data, update firewall/router •Nuke the Attacker: Eye for an eye tactics

•Honey Pots and Padded Cells: route the hacker to a fake system and let him play freely

(16)

Detection Rate

Detection Rate

3. Simple Process Model for ID

3. Simple Process Model for ID

Bayesian Detection rate (no false positives)

(

|

)

P Intrusion Alarm

differs from Detection rate

(true and false positives)

P Alarm Intrusion

(

|

)

•True positive, TP, is a malicious attack that is correctly detected as malicious. •True negative, TN, is a not an attack and is correctly classified as benign.

•False positive, FP, is not an attack but has been classified as an attack.

•False negative, FN, is an attack that has been incorrectly classified as a benign.

Detection rate is obtained by testing the IDS against set of intrusive scenarios “…The false alarm rate is the limiting factor for the performance in an IDS”.

(17)

Techniques used in the Intrusion Detection

Techniques used in the Intrusion Detection

4. Advanced Technologies

4. Advanced Technologies

•Stream Reassembly: follow connections and sessions •Traffic Normalization: see that protocols are followed • Bayesian Networks: Data mining and decision networks

•Graphical IDSs (for example GrIDS): use graphs to model attacks •Feature equality heuristics: port stepping, packet gap recognition •Genetic Programming, Human immune systems

• Tens of research systems exist

For Protection

For Protection

For Attacks

For Attacks

• Evasion methods (fragmentation, mutation etc.)

(18)

6. Measurements

6. Measurements

Goals

Goals

Evaluate the performance of the architecture.

Evaluate the performance of the architecture.

Verify the following hypothesis:

Verify the following hypothesis:

• There is first a probe or a scan and then an There is first a probe or a scan and then an attack.

attack.

• An attack is a likely consequence of browsing An attack is a likely consequence of browsing hacker sites and newsgroups.

hacker sites and newsgroups.

• There are daily variations in hostile activities. There are daily variations in hostile activities. •

• There are geographical variations in hostile There are geographical variations in hostile activities.

(19)

6. Measurements

6. Measurements

Architecture (laboratory)

(20)

6. Measurements

6. Measurements

Architecture (home) Architecture (home)

Internet

HUB

NIC1

NIC2

P3 600EB 512MB RAM,

Windows XP

Snort 1.9.1

IDSCenter

MySQL

ACID

Apache

JavaPot

Remote Desktop Administration

Kerio Personal Firewall

Active

(21)

6. Measurements

6. Measurements

Architecture Evaluation: Alert Throughput (lab)

Architecture Evaluation: Alert Throughput (lab)

y = 4E-10x2 + 0,0001x + 3,7951 R2 = 0,9171 0 20 40 60 80 100 120 140 160 180 0 50000 100000 150000 200000 250000 300000 350000 400000 Alerts Ti me (s)

(22)

6. Measurements

6. Measurements

Compilation of Results

Compilation of Results

HOME: Period 1 HOME: Period 2 LABORATORY Measurement period 40 7 28

Total number of alerts 8403 1790 5965

Unique alerts 174 46 199

Alerts per Day 210 255 213

Port scans 150 18 37

Port scans per Day 3,8 2,6 1,3 Unique source addresses 670 163 375 Proper DNS entry (%) 74 not checked 67 CAIDA coordinate mapping (%) 21 not checked 9,6 Source ports (TCP/UDP) 2051 / 42 561 / 12 2256 / 14 Destination ports (TCP/UDP) 904 / 25 270 / 4 1241 / 2 Traffic Profile (TCP/ICMP/UDP) 92% / 7% / 1% 98 % / 1% / 1% 92 % / 8% / << 1%

1. Microsoft Internet Information Server related attacks (97,2%

1. Microsoft Internet Information Server related attacks (97,2% home, 46,79% lab)home, 46,79% lab) 2. Brute

2. Brute--force or random FTPforce or random FTP--login attempts (0,19% home, 38,19 % lab)login attempts (0,19% home, 38,19 % lab) 3. POP3 bad logins and USER overflow attempts (0% home, 11,09% l 3. POP3 bad logins and USER overflow attempts (0% home, 11,09% lab)ab) 4. Bad Port 0 UDP or TCP traffic (0,66% home, 1,53% lab)

4. Bad Port 0 UDP or TCP traffic (0,66% home, 1,53% lab) 5. MS

(23)

6. Measurements

6. Measurements

Is there any reconnaissance before an attack?

Is there any reconnaissance before an attack?

•No reconnaissance events before an attack could be No reconnaissance events before an attack could be identified

identified

•There were no reconnaissance events and attack There were no reconnaissance events and attack events from the same IP

events from the same IP--address. address. •

•Time recurrence could not be used as a Time recurrence could not be used as a reconnaissance to attack mapping variable, as there

reconnaissance to attack mapping variable, as there

is very much noise traffic

is very much noise traffic –– mostly generated by mostly generated by Microsoft Internet Information Server related worm

Microsoft Internet Information Server related worm

attacks.

attacks.

•Attacks are mostly worm related, automated or Attacks are mostly worm related, automated or executed randomly.

(24)

6. Measurements

6. Measurements

Is there any reconnaissance before an attack?

(25)

6. Measurements

6. Measurements

Is there any reconnaissance before an attack?

Is there any reconnaissance before an attack?

0 5 0 10 0 15 0 20 0 25 0 30 0 35 0 40 0 1 5 10 30 60 100 100 0 100 00 100 00 0 10000 00 100000 00 More Recu rre n c e (s) Fre q uen cy ,00% 20,00% 40,00% 60,00% 80,00% 100,00% 120,00%

(26)

6. Measurements

6. Measurements

Does hacker site browsing result in increased attack

Does hacker site browsing result in increased attack

frequency?

frequency?

•During the sevenDuring the seven--day day ““hacking periodhacking period””, , notorious hacker and terrorist group sites were

notorious hacker and terrorist group sites were

visited, pinged and scanned.

visited, pinged and scanned.

•The increase of alerts per day was only 21% and The increase of alerts per day was only 21% and it could result from short

it could result from short--term changes in the term changes in the attack activities.

(27)

6. Measurements

6. Measurements

Do hostile activities have any daily or hourly

Do hostile activities have any daily or hourly

variations?

variations?

•Thursday seemed to be most active Thursday seemed to be most active –– weekend was weekend was not very active

not very active

•Afternoon and evening hours seem to be quite Afternoon and evening hours seem to be quite active

active

•Morning hours are the most quiet Morning hours are the most quiet •

•There is a high variance in daily and hourly There is a high variance in daily and hourly activities

activities

à

à This prohibits the use of variations in for example This prohibits the use of variations in for example human resources planning (for example how many

human resources planning (for example how many

system administrators guard the network in the

system administrators guard the network in the

night)

(28)

6. Measurements

6. Measurements

Do hostile activities have any daily or hourly

Do hostile activities have any daily or hourly

variations? variations? 10,9 6,3 15,0 25,2 11,2 14,3 17,1 5,3 8,0 17,1 42,5 6,6 14,4 6,1 8,7 13,2 6,9 26,2 11,0 23,9 10,1 0,0 5,0 10,0 15,0 20,0 25,0 30,0 35,0 40,0 45,0

Mon Tue Wed Thu Fri Sat Sun

Day of Week

Alerts

Home (%) Laboratory (%) Laboratory (no spikes) (%)

0,00 5,00 10,00 15,00 20,00 25,00 30,00 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Hour of Day Percentage

(29)

6. Measurements

6. Measurements

Do attack activities vary by geographical location?

Do attack activities vary by geographical location?

•Most attacks come from developed countries, Most attacks come from developed countries, which have lots of computers and Internet

which have lots of computers and Internet

connections. Unlike expected, the traditional

connections. Unlike expected, the traditional

evil

evil--axis countries like Romania and Israel were axis countries like Romania and Israel were not very active.

not very active.

•About 70% of addresses had a proper DNS entry About 70% of addresses had a proper DNS entry and they could be resolved to some domain.

and they could be resolved to some domain.

Table 24 shows the most active domains. Only

Table 24 shows the most active domains. Only

20% (home) and 10% (laboratory) of addresses

20% (home) and 10% (laboratory) of addresses

could be mapped to geographical coordinates

could be mapped to geographical coordinates

using CAIDA

using CAIDA’’s service and a custom built s service and a custom built mapping tool.

(30)

6. Measurements

6. Measurements

Do attack activities vary by geographical location?

(31)

Suggestions and Improvements

Suggestions and Improvements

• Do not run Microsoft IIS webDo not run Microsoft IIS web--serverserver •

• A random home computer with Internet connection A random home computer with Internet connection received over 3000 attacks in one month

received over 3000 attacks in one month àà Use Use

Firewalls at your home!!

Firewalls at your home!!

• Network IDS cannot catch all attacks like browser Network IDS cannot catch all attacks like browser hijacking. For this reason, a host IDS is required too

hijacking. For this reason, a host IDS is required too

(personal firewalls bundled with real

(personal firewalls bundled with real--time virustime virus- -scanners are almost like host IDSs already). Is

scanners are almost like host IDSs already). Is

somebody reinventing the wheel?

somebody reinventing the wheel?

•Some paranoia is just for good:Some paranoia is just for good: “

(32)

Completed Completed

Thank you!

Thank you!

Any Questions?

Any Questions?

Okay

Okay

Figure

Table 24 shows the most active domains. Only Table 24 shows the most active domains. Only  20% (home) and 10% (laboratory) of addresses 20% (home) and 10% (laboratory) of addresses  could be mapped to geographical coordinates could be mapped to geographica

References

Related documents

My third hypothesis was: Individuals from the Middle East who engage in terror attacks against the West in the name of salafi jihadism have pursued higher education post high

42 On mental health and the European Convention on Human Rights see generally; Lawrence Gostin et al, Principles of Mental Health Law and Policy (Oxford University Press

Thus, setting a cap on the tax exclusion of premium and medical benefits at the 75th percentile of private-sector premiums, would affect public-sector employees to a

calibration, correct any errors, re-run GPROF and observe any differences.

patients affected by locally advanced GC (T3-4 and/ orN+) who underwent gastrectomy + D2 lymph node dissection followed by adjuvant CRT, or CRT + intra- operative radiotherapy

This is an opportunity for you to hear about the programme from the Programme Director, get advice from our Admissions and Careers Services, learn more about the Oxford Business

In most protocols, on knowing that a route is broken, an intermediate host with unde- livered data packets at hand can issue an ERROR packet to the source host.. On such noti-

This result, once again consistent with those of Bauer, et al., (2005), shows that, while a generally favorable attitude towards all kinds of advertisements does help in forming