When data breaches happen, poor password protection gets all of the attention:
XXX has had a data breach, please change your password everywhere on the Internet right now!
The reason given for this is that an attack on one site where you have an account can be used to bootstrap into your other accounts at other sites.
This "works" because a hacker can use the compromised userID / password pair to pair at another site. (The worst case being using email addresses as userIDs)
But, this isn't really the fault of the individual user (even if they reuse passwords), it is the fault of the site.
The fault is in userID security as much as anything.
There are 3 pieces to protecting userIDs:
- No public userIDs
- Securing userIDs on the server
- Breaking the link between login and user account information
These are all pretty straightforward actions your site can take today to protect your users - even if you get hacked.
End public userIDs
You can't guess my password if you don't know my userID. Pretty obvious, yet almost everyone makes it very easy to find your userID... no hacking required. The worst, of course, is using email addresses for userIDs. Right behind that is using the public identifier at a site ("handle" borrowing from amateur radio) as the userID (or, more precisely, using a person's userID as their default handle).
A slight variation on this the use of the userID in the URL of the user's profile:
http://website.com/userID/profileinfo.html - or some such.
There is absolutely no reason to make things this easy and it should be nearly trivial to hide every user's userID from being "read" right off of your site.
Securing userIDs on the server
Sites get hacked.
Shocking, I know.
Instead of sending out the message above telling your users to change all of their passwords (because you screwed up)...
Wouldn't it be nice to tell them...
You deserve to know that our server was breached yesterday. Don't worry, your account information is still safe and, because of our security systems (described here), you should not have to change your password at our site or elsewhere.
We apologize and are taking (the following) steps to make sure that this doesn't happen again.
Your personal information is yours. We are honored that you shared yourself with us and are sorry that we were breached.
If you no longer wish to share your information with us, we understand. Click here and we will delete all of your information permanently.
You could say this with a fair amount of confidence (at least to anyone who didn't log in "during" the breach ... though it is even possible to do better than this - details in a forthcoming post).
The simplest way (and least secure) to do this is to only store hashes of userIDs on the server. This is still a lot better than today. Currently, if done properly, a login database record looks like:
- userID, random_seed (often forgotten), hash(password,random_seed)
The slight change here would be:
- hash(userID,common_userID_seed),random_seed_per_userID,hash(password,random_seed_per_userID)
One extra bit of math and the hacker now has to work to break into figure out how to log into the user account. (We're not solving everything, just adding more and more work for the hacker at little cost for ourselves).
This next step is going to take a bit of work...
Separating login systems from user account systems
It is easy to have a single database for logging in and storing user accounts. A single database, a single record. Easy-peasy.
But, if you step back a bit, why keep the valuable personal information about a user with their account?
Why keep it online at all?
With work (and I'm not going to pretend there is not work involved), it is quite possible to pull all of the sensitive personal user information off-line (or at least separate from the login system that needs to be always available).
I have to handwave here a bit because this gets very system specific (and a bit tediously technical), but, this can almost always be done (I suspect I could say always, but someone is going to come up with a counterexample).
The key shared feature is the ability to securely (and temporarily) making user account information accessible to the user so that they can update information (email address, other personal information, payment information, etc.).
Basically, you create an "airlock" to temporarily move the sensitive personal information from your seriously secure storage online, update it, and than take it back offline again.
It does create a slight window of vulnerability, but it is a much more constrained risk than the monolithic data store used so often today.
Yes, we are far from perfect security with passwords, but step by step, we can get better and we can do it toda
No comments:
Post a Comment