Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware...

30
Simulation of malware propagation André Harms HAW Hochschule für Angewandte Wissenschaften Hamburg Hamburg University of Applied Sciences

Transcript of Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware...

Page 1: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

André Harms

HAW Hochschule für Angewandte

Wissenschaften Hamburg Hamburg

University of Applied Sciences

Page 2: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

Rückblick +

Einführung Historische

Arbeiten Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung Eigener Ansatz

Page 3: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

3/29

Rückblick

• Simulation von Cyberangriffen

Netzwerkangriffe

Ausbreitung von Schadsoftware

o Mathematische Ansätze

o Multiagenten-Simulation

• Warum?

Prävention, Handlungsempfehlungen, Forensik

• Ziel

Ausbreitung von Schadsoftware simulieren

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 4: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

4/29

Einführung

• Kategorien von Simulationen[1][2]:

Simulationen für die Lehre

Ausbreitungs-simulationen

Simulationen zum Testen von Anti-Viren-Lösungen

• Verständnis für die Auswirkungen von Schädlingen vermitteln

• Verdeutlichung von Ausbreitungswegen und -geschwindigkeit

• Testen von Viren-Scannern, ohne echte Viren

Nie

dri

ge

tech

nis

che

Ab

stra

ktio

n

Ho

he

tech

nis

che

Ab

stra

ktio

n

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 5: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

5/29

Historische Arbeiten Verschiedene Simulationen kurz erläutert

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 6: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

6/29

Historische Arbeiten Virus Simulation Suite

• Joe Hirst 1990

• Zur Lehre gedacht

• Simuliert das Verhalten / die Auswirkung einer überschaubaren Anzahl von Viren (13),

z.B. Cascade-Virus

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 7: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

7/29

Historische Arbeiten Virlab

• Karlhorst Klotz, et al. 1993

• Simulation zum Veranschaulichen von Effekten bei Vireninfektion

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

[I1]

Page 8: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

8/29

Historische Arbeiten Rosenthal's Virus Simulator

• Von Rosenthal Engineering

• Sicheres Überprüfen von Anti-Viren Programmen

• Letzte Version: 1996

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 9: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

9/29

Toward Botnet Mesocosm[3]

Botnet Simulation

Paul Barford, Mike Blodgett (2007)

University of Wisconsin-Madison

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 10: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

10/29

Botnet Simulation Ziele

• Verhalten von Botnets in Laborumgebung nachstellen

• Botnet Evaluation Environment (BEE)

• Umgebung soll sicher sein

• Realisitische Botnet Konfigurationen und Topologien

• Simulation von Blackbox Clients als auch Whitebox Clients

(reine Binaries + kompiliert aus den Quellen)

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 11: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

11/29

Botnet Simulation Umsetzung

• Toolkit für Emulab

• OS- und Botnet-Images

o Binaries VM Detection (wenn vorhanden: keine Virtualisierung)

o Aus Quellen VM Detection kann auskommentiert werden

• Notwendige Dienste (DNS, IRC, DHCP)

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

[I2]

Page 12: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

12/29

Botnet Simulation Bewertung

- Vollständig virtualisiert

- Nahe an der Realität (Verwendung echter Schadsoftware)

- Verhaltensweise kann exakt beobachtet werden

- Funktioniert nur in Verbinung mit Emulab

- Spezialisiert auf eine Schädlingskategorie

- Nicht auf Ausbreitung spezialisiert

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 13: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

13/29

A Lightweight Drive-by Download Simulator[4]

Drive-By-Download Infektions-Simulation

Matthew McDonald, James Ong. John Aycock,

Heather Crawford, Nathan Friess (2009)

University of Calgary

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 14: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

14/29

Drive-by-Download Simulator Ziele

• Vermitteln von Wissen über Malware

• Herstellen einer isolierten Umgebung

• Ausführen und Testen echten beliebigen Codes ermöglichen

• Skalierungsprobleme (hohe Komplexität) daher Simulation von Drive-by-Downloads

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 15: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

15/29

Drive-by-Download Simulator Umsetzung

• Erweiterung von Spamulator

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Aus [4]

Page 16: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

16/29

Drive-by-Download Simulator Umsetzung

• Exploitverifier: Einzelner Prozess Firefox wird überwacht

• Läuft auf n Rechnern

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Aus [4]

Page 17: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

17/29

Drive-by-Download Simulator Umsetzung

• „Global simulator“ aggregiert Simulationsergebnisse mehrerer Rechner

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Aus [4]

Page 18: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

18/29

Drive-by-Download Simulator Bewertung

- Nahe an der Realität (Verwendung echter Schadsoftware)

- Genaue Beobachtung möglich

- Nur ein Verbreitungsweg simuliert

- Nutzerverhalten nur bedingt simuliert

- Nur für einen Browser geeignet. Erweiterung aufwändig.

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 19: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

19/29

MALSim [2][5][6]

Mobile Agent Malware Simulator

Rafał Leszczyna, Igor Nai Fovino, Marcelo Masera (2007)

European Commission

Joint Research Centre

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 20: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

20/29

MALSim Ziele

• Simulation von Malware

Ausbreitung

Verhalten

• Simulation im Kontext „Security of critical networkted infrastructure“

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 21: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

21/29

MALSim Umsetzung

• Simulation mit mobilen Agenten

• Mehrere Typen von Schadsoftware realisierbar (Würmer, Viren, …)

• Spiegeln der realen Umgebung

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Aus [2]

Page 22: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

22/29

MALSim Bewertung

- Berücksichtigt mehrere Arten von Malware

- Nahe an der Realität (durch 1:1 System-Abbildung)

- Skaliert nicht

- Nicht alle relevanten Ausbreitungswege werden

berücksichtigt

- Interessante sekundäre Angriffsvektoren können nicht realisiert

werden

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 23: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

23/29

Zusammenfassung

Skalierbar Ausbreitungswege Malwaretypen Nutzerverhalten

Botnet Simulation Ja 0 1 nein

DBD-Simulator Ja 1 >1 ja, aber nicht

simuliert

MALSim Schlecht >1

(keine mobilen

Einheiten)

>1 nein

Eigener Ansatz Ja >1

(mit mobilen

Einheiten)

>1 ja (simuliert)

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 24: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

24/29

Eigener Ansatz Multi Agenten Ausbreitungssimulation

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 25: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

25/29

Eigener Ansatz

• Ausbreitungssimulation mit Multi Agenten System

• Virtualisierung/Abbildung der zu testenden Umgebung

o Netzwerkscans

o Footprinting

• Simulation verschiedener Ausbreitungsmöglichkeiten

o Exploits

o Nutzer(fehl)verhalten

o Mobile Geräte

• Ergebnisse verwenden für:

o Vorsorge

o Handlungsempfehlungen

o Forensik

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 26: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

26/29

Eigener Ansatz Architektur

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 27: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

27/29

Eigener Ansatz Architektur

Rückblick + Einführung

Historische Arbeiten

Botnet

Simulation

Drive-by-Download Simulator

MALSim Zusammen-

fassung

Eigener

Ansatz

Page 28: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

28/29

Literaturverzeichnis

[1] Paul Barford, Mike Blodgett: Are Good Virus Simulators Still a Bad Idea, in Network Security 1996(9):7–13, 1996

[2] Rafał Leszczyna, Igor Nai Fovino, Marcelo Masera: MAlSim – Mobile Agent Malware Simulator, 2007

[3] Paul Barford, Mike Blodgett: Toward Botnet Mesocosms, 2007

[4] Matthew McDonald, James Ong ,John Aycock, Heather Crawford, Nathan Friess: A Lightweight Drive-by Download Simulator, 2009

[5] Rafał Leszczyna, Igor Nai Fovino, Marcelo Masera: MAlSim Deployment, 2008

[6] Rafał Leszczyna, Igor Nai Fovino, Marcelo Masera: Malware Templates for MAlSim, 2008

Page 29: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Simulation of malware propagation

29/29

Internetquellen

[I1] VIRLAB, URL: http://www.kklotz.de/html/virlab-screenshot.html Datum: 06. Mai 2012

[I2] Emulab, URL: http://www.emulab.net/ Datum: 06. Mai 2012

Page 30: Simulation of malware propagation - HAW Hamburgubicomp/... · 2012-05-29 · Simulation of malware propagation 28/29 Literaturverzeichnis [1] Paul Barford, Mike Blodgett: Are Good

Fragen

Vielen Dank für die Aufmerksamkeit