CKGFuzzer: LLM-Based Fuzz Driver Generation Enhanced By Code Knowledge Graph
Hanxiang Xu, Wei Ma, Ting Zhou, Yanjie Zhao, Kai Chen, Qiang Hu, Yang, Liu, Haoyu Wang

TL;DR
CKGFuzzer is an automated fuzz testing approach that leverages a code knowledge graph and large language models to generate effective fuzz drivers, improving code coverage and bug detection while reducing manual effort.
Contribution
It introduces a novel method that uses a code knowledge graph and LLMs to automate fuzz driver creation and input seed generation, enhancing fuzz testing efficiency and effectiveness.
Findings
Achieved 8.73% higher code coverage than existing methods.
Reduced manual review workload by 84.4%.
Detected 11 bugs, including 9 new ones.
Abstract
In recent years, the programming capabilities of large language models (LLMs) have garnered significant attention. Fuzz testing, a highly effective technique, plays a key role in enhancing software reliability and detecting vulnerabilities. However, traditional fuzz testing tools rely on manually crafted fuzz drivers, which can limit both testing efficiency and effectiveness. To address this challenge, we propose an automated fuzz testing method driven by a code knowledge graph and powered by an LLM-based intelligent agent system, referred to as CKGFuzzer. We approach fuzz driver creation as a code generation task, leveraging the knowledge graph of the code repository to automate the generation process within the fuzzing loop, while continuously refining both the fuzz driver and input seeds. The code knowledge graph is constructed through interprocedural program analysis, where each…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Reliability and Analysis Research · Electric and Hybrid Vehicle Technologies
