Typed Template Fuzzing
Lu Maltsis, Dominik Winterer
Key points
From the paper's conclusion- We introduce Typed Template Fuzzing (TTF), a lightweight LLM-based fuzzing methodology.
Abstract
Fuzzing software with complex inputs has been a longstanding challenge. Traditionally, fuzzers either programmatically encode language constraints, requiring significant engineering effort, or rely on users to declare grammars and constraints. Recent LLM-based fuzzers address these drawbacks but introduce new issues. Some use LLMs for test generation, sacrificing throughput and producing invalid inputs when the LLM makes mistakes. Others rely on language-specific parsers, static analysis, and AST manipulation libraries. We introduce Typed Template Fuzzing (TTF), a lightweight LLM-based fuzzing methodology. The key idea is to use LLMs in a preprocessing step to transform seeds into typed templates. The typed templates then enable semantically aware, mutation-based fuzzing without language-specific parsers, type checkers, or further LLM queries during fuzzing. By exploiting the correspondence between seeds and templates, TTF can moreover repair LLM mistakes. We have implemented TTF in our tool Typos, which we evaluate across 21 input languages, including C, C++, Go, Rust, SystemVerilog, Scala, and Java, as well as libraries such as PyTorch and Qiskit. In a six-month fuzzing campaign, we reported 135 bugs, 128 of which were previously unknown. Perhaps most notably, on average 96% of Typos's mutants are valid, coming close to the validity rates of domain-specific fuzzers. Our evaluation further shows Typos's benefits over the state of the art.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- AdapFuzz: Adaptive Seed Generation for FuzzersApplied Sciences · 2026
- RL–LLMfuzzer: reinforcement learning–guided dual–model differential fuzzing for compiler testingJournal of King Saud University - Computer and Information Sciences · 2026
- ToFu: Exploiting and Fuzzing the LLM-Orchestrator-Tool Trust BoundaryarXiv · 2026
- Repair-Driven Greybox FuzzingProceedings of the ACM on Software Engineering · 2026
- SmartFuzz: Leveraging Large Language Models and Feature Composition to Generate High-Quality Seeds for Database FuzzingProceedings of the ACM on Programming Languages · 2026
- Pattern-Guided Graph Synthesis for Suppressing Known Defects in DL Compiler FuzzingarXiv · 2026