arXiv:2608.28016cs.CRAug 2026

Manuscript Offprint

arXiv:2608.28016

The Impact of Magma: A Ground-Truth Fuzzing Benchmark

Ahmad Hazimeh, Adrian Herrera, Srividya Subramanian, Thaqiya Aman, Sara Vaccino, Qiang Liu, Mathias Payer

Ahmad Hazimeh*

EPFL; BugScale

ahmad@hazimeh.dev

Adrian Herrera†

Australian National University; Interrupt Labs

adrian.herrera02@gmail.com

Srividya Subramanian§

ETHZ; EPFL

srividya.ssa@gmail.com

Thaqiya Aman¶

Presidency University Bangalore; EPFL

thaqiyaaman@gmail.com

Sara Vaccino

EPFL

sara.vaccino@epfl.ch

Qiang Liu‡

EPFL

cyruscyliu@gmail.com

Mathias Payer

EPFL

mathias.payer@nebelwelt.net

Abstract—Magma is an open-source and ground-truth fuzzing benchmark that enables uniform fuzzer evaluation and comparison. Magma was originally released with a research paper published at ACM SIGMETRICS 2021. This short paper explains the motivation, the design, and the impact of Magma, with a description of extensions to the original benchmark.

Index Terms—fuzzing benchmark, bug reaching, bug triggering

1. Introduction

Fuzzing is a widely-used dynamic bug discovery technique that feeds randomly generated inputs to a target program to trigger bugs, which is successful in finding bugs in open-source [1] and commercial off-the-shelf [2, 55, 3] software. This success has resulted in an explosion of new techniques claiming to improve bug-finding performance [44]. To highlight improvements, these techniques are typically evaluated across a range of metrics, including: (i) crash counts; and/or (ii) code-coverage profiles. While these metrics provide some insight into a fuzzer's performance, they are insufficient for use in fuzzer comparisons.

The simplest fuzzer evaluation method is to count and compare the number of crashes triggered by fuzzers on the same target. Unfortunately, crash counts often inflate the number of actual bugs in the target [27]. Moreover, deduplication techniques (e.g., coverage profiles, stack hashes) are imprecise because they fail to accurately identify the root cause of these crashes [27, 8].

Code-coverage profiles are another performance metric commonly used to evaluate and compare fuzzing techniques. Intuitively, covering more code correlates with finding more bugs. However, previous work [27] has shown that there is a weak correlation between coverage-deduplicated crashes and ground-truth bugs, implying that higher coverage does not necessarily indicate better fuzzer effectiveness.

The deficiencies of existing performance metrics call for a rethinking of fuzzer evaluation practices. In particular, the performance metrics used in these evaluations must accurately measure a fuzzer's ability to achieve its main objective: finding bugs. Furthermore, the targets that are used to assess how well a fuzzer meets this objective must be realistic and exercise diverse behavior. This allows a practitioner to have confidence that a given fuzzing technique will yield improvements in finding real-world bugs.

To satisfy these criteria, we present Magma, a ground-truth fuzzer benchmark based on real programs with real bugs. Magma consists of seven widely-used open-source libraries and applications, totaling 2 MLOC (see Section 2.1). For each Magma program, we manually analyze security-relevant bug reports and patches, reinserting defective code back into these seven programs (in total, 118 bugs were analyzed and reinserted) (see Section 2.2). Additionally, each reinserted bug is accompanied by a light-weight oracle that detects and reports if the bug is reached (i.e., the bug code location is executed) or triggered (i.e., the bug condition is satisfied) (see Section 2.3). This distinction between reaching and triggering a bug—in addition to a fuzzer's ability to detect a triggered bug—presents a new opportunity to evaluate a fuzzer across multiple dimensions (again, focusing on ground-truth bugs). Magma is open-source and available at https://hexhive.epfl.ch/magma/.

References (75)