22
Anomaly Management using Complex Event Processing Bastian Hoßbach and Bernhard Seeger Int’l Conference on Extending Database Technology Genoa, Italy – March 19, 2013

Anomaly Management using Complex Event Processing Bastian Ho‡bach

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Anomaly Management using Complex Event Processing

Bastian Hoßbach and Bernhard Seeger

Int’l Conference on Extending Database TechnologyGenoa, Italy – March 19, 2013

Page 2: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Agenda

Introduction

Enhanced complex event processing

Conclusion

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 1

Page 3: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Why Complex Event Processing?

Time

!

Situationof

Interest

Impact

Reaction Costs

Options

Benefit

In order to be able to react on situations of interest (SOI)optimally, continuous monitoring in (near) real-time is necessary.

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 2

Page 4: Anomaly Management using Complex Event Processing Bastian Ho‡bach

State of the Art: Static Complex Event Processing

EPAEPA

EPAEPA

EventSource

EventSource

EventSource

EventSink

EventSink

EventSink

......

...

Static event processing agents (EPA) support:

4 Signature-based monitoring

8 Anomaly-based monitoring

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 3

Page 5: Anomaly Management using Complex Event Processing Bastian Ho‡bach

State of the Art: Static Complex Event Processing

EPAEPA

EPAEPA

EventSource

EventSource

EventSource

EventSink

EventSink

EventSink

......

...

Static event processing agents (EPA) support:

4 Signature-based monitoring

8 Anomaly-based monitoring

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 3

Page 6: Anomaly Management using Complex Event Processing Bastian Ho‡bach

State of the Art: Static Complex Event Processing

EPAEPA

EPAEPA

EventSource

EventSource

EventSource

EventSink

EventSink

EventSink

......

...

Static event processing agents (EPA) support:

4 Signature-based monitoring

8 Anomaly-based monitoring

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 3

Page 7: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Motivation

What if there are billions of SOI?

What if there are unknown SOI?

What if there are context-sensitive SOI?

⇒ Signatures do not work. Anomaly management is needed!

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 4

Page 8: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Motivation: Patient Monitoring

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 5

Page 9: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Motivation: Logistics

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 6

Page 10: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Motivation: Cyber Defense

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 7

Page 11: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Flexible, Dynamic and Reactive CEP Infrastructures

DEPADEPA

DEPA

DEPA

EventSource

EventSource

EventSource

EventSink

EventSink

ActionFramework

SimulatorEventStore Model

Store

Input Matchm

aker

Output M

atchmaker

...

......

Dynamic event processing agents (DEPA) support:

4 Signature-based monitoring

4 Anomaly-based monitoring

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 8

Page 12: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Flexible, Dynamic and Reactive CEP Infrastructures

DEPADEPA

DEPA

DEPA

EventSource

EventSource

EventSource

EventSink

EventSink

ActionFramework

SimulatorEventStore Model

Store

Input Matchm

aker

Output M

atchmaker

...

......

Dynamic event processing agents (DEPA) support:

4 Signature-based monitoring

4 Anomaly-based monitoring

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 8

Page 13: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Flexible, Dynamic and Reactive CEP Infrastructures

DEPADEPA

DEPA

DEPA

EventSource

EventSource

EventSource

EventSink

EventSink

ActionFramework

SimulatorEventStore Model

Store

Input Matchm

aker

Output M

atchmaker

...

......

Dynamic event processing agents (DEPA) support:

4 Signature-based monitoring

4 Anomaly-based monitoring

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 8

Page 14: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Matchmakers

Flexible routing and transformation of events

⇒ Source/EPA independence

Changes of event sources do not require adjustments of EPA

⇒ EPA/sink independence

Changes of EPA do not require adjustments of event sinks

⇒ Inter-EPA independence

Changes of EPA do not require adjustments of the other EPA

EPAEPA

EPA

EPA

EventSource

EventSource

EventSource

EventSink

EventSink

Input Matchm

aker EventSink

Output M

atchmaker

......

...

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 9

Page 15: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Event Store

High-performance database to record and index events

Optimized for fast writes and scalability

Efficient support of temporal queries

On-demand secondary indexes

Fast garbage collection and compression of tenured events

EPAEPA

EPA

EPA

EventSource

EventSource

EventSource

EventSink

EventSink

EventStore

Input Matchm

aker

Output M

atchmaker Event

Sink

......

...

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 10

Page 16: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Model Store

Management of models that describe normal behavior ofmonitored objects with respect to a certain context

Models are selected, created and maintained on the basis ofhistorical data from the event store

EPAEPA

EPA

EPA

EventSource

EventSource

EventSource

EventSink

EventSink

EventStore Model

Store

Input Matchm

aker

Output M

atchmaker Event

Sink

......

...

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 11

Page 17: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Dynamic EPA

Models are used to create and maintain dynamic EPA (DEPA)that search for abnormalities in live event streams

All detected anomalies are classified as potential situations ofinterest and forwarded to the output

Because of fast and unpredictable context switches andupdates of models, DEPA have to be able to be updated fast

DEPADEPA

DEPA

DEPA

EventSource

EventSource

EventSource

EventSink

EventSink

EventStore Model

Store

Input Matchm

aker

Output M

atchmaker Event

Sink

......

...

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 12

Page 18: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Simulator

Isolated execution environment for testing, debugging andevaluating DEPA as well as models

Real data is taken from the event store

What-if analyses and continuous evaluations incrementallyincrease quality of DEPA

DEPADEPA

DEPA

DEPA

EventSource

EventSource

EventSource

EventSink

EventSink

EventStore Model

Store

Input Matchm

aker

Output M

atchmaker Event

Sink

Simulator

......

...

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 13

Page 19: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Action Framework

Current CEP infrastructures are not reactive

Detected situations of interest are just reported

Reactive CEP infrastructures need an action framework thatallows to create actions and to define how they are triggered

Provenance becomes very important

DEPADEPA

DEPA

DEPA

EventSource

EventSource

EventSource

EventSink

EventSink

ActionFramework

SimulatorEventStore Model

Store

Input Matchm

aker

Output M

atchmaker

...

......

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 14

Page 20: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Conclusion

State of the art CEP technology has multiple shortcomings

Not applicable in some important application domainsMany existing CEP-based monitoring systems can not developtheir full potential

CEP technology has to be improved and extended

Flexibility → MatchmakersDynamics → Dynamic EPAReactivity → Action Framework

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 15

Page 21: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Ongoing Work

We are working on the outlined dynamic CEP infrastructure

Target use-case: IT-security

Detection of SQL injectionsDetection of intruders in post-exploitation phase

Other active research projects are related to dynamic CEP

Active CEPSemantic CEP

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 16

Page 22: Anomaly Management using Complex Event Processing Bastian Ho‡bach

Thanks

Dieter Gawlick for great discussions

BMBF for funding ACCEPT

Bastian Hoßbach, Bernhard Seeger Anomaly Management using CEP 17