Abstract
dc:description.abstractFuzz-testing has become a very effective technique for finding software security vulnerabilities and ensuring robustness of software systems. Perhaps the most influential advances in fuzzing are using grammars to intelligently generate structured test inputs and using execution data such as code coverage from the system under test to guide the fuzzing process. Grammars have been developed through decades of research in formal language theory, which has also produced highly optimized parsing algorithms for textual data. However, the nature of binary data presents a different set of problems as even tokenization is context-dependent. Our first contribution is a comparison of the features and limitations of several popular or otherwise interesting binary parsing frameworks. Our second, main contribution is demonstrating that grammars are useful both for guiding fuzzers when execution data is not readily available and for identifying potentially erroneous output data. Grammars describe complexity in the structure of input and output data which may be reflected in code branches in the system under test. We construct feature vectors which encode the structure of inputs and use these to guide the fuzzing process towards diverse input structures. We compare code coverage and coverage of input grammar features while fuzzing Knot DNS server using the LibAFL framework, comparing standard and grammar-based feedback algorithms.
Degree
thesis:*- Department dc:contributor.department
- Electrical and Computer Engineering
- Grantor
- Queen's University at Kingston
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Fryer, Andrew
- Advisor dc:contributor.supervisor
-
- Dean, Thomas
Subjects
dc:subject × 5Rights
dc:rights- Statement dc:rights
-
- Attribution-ShareAlike 4.0 International
- Licence dc:rights.uri
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/1974/32883