2015 moloch recipes

23
Moloch Recipes: investigate incidents at top speed Workshop

Upload: geoffrey-crespin

Post on 13-Apr-2017

124 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: 2015 moloch recipes

Moloch Recipes: investigate incidents at

top speedWorkshop

Page 2: 2015 moloch recipes

About me

Geoffrey CRESPIN - Security Consultant

CEO of IntelSec Consulting SPRL

Incident Handler for a big EU Institution

Page 3: 2015 moloch recipes

Agenda

What is Moloch?

How to use it?

Quick and easy filters

Conclusion

Page 4: 2015 moloch recipes

What is Moloch?

Moloch is an open source, large scale IPv4 packet capturing (PCAP), indexing and database system. A simple web interface is provided for PCAP browsing, searching, and exporting. APIs are exposed that allow PCAP data and JSON-formatted session data to be downloaded directly.

Page 5: 2015 moloch recipes

What is Moloch?

Several tools already exist... what’s new?

Indexing pcaps with Elasticsearch!!!! Yeahh

Real-time searches: no need to import/analyse

Analyzing dozens of GB : try with Wireshark...

Fantastic and user friendly search engine

Page 6: 2015 moloch recipes

How to use it?

IDS, IPS sensors already deployed?

Starting from scratch?

Stand alone? Distributed?

Page 7: 2015 moloch recipes

How to use it?

Our requirements:

Full Packet Capture &&

Search for Network Forensic cases &&

Export malicious files/content detected && ...

Page 8: 2015 moloch recipes

How to use it?

Full Packet Capture:

Option 1: re-use the sensors already in place!

IDS Molochscp pcaps

Page 9: 2015 moloch recipes

How to use it?

Full Packet Capture:

Option 2: sniff the traffic directly from Moloch

Switch Molochport mirroring or TAP

Page 10: 2015 moloch recipes

How to use it?

Full Packet Capture:

Option 3: sniff the traffic directly from Moloch (distributed) - Multinode with Cluster

Switch Molochport mirroring or TAP Moloch

CentralMoloch

Switch

Page 11: 2015 moloch recipes

Quick and easy filters

Search for User Agent

Command: http.user-agent == “*wget*”

Page 12: 2015 moloch recipes

!

Page 13: 2015 moloch recipes

Quick and easy filters

Search for Clear Text Password

Command: port.dst == 80 || port.dst == 8080 && http.uri.key == “password”

Page 14: 2015 moloch recipes

!

Page 15: 2015 moloch recipes

Quick and easy filters

Search for connection from specific countries

(country == rus || country == chn) && port == 80 && host == *com

Page 16: 2015 moloch recipes

!

Page 17: 2015 moloch recipes

Quick and easy filters

Search for large DNS packets

Command: port == 53 && packets > 200

Page 18: 2015 moloch recipes

!

!

Supsicious Pattern

Page 19: 2015 moloch recipes

Quick and easy filters

Search for extension .ZIP sent via email from or to a specific domain name.

Command: email.fn == “*.ZIP*” && email.src == “*mydomain.be”

Page 20: 2015 moloch recipes

!

File Download for forensic

Full mail communication

Page 21: 2015 moloch recipes

Quick and easy filters

Display ssh connections on the “Connections Map”.

Command: port.dst == 22 && databytes > 0

Only real connection. Not attempts.

Page 22: 2015 moloch recipes

!

Page 23: 2015 moloch recipes

ConclusionIt’s not an IDS! No Detection.

It’s free.

It’s fast!

Easy to use if you know what looking for.

Combine several sensors data (internet access + mail + web server, etc.)

Online and/or Offline.