CovRL:基于覆盖引导的强化学习驱动的LLM变异JavaScript引擎模糊测试
CovRL: Fuzzing JavaScript Engines with Coverage-Guided Reinforcement Learning for LLM-based Mutation
AI总结:
本文提出CovRL技术,通过TF-IDF构建加权覆盖率图并结合强化学习将覆盖率反馈直接集成到LLM变异器中,显著提升了JavaScript引擎模糊测试的代码覆盖率与漏洞发现能力。
摘要:
模糊测试是一种有效的漏洞发现技术,但在处理像JavaScript引擎这样需要精确语法输入的复杂系统时常常力不从心。最近,研究人员采用语言模型在模糊测试中进行上下文感知变异来解决此问题。然而,现有技术在利用覆盖率指导模糊测试方面存在局限,覆盖率指导多是以黑盒方式进行的。本文提出了一种名为CovRL(Coverage-guided Reinforcement Learning)的新技术,将大型语言模型(LLMs)与来自覆盖率反馈的强化学习相结合。我们的模糊测试器CovRL-Fuzz利用词频-逆文档频率(TF-IDF)方法构建加权覆盖率图,将覆盖率反馈直接集成到LLM中。该图是计算模糊测试奖励的关键,随后通过强化学习将其应用于基于LLM的变异器。通过这种方法,CovRL-Fuzz能够生成更有可能发现新覆盖区域的测试用例,从而提高漏洞检测能力,同时最大限度地减少语法和语义错误,且无需额外的后处理。我们的评估结果表明,CovRL-Fuzz在代码覆盖率和漏洞发现能力方面优于最先进的模糊测试器:CovRL-Fuzz在最新的JavaScript引擎中识别出48个真实世界的安全相关漏洞,包括39个以前未知的漏洞和11个CVE。
英文摘要:
Fuzzing is an effective bug-finding technique but it struggles with complex systems like JavaScript engines that demand precise grammatical input. Recently, researchers have adopted language models for context-aware mutation in fuzzing to address this problem. However, existing techniques are limited in utilizing coverage guidance for fuzzing, which is rather performed in a black-box manner. This paper presents a novel technique called CovRL (Coverage-guided Reinforcement Learning) that combines Large Language Models (LLMs) with reinforcement learning from coverage feedback. Our fuzzer, CovRL-Fuzz, integrates coverage feedback directly into the LLM by leveraging the Term Frequency-Inverse Document Frequency (TF-IDF) method to construct a weighted coverage map. This map is key in calculating the fuzzing reward, which is then applied to the LLM-based mutator through reinforcement learning. CovRL-Fuzz, through this approach, enables the generation of test cases that are more likely to discover new coverage areas, thus improving vulnerability detection while minimizing syntax and semantic errors, all without needing extra post-processing. Our evaluation results indicate that CovRL-Fuzz outperforms the state-of-the-art fuzzers in terms of code coverage and bug-finding capabilities: CovRL-Fuzz identified 48 real-world security-related bugs in the latest JavaScript engines, including 39 previously unknown vulnerabilities and 11 CVEs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。