Skip to main content
QUICK REVIEW

[Paper Review] Montage: A Neural Network Language Model-Guided JavaScript Engine Fuzzer

Suyong Lee, Hyung-Seok Han|arXiv (Cornell University)|Jan 13, 2020
Software Testing and Debugging TechniquesComputer Science41 references31 citations
TL;DR

Montage uses an NNLM trained on AST fragments to guide fuzzing of JS engines, mutating regression tests to uncover new vulnerabilities and CVEs across modern engines.

ABSTRACT

JavaScript (JS) engine vulnerabilities pose significant security threats affecting billions of web browsers. While fuzzing is a prevalent technique for finding such vulnerabilities, there have been few studies that leverage the recent advances in neural network language models (NNLMs). In this paper, we present Montage, the first NNLM-guided fuzzer for finding JS engine vulnerabilities. The key aspect of our technique is to transform a JS abstract syntax tree (AST) into a sequence of AST subtrees that can directly train prevailing NNLMs. We demonstrate that Montage is capable of generating valid JS tests, and show that it outperforms previous studies in terms of finding vulnerabilities. Montage found 37 real-world bugs, including three CVEs, in the latest JS engines, demonstrating its efficacy in finding JS engine bugs.

Motivation & Objective

  • Motivate leveraging NNLMs to detect JS engine vulnerabilities by exploiting patterns in CVEs and regression tests.
  • Propose a fragment-based representation of JS ASTs to train neural language models on syntactic and semantic relationships.
  • Develop a workflow that mutates regression tests by NNLM-suggested fragments to generate executable JS tests.
  • Evaluate Montage against state-of-the-art fuzzers on ChakraCore and modern engines for vulnerability discovery.

Proposed method

  • Transform JS ASTs into sequences of depth-one fragments to train NNLMs.
  • Train an LSTM-based model to predict the next fragment given a fragment sequence and AST context.
  • Mutate seed regression tests by replacing subtrees with NNLM-suggested fragments and resolve reference errors.
  • Measure effectiveness by running multiple 72-hour fuzzing campaigns and comparing found bugs to CodeAlchemist, jsfunfuzz, and IFuzzer.
  • Compare Montage’s fragment-based NNLM approach to random, Markov, and character/token-level NNLM baselines.

Experimental results

Research questions

  • RQ1Can NNLM-guided fragmentation reveal patterns in regression tests that lead to new JS engine vulnerabilities?
  • RQ2Do fragments capture syntactic and semantic relationships that improve fuzzing effectiveness over traditional approaches?
  • RQ3How effective is Montage at discovering real-world bugs and CVEs across major JS engines?
  • RQ4What is the impact of using fragments versus traditional token-based or grammar-based generation for JS fuzzing?

Key findings

  • Montage found 133 bugs including 15 security bugs in ChakraCore 1.4.1 over five 72-hour campaigns.
  • Among the security bugs, Montage found 9, 12, and 12 bugs that CodeAlchemist, jsfunfuzz, and IFuzzer did not find respectively.
  • Montage found 37 unique bugs across ChakraCore, JavaScriptCore, and V8, including three security bugs.
  • 34 of the 37 bugs were found in ChakraCore; the rest were in JavaScriptCore and V8.
  • Montage discovered multiple CVEs among the security bugs, demonstrating effectiveness in real-world engines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.