{"ID":6138085,"CreatedAt":"2026-07-09T01:07:32.349475501Z","UpdatedAt":"2026-07-11T05:01:04.438793932Z","DeletedAt":null,"paper_url":"https://arxiv.org/abs/2607.07007","arxiv_id":"2607.07007","title":"Thinking More, Harnessing Better: State Machine Guided Harness Automatic Generation with Project Digestion and Workflow Decomposition","abstract":"High-quality fuzz harnesses are essential for effective gray-box fuzzing. While Large Language Models (LLMs) offer promise for automating this task, existing one-turn generation methods suffer from hallucinations and inadequate coverage due to coarse-grained function targeting and misaligned generation workflows. We present SynapseFlow, an automatic harness generator that addresses these limitations through two key innovations: dataflow-aware function aggregation and a staged, rollback-enabled generation workflow decomposition. SynapseFlow first analyzes source code to construct Structural Flow Graphs and extract coherent Function Triplets. It then synthesizes harnesses via a decomposed four-stage process governed by a staged rollback algorithm to ensure correctness. We evaluated SynapseFlow on 25 real-world open-source software projects. The experimental results indicate that SynapseFlow outperforms state-of-the-art tools (OSS-Fuzz-Gen, CKGFuzzer, PromeFuzz), achieving 3.07$\\times$, 1.71$\\times$, and 4.26$\\times$ higher branch coverage, and 1.77$\\times$, 1.51$\\times$, and 1.36$\\times$ higher bug detection rates, respectively. Most importantly, SynapseFlow discovered 7 previously unreported bugs (5 assigned CVEs), demonstrating its practical effectiveness in real-world bug discovery.","short_abstract":"High-quality fuzz harnesses are essential for effective gray-box fuzzing. While Large Language Models (LLMs) offer promise for automating this task, existing one-turn generation methods suffer from hallucinations and inadequate coverage due to coarse-grained function targeting and misaligned generation workflows. We pr...","url_abs":"https://arxiv.org/abs/2607.07007","url_pdf":"https://arxiv.org/pdf/2607.07007v1","authors":"[\"Xing Zhang\",\"Zikang Huang\",\"Gang Yang\",\"CongChong Wang\",\"Lu Liu\",\"Bin Yin\",\"Mingyi Wang\",\"Ziquan Zhao\",\"Min Li\",\"Zhenyu Chen\",\"Bo Wu\",\"Lingyun Ying\"]","published":"2026-07-08T05:04:28Z","proceeding":"cs.CR","tasks":"[\"cs.CR\",\"cs.SE\"]","methods":"[\"Large Language Model\",\"Language Model\"]","has_code":false}
