Welcome to the blue team! How building a better hacker accidentally build a better defender.

51
Welcome to the blue team… (How building a better hacker accidentally built a better defender) Casey Ellis - Converge Detroit 2014 We’re hiring! [email protected]

description

Security practitioners know that the threats that face an organization are always active, and that while defenders need to get everything right, a good attacker only needs to get one thing right. That’s all well and good for security practitioners, but what about the rest of the company? How do you transform security from a rather inconvenient checklist, to a nascent awareness of the threat? How do you get those responsible for providing your attack surface to ‘actually care about whether it’s secure or not?

Transcript of Welcome to the blue team! How building a better hacker accidentally build a better defender.

Page 2: Welcome to the blue team! How building a better hacker accidentally build a better defender.

About me@caseyjohnellis

JABAH (Just Another Blonde Aussie Hacker)

Recovering pentester turned solution architect turned sales guy turned entrepreneur

Wife and two kids now living in San Francisco

Founder and CEO of Bugcrowd

Page 3: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Before we begin…

• I’m not here to sell you anything.

• Let’s be real.

• I’m not a developer. I’m a 100% breaker/fixer. So I’m speaking to security folks in front of developers. This will hopefully help all of you.

Page 4: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Who’s who

• Who here builds for a living?

• Who here breaks/fixes for a living?

• Who does both? Seriously? You poor bugger.

Page 5: Welcome to the blue team! How building a better hacker accidentally build a better defender.

You’re different.

Very different actually… and we don’t want to change that.

Builders Breakers

Page 6: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Say what?

Page 7: Welcome to the blue team! How building a better hacker accidentally build a better defender.

You’re paid to do completely the opposite things.

Page 8: Welcome to the blue team! How building a better hacker accidentally build a better defender.
Page 9: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Developer Incentive

Push this feature by this deadline because $REASON.

Page 10: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Security Incentive

Make sure dev doesn’t do anything "that lets the bad guys in.

Page 11: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Side note:• Those who think like bad guys *greatly*

overestimate the ability for everyone else to think like a bad guy.

• Doesn’t make security people “better”. Does make us useful (and really, really annoying).

• Tip: The next time you feel like calling a developer “dumb”, build and launch a product first.

Page 12: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Developer Problem

All this security stuff is slowing us down

Page 13: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Security Problem

Why won’t they take "me seriously?

Page 14: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Side note:

• Development contributes to products which make money. No dev = no product = no money = no job = no beuno.

• Security minimizes risk of loss. No security = More risk… but *maybe* nothing will happen.

• This driver for prioritization happens all. the. time.

Page 15: Welcome to the blue team! How building a better hacker accidentally build a better defender.

The real developer problem

I don’t believe in the boogeyman

Page 16: Welcome to the blue team! How building a better hacker accidentally build a better defender.

The real security problem

I don’t have the time/energy/people skills/resources "to convince you that the boogeyman is real.

Page 17: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Side note:

• Thanks to every security vendor ever for making this even harder.

• FUD works as a awareness tool, but FUD fatigue is very, very real.

Page 18: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Status quo

• Developer checklists

• Check-in testing/CI tests

• Security awareness training

• Pentesting/VA/SCA/outsourced things

BLOCKERS

Page 19: Welcome to the blue team! How building a better hacker accidentally build a better defender.

So we do this…

(and let’s be honest, we quite enjoy it too…)

Page 20: Welcome to the blue team! How building a better hacker accidentally build a better defender.

It doesn’t work over the long term.

Page 21: Welcome to the blue team! How building a better hacker accidentally build a better defender.

How do we get developers to believe in the

boogeyman?

Page 22: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Boogeyman awareness >

Annoying checklist

Page 23: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Picard Management Tip

The most efficient way to get something the attention it deserves is to set it on fire. *not a Pickard quote, but it totally should be.

Page 24: Welcome to the blue team! How building a better hacker accidentally build a better defender.

The McAfee Version

The most security aware an organization will ever be is straight after a breach. *not a John McAfee quote, but he’s burning benjamin’s in this pic because it’s true.

Page 25: Welcome to the blue team! How building a better hacker accidentally build a better defender.

That’s nice, but how do I avoid the whole “getting pwned” bit?

Page 26: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Bug bounty!!!

Page 27: Welcome to the blue team! How building a better hacker accidentally build a better defender.

FOREVER!!!

Pics by @alliebrosh http://hyperboleandahalf.blogspot.com/2010/06/this-is-why-ill-never-be-adult.html

Page 28: Welcome to the blue team! How building a better hacker accidentally build a better defender.

What’s a bug bounty program?

Page 29: Welcome to the blue team! How building a better hacker accidentally build a better defender.

History

0

125

250

375

500

1995 2000 2005 2010 2015

Uptake of bug bounty and vulnerability disclosure programs.

Page 30: Welcome to the blue team! How building a better hacker accidentally build a better defender.

It’s not just about being cheap, or loud…

Page 31: Welcome to the blue team! How building a better hacker accidentally build a better defender.

It’s about leveling the playing field…

Page 32: Welcome to the blue team! How building a better hacker accidentally build a better defender.

…and about introducing your devs to this guy.

Egor Homakov (@homakov) !aka “that guy who totally owned Github that time” !Good guy who thinks like a bad guy !“I wonder what his next-door neighbor can do?”

Page 33: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Bug bounties create controlled incidents…

Page 34: Welcome to the blue team! How building a better hacker accidentally build a better defender.

… like having your code pwned by an 18yo kid.

Page 35: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Eg 1: Mozilla

Thanks to @mwcoates http://www.slideshare.net/michael_coates/bug-bounty-programs-for-the-web

Clearing their assurance debt

Boogeyman belief

Page 36: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Great success!

Page 37: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Over 120 programs we’ve seen this pattern every. single. time.

Page 38: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Eg 2: [REDACTED] financial services

• Extortion attempt from Eastern Europe

• Resolved by creating a “one man bug bounty” (we didn’t tell him he was the only one though…)

• Bug received in 15 mins

Page 39: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Great success!

Page 40: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Eg 3: [REDACTED] social media

• Infosec team having a *very* hard time getting buy-in from management and engineering

• Invoke Picard Management Mode

• Received budget for another 3 team members

Page 41: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Great success!

Page 42: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Gamify your SDLC

• Create a pot that benefits your dev team (team drinks, party, event, whatever) and have bug bounties paid from it. What ever the hackers don’t get, the devs keep.

• Level up: Pilot it with internal teams.

Page 43: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Ready to start?

Page 44: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Bug bounties are awesome…

Page 45: Welcome to the blue team! How building a better hacker accidentally build a better defender.

…but hard.

Page 46: Welcome to the blue team! How building a better hacker accidentally build a better defender.

The Golden Rule:

!

Touch the code ==

reward the bug

Page 47: Welcome to the blue team! How building a better hacker accidentally build a better defender.

The mistake *everyone* makes:

!

VULNERABILITY DATA PEOPLE

Page 48: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Align expectations before you engage

Page 49: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Conclusion• Bug bounties are cost effective, and highly

marketable, but that’s not the full story…

• …the psychology of external disclosure is completely different to internal security training, and it’s extremely effective.

• Go start one.

• More tips and tricks at https://blog.bugcrowd.com

Page 50: Welcome to the blue team! How building a better hacker accidentally build a better defender.

Questions?

Page 51: Welcome to the blue team! How building a better hacker accidentally build a better defender.

@caseyjohnellis

https://bugcrowd.com

[email protected]

!

Greets to Wolf, @jimmyvo and Converge crew, builditsecure.ly, Rapid7, iamthecavalry.com, @treyford, @quine, @markstanislav,

@alliebrosh, @mwcoates, @homakov, @codesoda and the @bugcrowd team.

We’re hiring!

[email protected]