A Linux Kernel Snapshot Fuzzer using KVM.
This fuzzer allows us to run snapshot instances of the linux kernel for use in fuzzing. This allows us incredible performance and determinism since we can control what gets executed inside the kernel and know about it. Performance has been possible because of the Kernel Virtual Machine (KVM). A bootloader allows us to boot linux, create a snapshot, fuzz, and restore all in KVM.
./LateRegistration <Path to bzImage> <initrd>
The OS Handler is a kernel module that allows the fuzz case runner to communicate with the hypervisor. Currently the kernel module is a character device that allows the fuzz case runner to issue IOCTL commands. Available commands are in fuzzRunner.h.
- Guest Memory Access System
- An API to access and modify vm memory. Useful for the breakpoint system
- Breakpoint System
- We place a breakpoint at the start of all kernel basic blocks. This allows us to track if we're hitting new kernel code
- Syscall Fuzzing
- Basic version of syscall fuzzing
- Likely restricted set because of parameters and structs
- Basic version of syscall fuzzing
- Device Driver Fuzzing
- Allows basic emulation of a physical device
- PCI, USB, Bluetooth, Network, etc...
- OS Handler
- Kernel Module that allows communication with a fuzz case runner and the harness