Hacking - Breaking Into It

41
Hacking, Breaking In @ChrisTruncer

Transcript of Hacking - Breaking Into It

Page 1: Hacking - Breaking Into It

Hacking, Breaking In

@ChrisTruncer

Page 2: Hacking - Breaking Into It

What’s this talk about?● Who I am

● How I got started in the industry● What is “red teaming” and/or “pen

testing”● What’s a pen test look like?

○ Demos, lots of them● How can you start learning this?● Questions

Page 3: Hacking - Breaking Into It

uid=0(@ChrisTruncer)●Christopher Truncer (@ChrisTruncer)

○Hacker○Open Source Software Developer

■Veil Framework Developer○Florida State Seminole○Random certs… blah

●Red Teamer and Pen Tester for Mandiant

Page 4: Hacking - Breaking Into It

How I Started● College

○ College computer security class○ Hack my roommate

■ “Wow, hacking is real”○ Took a security class○ Decided this is what I wanted to do

■ …. is this even a job?

Page 5: Hacking - Breaking Into It

How I Started● Start off in a technical role

○ Wanted to get a technical foundation before moving into security

● First job, not what I wanted● Became a Sys Admin at Northrop

Grumman○ Stayed for about 2 years

● Began my plunge into security, and haven’t looked back

Page 6: Hacking - Breaking Into It

What is Penetration Testing or Red

Teaming?

Page 7: Hacking - Breaking Into It
Page 8: Hacking - Breaking Into It
Page 9: Hacking - Breaking Into It

Different Job Descriptions● Vulnerability Assessment/Assessor

○ Scan a network for vulnerabilities with a tool

● Penetration Tester○ Take that output, exploit findings, hack

into systems● Red Team

○ Adversary emulation, objective oriented, don’t get caught

Page 10: Hacking - Breaking Into It
Page 11: Hacking - Breaking Into It

But that’s it…Kind of boring right?

Page 12: Hacking - Breaking Into It
Page 13: Hacking - Breaking Into It
Page 14: Hacking - Breaking Into It

Red Teaming is a little different, but similar

Page 15: Hacking - Breaking Into It
Page 16: Hacking - Breaking Into It
Page 17: Hacking - Breaking Into It

Phishing Our Way In● Lots of different ways to get in, but

phishing is easiest○ IT Department rolling out iPad’s for use○ User selected for development

environment○ Meeting minutes from managers

discussing layoffs…■ … then telling everyone not to read it

● We can forge it to come from anyone

Page 18: Hacking - Breaking Into It

Don’t Get Caught

Page 19: Hacking - Breaking Into It

Minor Background Slides

Page 20: Hacking - Breaking Into It

What is a vulnerability?

Page 21: Hacking - Breaking Into It

What is an exploit?

Page 22: Hacking - Breaking Into It

What’s really used?● We do use exploits, but less and less each

year○ What happens if the exploit doesn’t work?○ What happens if it does?

● Misconfigurations are the way to go○ Why hack something when we can just log

in?○ Path of least resistance

Page 23: Hacking - Breaking Into It

What’s the goal?● Well, let’s first own the domain

○ Get the domain administrator account● Demonstrate business impact

○ IT Admins understand domain admin, but does a manager, or a CEO?

○ Target something the business cares about■ The Coke recipe, database with SSNs?

● Report/Outbrief with fixes

Page 24: Hacking - Breaking Into It

What’s the goal (Red Team)?● All of the above

● Add to value by working with their blue team○ Teach them what you did○ Help them try to detect it○ Make them up your game

● Soft skills really help here○ Be able to talk to people and explain you

work to tech and non-tech (muggles) audience

Page 25: Hacking - Breaking Into It

On to the fun stuff

Page 26: Hacking - Breaking Into It

How’s a test work?● First we get our “get out of jail free” card

signed○ Only thing that keeps it legal, and us not

in jail● We’ll likely get some sort of a scope

○ IP address range○ Domain Names

● On our marks, get set, go!

Page 27: Hacking - Breaking Into It

Finding Live Systems● So, we may have thousands of IP

addresses…○ Let’s find the real computers

● Once we have a list of live computers what’s running on them?○ Web server?○ E-mail?○ Database server?

● NMap to the rescue

Page 28: Hacking - Breaking Into It

Port Scanning with NMap● NMap finds open ports with services running

on it● It will scan for the top 1000, or whatever you

specify● It can guess:

○ Service running○ Operating System

● It can run scripts too!

Page 29: Hacking - Breaking Into It
Page 30: Hacking - Breaking Into It
Page 31: Hacking - Breaking Into It

Sweet, what’s next?● Now we know open ports and the services

running○ Research vulnerabilities for those versions○ Or run a vulnerability scanner

● MS08-067○ Basically everyone’s first exploit○ Get Windows XP stock, and test against it

● We have an exploit for the system, use it!

Page 32: Hacking - Breaking Into It
Page 33: Hacking - Breaking Into It
Page 34: Hacking - Breaking Into It
Page 35: Hacking - Breaking Into It

What about Websites?● We test these too!

● Probably at least half of what we’re testing○ Everyone has a website○ Internal to a network, can be hundreds, or

thousands● Let’s get breaking into them!

Page 36: Hacking - Breaking Into It
Page 37: Hacking - Breaking Into It
Page 38: Hacking - Breaking Into It

What I wish I knew● Programming

○ Use it all the time for scripts, tools, Veil, etc.

● Mentor○ You’re always one step in front and one

step behind someone● Build a lab and play with it

○ You can’t break anything that costs money!

Page 39: Hacking - Breaking Into It

What I wish I knew● Be prepared to be uncomfortable at times

○ Always in a new environment with new “stuff” and you’re expected to break it

○ Perk of the job too :)

● Build your process○ Learn how you best approach networks,

web apps, etc.○ Use this to face what you don’t know

Page 40: Hacking - Breaking Into It

How to Learn● Go to security conferences!

○ Might be anywhere from $10 - $300○ BSides Conferences are local and almost

always free, or super cheap● Build your own lab

○ VMWare is your best friend○ VulnHub

● Try free CTFs● Twitter!

Page 41: Hacking - Breaking Into It

?Chris Truncer

○ @ChrisTruncer○ [email protected]○ https://www.christophertruncer.com○ https://github.com/ChrisTruncer