Fuzzing and vulnerability discovery
Algorithms
- Mutation-based fuzzing
Makes new inputs by random bit flips, byte changes, insertions and splices of seed inputs, with no feedback from the program.
1 languagesintro - Crash bucketing
Groups crashes from fuzzing into likely distinct bugs by hashing the top frames of their call stacks.
1 languagescore - Seed corpus minimization
Chooses a small set of seed inputs that keeps the coverage of a large corpus, by a greedy or weighted set cover.
1 languagescore - Buffer overrun detection by range analysis
Models C strings by allocated size and used length, generates integer range constraints and flags uses where the length may exceed the size.
1 languagesadvanced - Directed greybox fuzzing
Steers greybox fuzzing toward chosen target sites by giving more energy to seeds whose paths are closer to the targets in the call and control graphs.
1 languagesadvanced - Hybrid fuzzing
Runs a greybox fuzzer and calls concolic execution only when the fuzzer is stuck, to solve the branch conditions it cannot pass.
1 languagesadvanced - Power schedule for fuzzing
Gives more mutations to seeds that reach rare paths, by modeling greybox fuzzing as a Markov chain over paths.
1 languagesadvanced - Protocol state fuzzing
Learns the state machine of a protocol implementation with active automata learning and checks it for unexpected states and transitions.
1 languagesadvanced - Vulnerability signature generation
Builds a filter that matches every input that reaches a known vulnerability, as a regular expression, a symbolic constraint or a Turing machine.
1 languagesadvanced - Input-to-state correspondence
Solves magic byte and checksum comparisons by finding operands of comparisons that appear in the input and patching them directly.
1 languagesresearch
Data structures
- Edge coverage bitmap
A small array indexed by a hash of the previous and current basic block that counts edge hits in buckets, used as fuzzer feedback.
1 languagescore - Code property graph
Merges the syntax tree, control flow graph and program dependence graph into one graph, queried by graph traversals to find vulnerable patterns.
1 languagesadvanced
Techniques
- Fuzz testing
Runs a program on many generated or mutated inputs and watches for crashes, hangs and failed checks.
intro - Automatic exploit generation
The research problem of finding a bug by program analysis and deciding whether some input turns it into an attack, studied to measure attacker ability and to guide defenses.
research - Patch-based exploit generation
The finding that a published patch reveals the flaw it fixes, so attacks on unpatched hosts can be derived automatically; the lesson is to deliver patches fast and all at once.
research
Concepts
- Software vulnerability
A flaw in a program that an attacker can trigger to break its confidentiality, integrity or availability.
intro - Format string vulnerability
Passing untrusted data as the format argument of a printf-like function, so that the data, not the program, decides which arguments the function reads.
core - Exponential cost of vulnerability discovery
An empirical law of fuzzing, measured in campaigns and explained by a species model, that each new bug found in a fixed time takes exponentially more machines.
research
Models
- Software testing as species discovery
Models fuzzing as sampling species from an ecology and uses the Good-Turing estimator to estimate the chance that the next input finds new behavior.
research