μAFL: Non-intrusive Feedback-driven Fuzzing for Microcontroller Firmware
μAFL is a hardware-in-the-loop fuzzing approach for microcontroller firmware that uses the debug dongle to bridge a PC-based fuzzer with the target device. It leverages the ARM ETM hardware debugging feature to transparently collect instruction traces on the device, avoiding costly code instrumentation. To handle the obscure raw ETM data, it proposes an alternative code coverage representation that maintains the same path sensitivity as the original AFL algorithm but works directly on the raw data without instruction disassembly. The DWT hardware feature selectively collects runtime information to reduce workload. Evaluated on NXP and STMicroelectronics boards, μAFL discovered ten zero-day bugs in the STMicroelectronics SDK and three in the NXP SDK, with eight CVEs allocated.