Do you need security help?

Growing your startup is a challenge. You know you need to worry about security, but you just don't have the resources or the time.

Password Oracle for Server Security

Yahoo gets hit with a massive data breach. Adult Friend Finder, LinkedIn, the list goes on and on and on.
Server breaches are inevitable.
Or at least you should assume that they will happen.
One danger is the loss of user passwords.
The combination of user names and passwords can allow a breach at one site to spread across the Internet.
While it is a good idea for your users to use different passwords and protect themselves, online services (you know, the guys who are getting compromised) can do more to protect user information. Like not using emails for userIDs or having public userIDs at all.
We can also do a better job of protecting passwords at an online site.

An outdated design

The standard way to protect passwords on a server is to use an irreversible transform (or hash function) combined with a userID specific seed to process the password and store the transform on the server.
UserPasswordRecord = UserID, userSeed, Hash(userpassword,userseed)
Common mistakes here (and they still occur 5 decades later) include:
  1. Using an encryption function instead of an irreversible transform (which allows the password to be literally decrypted and recovered).
  2. Not using a user unique seed which allows all of the passwords on a server to be attacked at once: Dictionary attacks against user passwords can be run: Hash(userpassword) for everybody since a single guess will work on all user accounts.
  3. Public userIDs make attacks scalable - the trivial association of a UserID with a person makes it easier to take information from one data breach and bootstrap it into another.
The problem is that the whole basic password protection design was created back in the days of very expensive (and pretty darn secure) mainframes.
We aren't in that Kansas anymore.
Hardware is cheap.
Very cheap.
Networking is easy.
How about a basic password appliance?

The 2-factor authentication fallacy

It is worth noting that when online sites today push you to use 2-factor authentication, they may be making it harder to break into your account using your password, but it does nothing on its own to protect against an actual server breach or to protect your account or account information if the server is breached.

Enter the Password Oracle

A password oracle is a dedicated server (or appliance or virtual server)... separately administered (perhaps a third party service, perhaps operated remotely) that simply answers the question:
Is this userID/password pair legitimate?
Now, simply moving your password process onto a separate machine would be a big improvement here.
One of the ways breaches actually wind up occuring is that "everything" is hosted on a shared server with a shared database (because it is easy) and when one of the (many) applications gets updated, it has a vulnerability that is exploited and bootstrapped to allow an attack on user account information (including the password system).
Simply separating the login system (and database) to a separate server / database at least minimizes the cross-contamination problem (please have different system administrator accounts or, even better, individuals, for the login system).
But, let's take this one better.
The login server can be separated from the password server (password Oracle).
On the login server, the user authentication record gets changed to:
User Authentication Record = userID, passwordOracleUserID,userOracleKey
When a user attempts to login, the login server would take the received password, use the userOracleKey to expand the password and pass the following to the Password Oracle:
Oracle Query = passwordOracleUserID, Expanded(userPassword,userOracleKey)
The Password Oracle would then use the passwordOracleUserID and expanded user password to verify the password and return a result.
Now, if the login server is compromised, the only thing that is compromised is a list of user IDs - not too exciting.
If the password Oracle is compromised, the user record is:
password Oracle Authentication Record = passwordOracleUserID, passwordOracleUserIDseed, Hash(Expanded(userPassword,userOracleKey),passwordOracleUserIDseed)
... a long winded way of saying that there isn't enough information to easily run a dictionary attack as the expanded user password key is not known by the password Oracle making "going backwards" a big pain.
Thus, if you set the system up right, 2 independent hacks of 2 independent systems would be required to get at a user account.
Not perfect. But better.
Combined with other measures, we can make online sites much more resilient in the face of data breaches.

Are you interested in more details of how this works, just ask me.

Is PR part of your Security Plan?

FriendFinder Networks was hacked recently. 412 Million Accounts breached.
Another company, another data breach.
Now, if you are a security professional, you are likely to get asked by your boss:

"Can this happen to us?"

And, you may be tempted to use this story (or Ashley Madison, or Target, or OPM, or....) to ask for more money for your security team.
For more people or more tools.
Yes, you may get some more money today. But you know and I know that a couple of quarters from now when things get rocky... away go those resources. And you'll almost be worse off than you are today because you'll have a hole in your armor.
So don't do it.
Start with PR.

PR and the perception of Trust

Security is a slippery thing.
When we are doing our job right, the silence is deafening.
The better we do, the less there is to see.
While good security is often invisible, companies know that they need to trust of their customers.
And nothing undermines customer trust like a security breach.

Start with "Securing Trust"

No one in the security industry believes that they can "guarantee" security for a business.
Instead, if you assume that a security breach is inevitable, you can focus first on helping your company plan its response to a security failure.
You need to start talking to the PR guys.
Work with them to put in place a Crisis Management Plan so that your company, including your top level executives (especially your top level executives), are ready to respond to a security incident in a way that protects the confidence of your customers, your business partners, and your prospects (not to mention protecting your business from potential liability and regulatory problems).
This is good for your company because, if you do it right you are:
  • Getting them ready for an incident if it happens. No matter what the incident is.
  • Building a Crisis Management Plan is cheap (at least compared to most security tools and services).
  • Putting "Trust" explicitly on the radar of your company leadership, if it isn't there already.
And it is good for your security program:
  • It puts security on the radar of your company in a positive way.
  • It can change the cultural view of security from a "cost center" to a business builder like marketing and PR.
  • It can help you make friends and alliances in other parts of your company (like marketing and PR and operations)... because the second step after a good Crisis Management Plan is a plan to minimize the likelihood of crises... which should result in more resources for a number of company departments.
  • You will get more security in your company in a positive way.

Rethinking the role of Security

Security often seems to find itself an unloved stepchild of the IT department.
It is seen as the Department of No. Stopping people from doing work. Adding hoops to jump through. A necessary evil.
It doesn't have to be that way.
Global competition and the Internet mean that companies big and small are competing much more fiercely than ever. Customer loyalty is the best way to protect and grow revenue. And good security.... and the perception of trust is a big part of giving customers confidence in your business.
It is your chance to change the game.
... so, invite your PR person to lunch and listen and learn.

Bad Security, Good Business - the information value paradox

It is hardly news anymore.
And it certainly isn't "new".
What is scary is that poor security is probably totally rational business.
I've been working in the security field for 29+ years.
I've sung the usual songs:
  • "Build security in from the beginning".
  • "Security is good for business".
  • ... if you are in the field, you know the tunes.
And everyone agrees.
And (often) they wind up doing... very little.
And (maybe) they are right.

Old School Security

A lot of the way we've been trained to think about security comes from the US military and intelligence agencies. We were in the "long-term information disclosure protection" business ... and labels as such (Confidential, Secret, Top Secret). Protecting "strategic secrets" that had long term value was really the "guts" of the security business.
And, in general, our adversaries (the USSR mostly) pretty much were considered to value the information the same way we did.
While the problem was hard (encryption and key management used to be very expensive), it was also pretty straightforward.
Lock it up and hide-away the key.
Starting in the 1980s with the rise of widespread computing and networks, we began to apply these same models to business.
"Business secrets are pretty much like government secrets.... sounds good to me." - Hypothetical Anonymous 1980s security guy
But that is not the world of security today.

You lose, I pay

Because the information at risk is not really a business secret. It isn't a trade secret, a business process, a patent.
It is your personal data and my personal data.
It isn't the business's data at all.
And, even worse, when it is compromised from a business, the business doesn't lose the data.
It may not even lose your business.
... on the other hand...

In the wrong hands

I give out a lot of personal data all the time. Every store I shop at, every list I sign up for. There are probably hundreds of businesses that have my personal information in differing levels.
  • I share this data because it is necessary to get business I want done.
  • I share this data because it makes my life easier.
  • (until it doesn't).
A breach of my personal data can cost me close to $5000 to recover from identity theft and as much as $20,000 if my health care information is compromised or abused.
However, today, the cost for the business MIGHT be... as much $10 to purchase each victim a credit card monitoring service for a year (purchased at retail which is highly unlikely given bulk discounts and a reasonable insurance policy) or as little as $0.15 based on some of the legal settlements for data breaches at companies like Target and TJ Maxx (again, probably less given sensible insurance).

The company will likely never see the consequences of a data breach to its victim.

Now, you can argue (and I would try to argue) that you may lose customers and sales etc., etc., etc., but this gets pretty wobbly pretty quickly.
Everyone can play the spreadsheet game to get the answers that they want.
In fact, the reason the data breach costs are as high as they are for businesses is due to the rise of data breach disclosure laws over the past decade.
Otherwise, the costs would likely be negligible.

The bad security bottom line

$0.15 per customer is pretty insignificant.
... and you only pay that if you get attacked.
... and you discover it.
... and if you disclose it.
... after a bunch of years of litigation.
... less after insurance.
... oh, and the fine is probably tax deductible.
Heck, in the old days, the general model for direct mail was that a customer's information was worth a dollar a year, so you are "up" $0.85 each year breach or no breach.
So, if you were asked to spend money on your business, would you spend it on protecting customer data better?
Not because you think it is right or wrong, but its impact on your business bottom line?
Or, if you decided to invest in security, what is your break-even number?
(And remember, you are likely to have to invest in the same insurance policy regardless of what security "stuff" you buy).

What is to be done?

While it is tempting to say "Security will get better (someday)" or "things will change" or "after the Internet Pearl Harbor" or "build it in from the beginning" or whatever.
But, things haven't changed.
We've had plenty of plausible "Digital Pearl Harbors".
Almost no one "builds security in from the beginning"... and they do just fine, thank you.
We've been playing a variant of this security game for close to 30 years and it hasn't gotten meaningfully better.
Is it time to give up on security?
Absolutely not.
However, we need to start learning how to do security well with zero security budget.

Selling Security Seriously

We need to learn how to sell security to other parts of the business so that they'll invest in security because it suits their needs in their language and values.
We need to sell Trust to marketing.
We need to sell Reliability to operations.
We need to sell Reputation and Growth to executives.
We need to stop selling based on Fear, Uncertainty, and Doubt. FUD will only get us so far. Our horror stories will only get us so far.
We need to dive into our own businesses so that we understand what they care about and how security can meet their business objectives.
If we can't do that, we've got no one to blame but ourselves.

Better password security the easy way - and you can do it now

Email address user names are the worst idea ever

Passwords get such a bad rap. Every security breach seems to be caused by bad password security or breaches a ridiculous number of user passwords (in addition to everything else).
And with the next breath, they'll try to sell you on two-factor authentication, biometrics, public key cryptography, security tokens.
Or, turn your decent passwords that you can plausibly memorize into a 24 UNICODE character nightmare of symbols, alternate alphabets, capital and lower case letters that you had better never had typed before in your entire life.
Madness.
And totally unfair.
Password security can be done right. It can be done with off-the-shelf technology. It can be done today (for little or no cost).
Let's start with the single, biggest problem with password security as implemented by almost everybody... and it isn't even your password:
Using your email address as your userID.
If there is one thing that makes data breaches of user account information costly, it is bootstrapping a breach at one site to others.
I get hurt because of your poor security practices on your side, not because of a bad password choice.
If I know your userID, I'm more than half way there to breaking into your account and causing all sorts of havoc.
After all, once I know your userID, I just have to start guessing your password.
Otherwise, I have to guess both your userID and password to get into your account.
" The reuse of passwords is the No. 1 cause of harm on the internet," - Facebook CSO Alex Stamos
"Hogwash" - Me

Blaming the User

Stamos comes out with the same old story (according to the article):
  • "Reuse of passwords is bad"
  • "We use the lists to check for weak passwords"
  • "Passwords are SO 1970s" (OK, I'm making that up)
  • (Actually, I'm not making that up) The most common password authentication architecture was designed in the 1970s.
He states that they cross-reference the passwords with their internal encrypted password lists to identify problem passwords.
FUN FACT:
This isn't quite right, they are cross referencing (email/UserID- breached password pairs) to see if they match and your account has been compromised.
(This can happen for a number of reasons, the most common of which is crappy, homegrown password system implementations that make extracting passwords from a server depressingly easy. Again, not a problem with the password itself or the fault of the user, but with the server security implementation)
Facebook could save some money (and perhaps embarrassment) by simply stopping using email accounts as UserIDs. Once the association between the UserID and password is broken, the exploit goes away.
Poof.
FUN FACT 2:
There are well-known lists of bad passwords. Lots of them. You don't need to buy them. It is probably good not to allow them on your site or server (though with a good password authentication architecture, it may not matter all that much).
Facebook is not alone.
Sadly, the use of email addresses as userIDs has become routine. Amazon, LinkedIn, Google, the list goes on and on and on.

Next steps

The annoying solution is for you to create an email address per site:
facebook@somedomain1.com , linkedin@somedomain2.com, etc. for every site foolish enough to do this.
It works, but is ugly.
The better option would be for the companies to fess up and fix it.
Getting rid of email address userIDs is only the beginning. I'll be walking through a complete pretty-darn secure (but yes, not perfect then again what is) password security architecture (for free as in free). If you like this great (how about a Like or Share?).
It not, let's come up with answers together in the comments below.