John Lam 1997 — 2026

Security is hard

Security is much harder than most folks make it out to be. Today, I went to the Microsoft Canada MSDN Security Briefing in Toronto. I went to see Steve Ballmer speak, since I have never heard him speak live before. While I thought Steve would be leading off, he wound up closing the conference, so I stuck around for a few talks before heading off to other meetings only to return at the end to hear Steve speak.

Paul Murphy gave the talks that I saw at the briefing. While Paul is certainly a talented speaker, he fell way short on depth of knowledge. Also, instead of acknowledging that he didn’t know the answer to a particular question, instead he tried to make up answers which, while sounding authoritative, actually turned out to be incorrect.

For example, when asked how an organization might defend against a rogue administrator, he suggested using the DPAPI user store to encrypt credentials. This is worse than admitting the truth: that you can’t defend against a rogue administrator. Instead, it lulls folks who follow his advice into a false sense of security.

This is similar to a discussion that happened concurrently in the blogosphere. Ian Griffiths correctly called to task Robert Hurlbut’s comments on using application servers that reside on a separate physical tier as a means to defend against compromised web servers. If the reason why you’re adding a separate physical tier is only for “passthrough” security, then Ian’s argument is that you’re not accomplishing anything. Complexity is the enemy of security, and you need to keep things as simple as possible. I highly recommend that folks read Ian’s post for the full description.

BTW, I absolutely loved Steve’s talk. He’s an extremely charismatic speaker, and is someone who can definitely rally the troops. MUCH better than Bill at giving inspirational talks. I went away wanting to crank on code tonight (which I will!)

7 archived reader comments

Paul Bartlett (2004-02-26)

Although I agree with Ian in that I wouldn’t add an application server layer solely on security grounds, if an application server is present it should enforce security in order to contribute to “defence in depth”, as Robert says. That way, when your web server admin and DBA both have a bad day, the app server might just save you.

Robert Hurlbut (2004-02-26)

Ian and I have been having discussions about this in private, but it seems that it needs to become public now. His post talks about SQL Server, but I deal with Oracle for my current project. So much of Oracle forces you to stored open information, including client tools, on the server. There are ways around this, of course, on the same box, but there can be limitations to what to what you are allowed to do.

As Sam has stated, and I will state more clearly, it also depends on your business needs. If you are required to use multiple boxes (because of distributed access, as Ian points out), then you take advantage of what’s also available. That was the meaning of my post, and apparently it is taken to mean something completely different.

Yes, security is hard, and it does pay to make it simple. I am a firm believer in NOT doing “security by obscurity”. John, and Ian, all I ask is you read the full context rather than pick and choose. I will make it more clear shortly, though.

Thanks.

John Lam (2004-02-26)

The fundamental problem is this: if I can lure your application server to do anything that the web server can do it doesn’t really matter. I’ll post a more detailed set of thoughts about this later on today.

Robert Hurlbut (2004-02-26)

John, I appreciate your further thoughts on this. Also, if you would, please address your current thoughts on Partial Trust ASP.NET pages as I also have that in mind as write secure sandboxed applications. Thanks, Robert

Paul Murphy (2004-02-26)

Thanks for the feedback, John. Security is tough - I agree. Unfortunately, it’s even harder to talk on it for 6+ hours and interpret every question from a large group 100% correctly, while hitting every audience from the very beginners to the advanced developers :)

I agree there is no easy fix for security or a rogue administrator - but I disagree that there is nothing you can do to keep the data secret. I remember this question clearly, so let me repeat my logic so I can understand where I went wrong.

Administrators can not obtain a user’s account information. They can only reset it. My suggestion was to load a user profile - then encrypt the data w/ that profile using the DPAPI + user store. (You can have the system prompt you for the profile information, to prevent that from being stored on the system)

While this is not a silver bullet - it does protect you in a few ways. It prevents the admin from seeing the data. If he/she deletes the profile they can’t decrypt the data (yes, the data is lost at that point, but it hasn’t been compromised).

I’d love to learn from you what is missing in my logic.

Side note: I do make a point to differentiate answers for which I am positive from those where I’m brainstorming, but I will take your feedback to heart that I need to make that distinction more clear. Thanks again and look forward to the response.

John Lam (2004-02-27)

Thanks for writing in, Paul. I think you have excellent speaking skills. However, it is also OK to admit when you don’t know the answer. I suspect that I’ve been doing the speaking in front of large crowds thing for longer than you and I get stumped as well. It’s just NOT OK to present information as the answer if you’re not 100% sure.

For details on this issue, see my later post on this - http://www.iunknown.com/000423.html.

Paul Murphy (2004-02-27)

Thanks John - I do try to admit when I don’t know, but I honestly thought I had a good idea there! :) I totally agree - there is ALWAYS a way around, but to tell a developer there is nothing he/she can do to help keep the data secret is not the right approach. Taking protective measures will help in 99% of the cases - for the remaining 1% where a rogue admin installs some type of spying software or snoops data before it gets sent encrypted, of course - they can see it. I just don’t think we should throw our hands up and say, ah.. oh well we can’t make it 100% so lets not do anything at all. I’m sure you see my point - and I totally see yours. Thanks again for the suggestions, we’ll have to meet up next time I’m in Toronto (or you’re in Redmond)! Paul