Skip to main content
QUICK REVIEW

[Paper Review] Nyx-Net: Network Fuzzing with Incremental Snapshots

Sergej Schumilo, Cornelius Aschermann|VU Research Portal|Nov 4, 2021
Software Testing and Debugging TechniquesComputer Science57 references14 citations
TL;DR

Nyx-Net is a novel snapshot-based fuzzing framework that enables high-performance, coverage-guided fuzzing of complex, stateful network services by using incremental, whole-vm snapshots and selective network stack emulation. It achieves up to 300x speedup over state-of-the-art methods and discovers previously unknown bugs in targets like Lighttpd, MySQL client, and Firefox’s IPC interface.

ABSTRACT

Coverage-guided fuzz testing ("fuzzing") has become mainstream and we have observed lots of progress in this research area recently. However, it is still challenging to efficiently test network services with existing coverage-guided fuzzing methods. In this paper, we introduce the design and implementation of Nyx-Net, a novel snapshot-based fuzzing approach that can successfully fuzz a wide range of targets spanning servers, clients, games, and even Firefox's Inter-Process Communication (IPC) interface. Compared to state-of-the-art methods, Nyx-Net improves test throughput by up to 300x and coverage found by up to 70%. Additionally, Nyx-Net is able to find crashes in two of ProFuzzBench's targets that no other fuzzer found previously. When using Nyx-Net to play the game Super Mario, Nyx-Net shows speedups of 10-30x compared to existing work. Under some circumstances, Nyx-Net is even able play "faster than light": solving the level takes less wall-clock time than playing the level perfectly even once. Nyx-Net is able to find previously unknown bugs in servers such as Lighttpd, clients such as MySQL client, and even Firefox's IPC mechanism - demonstrating the strength and versatility of the proposed approach. Lastly, our prototype implementation was awarded a $20.000 bug bounty for enabling fuzzing on previously unfuzzable code in Firefox and solving a long-standing problem at Mozilla.

Motivation & Objective

  • Address the challenge of efficiently fuzzing complex, stateful network services that are difficult to harness with traditional coverage-guided fuzzers.
  • Overcome limitations of existing approaches—such as network latency, state pollution, and unreliable cleanup—by using hypervisor-based snapshots.
  • Enable effective fuzzing of previously unfuzzable targets, including servers, clients, games, and IPC mechanisms, without requiring source code or custom harnesses.
  • Improve test throughput and code coverage by decoupling test execution from real network I/O through selective network stack emulation.
  • Demonstrate practical applicability and security impact by discovering new vulnerabilities in production systems like Firefox, Lighttpd, and MySQL.

Proposed method

  • Leverages hypervisor-based incremental snapshots to achieve near-native performance and deterministic reset between test cases.
  • Introduces selective emulation of network I/O operations to avoid the overhead of real network traffic while preserving protocol fidelity.
  • Uses Nyx as a foundation and enhances it with network-aware snapshoting, triggering snapshots when the target is about to receive fuzzer-supplied input.
  • Employs a lightweight agent to monitor and control network stack behavior during fuzzing, enabling precise timing and state management.
  • Applies coverage-guided mutation and feedback to guide input generation, ensuring high code coverage across complex message-passing protocols.
  • Supports binary-only fuzzing, allowing direct testing of precompiled binaries from standard repositories without source code or manual harnessing.

Experimental results

Research questions

  • RQ1How can coverage-guided fuzzing be effectively applied to complex, stateful network services that are not amenable to traditional file-based fuzzing?
  • RQ2To what extent can incremental, whole-vm snapshots improve fuzzing performance and reliability compared to real network I/O or non-incremental snapshoting?
  • RQ3Can selective network stack emulation reduce fuzzing overhead while maintaining sufficient fidelity to trigger real bugs in production network protocols?
  • RQ4What is the impact of Nyx-Net on test throughput and code coverage when applied to real-world targets such as Firefox’s IPC, Lighttpd, and Super Mario Bros.?
  • RQ5Can Nyx-Net discover previously unknown vulnerabilities in production systems that remain undetected by existing fuzzers?

Key findings

  • Nyx-Net achieves up to 300x higher test throughput compared to state-of-the-art network fuzzing techniques, significantly accelerating vulnerability discovery.
  • The framework improves code coverage by up to 70% on average, enabling deeper exploration of complex network protocol surfaces.
  • It discovered two previously unknown bugs in ProFuzzBench targets that no other fuzzer had found, demonstrating its superior exploration capability.
  • In gameplay fuzzing of Super Mario Bros., Nyx-Net achieved 10–30x speedup over prior approaches and even solved levels in less wall-clock time than a perfect human playthrough.
  • The prototype enabled successful fuzzing of Firefox’s previously unfuzzable IPC interface, leading to a $20,000 bug bounty and responsible disclosure of three null pointer dereferences and two exploitable vulnerabilities.
  • Nyx-Net uncovered an integer underflow in Lighttpd’s malloc implementation that was patched before release, highlighting its effectiveness in real-world security testing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.