February 18, 2004

MSDN Webcast Review: Writing Secure Code - Best Practices

What a great presentation. Joel did a great job. It was detailed on secure coding best practices and included threat modeling... covering both STRIDE threat modeling and Attack Trees. It was interesting to see him present the DREAD model for rating threats as superior to using the common formula:

risk = Probability(chance) * Damage Potential (damage)

I've been using r=c*d for over a year instead of DREAD, and found it works well for me. I am going to need to read up on some secondary documentation on DREAD and see why Microsoft prefers that method.

The demos were pretty good too. Joel even showed how to properly do development as a non-admin user, which should benefit most people who don't. If you don't know WHY thats important, consider reading my CodeProject article about developing with least privilege.

I did learn one interesting component in VS.NET. I always write my validation routines by hand and deal with it that way. I didn't know there was an ErrorProvider control that makes that simpler. Will have to look into that.

I REALLY liked how Joel showed how to use the Data Protection API (DPAPI) to encrypt and decrypt SQL connection strings. I wish more people knew how to do this. If you hardcode your connection strings, you really should watch this presentation and learn how to fix that.

All and all, this has been the best presentation so far.

In the next few days the presentation will be online on-demand which you can check out here, which will let you check it out for yourself. In the meantime, I kept a copy of the power point slides of the presentation, which you can get here.

Posted by SilverStr at February 18, 2004 12:35 PM | TrackBack
Comments

Glad you enjoyed the presentation. That last demo bombed really badly hey? - I went back to see if I could fix it - but of course, it magically worked.

Posted by: Joel at February 18, 2004 08:43 PM

Demos always do that don't they??

Thanks again for a great presentation. Looking forward to your other one tomorrow.

Posted by: SilverStr at February 19, 2004 01:31 PM

Hi Dana,

just enjoyed viewing the Writing Secure Code - Best Practices webcast. Very interesting stuff. Is says it's for advanced programmers. But even as I don't really consider myself very advanced into secure coding principles, I was able to follow the greater part without too many difficulties. It also might have to do with my reading Michael Howards "Secure Coding" book recently, as a lot of webcast stuff was familiar for those having read the book. Only the parts where Joel went into C# code quite deeply, I lost track a little bit. That might also have to do woth the fast we're still on Visual Studio 6 here. But as I have to think about developing myself I touched upon .NET a bit lately. It's a great job o Microsoft to make these webcasts available for viewing afterwards. At least when you're not visiting seminars too often, as I.

Posted by: Sikko2go at February 23, 2004 02:54 AM