# 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 ([[raw/github.blog/ai-powered-fuzzing-with-the-github-security-lab-taskflow-agent-12103|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 ([[raw/xhack.io/ai-fuzzing-where-ai-helps-and-what-the-evidence-shows-14699|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 ([[raw/paulo.seg.br/llm-fuzzing-build-an-evidence-gate-for-generated-harnesses-12526|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% ([[raw/projectzero.google/fuzzers-vs-ai-comparing-fuzzilli-and-bigsleep-on-javascript-engines-12406|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 ([[raw/blog.oss-fuzz.com/llm-based-harness-synthesis-for-unfuzzed-projects-3907|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 ([[raw/paulo.seg.br/llm-fuzzing-build-an-evidence-gate-for-generated-harnesses-12526|Evidence gate]], [[raw/xhack.io/ai-fuzzing-where-ai-helps-and-what-the-evidence-shows-14699|xhack]], [[raw/reversinglabs.com/ai-based-fuzzing-targets-open-source-llm-vulnerabilities-7790|ReversingLabs]]). - **Agent skills in OSS-Fuzz:** `infra/experimental/agent-skills/` ships `fuzzing-memory-unsafe-expert`, `-go-`, `-rust-`, `-jvm-`, `-python-expert` and `oss-fuzz-engineer` skills for gemini-cli/Claude Code to onboard projects, raise coverage and fix broken builds ([[raw/blog.oss-fuzz.com/introducing-agentic-capabilities-in-oss-fuzz-13291|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` ([[raw/8ksec.io/ai-assisted-fuzzing-generating-libfuzzer-harnesses-with-a-local-llm-13289|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 ([[raw/xhack.io/ai-fuzzing-where-ai-helps-and-what-the-evidence-shows-14699|xhack]]). - **Hard targets:** deepSURF uses LLM-augmented harnesses plus generic-type substitution for `unsafe` Rust — 6 new bugs across 27 crates ([[raw/arxiv.org/deepsurf-detecting-memory-safety-vulnerabilities-in-rust-through-fuzzi-4883|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 ([[raw/midkernel.com/october-26-research-briefing-fuzzing-papers-janus-typos-12821|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|GHSL]], [[raw/aicoder.com/github-security-lab-open-sources-fuzzing-taskflow-12684|aicoder]]) | | 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|ToB zlib]]) | | 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|CERT.PL]]) | | 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|Bright]]) | | 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|Remedio]]) | | 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|Aisle]]) | | "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|FFmpeg]]) | ### 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 ([[raw/arxiv.org/malf-a-multi-agent-llm-framework-for-intelligent-fuzzing-2918|MALF]]); Bishop Fox used AI assistance to refine a Python Sparkplug B (MQTT/ICS) fuzzer ([[raw/bishopfox.com/sparkplug-b-protocol-fuzzing-with-ai-assistance-8580|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 ([[raw/arxiv.org/wake-5-a-python-framework-for-solidity-testing-fuzzing-and-static-anal-14066|Wake 5 paper]], [[raw/ack3.ai/introducing-wake-5-agent-written-solidity-fuzzing-in-python-14922|Wake 5]]). Agent-written tests reproduced 6/12 known OUSD bugs (human parity) but missed Drips' only bug for lack of a scenario ([[raw/ack3.ai/evaluating-agent-written-fuzz-tests-14828|ack3 evaluation]]). Echidna 2.4.0 adds MCP for interactive guidance ([[raw/github.com/echidna-2-4-0-mcp-support-for-interactive-fuzzing-and-improved-symboli-14562|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 ([[raw/tiime-software.github.io/llm-fuzz-ci-tiime-software-12686|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 ([[raw/developers.googleblog.com/catch-go-bugs-that-fuzzing-misses-with-gemini-and-a-constraint-solver-14413|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]] ([[raw/cpebuddy.com/def-con-34-finding-prompt-injection-vulns-via-mutated-prompt-generatio-13786|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 ([[raw/arcxiv.org/fuzzmedic-repairing-fuzzing-build-breakages-in-oss-fuzz-13467|FuzzMedic]]). CodeRover-S uses the fuzz reproducer's dynamic call graph to patch OSS-Fuzz bugs ([[raw/arxiv.org/fixing-security-vulnerabilities-with-ai-in-oss-fuzz-4884|CodeRover-S]]); Google wires OSS-Fuzz crashes into DeepMind's CodeMender for validated patches ([[raw/blog.google/from-finding-to-fixing-reducing-maintainer-burden-with-automated-patch-13634|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 ([[raw/paulo.seg.br/llm-fuzzing-build-an-evidence-gate-for-generated-harnesses-12526|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" ([[raw/blog.trailofbits.com/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-10085|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 ([[raw/xhack.io/ai-fuzzing-where-ai-helps-and-what-the-evidence-shows-14699|xhack]]); missing scenarios in agent-written property tests ([[raw/ack3.ai/evaluating-agent-written-fuzz-tests-14828|ack3]]); maintainer burden from report floods ([[raw/blog.trailofbits.com/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-10085|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 - [[raw/github.blog/ai-powered-fuzzing-with-the-github-security-lab-taskflow-agent-12103|AI-powered fuzzing with the GitHub Security Lab Taskflow Agent]] - [[raw/aicoder.com/github-security-lab-open-sources-fuzzing-taskflow-12684|GitHub Security Lab open-sources Fuzzing Taskflow]] - [[raw/xhack.io/ai-fuzzing-where-ai-helps-and-what-the-evidence-shows-14699|AI fuzzing: where AI helps and what the evidence shows]] - [[raw/paulo.seg.br/llm-fuzzing-build-an-evidence-gate-for-generated-harnesses-12526|LLM Fuzzing: Build an Evidence Gate for Generated Harnesses]] - [[raw/projectzero.google/fuzzers-vs-ai-comparing-fuzzilli-and-bigsleep-on-javascript-engines-12406|Fuzzers vs. AI: Comparing Fuzzilli and BigSleep on JavaScript Engines]] - [[raw/blog.oss-fuzz.com/llm-based-harness-synthesis-for-unfuzzed-projects-3907|LLM-Based Harness Synthesis for Unfuzzed Projects]] - [[raw/blog.oss-fuzz.com/introducing-agentic-capabilities-in-oss-fuzz-13291|Introducing agentic capabilities in OSS-Fuzz]] - [[raw/reversinglabs.com/ai-based-fuzzing-targets-open-source-llm-vulnerabilities-7790|AI-based fuzzing targets open-source LLM vulnerabilities]] - [[raw/8ksec.io/ai-assisted-fuzzing-generating-libfuzzer-harnesses-with-a-local-llm-13289|AI-Assisted Fuzzing: Generating libFuzzer Harnesses with a Local LLM]] - [[raw/arxiv.org/deepsurf-detecting-memory-safety-vulnerabilities-in-rust-through-fuzzi-4883|deepSURF: Detecting Memory Safety Vulnerabilities in Rust Through Fuzzing LLM-Augmented Harnesses]] - [[raw/blog.trailofbits.com/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-10085|GPT-5.5-Cyber built a zlib fuzzing lab in a day]] - [[raw/cert.pl/autonomous-fuzzing-process-under-llm-supervision-8215|Autonomous fuzzing process under LLM supervision]] - [[raw/brightsec.com/agentic-fuzzing-across-multiple-open-source-projects-12525|Agentic Fuzzing Across Multiple Open Source Projects]] - [[raw/remedio.io/we-let-ai-fuzz-adobe-reader-for-a-week-it-found-a-critical-zero-day-cv-12256|We Let AI Fuzz Adobe Reader for a Week. It Found a Critical Zero-Day CVE-2026-81983]] - [[raw/aisle.com/making-ai-guided-fuzzing-more-reliable-with-adversarial-probing-12524|Making AI-Guided Fuzzing More Reliable with Adversarial Probing]] - [[raw/code.ffmpeg.org/we-found-a-division-by-zero-bug-in-ffmpeg-with-a-vibecoded-fuzzer-11823|We found a division by zero bug in FFmpeg with a vibecoded fuzzer]] - [[raw/arxiv.org/malf-a-multi-agent-llm-framework-for-intelligent-fuzzing-2918|MALF: A Multi-Agent LLM Framework for Intelligent Fuzzing]] - [[raw/bishopfox.com/sparkplug-b-protocol-fuzzing-with-ai-assistance-8580|Sparkplug B Protocol Fuzzing with AI Assistance]] - [[raw/arxiv.org/wake-5-a-python-framework-for-solidity-testing-fuzzing-and-static-anal-14066|Wake 5: a Python framework for Solidity testing, fuzzing and static analysis]] - [[raw/ack3.ai/introducing-wake-5-agent-written-solidity-fuzzing-in-python-14922|Introducing Wake 5: agent-written Solidity fuzzing in Python]] - [[raw/ack3.ai/evaluating-agent-written-fuzz-tests-14828|Evaluating agent-written fuzz tests]] - [[raw/github.com/echidna-2-4-0-mcp-support-for-interactive-fuzzing-and-improved-symboli-14562|Echidna 2.4.0: MCP support for interactive fuzzing and improved symbolic execution]] - [[raw/tiime-software.github.io/llm-fuzz-ci-tiime-software-12686|LLM Fuzz CI (Tiime Software)]] - [[raw/developers.googleblog.com/catch-go-bugs-that-fuzzing-misses-with-gemini-and-a-constraint-solver-14413|Catch Go bugs that fuzzing misses with Gemini and a constraint solver]] - [[raw/developers.googleblog.com/catch-go-bugs-that-fuzzing-misses-with-gemini-and-a-constraint-solver-14565|Catch Go bugs that fuzzing misses with Gemini and a constraint solver]] - [[raw/cpebuddy.com/def-con-34-finding-prompt-injection-vulns-via-mutated-prompt-generatio-13786|DEF CON 34: Finding prompt injection vulns via mutated prompt generation]] - [[raw/arcxiv.org/fuzzmedic-repairing-fuzzing-build-breakages-in-oss-fuzz-13467|FuzzMedic: repairing fuzzing build breakages in OSS-Fuzz]] - [[raw/arxiv.org/fixing-security-vulnerabilities-with-ai-in-oss-fuzz-4884|Fixing Security Vulnerabilities with AI in OSS-Fuzz]] - [[raw/blog.google/from-finding-to-fixing-reducing-maintainer-burden-with-automated-patch-13634|From Finding to Fixing: reducing maintainer burden with automated patches]] - [[raw/midkernel.com/october-26-research-briefing-fuzzing-papers-janus-typos-12821|October 26 research briefing (fuzzing papers: JANUS, Typos)]]