ashley madison - lessons learned

17
Ashley Madison Lessons Learned Security lessons learned from the most famous PHP site ever to be hacked

Upload: adam-englander

Post on 22-Jan-2017

391 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Ashley Madison - Lessons Learned

Ashley MadisonLessons Learned

Security lessons learned from the most famous PHP site ever to be

hacked

Page 2: Ashley Madison - Lessons Learned

Who Am I?

• Director of Engineering at LaunchKey• Founder/Co-Organizer of Las Vegas PHP UG• Co-Organizer of Las Vegas Developer UG• National Junior Basketball Coach

Page 3: Ashley Madison - Lessons Learned

What is LaunchKey

• Security as a Service Provider• Anonymous distributed password-free multi-

factor authentication and authorization platform

• PHP SDK• WordPress Plugin• Drupal Plugin

Page 4: Ashley Madison - Lessons Learned

What is Ashley Madison

• Online Community with over 40 million members

• Targets married men looking for an affair• Offers a “paid delete” option to remove all of

a members data for a price

Page 5: Ashley Madison - Lessons Learned

What Happened

• The network containing the Ashley Madison Site was breached

• Hackers claimed to have data they would release and gave a shutdown or else choice

• Ashley Madison refused saying the hackers claims were not possible

• Hackers release 30 GB of data

Page 6: Ashley Madison - Lessons Learned

What Was Released

• Names, email addresses, personal details, GPS coordinates and passwords of users

• Executive emails• Website source code• Credit card transaction details and limited

credit card numbers

Page 7: Ashley Madison - Lessons Learned

How Did It Happen

• Hackers claimed “You could use Pass1234 from the internet to VPN to root on all servers”

• Once inside, the hackers spent years collecting data from inside the network

• Collected file, database, email, and chat data right off of the network

• Had full access to version control software for website code

Page 8: Ashley Madison - Lessons Learned

How Could It Happen?

• Even security conscious companies aren’t very good at it

• Security is rarely at the forefront of decisions related policies and procedures

• Most do only what is necessary to comply with regulation

• Data inside the network itself is rarely secured

Page 9: Ashley Madison - Lessons Learned

What About PHP?

• Site used PHP 5.5+ based password hashing• Most password crackers gave up after trying

common passwords. Common passwords accounted for approximately 0.1%

• Password scheme was too costly to bother as passwords would be reset before they were cracked.

Page 10: Ashley Madison - Lessons Learned

But The Passwords Were Cracked

• Site used its own algorithm for a “login key” that was simply an MD5 of the username and un-hashed password.

• Code was updated but not the database• 11.7 million passwords were cracked using this

vulnerability

Page 11: Ashley Madison - Lessons Learned

Why Was It Such A Big Deal

• Passwords were cracked after password resets• 68% of individuals in a LaunchKey password

survey say they share the same password with multiple sites

• Many users have the same email address password as other websites

• Once hackers have your email, the rest comes with it

Page 12: Ashley Madison - Lessons Learned

What Did We Learn Not To Do

• Do not store passwords• Do not assume that the network is

secure• Do no assume that the database is

secure• Do not roll your own crypto

Page 13: Ashley Madison - Lessons Learned

What Did We Learn To Do

• Protect user data like it was your own• Hash data that does not need to be read• Use PHP Password Hashing to hash data• Encrypt data at rest, especially PII• Encrypt data in motion• Use honeypots to detect intruders

Page 15: Ashley Madison - Lessons Learned

Further Reading

• PHP Password Hashing: http://php.net/manual/en/book.password.php

• PHP Social Login: http://hybridauth.sourceforge.net/

• LaunchKey Password Free Login:https://docs.launchkey.com/developer/web-desktop/sdk/php.html

• Honeynet: https://www.honeynet.org/

Page 16: Ashley Madison - Lessons Learned

Rate My Talk

http://spkr8.com/t/63961

Page 17: Ashley Madison - Lessons Learned

Contact Me

• Twitter: @adam_englander

• IRC: #launchkey or #vegastech on freenode.net

• Email: [email protected]