15
Dive Even Deeper sysdig – Wireshark for your system

Dive Even Deeper

  • Upload
    hester

  • View
    105

  • Download
    0

Embed Size (px)

DESCRIPTION

Dive Even Deeper. sysdig – Wireshark for your system. Agenda. Overview Visualization Fishing for Hackers. Wireshark Is Awesome. Why Is Wireshark Awesome?. The Workflow!. Capture Don’t need to sit in front of the machine waiting for the issue Share trace files - PowerPoint PPT Presentation

Citation preview

Page 1: Dive Even Deeper

Dive Even Deepersysdig – Wireshark for your system

Page 2: Dive Even Deeper
Page 3: Dive Even Deeper
Page 4: Dive Even Deeper
Page 5: Dive Even Deeper

Agenda• Overview• Visualization• Fishing for Hackers

Page 6: Dive Even Deeper

Wireshark Is Awesome

Page 7: Dive Even Deeper

Why Is Wireshark Awesome?

Page 8: Dive Even Deeper

The Workflow!• Capture

• Don’t need to sit in front of the machine waiting for the issue • Share trace files• Capture in multiple locations and then correlate

• Filter• Find the needle in the haystack• Don’t need to know what you’re looking for• Learn while exploring

• Analyze• Put intelligence on top of low level information

• Packets can tell us a lot• And never lie

Page 9: Dive Even Deeper

Question:If Wireshark’s Workflow Is So Great, Can

We Apply It To System Monitoring?

Page 10: Dive Even Deeper

Sysdig• Capture system events

• System calls• Context switches• More

• Packetize them• Store them into pcap-ng traces• Wireshark-like display fields

• Filtering• rendering

Page 11: Dive Even Deeper

res = open(const char *pathname, int flags)

Type = open Nargs = 2 “myfile.txt

” 1

StoreFilter

Analyze

Page 12: Dive Even Deeper

Sysdig-probe

scap

sinsp

sysdig

• Capture Control• Dump files R/W• OS state collection

• Event parsing• State engine• Filtering• Output Formatting• Chisel execution

• Command line parsing• Capture management

• Non-blocking event collection• Type-based event packing• Memory mapped buffer handling

kernel

User

Event Buffer

Page 13: Dive Even Deeper

Chisels• Lua scripts to carve up the data you unearthed

• First class citizens from day one

• Callback API• Process events• Create summaries

• Main API• Control sysdig• Extract fields

https://github.com/draios/sysdig/wiki/Sysdig%20Chisel%20API%20Reference%20Manual

Page 14: Dive Even Deeper

Demo

Page 15: Dive Even Deeper

Get Engaged• http://www.sysdig.org/• https://github.com/draios/sysdig • https://github.com/draios/sysdig/wiki • http://www.sysdig.org/install/