State-Aware Fuzzing of JavaScript Engines with LLM-Guided Instrumentation
StateLens uses LLM-guided instrumentation to fuzz JavaScript engines and found 68 bugs.
StateLens is a fuzzing framework that uses large language models to instrument hidden internal states in JavaScript engines, where ordinary edge coverage plateaus. Agent-style reasoning walks code and developer comments to place high-signal probes, then a dual-feedback loop steers fuzzing toward unexplored semantics such as JIT tiers and hidden-class transitions. The authors report that StateLens beats prior fuzzers and uncovered 68 new bugs. No CVE identifiers or in-the-wild exploitation are stated.
- StateLens targets hidden JS-engine states missed by edge coverage.
- LLM agents pick instrumentation from code and developer comments.
- Dual feedback guides fuzzing toward unexplored engine semantics.
- The evaluation reports 68 new bugs over prior fuzzers.
Full article202 words · extracted from arxiv.org · click to collapse
The security of the modern web depends on the correctness of JavaScript (JS) engines, yet these complex systems remain vulnerable to high-impact bugs. A critical limitation of state-of-the-art fuzzers is the coverage plateau: once a fuzzer saturates the control-flow graph, edge coverage loses its ability to guide discovery. Because complex engine behaviors, such as JIT optimization tiers and hidden class transitions, often share identical edge coverage, standard coverage metrics are blind to the distinct internal states required to trigger deep errors. To bridge this gap, we present StateLens, a framework that employs Large Language Models (LLM) to automate the discovery of deep internal states. Blindly placing instrumentation probes at all states is infeasible due to the vast state space and the high runtime overhead. StateLens introduces a novel agent-based reasoning pipeline that emulates the intuition of a security researcher. By iteratively traversing code and developer comments, our agents intelligently select high-value instrumentation targets, effectively separating logic-driving state variables from irrelevant data. This results in synthesizable, high-signal feedback probes that map the engine's hidden configurations. This instrumentation feeds a dual-feedback mechanism, effectively guiding the fuzzer toward unexplored engine semantics. Our evaluation confirms that StateLens significantly outperforms state-of-the-art fuzzers and uncovering 68 new bugs.
Text extracted automatically; images, tables and formatting may be missing. Original: https://arxiv.org/abs/2609.24550