<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Irina Nicolae on Medium]]></title>
        <description><![CDATA[Stories by Irina Nicolae on Medium]]></description>
        <link>https://medium.com/@irina.nicolae?source=rss-462579cdcf80------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DpDeyvdnJf2db4DS</url>
            <title>Stories by Irina Nicolae on Medium</title>
            <link>https://medium.com/@irina.nicolae?source=rss-462579cdcf80------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 17:22:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@irina.nicolae/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Challenges of reproducibility in science]]></title>
            <link>https://medium.com/security-garten/challenges-of-reproducibility-in-science-1400ff05382f?source=rss-462579cdcf80------2</link>
            <guid isPermaLink="false">https://medium.com/p/1400ff05382f</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[fuzzing]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Irina Nicolae]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 16:01:30 GMT</pubDate>
            <atom:updated>2023-12-20T16:01:30.754Z</atom:updated>
            <content:encoded><![CDATA[<h3>Challenges of reproducibility in science: case study of ML-guided fuzzing</h3><p>Many academic researchers will tell you a disconcerting truth: replicating the results of published papers is a daunting challenge, with many claims proving elusive in practice. Being part of an industrial research organization, we often apply academic research to solve practical problems. Our recent focus has been on exploring the potential of machine learning (ML) to enhance security testing, specifically through ML-guided fuzzing techniques. We investigated a particular technique called neural program smoothing (NPS), pioneered by <a href="https://www.computer.org/csdl/proceedings-article/sp/2019/666000a803/1dlwhajEjAc">Neuzz</a>, hoping to leverage the promising results claimed by the associated papers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*Pa8pqjcY8v9JF_oEpE-8Bw.png" /></figure><p>Our investigation is now published at <a href="https://2023.esec-fse.org/details/fse-2023-research-papers/67/Revisiting-Neural-Program-Smoothing-for-Fuzzing">ESEC/FSE</a> 2023, and our keys contributions are:</p><ul><li><strong>Challenge of performance claims</strong>: Our investigation found that the original performance claims for NPS fuzzers did not hold up, which we traced back to <strong>experimental limitations</strong> in prior works.</li><li><strong>Implementation of </strong><a href="https://github.com/boschresearch/neuzzplusplus"><strong>Neuzz++</strong></a>: To address these limitations, we implemented Neuzz++ as a variation of the existing Neuzz, integrating it as a custom mutator for AFL++, a state-of-the-art gray-box fuzzer. This integration allowed for a mix of machine learning-produced test cases and standard mutations. Despite these improvements, our study found that NPS methods were still outperformed by conventional gray-box fuzzers​​.</li><li><strong>Introduction of </strong><a href="https://github.com/boschresearch/mlfuzz"><strong>MLFuzz</strong></a><strong>:</strong> We also created MLFuzz, a benchmarking framework specifically designed for evaluating ML-based fuzzers. This framework aims to facilitate reproducible and fair comparisons between different fuzzing approaches​​.</li></ul><p>Both Neuzz++ and MLFuzz are open source.</p><h3>What is neural program smoothing?</h3><p>Neural program smoothing, a specific family of machine learning-guided fuzzers, aims to use a neural network as a <em>smooth</em> approximation of the software under test for new test case generation. NPS has been studied in the following papers:</p><ul><li><a href="https://www.computer.org/csdl/proceedings-article/sp/2019/666000a803/1dlwhajEjAc">NEUZZ: Efficient Fuzzing with Neural Program Smoothing</a></li><li><a href="https://dl.acm.org/doi/10.1145/3368089.3409723">MTFuzz: Fuzzing with a Multi-task Neural Network</a></li><li><a href="https://ieeexplore.ieee.org/document/9794082">Evaluating and Improving Neural Program-Smoothing-based Fuzzing</a></li></ul><p>Traditional programs are discrete, discontinuous and often complex, with behaviors that can change abruptly based on input values. In contrast, a smoothed version approximates these behaviors as differentiable functions, making them easier for machine learning algorithms to analyze and predict the program’s responses to a wide range of inputs. This smoothing process essentially distills the program into a neural network, allowing for more effective generation of test cases in fuzzing.</p><p>From this smooth approximation, NPS uses a gradient-based mutation inspired by adversarial examples: for a given input, the gradient’s output with respect to the input is calculated. The gradient essentially shows the direction in which to change the input to most significantly alter the output, according to the model. These gradients are then used to guide the mutation of test inputs. Inputs modified in the direction that the gradient suggests are more likely to explore new paths or behaviors in the program, thus increasing coverage and potentially uncovering bugs.</p><figure><img alt="Diagram of neural program smoothing for fuzzing" src="https://cdn-images-1.medium.com/max/1024/1*4tZgh912xIXlxPpX9sRFnw.png" /><figcaption>Fig. 1 Overview of neural program smoothing for fuzzing</figcaption></figure><h3>Uncovering the limitations of neural program smoothing</h3><p>Our investigation led us to uncover the following limitations:</p><ul><li><strong>Conceptual limitations:<br></strong>– <strong>Targeting capability</strong>: The effectiveness of gradient-guided mutations in reaching targeted coverage is bounded by the low performance of the neural network. We show for the first time that the neural network does not learn to predict code coverage accurately; its predictions are mostly trivial and almost constant, independently of the input. We trace this deficiency back to the quality of the dataset produced during fuzzing and used for neural network training.<br>– <strong>Incomplete coverage bitmaps</strong>: NPS suffers from incomplete coverage bitmaps, as it only includes edges that were covered at least once previously through fuzzing. This defeats the purpose of using the neural network specifically to target and discover unseen edges.</li><li><strong>Evaluation limitations:<br></strong>– <strong>Experimental protocol:</strong> Recent NPS studies lack comparisons with modern gray-box fuzzers like AFL++ and libFuzzer, which achieve state-of-the-art performance. Moreover, HavocMAB’s use of the same binary target for both AFL and AFL++ skews the evaluation​​.<br>– <strong>Fuzzer configuration for speed:</strong> Previous studies often use compilers that make the programs slow, impacting fuzzing speed. Additionally, they do not employ AFL’s more efficient persistent mode, which can significantly increase throughput​​. Therefore, state-of-the-art fuzzers are slowed down to a point where they lose their competitive advantage of speed.</li></ul><p>More broadly, these findings are aligned with <a href="https://andreas-zeller.blogspot.com/2019/10/when-results-are-all-that-matters-case.html">prior critical analyses</a> of gradient application to mutation guiding in fuzzing.</p><h3>Experimental validation</h3><p>To tackle the implementation and evaluation limitations, we implemented <a href="https://github.com/boschresearch/neuzzplusplus">Neuzz++</a>, integrating it as a custom mutator for AFL++, and <a href="https://github.com/boschresearch/mlfuzz">MLFuzz</a>, a benchmarking framework specifically designed for evaluating ML-based fuzzers. Based on these improvements, we performed extensive benchmark (&gt;11 CPU years and &gt;5.5 GPU years), but could not get close to any of the previously claimed results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUPLWyZfDl-RM5uBT4CzZA.png" /><figcaption>Fig. 2 Average code coverage over 30 runs (best value in bold, second best underlined)</figcaption></figure><p>AFL++ consistently outperformed other tools suggesting that addressing NPS implementation issues alone in Neuzz++ is insufficient to surpass state-of-the-art gray-box fuzzers. <strong>NPS for fuzzing neither reaches its advertised performance, nor does it surpass older fuzzing techniques that are still state-of-the-art</strong>, such as AFL. Note that all NPS fuzzers were claiming better performance than AFL in the original papers. We show that is not the case when fuzzers are configured for performance, as recommended by the community and tools’ documentations. We believe the conceptual limitations of NPS fuzzing explained above prevent it from being effective in practice.</p><h3>The need for reproducible research</h3><p>Our extensive benchmark underscores a broader issue in academic research: the challenge of reproducing study results, a problem not limited to ML-guided fuzzers. Despite the difficulties and lack of incentives for validating academic papers in practice, this is crucial for the scientific process. We encourage academic conferences to prioritize modalities that seek to reproduce and validate existing studies, such as artifact reviews, reproducibility studies and the recent <a href="https://reproducible.cs.princeton.edu/">Leakage and the Reproducibility Crisis in ML-based Science</a> workshop.</p><p>Our full paper, implementation details and benchmarks are available for further exploration. We hope our work inspires rigorous validation in the academic community, reinforcing the integrity of scientific research.</p><p><strong>Resources</strong></p><ul><li>Paper: <a href="https://dl.acm.org/doi/10.1145/3611643.3616308">Revisiting neural program smoothing for fuzzing</a></li><li><a href="https://github.com/boschresearch/neuzzplusplus">Neuzz++</a> repo</li><li><a href="https://github.com/boschresearch/mlfuzz">MLFuzz</a> repo</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1400ff05382f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/security-garten/challenges-of-reproducibility-in-science-1400ff05382f">Challenges of reproducibility in science</a> was originally published in <a href="https://medium.com/security-garten">Security Garten</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>