Designing Secure Software: A Guide for Developers (Paperback)

Designing Secure Software: A Guide for Developers By Loren Kohnfelder Cover Image


What every software professional should know about security.

Designing Secure Software consolidates Loren Kohnfelder’s more than twenty years of experience into a concise, elegant guide to improving the security of technology products. Written for a wide range of software professionals, it emphasizes building security into software design early and involving the entire team in the process.
The book begins with a discussion of core concepts like trust, threats, mitigation, secure design patterns, and cryptography. The second part, perhaps this book’s most unique and important contribution to the field, covers the process of designing and reviewing a software design with security considerations in mind. The final section details the most common coding flaws that create vulnerabilities, making copious use of code snippets written in C and Python to illustrate implementation vulnerabilities.
You’ll learn how to:

   • Identify important assets, the attack surface, and the trust boundaries in a system
   • Evaluate the effectiveness of various threat mitigation candidates
   • Work with well-known secure coding patterns and libraries
   • Understand and prevent vulnerabilities like XSS and CSRF, memory flaws, and more
   • Use security testing to proactively identify vulnerabilities introduced into code
   • Review a software design for security flaws effectively and without judgment 
Kohnfelder’s career, spanning decades at Microsoft and Google, introduced numerous software security initiatives, including the co-creation of the STRIDE threat modeling framework used widely today. This book is a modern, pragmatic consolidation of his best practices, insights, and ideas about the future of software.

About the Author

Loren Kohnfelder has over 20 years of experience working in the security industry for companies like Microsoft and Google. At Microsoft, he was a key contributor to the industry’s first formalized proactive security process methodology, and program-managed the .NET platform security effort. He was also a key contributor to the first organized approach to security by any major software platform company. At Google he worked as a software engineer on the Security team and as a founding member of the Privacy team, performing numerous security design reviews of large-scale complex real-world commercial platforms and systems, while working on various projects as a developer. Now retired, Kohnfelder shares his unique experience in industry through this book.

Praise For…

"This book addresses software developers and designers, but it also has potential impact for those involved anywhere in the production of software. IT project managers in particular can benefit from this concept-heavy presentation because they need not wade into the waters of code."
—Scott J. Pearson, Blogger at

"Designing Secure Software creates a roadmap for building towards more secure software programs. Loren Kohnfelder draws upon technical knowledge gained and developed during his 20+ year career at Microsoft and Google to arm software engineers at any level with the security mindset and tools needed to create secure software. This book is comprehensive in scope and provides many excellent examples in python and C to aid in designing software securely."
—George D. Advanced Reviewer

"The authoritative introductory book on secure software design . . . I've learned so much while reading it."
—Kirill C., Advanced Reviewer

"Provides an in depth look on promoting secure software development and breaks down complex subjects into relatable examples. Contains methodologies that are helpful to remember in threat modeling and lessons to take from past software failures."
—Jessica W., Advanced Reviewer

"Very clear and easy reading, and the examples used are both captivating and easy to understand . . . A worthwhile read for both software developers and security engineers working the application security space. It distinguishes itself by focusing on concepts rather than being a checklist of individual items to focus on."
—System Overlord,

Product Details
ISBN: 9781718501928
ISBN-10: 1718501927
Publisher: No Starch Press
Publication Date: December 21st, 2021
Pages: 312
Language: English

We recommend