Fuzzing is often described as a "black box software testing technique. It works by automatically feeding a program multiple input iterations in an attempt to trigger an internal error indicative of a bug, and potentially crash it. Such program errors and crashes are indicative of the existence of a security vulnerability, which can later be researched and fixed. Fuzz testing is now making a transition from a hacker-grown tool to a commercial-grade product. There are many different types of applications that can be fuzzed, many different ways they can be fuzzed, and a variety of different problems that can be uncovered. There are also problems that arise during fuzzing; when is enough enough? These issues and many others are fully explored.
- Fuzzing is a fast-growing field with increasing commercial interest (7 vendors unveiled fuzzing products last year).
- Vendors today are looking for solutions to the ever increasing threat of vulnerabilities. Fuzzing looks for these vulnerabilities automatically, before they are known, and eliminates them before release.
- Software developers face an increasing demand to produce secure applications---and they are looking for any information to help them do that.
Inhaltsverzeichnis
1;Front Cover;1 2;Open Source Fuzzing Tools;2 3;Copyright Page;4 4;Contributing Authors;6 5;Contents;8 6;Chapter 1: Introduction to Vulnerability Research;11 6.1;Statement of Scope;12 6.2;Off-by-One Errors;13 6.3;Programming Language Use Errors;15 6.4;Integer Overflows;15 6.5;Bugs and Vulnerabilities;17 6.6;The Vaunted Buffer Overflow;17 6.7;Finding Bugs and Vulnerabilities;17 6.7.1;Source Code Review;19 6.7.2;Black Box Testing;20 6.7.3;Glass Box Testing;20 7;Chapter 2: Fuzzing-What's That?;21 7.1;Introduction;22 7.2;Introduction to Fuzzing;22 7.3;Milestones in Fuzzing;24 7.4;Fuzzing Technology;26 7.4.1;Traffic Sniffing;28 7.4.2;Prepared Template;29 7.5;Second-Generation Fuzzing;29 7.6;File Fuzzing;32 7.7;Host-side Monitoring;32 7.8;Vulnerability Scanners as Fuzzers;32 7.9;Uses of Fuzzing;33 7.10;Open Source Fuzzers;34 7.11;Commercial-Grade Fuzzers;34 7.12;What Comes Next;35 7.13;The Software Development Life Cycle;35 8;Chapter 3: Building a Fuzzing Environment;37 8.1;Introduction;38 8.1.1;Knowing What to Ask...;38 8.2;Basic Tools and Setup;44 8.3;Data Points;44 8.4;Crash Dumps;44 8.5;Fuzzer Output;46 8.6;Debuggers;47 8.6.1;Recon Tools;50 8.6.2;Linux;51 8.6.3;OSX;52 8.7;Summary;54 9;Chapter 4: Open Source Fuzzing Tools;55 9.1;Introduction;56 9.1.1;Frameworks;56 9.1.2;Special-Purpose Tools;58 9.1.3;General-Purpose Tools;62 10;Chapter 5: Commercial Fuzzing Solutions;65 10.1;Introduction;66 10.1.1;beSTORM (by Beyond Security);66 10.1.2;BPS-1000 (by BreakingPoint Systems);68 10.1.3;Codenomicon;69 10.1.4;Mu-4000 Security Analyzer (by Mu Security);73 11;Chapter 6: Build Your Own Fuzzer;77 11.1;Hold Your Horses;78 11.2;Fuzzer Building Blocks;80 11.2.1;One or More Valid Data Sets;80 11.2.2;Understanding What Each Bytein the Data Set Means ;81 11.2.3;Change the Values of the Data Sets While Maintaining the Integrity ofthe Data Being Sent;82 11.2.4;Recreate the Same Malformed DataSet Time and Time Again;82 11.2.5;An Arsenal of Malformed Values, or the Abilityto Create a Varie
ty of Malformed Outputs;83 11.2.6;Maintain a Form of a State Machine;84 11.2.7;Summarize;85 11.3;Down to Business;85 11.4;Simplest Fuzz Testing Find Issues;98 12;Chapter 7: Integration of Fuzzing in the Development Cycle;101 12.1;Introduction ;102 12.2;Why Is Fuzzing Important to Include in a Software Development Cycle?;103 12.2.1;Security Testing Workload;103 12.3;Setting Expectations for Fuzzers in a Software Development Lifecycle;111 12.3.1;Fuzzing as a Panacea;111 12.3.2;Fuzzing Tools versus ...;113 12.4;Setting the Plan for Implementing Fuzzers into a Software Development Lifecycle;113 12.4.1;Setting Goals;114 12.4.2;Building and Executing on the Plan;121 12.5;Understanding How to Increase Effectiveness of Fuzzers, and Avoiding Any Big Gotchas;125 12.5.1;Hidden Costs;126 12.5.2;Finding More Vulnerabilities;129 12.6;Summary;136 12.7;Solutions Fast Track;136 12.8;Frequently Asked Questions;140 13;Chapter 8: Standardization and Certification;143 13.1;Fuzzing and the Corporate Environment;144 13.2;Software Security Testing, the Challenges;144 13.3;Testing for Security;145 13.3.1;Fuzzing as a Viable Option;147 13.3.2;Business Pressure;148 13.3.3;Software Security Certification;149 13.3.4;Meeting Standards and Compliance;149 13.3.5;Tester Certification;150 13.3.6;Industry Pressure;150 13.3.7;Antivirus Product Testing and Certification;150 14;Chapter 9: What Is a File?;153 14.1;Introduction;154 14.2;Are File Fuzzers Special?;155 14.3;Analyzing and Building Files;159 14.3.1;Textual Files;160 14.3.2;Binary Files;161 14.3.3;Running the Test;166 14.3.4;Monitoring the Application with the Test Cases;171 15;Chapter 10: Code Coverage and Fuzzing;173 15.1;Introduction;174 15.2;Code Coverage;174 15.2.1;Obtaining Code Coverage;177 15.2.2;Instrumenting the Binary;177 15.2.3;Monitoring a Closed Source Application;179 15.2.4;Improving Fuzzing with Code Coverage;181 15.2.5;Manual Improvements;184 15.2.6;Dynamically Generating Code Coverage Improvements;191 15.2.7;Statically Generat
ing Code Coverage;195 15.2.8;Weaknesses of Code Coverage;198 15.3;Summary;200 15.4;Solutions Fast Track;200 15.5;Frequently Asked Questions;202 16;Index;203