SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know...

59
#sf18us Computer History Museum, Mountain View, CA June 25-28 John Doe SharkFest ’18 US #sf18us Computer History Museum, Mountain View, CA June 25-28 Packet Corporation Know Abnormal, Find Evil Beginner Guide For Security Professional Maher Adib [email protected]

Transcript of SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know...

Page 1: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

John Doe

SharkFest ’18 US

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Packet Corporation

Know Abnormal, Find Evil

Beginner Guide For Security Professional

Maher [email protected]

Page 2: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

List of Pcaps

• https://www.cloudshark.org/captures/fce5f0ac3a50

• https://www.cloudshark.org/captures/d69e882c540f

• https://www.cloudshark.org/captures/77c0a7479e4e

• https://www.cloudshark.org/captures/cb3a30290372

• https://www.cloudshark.org/captures/a3882df6f4ee

• https://www.cloudshark.org/captures/263b0a95140b

Page 3: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

18+ Hours Flight Jetlag !@#$%^

Page 4: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Those Were The Days

Page 5: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Wireshark’ing+Pcaps Everyday

Page 6: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28What My Company Think What

I’m DoingThis is what I Do Everyday!What My Customer see

Everyday

ZZZzzzZZZzz

ZZZzzzZZZzz

ZZZzzzZZZzz

ZZZzzzZZZzz

ZZZzzzZZZzz

ZZZzzzZZZzz

ZZZzzzZZZzz

Not an easy job!

Page 7: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Fan of Shark Collector ,any thing!

Page 8: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Wireshark For Security Pro’s!

Page 9: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Wireshark For Security Pro’s!

Page 10: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Wireshark For Security Pro’s!

Page 11: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Page 12: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

You have a friend! Wireshark!

Page 13: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

You have a friend! Wireshark!

Page 14: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Objective

Wireshark is the de facto analysis tool across many fields. It's one of my go-to,

ultimate security tools for verification and validation. When investigating

possible security incidents, most of us start by firing up Wireshark and looking

for packets relating to a breach or issue running inside the network/security

infrastructure or devices. Sometimes it’s very hard to locate issues and we don’t

know where to start.

In this hands-on lab, the presenter will share his concept of "Intercept, Listen,

Discover, and Be Evil" with protocols by walking through real world exercises

designed to help ascertain breach possibilities, spotting the difference between

abnormal and normal traffic and demonstrating how to navigate and customize

your Wireshark dashboard. This is suitable for those who want to start learning

and using Wireshark from a security perspective.

Page 15: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Intercept Listen Discover Be Evil!

The Good Guy

The Concept!

Page 16: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Intercept The Communication

Page 17: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Intercept The Communication: The Tools

Page 18: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Intercept: Use Taps

Page 19: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Intercept: SPAN/Mirroring

Switch(config)#monitor session 1 source interface gigabitEthernet 1/7 both

Switch(config)#monitor session 1 destination interface gigabitEthernet 1/24

Page 20: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Intercept: Man in The Middle (MiTM)

Page 21: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

What Is Your Goal?

Page 22: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

What Is Your Goal?

https://blog.packet-foo.com/2016/07/how-to-use-wireshark-to-steal-passwords/#more-1244

The “Good” People

???

Page 23: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Don’t Just Look at Wireshark??!!!

Page 24: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Listen To Conversation

Page 25: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Discover: I know this! What???

Page 26: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Know Abnormal, Find Evil

Page 27: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Profile and Short-Cut Button!

NETWORK | APPLICATION | SECURITY | TROUBLESHOOTING -> Role Based

MyProfile | MyWiFe | MyDad | MyMom | MyBOSS | IHateThisGuy | My-eX -> Relation Based

TCP | UDP | ARP | DHCP | OSPF | HTTP | DNS -> Protocol Based

So Many TCP? | UDP Flood? | Who’s IP is this | DHCP rogue | OSPF

Authentication | Clear Text HTTP with Password | DNS Weird | I Don’t use this

Apps | Brute Force Password? | Any weird things pass to Security team!

Page 28: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

The Power Of The Right Click!

Page 29: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Where To Look At?

Page 30: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Lab: office_laptop.pcapng

• Let’s do this together!

• Tell me something about this pcap

• What do you see?

• Can you describe what’s going on?

• It’s normal? It’s abnormal? Any evilness?

Page 31: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Lab: maple-tree-inn.pcapng

• Try on your own!

• Tell me something about this pcapng

• What do you see?

• Can you describe what’s going on?

• It’s normal? It’s abnormal? Any evilness?

Page 32: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Be Evil: Know Normal First! [httpreqresp.pcapng]

Page 33: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Don’t try this at hotel!

Page 34: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Lab: [sharkfest18asia.pcapng]

Page 35: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Lab: [sharkfest18asia.pcapng]

https://awakesecurity.com/10-minutes-life-network/https://stackoverflow.com/questions/21899933/network-

broadcast-from-bluestacks-beacon-v1

Page 36: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Don’t try this at home!

Page 37: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Owh my ISP!

Page 38: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

I know VLANs! Let’s do this!

Page 39: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Got it! Be Evil!

Page 40: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Re-route my traffic: ospf.pcapng

Page 41: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Page 42: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Tips: Don’t bring any taps!

Page 43: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Please authenticate me!

Page 44: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Avoid Default at ALL COST!

Page 45: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

I’m a Pentester! Watch Out!

Ed has a great quote on this: "If

a penetration tester promises

they will not crash a system, it

means they are lying to you, or

they are not planning on

sending any packets to your

network.” – Ed Skoudis

Page 46: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Lab: [pentester.pcapng]

Page 47: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Lab: [pentester.pcapng]

• Try to do on your own!

• Tell me something about this pcap?

• What do you see?

• Can you describe what’s going on?

• It’s normal? It’s abnormal? Any evilness?

Page 48: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Cookies anyone?

Page 49: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Decode The Cookies

./BIG-IP_cookie_decoder.py 1695918272.20480.0000

[*] String to decode: 1695918272.20480.0000[*] Decoded IP: 192.168.21.101[*] Decoded port: 80

Page 50: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

More PCAPs To Enhance Your Skills

Page 51: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Show Data As Text

Page 52: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Show Data As Text

Page 53: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Ahaaa! FTP using Port 800?

Page 54: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Firewall ACL Rules

BeforeAfter

Page 55: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

1. Keep an open mind

2. Don’t take things as granted

3. Ask questions relentlessly

4. Don’t label something as boring

5. See learning as something fun

6. Read diverse kinds of reading

*lifehacks.org

Why Curiosity is Important

Page 56: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Key Takeaway

You might not follow the World Cup, but I’m

sure you know what an own goal is.

Painful, shameful and totally avoidable, it may

look something like this:

Now, what does it have to do with

cybersecurity? Everything:

My friend, DON’T score an own goal just

by having a sloppy defence against

malware or other threat!

May Packet be the force with you…

Page 57: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Next SharkFest?

Page 58: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Thank You!

• Maher Adib.

• Based in Kuala Lumpur, Malaysia.

• Email: [email protected]

• FB: OfisgateAcademy

Page 59: SharkFest ’18 US · 2018-07-26 · You might not follow the World Cup, but I’m sure you know what an own goal is. Painful, shameful and totally avoidable, it may look something

#sf18us • Computer History Museum, Mountain View, CA • June 25-28

Don’t forget to submit feedback!

• Maher Adib.

• Based in Kuala Lumpur, Malaysia.

• Email: [email protected]

• FB: OfisgateAcademy