arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.02103cs.CR
收藏

令牌级模糊

Token-Level Fuzzing

Christopher Salls, Chani Jindal, Jake Corina, Christopher Kruegel, Giovanni Vigna

摘要:

Fuzzing已经成为一种常用的方法来识别复杂的,真实世界的程序中的错误。然而,众所周知,解释器很难有效地进行模糊处理,因为它们期望高度结构化的输入,而大多数模糊突变很少产生这些输入。对于这类程序,基于语法的模糊已被证明是有效的。基于这种方法的工具可以在解析解释器输入后执行的代码中找到bug,方法是在生成和变更测试用例时遵循特定于语言的规则。不幸的是,基于语法的模糊检测通常无法发现与语言语法的解析和处理相关的细微错误。此外,如果提供给模糊器的语法不完整,或者与实现不完全匹配,则模糊器将无法执行可用功能的重要部分。在本文中,我们提出了一种新的模糊技术,称为令牌级模糊。令牌级模糊化不是在字节级或语法级应用变化,而是在令牌级应用变化。进化模糊器可以利用这种技术来生成成功解析的输入,并生成不严格符合语法的输入。因此,所提出的方法可以发现错误,无论是字节级模糊,也基于语法的模糊不能发现。我们通过修改AFL和模糊四个流行的JavaScript引擎来评估令牌级模糊,发现了29个以前未知的错误,其中几个无法用最先进的字节级和基于语法的模糊器找到。

英文摘要:

Fuzzing has become a commonly used approach to identifying bugs in complex, real-world programs. However, interpreters are notoriously difficult to fuzz effectively, as they expect highly structured inputs, which are rarely produced by most fuzzing mutations. For this class of programs, grammar-based fuzzing has been shown to be effective. Tools based on this approach can find bugs in the code that is executed after parsing the interpreter inputs, by following language-specific rules when generating and mutating test cases. Unfortunately, grammar-based fuzzing is often unable to discover subtle bugs associated with the parsing and handling of the language syntax. Additionally, if the grammar provided to the fuzzer is incomplete, or does not match the implementation completely, the fuzzer will fail to exercise important parts of the available functionality. In this paper, we propose a new fuzzing technique, called Token-Level Fuzzing. Instead of applying mutations either at the byte level or at the grammar level, Token-Level Fuzzing applies mutations at the token level. Evolutionary fuzzers can leverage this technique to both generate inputs that are parsed successfully and generate inputs that do not conform strictly to the grammar. As a result, the proposed approach can find bugs that neither byte-level fuzzing nor grammar-based fuzzing can find. We evaluated Token-Level Fuzzing by modifying AFL and fuzzing four popular JavaScript engines, finding 29 previously unknown bugs, several of which could not be found with state-of-the-art byte-level and grammar-based fuzzers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑