Crafting MP4 fuzzers: file format internals to structure-aware bugs
10 steps · about 3 h 27 min · Intermediate
- Introduction to fuzzing (doc, google/fuzzing, 15 min)
Start with the core idea of fuzzing before touching file formats.
- ISO base media file format (article, Wikipedia, 12 min)
Learn where MP4 comes from and how the ISOBMFF box hierarchy is standardized.
- MP4 and the ISO Base Media File Format (article, Emby, 15 min)
Walks through real boxes like ftyp, moov, mdat and stsd that fuzzers must respect.
- libFuzzer (doc, LLVM, 25 min)
Learn to write and run a basic coverage-guided fuzz target, the engine used on MP4 parsers.
- AFLplusplus (repo, AFLplusplus, 25 min)
The other major coverage-guided fuzzer, with a quick-start guide for compiling and running targets.
- Structure-Aware Fuzzing with libFuzzer (doc, google/fuzzing, 20 min)
The key technique for complex binary formats: custom mutators that keep inputs valid.
- FormatFuzzer: Effective Fuzzing of Binary File Formats (article, arXiv, 30 min)
See a format-specific fuzzer generator evaluated on MP4 among other binary formats.
- Uncovering GStreamer secrets (blog, GitHub Security Lab, 25 min)
Shows step by step how to build a valid-structure MP4 corpus generator for fuzzing.
- Fuzzing GStreamer: A Deep Dive into Media File Vulnerability Discovery (blog, minifyn, 20 min)
Goes deeper into the tree-based algorithm for generating valid MP4 box structures.
- Crafting Targeted MP4 Fuzzers (blog, Atredis Partners, 20 min)
The applied case study: pipeline-based and structure-aware fuzzing of the MP4 stsd atom in qtdemux.