Abstract
SeedAIchemy is an automated tool that leverages Large Language Models (LLMs) to generate high-quality seed corpora for fuzz testing. Instead of direct file synthesis, it utilizes LLMs to brainstorm diverse search queries to mine the internet for real-world files. This approach achieves 97% of the performance of expert-curated datasets for minimal API costs, significantly outperforming naive and automated baselines.
Introduction
Fuzzing is a critical technique in software security, involving the systematic testing of programs with random inputs to identify vulnerabilities. However, the effectiveness of a fuzzer is heavily dependent on its "seeds"—the initial set of valid files used as a starting point. Providing a diverse and complex corpus helps the fuzzer reach deeper code paths. Unfortunately, manually collecting such files is a tedious task requiring significant security expertise. Many developers resort to "naive" seeds, which limits the fuzzer's efficacy and security coverage.
Methods: LLM as a Curator
SeedAIchemy shifts the role of the LLM from a creator of binary files to an intelligent curator. It uses LLMs to generate search terms that find existing, structurally diverse files on the web.
The system employs five parallel modules to maximize diversity:
- GitHub Search: Generates queries for repositories likely to contain relevant file assets (e.g., "jpg assets").
- Web Search: Creates general search queries for specific file types.
- Feature-Driven Web Search: The "secret sauce" where the LLM identifies complex file format features (e.g., "PDF with embedded Javascript") to ensure structural diversity.
- Bug Tracker Search: Targets historical bug report attachments from Launchpad and Bugzilla—files that have already proven they can trigger edge cases.
- Common Crawl Search: Performs deterministic searches through massive web archives.
Post-collection, files are filtered by size, deduplicated, and minimized using standard tools like afl-cmin to create an efficient seed set.
Evaluation and Results
The researchers evaluated SeedAIchemy using the Magma benchmark (v1.2), which contains real-world programs (like OpenSSL and SQLite3) with known bugs. They compared it against a naive baseline, G2FUZZ (a script-generation tool), and a gold-standard expert-curated corpus.
Key findings include:
- Bug Discovery: SeedAIchemy triggered 1.7x more unique bugs than the naive approach and found 34 out of 35 bugs identified by experts (97% performance).
- Cost Efficiency: The cost to generate a full corpus is approximately $0.06 in LLM tokens, making high-quality fuzzing accessible to any developer.
- Code Coverage: It achieved 91% of the code coverage of the expert-curated corpus, significantly outperforming automated baselines.
Key Insights
The primary takeaway is that search is superior to synthesis. The internet is a vast repository of "weird" files that exercise edge cases; LLMs are more effective as librarians finding these files than as factories building them from scratch. Furthermore, diversity via prompting—asking the LLM for unique features—ensures broad code path exploration. Finally, bug trackers serve as a high-yield source for seeds that have historically triggered complex logic.
Limitations and Future Work
While promising, the study was limited to the AFL++ fuzzer. Future research should evaluate effectiveness across different engines like libFuzzer. Additionally, while the authors mitigated "time-travel" bias (finding the original bug-reporting files), further ablation studies are needed to determine which of the five modules contributes most to the tool's success.
Summary updated