Building Secure Software: How to Avoid Security Problems the Right Way [Hardcover]
John Viega, Gary McGraw
- 出版商: Addison Wesley
- 出版日期: 2001-10-04
- 售價: $2,340
- 貴賓價: 9.5 折 $2,223
- 語言: 英文
- 頁數: 528
- 裝訂: Hardcover
- ISBN: 020172152X
- ISBN-13: 9780201721522
-
相關分類:
資訊安全
-
其他版本:
Building Secure Software: How to Avoid Security Problems the Right Way (Paperback)
已絕版
買這商品的人也買了...
-
$1,029Fundamentals of Data Structures in C++
-
$1,200$1,176 -
$580$458 -
$980$774 -
$970Introduction to Algorithms, 2/e
-
$880$695 -
$1,274Computer Architecture: A Quantitative Approach, 3/e(精裝本)
-
$1,029Operating System Concepts, 6/e (Windows XP Update)
-
$820$199 -
$880$704 -
$450$351 -
$2,340$2,223 -
$1,860$1,767 -
$1,650$1,568 -
$1,890$1,796 -
$420$328 -
$280$218 -
$750$638 -
$620$558 -
$490$387 -
$590$466 -
$620$527 -
$1,260CCNA Certification Library (CCNA Self-Study, exam #640-801), 6/e
-
$2,340$2,223 -
$360$360
相關主題
商品描述
"This book is useful, practical, understandable, and comprehensive. The fact that you have this book in your hands is a step in the right direction. Read it, learn from it. And then put its lessons into practice."
--From the Foreword by Bruce Schneier, CTO, Counterpane, and author of Secrets and Lies
"A must-read for anyone writing software for the Internet."
--Jeremy Epstein, Director, Product Security and Performance, webMethods
"This book tackles complex application security problems like buffer overflows, race conditions, and applied cryptography in a manner that is straightforward and easy to understand. This is a must for any application developer or security professional."
--Paul Raines, Global Head of Information Risk Management, Barclays Capital
Most organizations have a firewall, antivirus software, and intrusion detection systems, all of which are intended to keep attackers out. So why is computer security a bigger problem today than ever before? The answer is simple--bad software lies at the heart of all computer security problems. Traditional solutions simply treat the symptoms, not the problem, and usually do so in a reactive way. This book teaches you how to take a proactive approach to computer security.
Building Secure Software cuts to the heart of computer security to help you get security right the first time. If you are serious about computer security, you need to read this book, which includes essential lessons for both security professionals who have come to realize that software is the problem, and software developers who intend to make their code behave. Written for anyone involved in software development and use--from managers to coders--this book is your first step toward building more secure software. Building Secure Software provides expert perspectives and techniques to help you ensure the security of essential software. If you consider threats and vulnerabilities early in the devel-opment cycle you can build security into your system. With this book you will learn how to determine an acceptable level of risk, develop security tests, and plug security holes before software is even shipped.
Inside you'll find the ten guiding principles for software security, as well as detailed coverage of:
- Software risk management for security
- Selecting technologies to make your code more secure
- Security implications of open source and proprietary software
- How to audit software
- The dreaded buffer overflow
- Access control and password authentication
- Random number generation
- Applying cryptography
- Trust management and input
- Client-side security
- Dealing with firewalls
Only by building secure software can you defend yourself against security breaches and gain the confidence that comes with knowing you won't have to play the "penetrate and patch" game anymore. Get it right the first time. Let these expert authors show you how to properly design your system; save time, money, and credibility; and preserve your customers' trust.
Table of Contents
Foreword.
Preface.
Code Examples.
Contacting Us.
Acknowledgments.
1. Introduction to Software Security.
Dealing with Widespread Security Failures.
CERT Advisories.
RISKS Digest.
Technical Trends Affecting Software Security.
The 'ilities.
What Is Security?.
Isn't That Just Reliability?
Penetrate and Patch Is Bad.
On Art and Engineering.
Security Goals.
Traceability and Auditing.
Monitoring.
Privacy and Confidentiality.
Multilevel Security.
Anonymity.
Authentication.
Integrity.
Know Your Enemy: Common Software Security Pitfalls.
Software Project Goals.
Conclusion.
2. Managing Software Security Risk.
The Role of Security Personnel.
Software Security Personnel in the Life Cycle.
Risk Assessment.
Design for Security.
Implementation.
Security Testing.
A Dose of Reality.
Getting People to Think about Security.
Software Risk Management in Practice.
When Security Analysis Goes Astray.
The Common Criteria.
Conclusion.
3. Selecting Technologies.
Choosing a Distributed Object Platform.
DCOM.
EJB and RMI.
Choosing an Operating System.
Authentication Technologies.
Physical Tokens.
Biometric Authentication.
Cryptographic Authentication.
Defense in Depth and Authentication.
Conclusion.
4. On Open Source and Closed Source.
Code Obfuscation.
Security for Shrink-Wrapped Software.
Security by Obscurity Is No Panacea.
The Flip Side: Open-Source Software.
Is the “Many-Eyeballs Phenomenon<170) Real?
Other Worries.
On Publishing Cryptographic Algorithms.
Two More Open-Source Fallacies.
The Java Fallacy.
An Example: GNU Mailman Security.
More Evidence: Trojan Horses.
To Open Source or Not to Open Source.
Another Security Lesson from Buffer Overflows.
Beating the Drum.
Conclusion.
5. Guiding Principles for Software Security.
Principle 2: Practice Defense in Depth.
Principle 3: Fail Securely.
Principle 4: Follow the Principle of Least Privilege.
Principle 5: Compartmentalize.
Principle 6: Keep It Simple.
Principle 7: Promote Privacy.
Principle 8: Remember That Hiding Secrets Is Hard.
Principle 9: Be Reluctant to Trust.
Principle 10: Use Your Community Resources.
Conclusion.
6. Auditing Software.
Reporting Analysis Findings.
Implementation Security Analysis.
Source-level Security Auditing Tools.
Using RATS in an Analysis.
The Effectiveness of Security Scanning of Software.
Conclusion.
7. Buffer Overflows.
Why Are Buffer Overflows a Security Problem?
Defending against Buffer Overflow.
Major Gotchas.
Internal Buffer Overflows.
More Input Overflows.
Other Risks.
Tools That Can Help.
Smashing Heaps and Stacks.
Heap Overflows.
Stack Overflows.
To Infinity and Beyond!
Attack Code.
What About Windows?
Conclusion.
8. Access Control.
Modifying File Attributes.
Modifying Ownership.
The umask.
The Programmatic Interface.
Setuid Programming.
Access Control in Windows NT.
Compartmentalization.
Fine-Grained Privileges.
Conclusion.
9. Race Conditions.
Time-of-Check, Time-of-Use.
Avoiding TOCTOU Problems.
Secure File Access.
Temporary Files.
File Locking.
Other Race Conditions.
Conclusion.
10. Randomness and Determinism.
The Blum-Blum-Shub PRNG.
The Tiny PRNG.
Attacks Against PRNGs.
How to Cheat in On-line Gambling.
Statistical Tests on PRNGs.
Entropy Gathering and Estimation.
Software Solutions.
Poor Entropy Collection: How to Read “Secret” Netscape Messages.
Handling Entropy.
Practical Sources of Randomness.
Random Numbers for Windows.
Random Numbers for Linux.
Random Numbers in Java.
Conclusion.
11. Applying Cryptography.
Data Integrity.
Export Laws.
Common Cryptographic Libraries.
OpenSSL.
Crypto++.
BSAFE.
Cryptix.
Programming with Cryptography.
Hashing.
Public Key Encryption.
Threading.
Cookie Encryption.
More Uses for Cryptographic Hashes.
SSL and TLS (Transport Layer Security.
Stunnel.
One-Time Pads.
Conclusion.
12. Trust Management and Input Validation.
Examples of Misplaced Trust.
Protection from Hostile Callers.
Invoking Other Programs Safely.
Problems from the Web.
Client-side Security.
Perl Problems.
Format String Attacks.
Automatically Detecting Input Problems.
Conclusion.
13. Password Authentication.
Adding Users to a Password Database.
Password Authentication.
Password Selection.
Throwing Dice.
Passphrases.
Application-Selected Passwords.
One-Time Passwords.
Conclusion.
14. Database Security.
Access Control.
Using Views for Access Control.
Field Protection.
Security against Statistical Attacks.
Conclusion.
15. Client-side Security.
Thwarting the Casual Pirate.
Other License Features.
Other Copy Protection Schemes.
Authenticating Untrusted Clients.
Tamperproofing.
Checksums.
Responding to Misuse.
Decoys.
Code Obfuscation.
Encrypting Program Parts.
Conclusion.
16. Through the Firewall.
Client Proxies.
Server Proxies.
SOCKS.
Peer to Peer.
Conclusions.
Appendix A. Cryptography Basics.
Attacks on Cryptography.
Types of Cryptography.
Symmetric Cryptography.
Security of Symmetric Algorithms.
Public Key Cryptography.
Cryptographic Hashing Algorithms.
What's a Good Hash Algorithm to Use?
Digital Signatures.
Conclusions.
References.
Index.