25
Abt. Kommunikation FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE 06.07.2004 FGAN KIE Komponenten für kooperative Intrusion Detection in dynamischen Koalitionsumgebungen Marko Jahnke FGAN/FKIE Abt. Kommunikation Neuenahrer Str. 20 D-53343 Wachtberg [email protected] Unter Mitarbeit von Sven Henkel, Michael Bussmann FGAN/FKIE Jens Tölle Universität Bonn Frank Ausserlechner FH Koblenz 06. Juli 2004

Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

Embed Size (px)

Citation preview

Page 1: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

Abt. KommunikationFORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

06.07.2004FGAN KIE

Komponenten für kooperativeIntrusion Detection

in dynamischenKoalitionsumgebungen

Marko JahnkeFGAN/FKIE

Abt. KommunikationNeuenahrer Str. 20D-53343 [email protected]

Unter Mitarbeit vonSven Henkel,

Michael BussmannFGAN/FKIE

Jens TölleUniversität Bonn

Frank AusserlechnerFH Koblenz06. Juli 2004

Page 2: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

2FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Übersicht

• Herausforderungen für IDS in Koalitionsumgebungen

• Architekturen für kooperative Intrusion Detection• Vorverarbeitung von Ereignismeldungen• Anomalieerkennung im

Ereignismeldungs-Datenmodell• Implementation & bisherige Ergebnisse

Page 3: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

3FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Dynamische Koalitionsumgebungen

• Veränderliche Menge kooperierender, gleichberechtigter Domänen

• Gemeinsame und konträre Ziele und Ansichten• Beispiele für Koalitionsumgebungen

– Allianzen von Wirtschaftsunternehmen– Kooperierende Strafverfolgungsbehörden– Militärische Netzwerke (NATO, SFOR, KFOR, ...)

• Beispiele für Kooperation in Koalitionsumgebungen– Logistik & konventionelle Infrastrukturen– Elektronische Infrastrukturen

Page 4: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

4FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Kooperative IDS in Koalitionsumgebungen

Domain C

Domain BDomain A

Data Flow

Sensor

Sensor Sensor

Local IDS

Local Security Tool

Local Security Tool

Local Security Tool

Local Security Tool

Local Security

Tool

IWS = IntrusionWarning System

Warning Flow

IWSIWS

Page 5: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

5FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

IWS-Architekturen (1): Rein verteilte Kooperation

Data FlowWarning Flow

Sensor

Sensor Sensor

Local IDS

Local Security Tool

Local Security Tool

Local Security Tool

Local Security Tool

Local Security

Tool

Domain C

Domain BDomain A

Page 6: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

6FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

IWS-Architekturen (2): Meta-IDS

Data FlowWarning Flow

Sensor

Sensor Sensor

Local IDS

Local Security Tool

Local Security Tool

Local Security Tool

Local Security Tool

Local Security

Tool

Domain C

Domain BDomain A

GW

Console

GWGW

GWs unter Kontrolle der Domänen

Konsole(n) unter Kontrolle einer vertrauenswürdigen Instanz

Page 7: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

7FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Interoperabilität: Datenmodell & -format

Intrusion Detection Message Exchange Format

(IDMEF)

Wer?

Wann?

Wo?

Was ist passiert?

Wer berichtet?

<IDMEF-Message version="1.0"><Alert ident="abc123456789">

<Analyzer analyzerid="hq-dmz-analyzer01"><Node category="dns">

<location>Headquarters DMZ Network</location><name>analyzer01.example.com</name>

</Node></Analyzer><CreateTime ntpstamp="0xbc723b45.0xef449129">

2000-03-09T10:01:25.93464-05:00</CreateTime><Source ident="a1b2c3d4">

<Node ident="a1b2c3d4-001" category="dns"><name>badguy.example.net</name><Address ident="a1b2c3d4-002" category="ipv4-net-mask">

<address>192.0.2.50</address><netmask>255.255.255.255</netmask>

</Address></Node>

</Source><Target ident="d1c2b3a4">

<Node ident="d1c2b3a4-001" category="dns"><Address category="ipv4-addr-hex">

<address>0xde796f70</address></Address>

</Node></Target><Classification origin="bugtraqid">

<name>124</name><url>http://www.securityfocus.com</url>

</Classification></Alert>

</IDMEF-Message>

Page 8: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

8FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Data FlowWarning Flow

Sensor

Sensor Sensor

Local IDS

Local Security Tool

Local Security Tool

Local Security Tool

Local Security Tool

Local Security

Tool

GW

Domain C

Domain BDomain A

Console

GWGW

Data FlowWarning Flow

Informationsbereinigung (1): Szenario

EventFilter

EventMessage

InformationSharingPolicy

AnonymizedEventMessage

Page 9: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

9FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Informationsbereinigung (2): Implementierung

• Spezieller XSLT-Prozessor mit Erweiterungen für Matching-sensitive 1:1-Transformationen

Transformations-Template

Matching-Template

Matching-Ausdruck m. SMs

Zusätzliche Bedingung

<IDMEF-Message ...>...<address>

192\.22\.([0-9]{1,3})$v1$\.([0-9]{1,3})$v2$

<condition>($v2<255)

</condition>

<transform><address> <xsl::copy>

191.72.<xsl::value-of select="$v1"/>.<xsl::value-of select="$v2"/></xsl:copy> </address>

</transform></address>...

Page 10: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

10FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Data FlowWarning Flow

Sensor

Sensor Sensor

Local IDS

Local Security Tool

Local Security Tool

Local Security Tool

Local Security Tool

Local Security

Tool

GW

Domain C

Domain BDomain A

Console

GWGW

Redundanzfilterung (1): Szenario

Redun-dancyFilter

RedundancyRules

Multiple´similar´Messages

SummaryMessage

Page 11: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

11FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Redundanzfilterung (2): Implementierung

Absolutes Matching-Template

Relatives Matching-Template

Matching-Ausdruck

Summary-Erzeugung

Summary-Update

• Erweiterung des Informationsbereinigers um relative Matchingsfür Ähnlichkeitseigenschaft bei n:1 -Transformationen

<IDMEF-Message ...>...

<address>(.*)$SRCADDRESS$ </address>... <relMatch deltaT="20000" maxMatchings="40">

<xsl:copy>...

<address> <xsl:value-of select="$SRCADDRESS"/> </address>...<summary do="create">

... </summary><summary do="update">

...</summary>

</xsl:copy></relMatch>

...

Page 12: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

12FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

XSLT-Verarbeitung: Durchsatzmessungen

• Kombinierte Anwendung von Informationsbereiniger und Redundanzfilter im IWS-Gateway

• Hardware: PIII/1GHz/128MB

• f (x) ≈ 1 / (a + bx)• Anwendungs-

reihenfolge istentscheidend

• Separate vs.kombinierte Transformationen

Page 13: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

13FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Data FlowWarning Flow

Sensor

Sensor Sensor

Local IDS

Local Security Tool

Local Security Tool

Local Security Tool

Local Security Tool

Local Security

Tool

GW

Domain C

Domain BDomain A

Console

GWGW

Data FlowWarning Flow

Kombinationserkennung (1): Szenario

Combi-nation

Detector

CorrelationRules

Multiplenon-suspiciousMessages

AttackSequence

OK Warning!

Page 14: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

14FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

• n:(n+1) -Transformation in der Online-Variante• Extremer Speicheraufwand für naive Implementation• Erweiterung des Redundanzfilters um Just-In-Time-

Erzeugung von Templates (Matching-Stufen)• Verschachtelte Spezifikationen mit

Transformationsvorschriften für die Kombinationsmeldung am Ende

• Integration und Evaluation dauern noch an

Kombinationserkennung (2): Implementierung

Page 15: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

15FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Data FlowWarning Flow

Sensor

Sensor Sensor

Local IDS

Local Security Tool

Local Security Tool

Local Security Tool

Local Security Tool

Local Security

Tool

GW

Domain C

Domain BDomain A

Console

GWGW

Anomalieerkennung (1): Szenario

Message Dispatcher

Storage

Analyzer

Responder

Page 16: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

16FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Anomalieerkennung (2): Flussparameteranalyse

• Beispiele für Messparameter pro ∆t:– # Meldungen– # Bytes / Meldung– # unterschiedlicher

Klassifikationen (Signaturen) – # unterschiedlicher

Quell-/Zieladressen– # unterschiedlicher

Analyseknoten• Alarm, wenn Parameter

Konfidenzintervall um Mittelwert verlässt• Nachteil: Keine Betrachtung semantischer Information

Gegl. Mittelwert

Anomalie

Timeframe

Para

met

erw

ert Konfidenz-

intervall

Page 17: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

17FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

2

Anomalieerkennung (3): Quelle-Ziel-Graph

192.22.2.44

191.72.30.2

80

<IDMEF-Message ......

<Source><address> 192.22.2.44 </address>...

</Source>...<Target>

<address> 191.72.30.2 </address>...<port> 80 </port>

</Target><severity> medium </severity>...

</IDMEF-Message>

• Aufbau eines Quelle-Ziel-Graphenpro Timeframe

Page 18: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

18FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Anomalieerkennung (4): Graph-Clustering

ClusterQuelle-Ziel-Graph mit Diensten/Ports

Page 19: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

19FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Clustering-Differenz

Anomalieerkennung (5): Clustering-Abweichung

0:50 1:50

4:50 5:50

Erkannte Anomalie

Simulierte Wurmaktivität CodeRed v.2

0

200

Erkennung ca. 3 Stunden nach Ausbreitungsbeginn

Page 20: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

20FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Zusammenfassung

• Meta-IDS als Architektur für IWS in Koalitionsumgebungen• Vorverarbeitung von Ereignismeldungen durch XSLT

– Informationsbereinigung– Redundanzfilterung– Online-Kombinationserkennung

• Anomalieerkennung im Ereignismeldungs-Datenmodell

– Einfache Flussparameteranalyse– Clustering von Quelle-Ziel-Graphen

• XML/XSLT-basierte Ansätze leistungs- und ausbaufähig• Anomalieerkennung erfolgreich in Simulation und Praxis

Page 21: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

21FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Ausblick

• Vervollständigung der Integration, Stabilisierung

• Multi-Domain-Demonstrator

• Extraktion von Informationen über Anomalien• Auswirkungen der Informationsbereinigung

auf die Anomalieerkennung• Formalisierung & Simulationen

– Grenzen der Verfahren– Skalierbarkeit

Page 22: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

22FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

Kontakt

Marko Jahnke Jens Tölle

Post- FGAN/FKIE Universität Bonnanschrift: Abt. Kommunikation Institut für Informatik, Abt. IV

Neuenahrer Str. 20 Römerstr. 164D-53343 Wachtberg D-53117 Bonn

EMail: [email protected] [email protected]

Page 23: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

23FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

1. Matching-Stufe

2. Matching-Stufe

3. Matching-Stufe

1. Initiales (absolutes) Matching-Template

1. Relatives Matching-Template

• Just-In-Time-Erzeugung von Templates durch Matching-Stufen

Kombinationserkennung (3): Implementierung

2. Initiales Matching-Template

2. Relatives Matching-Template

<IDMEF-Message ...><corellation .../>...<relMatch deltaT="20000" threshold="40">

...</relMatch><transform finalMatching="false">

<IDMEF-Message ...><corellation .../>...<relMatch deltaT="20000" threshold="20">

...</relMatch><transform finalMatching="true">

...</transform>

</IDMEF-Message></transform>

</IDMEF-Message>zurück

Page 24: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

24FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

GUI Screenshots (1): IWS Console

• Console GUI visualization – Messages w/ anonymized addresses (prefix 999.999)– Summary messages from redundancy filter (blue rows)

Page 25: Komponenten für kooperative Intrusion Detection in ... fileData Flow Sensor Sensor Sensor Local IDS Local Security Tool Local Security Tool Local Security Tool Local Security Tool

25FGAN FORSCHUNGSINSTITUT FÜR KOMMUNIKATION, INFORMATIONSVERARBEITUNG UND ERGONOMIE

Abt. Kommunikation06.07.2004

KIE

GUI Screenshots (2): IWS Gateway

• Gateway GUI controls information sanitizing & filtering