LLM-Assisted Fuzzing
Using language models and coding agents for the human parts around a fuzzer — target selection, harness and generator synthesis, build repair, coverage-gap chasing, crash triage and patching — while a conventional engine (AFL++, libFuzzer, LibAFL, syzkaller) still does the high-throughput search.
How it works
- Division of labour. GHSL’s rule for its Fuzzing Taskflow: “the LLM agent owns the decisions, and the MCP tools own the execution” — the agent picks entrypoints, writes harnesses, reads LCOV and chooses the next gap; tools expose
run_afl_for-style primitives (GHSL Taskflow). xhack’s review of the evidence lands in the same place: the model drafts harnesses, seeds, build fixes and triage; the fuzzer finds bugs (xhack: AI fuzzing evidence). - Two search systems, two failure modes. LLMs search by hypothesis, fuzzers by state-space exploration; the useful unit is an evidence chain, not a plausible report (Evidence gate for generated harnesses).
- Complementary, not substitutive. Six months on V8: BigSleep 45 vulns vs Fuzzilli 37, ~25% overlap (20/81 actionable); BigSleep rediscovered ~62% of old Fuzzilli bugs from the introducing commit, found a different bug for ~12%, nothing for ~26% (P0: Fuzzilli vs BigSleep).
Techniques
Harness synthesis at scale
- OSS-Fuzz-Gen / harness synthesis: build the repo with generic heuristics, extract program analysis with Fuzz Introspector, synthesize harnesses with an LLM; emits OSS-Fuzz/ClusterFuzzLite projects from a GitHub URL (OSS-Fuzz harness synthesis). Google’s numbers: coverage extended to 272 C/C++ projects, +370k covered lines (one project 77 → 5,434 lines), 26 vulns incl. CVE-2024-9143 in OpenSSL (Evidence gate, xhack, ReversingLabs).
- Agent skills in OSS-Fuzz:
infra/experimental/agent-skills/shipsfuzzing-memory-unsafe-expert,-go-,-rust-,-jvm-,-python-expertandoss-fuzz-engineerskills for gemini-cli/Claude Code to onboard projects, raise coverage and fix broken builds (OSS-Fuzz agentic capabilities). - Local model: 8kSec drafts libFuzzer harnesses with a local LLM, builds with ASan and hits a stack overflow in
parse_records(8kSec). - ISSTA 2024: 736,430 generated drivers, on par with industry drivers but weak on APIs with intricate setup; >$8,000 tokens and 3.75 CPU-years (xhack).
- Hard targets: deepSURF uses LLM-augmented harnesses plus generic-type substitution for
unsafeRust — 6 new bugs across 27 crates (deepSURF); Metis LLM-synthesizes harnesses for rehosted EDK2 components (137 new bugs) and KernelGPT writes syzkaller specs — see Kernel Fuzzing. JANUS found six vendor Android bugs through agent-built harnesses (Oct '26 research briefing).
End-to-end agentic campaigns
| System | Loop | Result |
|---|---|---|
| GHSL Fuzzing Taskflow | repo → entrypoints → build → harness → AFL++ → LCOV gaps → custom mutators/dicts → ASan replay, dedup → report with root cause + patch; Claude Sonnet 5 default; run in disposable envs | open source ([[raw/github.blog/ai-powered-fuzzing-with-the-github-security-lab-taskflow-agent-12103 |
GPT-5.5-Cyber + Codex /goal (Trail of Bits, zlib) | Skipped static review, built ASan/UBSan builds, seeded from edge-case tests, harnesses over a dozen entrypoints (inflate, inflateBack, uncompress2, gzFile, MiniZip, puff, blast, infback9…); best harness constructed valid gz* states the OSS-Fuzz harness never reaches; rejected an unreachable null-callback crash | multiple findings in disclosure, “weeks of work in a day” ([[raw/blog.trailofbits.com/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-10085 |
| CERT.PL fuzzlab | LLM under strict procedural guidance: code analysis → test programs → classification → report | ModSecurity, VirtualBox vulns ([[raw/cert.pl/autonomous-fuzzing-process-under-llm-supervision-8215 |
| Bright STAR Fuzzer | 2-day run, target selection → harness → triage | High/Critical in 45% of projects; 37% of vulnerable projects already in OSS-Fuzz; 35-byte GIF → ~2 GB alloc (scrimage), 38-byte DDS (TwelveMonkeys) ([[raw/brightsec.com/agentic-fuzzing-across-multiple-open-source-projects-12525 |
| Remedio | LLM-generated fuzzer wrapping one image XObject in a minimal valid PDF, mutating width/height/bit depth/colour space/filter chain/samples | CVE-2026-81983, Acrobat 16-bit image 32-bit size multiply → OOB write ([[raw/remedio.io/we-let-ai-fuzz-adobe-reader-for-a-week-it-found-a-critical-zero-day-cv-12256 |
| Aisle | AI-native engine | CVEs in Wireshark, FFmpeg (9.8 heap overflow), Cursor, VS Code, Antigravity ([[raw/aisle.com/making-ai-guided-fuzzing-more-reliable-with-adversarial-probing-12524 |
| “Vibecoded” fuzzer | ad-hoc LLM-written fuzzer | FFmpeg division by zero ([[raw/code.ffmpeg.org/we-found-a-division-by-zero-bug-in-ffmpeg-with-a-vibecoded-fuzzer-11823 |
LLM as input/grammar generator
ChatAFL (RFC → message grammar), G2Fuzz (LLM writes Python generators, AFL++ does local search), GenEvo, Typos — detailed on Grammar-Based Fuzzing. MALF fine-tunes (QLoRA + RAG) for Modbus/S7Comm/EtherNet-IP and reports CNVD zero-days (MALF); Bishop Fox used AI assistance to refine a Python Sparkplug B (MQTT/ICS) fuzzer (Bishop Fox).
Beyond memory corruption
- Smart contracts: Wake 5 runs revm in-process (29,931 tx/s, 11.5x Echidna) and exposes static analysis to agents over MCP; agents hit all 153 Daedaluzz assertions in <80 min (Wake 5 paper, Wake 5). Agent-written tests reproduced 6/12 known OUSD bugs (human parity) but missed Drips’ only bug for lack of a scenario (ack3 evaluation). Echidna 2.4.0 adds MCP for interactive guidance (Echidna 2.4.0).
- Logic bugs in CI: LLM Fuzz CI has Codex/Claude Code generate adversarial inputs for marked pytest/vitest tests in a separate phase, then replays them in normal runs — no false positives, resists reward hacking (LLM Fuzz CI).
- What fuzzing misses: Gemini translates Go assembly and surviving bounds-check traps into Z3 constraints; Z3 synthesizes concrete reproducers for OOB panics fuzzing never hit (Gemini + Z3).
- Prompt injection: the Mutated Prompt Generator does divergent search over injection payloads to test patch generalization; resurfaced 19% of previously patched vulns internally — see Prompt Injection (DEF CON 34 MPG).
Closing the loop: repair and fixing
FuzzMedic repairs broken OSS-Fuzz builds via evidence-guided diagnosis over a repair-state graph: 48.44% repair rate, 29 patches merged (FuzzMedic). CodeRover-S uses the fuzz reproducer’s dynamic call graph to patch OSS-Fuzz bugs (CodeRover-S); Google wires OSS-Fuzz crashes into DeepMind’s CodeMender for validated patches (CodeMender).
Validation: the evidence gate
Compilation is gate 3 of 7, not the finish line. Gates: target selection → harness synthesis (smallest state machine, deterministic setup) → build (pinned toolchain, explicit sanitizers) → runtime health (survives normal input, resets state) → coverage delta vs baseline → crash evidence (deterministic replay, minimization, dedup, harness vs project ownership) → closure (root cause, fix tested, variants, provenance). Record an immutable manifest (commit, container digest, sanitizers, network: deny, harness/corpus/reproducer SHA-256, model run ID) — the agent generates and runs untrusted code, so the runner is attack surface (Evidence gate). Google documented a model correctly blaming a heap-UAF on the driver, not the project (same source). ToB: the value came from “a strict definition of what counted as a reportable finding” (ToB zlib). See also Fuzzing Harness Design.
Limits
Oracle problem (logic bugs need explicit checks), harness bugs (“a wrong harness fuzzes the harness”), intricate APIs (xhack); missing scenarios in agent-written property tests (ack3); maintainer burden from report floods (ToB).
Related
- Fuzzing
- Fuzzing Harness Design
- Grammar-Based Fuzzing
- Coverage-Guided Fuzzing
- Kernel Fuzzing
- Differential Fuzzing
- AI and LLM Security
- AI-Assisted Bug Bounty Hunting
- Prompt Injection
Sources
- AI-powered fuzzing with the GitHub Security Lab Taskflow Agent · original
- GitHub Security Lab open-sources Fuzzing Taskflow · original
- AI fuzzing: where AI helps and what the evidence shows · original
- LLM Fuzzing: Build an Evidence Gate for Generated Harnesses · original
- Fuzzers vs. AI: Comparing Fuzzilli and BigSleep on JavaScript Engines · original
- LLM-Based Harness Synthesis for Unfuzzed Projects · original
- Introducing agentic capabilities in OSS-Fuzz · original
- AI-based fuzzing targets open-source LLM vulnerabilities · original
- AI-Assisted Fuzzing: Generating libFuzzer Harnesses with a Local LLM · original
- deepSURF: Detecting Memory Safety Vulnerabilities in Rust Through Fuzzing LLM-Augmented Harnesses · original
- GPT-5.5-Cyber built a zlib fuzzing lab in a day · original
- Autonomous fuzzing process under LLM supervision · original
- Agentic Fuzzing Across Multiple Open Source Projects · original
- We Let AI Fuzz Adobe Reader for a Week. It Found a Critical Zero-Day CVE-2026-81983 · original
- Making AI-Guided Fuzzing More Reliable with Adversarial Probing · original
- We found a division by zero bug in FFmpeg with a vibecoded fuzzer · original
- MALF: A Multi-Agent LLM Framework for Intelligent Fuzzing · original
- Sparkplug B Protocol Fuzzing with AI Assistance · original
- Wake 5: a Python framework for Solidity testing, fuzzing and static analysis · original
- Introducing Wake 5: agent-written Solidity fuzzing in Python · original
- Evaluating agent-written fuzz tests · original
- Echidna 2.4.0: MCP support for interactive fuzzing and improved symbolic execution · original
- LLM Fuzz CI (Tiime Software) · original
- Catch Go bugs that fuzzing misses with Gemini and a constraint solver · original
- Catch Go bugs that fuzzing misses with Gemini and a constraint solver · original
- DEF CON 34: Finding prompt injection vulns via mutated prompt generation · original
- FuzzMedic: repairing fuzzing build breakages in OSS-Fuzz · original
- Fixing Security Vulnerabilities with AI in OSS-Fuzz · original
- From Finding to Fixing: reducing maintainer burden with automated patches · original
- October 26 research briefing (fuzzing papers: JANUS, Typos) · original