Crafting MP4 fuzzers: file format internals to structure-aware bugs

10 steps · about 3 h 27 min · Intermediate

  1. Introduction to fuzzing (doc, google/fuzzing, 15 min)

    Start with the core idea of fuzzing before touching file formats.

  2. ISO base media file format (article, Wikipedia, 12 min)

    Learn where MP4 comes from and how the ISOBMFF box hierarchy is standardized.

  3. 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.

  4. libFuzzer (doc, LLVM, 25 min)

    Learn to write and run a basic coverage-guided fuzz target, the engine used on MP4 parsers.

  5. AFLplusplus (repo, AFLplusplus, 25 min)

    The other major coverage-guided fuzzer, with a quick-start guide for compiling and running targets.

  6. Structure-Aware Fuzzing with libFuzzer (doc, google/fuzzing, 20 min)

    The key technique for complex binary formats: custom mutators that keep inputs valid.

  7. FormatFuzzer: Effective Fuzzing of Binary File Formats (article, arXiv, 30 min)

    See a format-specific fuzzer generator evaluated on MP4 among other binary formats.

  8. Uncovering GStreamer secrets (blog, GitHub Security Lab, 25 min)

    Shows step by step how to build a valid-structure MP4 corpus generator for fuzzing.

  9. 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.

  10. 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.