LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzing

Hongxiang Zhang, Yuyang Rong, Yifeng He, Hao Chen
6/11/2024
38 citations
cs.CRcs.AIcs.SE

No official code found. Best implementation: SecurityLab-UCD/LLAMAFUZZ (24 stars, Python, last commit 2024-12-03).

Abstract

Greybox fuzzing has achieved success in revealing bugs and vulnerabilities in programs. However, randomized mutation strategies have limited the fuzzer's performance on structured data.

Show full abstract

Specialized fuzzers can handle complex structured data, but require additional efforts in grammar and suffer from low throughput. In this paper, we explore the potential of utilizing the Large Language Model to enhance greybox fuzzing for structured data. We utilize the pre-trained knowledge of LLM about data conversion and format to generate new valid inputs. We further fine-tuned it with paired mutation seeds to learn structured format and mutation strategies effectively. Our LLM-based fuzzer, LLAMAFUZZ, integrates the power of LLM to understand and mutate structured data to fuzzing. We conduct experiments on the standard bug-based benchmark Magma and a wide variety of real-world programs. LLAMAFUZZ outperforms our top competitor by 41 bugs on average. We also identified 47 unique bugs across all trials. Moreover, LLAMAFUZZ demonstrated consistent performance on both bug trigger and bug reached. Compared to AFL++, LLAMAFUZZ achieved 27.19% more branches in real-world program sets on average. We also demonstrate a case study to explain how LLMs enhance the fuzzing process in terms of code coverage.

View on arXivView PDF

Code Implementations(1)

[AST'26] LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzing

242PythonOct 4, 20231 years ago

Similar Papers

Cite this paper

@article{zhang2024llamafuzz,
  title  = {LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzing},
  author = {Hongxiang Zhang and Yuyang Rong and Yifeng He and Hao Chen},
  year   = {2024},
  eprint = {2406.07714},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.07714v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.07714.svg)](https://codeofpaper.com/paper/2406.07714)

Discussion