Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
93 used & new from $3.35

Have one to sell? Sell yours here
 
   
Writing Secure Code, Second Edition
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Writing Secure Code, Second Edition (Paperback)

by Michael Howard (Author), David LeBlanc (Author) "As the Internet grows in importance, applications are becoming highly interconnected..." (more)
Key Phrases: protecting secret data, canonical representation issues, running with least privilege, Internet Explorer, Microsoft Windows, Visual Basic (more...)
4.2 out of 5 stars See all reviews (35 customer reviews)

List Price: $49.99
Price: $34.99 & this item ships for FREE with Super Saver Shipping. Details
You Save: $15.00 (30%)
Upgrade this book for $9.99 more, and you can read, search, and annotate every page online. See details
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Monday, July 13? Choose One-Day Shipping at checkout. Details
41 new from $13.44 52 used from $3.35
Also Available in: List Price: Our Price: Other Offers:
Paperback 62 used & new from $0.20
More from Microsoft Press
Make the most of your investment in Microsoft technology with books from the Microsoft Press Learning Center.

Frequently Bought Together

Writing Secure Code, Second Edition + The Security Development Lifecycle + 19 Deadly Sins of Software Security: Programming Flaws and How to Fix Them (Security One-off)
Price For All Three: $87.78

Customers Who Bought This Item Also Bought

19 Deadly Sins of Software Security: Programming Flaws and How to Fix Them (Security One-off)

19 Deadly Sins of Software Security: Programming Flaws and How to Fix Them (Security One-off)

by Michael Howard
4.6 out of 5 stars (12)  $29.70
Threat Modeling (Microsoft Professional)

Threat Modeling (Microsoft Professional)

by Frank Swiderski
3.8 out of 5 stars (8)  $31.49
Writing Secure Code for Windows Vista (Pro - Step By Step Developer)

Writing Secure Code for Windows Vista (Pro - Step By Step Developer)

by Michael Howard
5.0 out of 5 stars (3)  $18.24
Secure Coding: Principles and Practices

Secure Coding: Principles and Practices

by Mark G. Graff
Hunting Security Bugs

Hunting Security Bugs

by Tom Gallagher
4.6 out of 5 stars (5)  $44.99
Explore similar items

Editorial Reviews

Product Description
Keep black-hat hackers at bay with the tips and techniques in this entertaining, eye-opening book! Developers will learn how to padlock their applications throughout the entire development process—from designing secure applications to writing robust code that can withstand repeated attacks to testing applications for security flaws. Easily digested chapters reveal proven principles, strategies, and coding techniques. The authors—two battle-scarred veterans who have solved some of the industry’s toughest security problems—provide sample code in several languages. This edition includes updated information about threat modeling, designing a security process, international issues, file-system issues, adding privacy to applications, and performing security code reviews. It also includes enhanced coverage of buffer overruns, Microsoft® .NET security, and Microsoft ActiveX® development, plus practical checklists for developers, testers, and program managers.

From the Publisher
No more malicious attacks! Learn the best practices for writing secure code, with samples in Microsoft Visual Basic®.NET, Visual C++®, Perl, and Visual C#®. --This text refers to an out of print or unavailable edition of this title.

See all Editorial Reviews

Product Details

  • Paperback: 798 pages
  • Publisher: Microsoft Press; 2 Sub edition (January 4, 2003)
  • Language: English
  • ISBN-10: 0735617228
  • ISBN-13: 978-0735617223
  • Product Dimensions: 8.7 x 7.4 x 2 inches
  • Shipping Weight: 3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.2 out of 5 stars See all reviews (35 customer reviews)
  • Amazon.com Sales Rank: #153,809 in Books (See Bestsellers in Books)

Inside This Book (learn more)



Books on Related Topics (learn more)
 
 


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

35 Reviews
5 star:
 (22)
4 star:
 (5)
3 star:
 (3)
2 star:
 (4)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.2 out of 5 stars (35 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
109 of 125 people found the following review helpful:
3.0 out of 5 stars Not writing non-secure code for Windows, November 30, 2003
By Dmitry Dvoinikov (Ekaterinburg, Russia) - See all my reviews
The title of the book is misleading to begin with. The book is not about writing secure code. It's about (1) not writing non-secure code and (2) using Windows specific security APIs.

(1) Not writing non-secure code. Covers several issues, some more obvious, like buffer overruns and validating user input, some more complex, like escaping URLs and socket security. I thought the book would teach me best practices about organizing code, as in "do like I do". Instead it goes like "don't do like I'm telling you".

(2) Using Windows security APIs. This is THE BEST part of the book. Gives you a very good overview about several different APIs, including ACLs, protecting sensitive data, securing DCOM and .NET code, excellent tips on installing programs etc. etc.

Keep in mind that this book is said to be used internally within Microsoft with "security pushes", with the audience of 8000 people, including not only developers of all levels, but managers as well, therefore the book is by definition a high level overview.

Sometimes the book feels like MS educational course. Ex. (tip on p.77) "I created the ... diagrams ... using ... Microsoft Visio Professional 2002". That's cool, but what does it have to do with security ?

Some topics should never be there. How about 3 pages of tips for a kernel driver writer ? It's a huge topic in itself and how many readers outside MS do this anyway ? Privacy issues are covered idealistically. Yeah, sure, if you put a specially crafted XML to the special place on your site, the users magically start trusting you... I'd better read about real situation with privacy, not how the government rules it to be. Oh, and how about 40 pages about cryptography ? Please...

The book tries to show you the security process with development and testing. I can easily see they use this process in Microsoft, with 8000 people. For a small team it's completely useless. How about using 4 (!) people for a code review ? Sure, upon reading this book you will know that security code review is a must (if you have enough resources). Didn't you know that before ?

The code samples are ugly. How about this: "... X is cool ... several pages of Perl (!) ... see what I mean ?". Ok, one of the authors admits to be a Perl fan, but how am I supposed to read through all this gibberish ? C(++) samples are not much better. May be they are fully functional and compilable and all, but please, they are huge and inconsistent in themselves.

All in all, 5 stars for Microsoft, 3 stars for the rest of the world.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
21 of 24 people found the following review helpful:
5.0 out of 5 stars Best book I have read about secure software, December 27, 2001
By Mike Brava (Sydney, Australia) - See all my reviews
This review is from: Writing Secure Code (Paperback)
Too many books talk about how to secure a network, and discuss network-based attacks, but this book is different; it covers how to design, build and test the code at the end of the pipe - the application software.

The book is complete in its explanation of how to make sure your application code, be it web-based or otherwise, is secured from attack.

I learned a great deal from this book, and, based on code and design reviews of my company's code, the authors obviously know what they are talking about - as we made a lot of fixes, and added many new security test cases to our test suites.

Simply put, we never knew we had problems, until we read this book, now it's mandatory reading for all our software engineers.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
22 of 26 people found the following review helpful:
5.0 out of 5 stars Great book if you're serious about writing secure code, January 30, 2003
By Leon Zandman "lzandman" (Groningen, Netherlands) - See all my reviews
I got this book for free from Microsoft, because our company became a Microsoft Partner. I must admit that at first I was a little bit sceptical about it, because afterall this book is published by Microsoft and they have this reputation of selling rather insecure software themselves. But after reading the first few sections I knew it was going to be a very good read.

The book explains in very clear language almost every aspect of secure programming and gives a good overview of all common security flaws that can (and will!) enter your programming code. You'll learn how to securely design, implement, test and deploy your programs. Ofcourse buffer overruns are handled (Public Enemy #1 according to the authors), but that's only the tip of the iceberg. The book does a great job by identifying and providing solutions to common security pitfalls. Topics that are handled include: database access, user privileges and Access Control, Cryptography, handling secret data, user input, encoding and internationalization, RPC, DCOM, DOS attacks, .NET and writing secure program documentation.

I recommend this book to every programmer out there, even if you're not programming for the Win32-platform. Don't let the fact that this is a Microsoft publication refrain you from buying this book. If you are serious about writing secure programs this is the book to get.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

2.0 out of 5 stars Should be Microsoft Secure Code
I agree with a previous reviewer that the title is misleading - it should emphasize that this is primarily a book about not writing non-secure code on a Windows platform... Read more
Published 15 months ago by John F. Dooley

4.0 out of 5 stars A good security book especially if you develop on Windows
This is a good book as it does a good job covering the different sources of software insecurities:

- The classical buffer overflows on the stack and on the heap... Read more
Published 19 months ago by Olivier Langlois

2.0 out of 5 stars Did not enjoy this book
This book concentrates on a very important subject - writing secure code for Windows. In particular it focuses on two aspects: (a) correct coding techniques and how to avoid... Read more
Published 20 months ago by Paz Offer

1.0 out of 5 stars Okay overview
Okay overview. Not many details good for beginning programmers who are learning how to code right. Not really for understanding windows security or architecture, but then that is... Read more
Published 21 months ago by Kinshumann

4.0 out of 5 stars The most comprehensive, example-centric Microsoft secure coding book
I read six books on software security recently, namely "Writing Secure Code, 2nd Ed" by Michael Howard and David LeBlanc; "19 Deadly Sins of Software Security" by Michael Howard,... Read more
Published on November 1, 2006 by Richard Bejtlich

5.0 out of 5 stars An eye opener
You think your data is safe, your website secured, your code foolproof.... think again. If you haven't read this book, probably none of the above are true. Read more
Published on June 21, 2006 by J. Silberstein

4.0 out of 5 stars Good reference for Securing Microsoft Application Development.
I am happy with this book, it helped me quickly with all possible security options with Microsoft C++ and little bit of .NET framework. Read more
Published on February 12, 2006 by Craig Anderson

5.0 out of 5 stars Required readind, not just at MS
Every professional developer should read this book, period!

This book provides a great overview of what techniques are important when writing secure applications, and what... Read more

Published on May 3, 2004 by Markus Egger

4.0 out of 5 stars Excellent reading for any programmer
This is an excellent book for any beginner to intermediate programmer who would like to know the hooks and corners of securing the code. Read more
Published on August 15, 2003 by cltss

5.0 out of 5 stars Good eye-openner book
This book does a great job on showing you that security is not exactly a feature you add to your software, but should be a part of every single line of code you write. Read more
Published on June 23, 2003 by Paulo E. Reichert

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
  Discussion Replies Latest Post
C# or Java? 32 4 days ago
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


A Savings Shower

Home Improvement Value Center
Find the right showerhead at the right price in the Home Improvement Value Center, where you can find items up to 50% off.

Shop the Value Center

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Secure Your Home

Shop for home security systems
As you head out for vacation, ensure your home and valuables are protected with a home security system.

Shop all safety and security

 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Glenn Beck's Common Sense
Glenn Beck's Common Sense
Glenn Beck's Common Sense by Glenn Beck
$6.59
Finger Lickin' Fifteen
Finger Lickin' Fifteen by Janet Evanovich
$9.99
Darkfever
Darkfever by Karen Marie Moning

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates