arXiv:2610.20315cs.CROct 2026

Manuscript Offprint

arXiv:2610.20315

Building Sound Evaluation Practices for Rust-Based Security Frameworks

David Paaßen, Lucas Davi

Abstract

Background: Rust is a modern programming language known for its focus on usability, concurrency, and security. However, empirical studies reveal that Rust is still affected by software vulnerabilities, with hundreds of memory safety issues found in Rust programs, including Rust's standard library. As a result, additional tool-assisted security testing is crucial to enhance the security of Rust code. Evaluating such tools, however, is highly complex. While there is substantial research on evaluating C/C++ security frameworks, including test sets, serious issues in published evaluations have been identified, undermining their scientific soundness and reproducibility. In practice, selecting an inadequate implementation (e.g., a fuzzer) can lead to missed vulnerabilities ultimately compromising a program's security. Aims: Our methodology aims to help researchers to conduct scientifically sound evaluations in order to prevent similar issues with the evaluation of security tools and frameworks in the Rust ecosystem. Method: We systematically analyze existing evaluation literature to develop the first sound methodology for Rust based evaluations. Our guidelines provide enough flexibility to support a variety of use cases. To quantify the performance of a security tool, we introduce an automated approach to inject unsafe code coverage oracles, which require no forward porting, avoid overfitting, and allow updating test sets in the future. We also present methods to quantify the diversity of a Rust test set, ensuring that the results are applicable to a large set of existing Rust programs. We practically apply our methodology in our evaluation of the most popular Rust fuzzers. Results: We show the practical applicability of our design and conduct an evaluation with a diverse test set of 20 Rust projects. Our evaluation shows that honggfuzz_rs and afl.rs provide a suitable baseline performance for future evaluations. However, none of the tested fuzzers consistently outperforms the competitors on all targets in our test set. Conclusions: Our work addresses a wide range of issues known from existing evaluation practices including inappropriate parameter choices and overfitting. We show the practical applicability of our framework and find that existing Rust fuzzers perform vastly different depending on the tested target and therefore there is no single best performing fuzzer for all use cases. We publish experimental data and corresponding code to enable other researchers to utilize our findings in future evaluations.

1 Introduction

Memory safety issues are the most prominent cause for vulnerabilities according to Microsoft [10] and Google [22]. Rust is one of the recommended ways to address the root cause of this problem [14, 35]. Rust utilizes extensive static analysis techniques to detect and prohibit potentially unsafe code patterns. For example, Rust's unique ownership model is used to prevent mutable aliasing. At the same time, Rust is able to minimize the number of run-time checks (e.g., bounds check) which ensures minimal performance impact. However, Rust's strict security policies cannot be upheld in all practical use cases [4]. Therefore, the Rust compiler allows programmers to write unsafe code, a trade-off between security and practicality as it gives programmers additional capabilities but the Rust compiler can no longer guarantee memory safety.

In practice, programmers regularly fail to properly use unsafe Rust which leads to vulnerabilities. The Rust Secure Code Working Group [41] has collected over 900 known vulnerabilities inside publicly available Rust code. This shows that there is still a need for additional security analysis of Rust code in real-world applications. To detect memory safety issues, fuzzing is one of the most practically relevant methods. Therefore, the Rust community has successfully adopted fuzzing to the Rust ecosystem and detected at least 360 different bugs 1^{1} in various open source projects. However, evaluating security tools such as fuzzers is not trivial, e.g., due to non-deterministic behavior.

We systematically analyze existing publications and identify a list of issues and recommendations regarding the evaluation of security tools. ① Comparing the number of crashes as reported by the fuzzer is insufficient [28, 30, 7] as multiple crashes can be triggered by the same bug. ② Automated de-duplications methods may overcount or undercount the number of real bugs found [28, 7] and even ③ manual crash de-duplication is prone to errors [30]. ④ Instead of metrics such as averages or mean values, evaluations need to be done using statistical significance tests [2, 28, 37, 7]. ⑤ Due to the requirement of statistical significance tests each experiment has to be repeated with a sufficient number of trials [2, 28, 37]. Evaluation of the results has to be done using ⑥ an appropriate effect size [2, 28] as well as ⑦ a sufficient run time [28, 37]. The test set should be a ⑧ diverse set of real-world programs of sufficient size [28, 30, 7] that are tested with ⑨ different seed sets [28]. ⑩ The overall code coverage as a sole evaluation metric for C/C++ programs is insufficient [28, 30, 7]. ⑪ Usage of real-world bugs introduces a set of different biases which severely limits their practical usefulness in evaluations [30, 7]. Furthermore, ⑫ obtaining perfect ground truth information for real-world programs is not possible in practice [37, 30]. Different factors can lead to overfitting issues including, ⑬ biased or arbitrary bug selection [7, 43], ⑭ arbitrary program selection [30], and ⑮ injection of bug oracles [24, 30, 43]. ⑯ Usability issues [54, 30] and ⑰ missing information [43] (e.g., program versions) prevent the reproducibility of evaluations. In existing Rust research [27, 34, 13, 50, 55], we find evaluations utilizing error-prone crash de-duplication methods (issue ②, ③), insufficient number of trials (issue ⑤) as well as inadequate maximum run times (issue ⑦). Evaluations conducted with a single seed set (issue ⑨) and inadequate test sets (issue ⑪) as we discuss in more detail in Section 3.4. This highlights

1^{1}https://github.com/rust-fuzz/trophy-case the need for a practical evaluation methodology for Rust programs [34].

Note that experts have conducted extensive evaluations on large test sets with a wide variety of fuzzers to test whether following existing recommendations is necessary in order to achieve scientifically sound and reproducible results. Li et al. [30] find that the employed evaluation metrics, as well as code instrumentation methods as well as compiler flags and crash de-duplication methods significantly change the measured performance of a fuzzer (issues ①–③). Paaßen et al. [37] report that using an insufficient number of trials, run time, or targets as well as bugs can affect the relative performance of tested fuzzers even when just one evaluation parameter is chosen incorrectly. The authors further analyze and discuss the influence of different seed sets as recommended by Klees et al. [28] and other evaluation parameters such as the threshold for p (issues ④, ⑤, ⑨, ⑭, ⑮). In 2024, Schloegel et al. [43] perform a literature study of 150 fuzzing papers published on renowned security conferences and show that evaluations continue to partially disregard the reported problems and existing recommendations for fuzzer evaluations. For example, most test programs (76%) are only used in a single experiment (issue ⑫), over half (55%) of all analyzed evaluations are done with less than ten trials (issue ⑤), and 63% of all experiments are evaluated without an appropriate statistical significance test (issue ④). Schloegel et al. further conduct reproducibility studies for eight publications and discuss issues of the respective experiments and implementations.

Note that scientifically unsound evaluations result in faulty conclusions about the performance of the fuzzer or security tool, which in practice, causes vulnerabilities to stay undetected which in turn leads to false assumptions regarding the security of a program. Furthermore, using fuzzers that deliver sub optimal performance is potentially wasting millions of CPU hours as fuzzers are used to run experiments spanning over several months or even years, e.g., Google OSS-Fuzz [44] or Microsoft Project OneFuzz [9].

Based on the above discussion, we conclude that despite the extensive research on the evaluation of security tools, even recent evaluations published on top-tier academic conferences are commonly conducted with improper parameters, such as insufficient number of trials or improper test sets. To address and prevent similar issues for future Rust-based evaluations, we are the first to develop a reasonable methodology to create a test set and provide a set of evaluation guidelines to properly assess the performance of Rust security frameworks, including fuzzers, to enable reproducible and scientifically sound results. We systematically analyze existing research and justify our design choices based on recommendations and guidelines published in studies on reputable conferences. We further discuss Rust specific challenges and how we address them throughout this study.

We argue that our test set and methodology helps future researchers to improve the quality of their evaluations and prevent non-reproducibility and related issues known from existing evaluations of tools and frameworks targeting C and C++ code [43]. Furthermore, our work allows researchers to create novel test sets to address new or different requirements imposed by changes in the Rust landscape or update existing test sets to ensure the results are practically relevant. In summary, our contributions to address the previously identified issues are the following:

• We provide a methodology to create diverse Rust test sets (20 projects) based on real-world programs (issue 8◯\textcircled{8}) ranging from projects with just two thousand lines of code and eight dependencies up to over 80k lines of code with 578 dependencies. 59% of all dependencies are only present in a single test target, further proving that our test set contains implementations for vastly different application domains. Such quantifiable metrics ensure that the program choice includes a wide variety of different program types (issue 14◯\textcircled{14}).

• We utilize unsafe code coverage as an evaluation metric (issues 1◯−3◯\textcircled{1}-\textcircled{3}, 11◯−14◯\textcircled{11}-\textcircled{14}) and provide an implementation that automatically injects code coverage oracles into programs that utilize unsafe Rust. Our oracles are not prone to the same overfitting problems (issue 15◯\textcircled{15}) of existing approaches (see Section 3.2). Contrary to overall code coverage, our metric is based on code that can lead to vulnerabilities due to the fact that the execution of unsafe code is required [39, 48] in order to exploit a vulnerability (issue 11◯\textcircled{11}).

• Throughout the paper, we further discuss Rust specific challenges when testing Rust programs and discuss how to address them.

• We employ statistical significance tests (issue 4◯\textcircled{4}) and utilize a standardized effect size (issue 6◯\textcircled{6}). Each experiment is executed for 24h (issue 7◯\textcircled{7}) and repeated 30 times (issue 5◯\textcircled{5}). We compare the results with a default as well as an empty seed set (issue 10◯\textcircled{10}).

• We utilize our evaluation design to test the most popular Rust fuzzers in order to show the capabilities of our work in practice. We find that with a non-empty seed set, afl.rs and honggfuzz_rs clearly outperform cargo_fuzz with statistical significance on six and eight targets, respectively. honggfuzz_rs is able to execute four unsafe code locations that the other fuzzers do not cover while afl.rs is able to do the same with one unsafe code location.

• We discuss the information required to reproduce a Rust based evaluation and publish all related data (issue 16◯\textcircled{16}, 17◯\textcircled{17}) including fuzzing harnesses of the tested targets (see Section 7).

References (39)