the sky is falling - goto conferencegotocon.com/dl/goto-berlin-2014/slides/benjamintoe... · the...

41
The sky is falling Nephological tales of security woe

Upload: others

Post on 05-Oct-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

The sky is fallingNephological tales of security woe

Page 2: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Ben Toews

Page 3: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Snakeoil as a Service

- People are concerned about security these days- People aren’t sure about the security impact of the cloud- Scared people are good customers- Lots of people are exploiting this fear to sell bullshit snake oil

Page 4: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

don’t panic

- Don’t buy snakeoil- The cloud has a lot of security benefits

Page 5: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

tales of

woe

- We’ll walk through some examples of cloud security incidents and talk about what went wrong.

Page 6: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Adobe

- October 2013- Adobe is a desktop software company.- They manage downloads through a web app.- “attackers illegally entered our network”- Wasn’t cloud related

http://helpx.adobe.com/x-productkb/policy-pricing/ecc.htmlhttp://nakedsecurity.sophos.com/2013/11/04/anatomy-of-a-password-disaster-adobes-giant-sized-cryptographic-blunder/https://github.com/blog/1698-weak-passwords-brute-forced

Page 7: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

38 million passwords

- Compromise led to 38 million stolen account passwords

Page 8: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

crypto is hard

- Encrypted, not hashed- ECB Block cipher (64 bit blocks)- Password hints helped too

Page 9: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

MongoHQ

- October 2013- Internal support system account with same password as on Adobe

- Adobe ->- Internal support system (w/ impersonation) ->- Customer data (passwords were bcrypted) ->- Buffer mongodb access -> social media auth tokens

http://techcrunch.com/2013/10/29/hosting-service-mongohq-suffers-major-security-breach-that-explains-buffers-hack-over-the-weekend/http://arstechnica.com/security/2013/10/hack-of-mongohq-exposes-passwords-user-databases-to-intruders/http://open.bufferapp.com/buffer-has-been-hacked-here-is-whats-going-on/

Page 10: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

GitHub

- November 2013- “Brute force” attack using Adobe passwords- Already had strong rate limiting- Rate limiting didn’t help much- 40,000 unique IP addresses- ~5 login attempts per account- Used stolen accounts to get Ripple currency

Page 11: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

account security

- shared passwords- 2FA

Page 12: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Luke Chadwick

- He’s just one random example- Open source repo w/ AWS creds- >$3000 AWS bill- Thousands of AWS creds in public repos- Working with AWS to scan repos

http://vertis.io/2013/12/16/unauthorised-litecoin-mining.html

Page 13: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Bitly

- May 2014- Link shortener- AWS key for backup database stored in source code- Employee account compromised- GitHub contacted them (they never mention GitHub)

http://www.cso.com.au/article/544802/bitly_reveals_hackers_stole_secret_keys_from_hosted_code_repository/

Page 14: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Bonsai

- June 2014- Elastic search hosting- Old AWS master key hard coded in source code- Source code leaked- Noticed and outage due to attacker deleting random stuff- Worked with Amazon to lock things down and restore backups

http://status.bonsai.io/incidents/qt70mqtjbf0s

Page 15: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

credential storage

- Don’t store creds in source code

Page 16: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Code Spaces

June 2014Code spaces was a git and subversion hosting provider.

http://www.csoonline.com/article/2365062/disaster-recovery/code-spaces-forced-to-close-its-doors-after-security-incident.htmlhttp://arstechnica.com/security/2014/06/aws-console-breach-leads-to-demise-of-service-with-proven-backup-plan/http://threatpost.com/hacker-puts-hosting-service-code-spaces-out-of-business/106761http://blog.trendmicro.com/the-code-spaces-nightmare/

Page 17: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

DDoSThey noticed a DDoS attack.The attacker left a note in their AWS console asking them for money.WAIT, they left the note *in* the AWS console.

Page 18: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

AWS compromised

DDoS was smokescreen.AWS account was compromised.They tried to regain controll of account.Attacker noticed.Attacker deleted everything.

Page 19: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

“will not be able to operate beyond

this point”

They wen’t out of business 12 hours after the incident began.

Page 20: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

account security

- shared passwords- 2FA

Page 21: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

disaster recovery

- I hear DR plans are good

Page 22: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

trust

- Trustworthy providers (not Code Spaces)- Verify trust.

Page 23: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

Linode

- April 2013- 0day in ColdFusion- DB and webapp access- Properly encrypted credit card data- Salted/hashed passwords- Lost deploy keys for instances-

Page 24: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

credential storage

- They did a pretty good job

Page 25: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

the sky is falling

- This isn’t just the cloud- Alert Logic report

- Incidents are still more common in on-prem

Page 26: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!ebay145,000,000

- http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/

Page 27: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!JP Morgan

Chase76,000,000

- http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/

Page 28: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!Target70,000,000

- http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/

Page 29: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!Home Depot56,000,000

- http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/

Page 30: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!Living Social50,000,000

- http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/

Page 31: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!Community

Health Services4,500,000

- http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/

Page 32: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!AOL2,400,000

- http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/

Page 33: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

!

- How do you actually secure stuff?

Page 34: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

trust

- You can usually trust your cloud provider- They have people who are good at security

- Don’t get cut on the bleeding edge- Use established providers- Look for security docs- Email support

Page 35: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

verify

- Audit your logs- FIND AWS LOG PRODUCT

Page 36: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

"#$%

- Account Security- Application Security- Network/Host Security- Physical Security

Page 37: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

"#$%SaaS

- Need to trust everything up to the application- Strong account security

- Password manager- 2FA- Least privilege- Credential storage

Page 38: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

"#$%PaaS

- Need to trust everything up to the server- Need to focus on appsec in addition to previous concerns (+ more creds to manage)

- This is where people start putting creds in code- Static analysis- Hire appsec people- Hire consultants- Bounty program

Page 39: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

"#$%IaaS

- Need to trust everything up to the hardware- Host/network security in addition to previous concerns (+ more creds)

- Harden the OS- Patch (not always possible - eg. Heartbleed ELB)- Firewall (metadata API)- IDS

Page 40: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People

"#$%OnPrem

- Trust no one- Guards with Guns

Page 41: The Sky is Falling - GOTO Conferencegotocon.com/dl/goto-berlin-2014/slides/BenjaminToe... · The sky is falling Nephological tales of security woe. Ben Toews. Snakeoil as a Service-People