Learn&Fuzz: Machine Learning for Input Fuzzing
Authors:
Preprint
Abstract
Fuzzing consists of repeatedly testing an application with modified, or fuzzed, inputs with the goal of finding security vulnerabilities in input-parsing code. In this paper, we show how to automate the generation of an input grammar suitable for input fuzzing using sample inputs and neural-network-based statistical machine-learning techniques. We present a detailed case study with a complex input format, namely PDF, and a large complex security-critical parser for this format, namely, the PDF parser embedded in Microsoft's new Edge browser. We discuss (and measure) the tension between conflicting learning and fuzzing goals: learning wants to capture the structure of well-formed inputs, while fuzzing wants to break that structure in order to cover unexpected code paths and find bugs. We also present a new algorithm for this learn&fuzz challenge which uses a learnt input probability distribution to intelligently guide where to fuzz inputs.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Synthesizing program input grammarsACM SIGPLAN Notices, 2017
- DeepFix: Fixing Common C Language Errors by Deep LearningProceedings of the AAAI Conference on Artificial Intelligence, 2017
- sk_p: a neural program corrector for MOOCs2016
- Mining input grammars from dynamic taints2016
- Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation2014
- Automated testing of refactoring engines2007
- Controllable Combinatorial Coverage in Grammar-Based Testing2006
- Using production grammars in software testingACM SIGPLAN Notices, 1999
- Generating test data with enhanced context-free grammarsIEEE Software, 1990
- A sentence generator for testing parsersBIT Numerical Mathematics, 1972