Lune

ISSTA2021Top-tier venue

Gramatron: effective grammar-aware fuzzing

Prashast Srivastava, Mathias Payer

Abstract

Fuzzers aware of the input grammar can explore deeper program states using grammar-aware mutations. Existing grammar-aware fuzzers are ineffective at synthesizing complex bug triggers due to: (i) grammars introducing a sampling bias during input generation due to their structure, and (ii) the current mutation operators for parse trees performing localized small-scale changes. Gramatron uses grammar automatons in conjunction with aggressive mutation operators to synthesize complex bug triggers faster. We build grammar automatons to address the sampling bias. It restructures the grammar to allow for unbiased sampling from the input state space. We redesign grammar-aware mutation operators to be more aggressive, i.e., perform large-scale changes. Gramatron can consistently generate complex bug triggers in an efficient manner as compared to using conventional grammars with parse trees. Inputs generated from scratch by Gramatron have higher diversity as they achieve up to 24.2% more coverage relative to existing fuzzers. Gramatron makes input generation 98% faster and the input representations are 24% smaller. Our redesigned mutation operators are 6.4× more aggressive while still being 68% faster at performing these mutations. We evaluate Gramatron across three interpreters with 10 known bugs consisting of three complex bug triggers and seven simple bug triggers against two Nautilus variants. Gramatron finds all the complex bug triggers reliably and faster. For the simple bug triggers, Gramatron outperforms Nautilus four out of seven times. To demonstrate Gramatron's effectiveness in the wild, we deployed Gramatron on three popular interpreters for a 10-day fuzzing campaign where it discovered 10 new vulnerabilities.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

41 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Minerva: browser API fuzzing with dynamic mod-ref analysis cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Minerva: browser API fuzzing with dynamic mod-ref analysis cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Minerva: browser API fuzzing with dynamic mod-ref analysis cites Fuzzing JavaScript Engines with Aspect-preserving Mutation
  • Minerva: browser API fuzzing with dynamic mod-ref analysis cites Evaluating Fuzz Testing
  • NAUTILUS: Fishing for Deep Bugs with Grammars cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • LibAFL: A Framework to Build Modular and Reusable Fuzzers cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Hopper: Interpretative Fuzzing for Libraries cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Hopper: Interpretative Fuzzing for Libraries cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • Towards Better Semantics Exploration for Browser Fuzzing cites Minerva: browser API fuzzing with dynamic mod-ref analysis
  • Towards Better Semantics Exploration for Browser Fuzzing cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Towards Better Semantics Exploration for Browser Fuzzing cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • Towards Better Semantics Exploration for Browser Fuzzing cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Towards Better Semantics Exploration for Browser Fuzzing cites Fuzzing JavaScript Engines with Aspect-preserving Mutation
  • Fuzzing JavaScript Engines with Aspect-preserving Mutation cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Fuzzing JavaScript Engines with Aspect-preserving Mutation cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • Fuzzing JavaScript Engines with Aspect-preserving Mutation cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Fuzzing JavaScript Engines with Aspect-preserving Mutation cites Evaluating Fuzz Testing
  • Evaluating Fuzz Testing cites Skyfire: Data-Driven Seed Generation for Fuzzing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers41

  1. LibAFL: A Framework to Build Modular and Reusable FuzzersAndrea Fioraldi, Dominik Christian Maier, Dongjia Zhang, Davide BalzarottiCCS 2022 · 71 citations
  2. Cascade: CPU Fuzzing via Intricate Program GenerationFlavien Solt, Katharina Ceesay-Seitz, Kaveh RazaviUSENIX Security 2024 · 46 citations
  3. Hopper: Interpretative Fuzzing for LibrariesPeng Chen, Yuxuan Xie, Yunlong Lyu, Yuxiao Wang et al.CCS 2023 · 23 citations
  4. Minerva: browser API fuzzing with dynamic mod-ref analysisChijin Zhou, Quan Zhang, Mingzhe Wang, Lihua Guo et al.FSE 2022 · 20 citations
  5. Towards Better Semantics Exploration for Browser FuzzingChijin Zhou, Quan Zhang, Lihua Guo, Mingzhe Wang et al.OOPSLA 2023 · 15 citations

Builds on7

  1. Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei et al.CCS 2018 · 753 citations
  2. Skyfire: Data-Driven Seed Generation for FuzzingJunjie Wang, Bihuan Chen, Lei Wei, Yang LiuS&P 2017 · 382 citations
  3. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig et al.NDSS 2019 · 291 citations
  4. CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 citations
  5. Fuzzing JavaScript Engines with Aspect-preserving MutationSoyeon Park, Wen Xu, Insu Yun, Daehee Jang et al.S&P 2020 · 126 citations

Related papers

  1. Repair-Driven Greybox FuzzingBachir Bendrissou, Alastair F. Donaldson, Cristian CadarISSTA 2026
  2. Token-Level FuzzingChristopher Salls, Chani Jindal, Jake Corina, Christopher Kruegel et al.USENIX Security 2021
  3. GRIMOIRE: Synthesizing Structure while FuzzingTim Blazytko, Cornelius Aschermann, Moritz Schlögel, Ali Abbasi et al.USENIX Security 2019 · 123 citations
  4. An Empirical Examination of Fuzzer Mutator PerformanceJames Kukucka, Luís Pina, Paul Ammann, Jonathan BellISSTA 2024 · 4 citations
  5. GrayC: Greybox Fuzzing of Compilers and Analysers for CKarine Even-Mendoza, Arindam Sharma, Alastair F. Donaldson, Cristian CadarISSTA 2023 · 52 citations
Dusk over the sea between two cliffs drawn in fine vertical lines