AutoDiDact:基于推断结构的输入约简
AutoDiDact: Input Reduction over Inferred Structure
AI总结:
AutoDiDact无需语法,通过从失败输入推断中性词与分隔符对,结合分层Delta调试缩小输入,在输出大小接近语法方法的同时减少调用次数,可处理模糊测试的畸形输入。
摘要:
Delta调试通过删除失败输入的片段来缩小输入,仅当预言机确认失败仍存在时才保留删除操作。它仅根据输入长度进行分块,因此删除操作会切断标识符、分隔组等单元,导致预言机调用浪费且输出仍较大。当前最先进的结构化约简器通过提供语法或内置格式知识避免了这一问题。本文证明结构化约简无需这些:中性词和分隔符对已足够,且两者均可通过仅询问Delta调试已向预言机提出的问题(失败是否仍存在)从失败输入中推断得出。中性词(如空格)插入在单元之间而非内部时会保留失败,因此可将输入拆分为标记;分隔符对是两个标记,仅当同时添加或删除时会保留失败,因此它们界定的范围可作为一个单元约简。我们对两者进行形式化,说明预言机何时可揭示它们,并以有限的调用次数学习它们。AutoDiDact通过分层Delta调试(HDD)缩小所得的范围树,并跨每个标记的出现次数进行收缩。在来自18个格式家族的125个输入中,AutoDiDact在75个输入中找到了中性词;在这些输入上,其输出比字节级Delta调试小83%,几何平均调用次数少37%(含推断过程)。节省量随输入大小增长,在至少10 KiB的输入上分别达到98%和87%。无需语法时,AutoDiDact的输出大小与基于语法的HDD相当,但调用次数为其3.85倍,且比C-Reduce的语言无关模式少54%的调用。由于仅需预言机,AutoDiDact可最小化模糊测试工具发现的任何内容,包括畸形输入。
英文摘要:
Delta debugging reduces a failing input by deleting chunks of it, keeping a deletion only if an oracle confirms the failure persists. It chunks the input based only on its length, so its deletions cut through units such as identifiers and delimited groups, wasting calls and leaving outputs large. Current state-of-the-art structural reducers avoid this by supplying grammars or built-in format knowledge. We show that structured reduction needs neither: a neutral word and delimiter pairs suffice, and both can be inferred from the failing input by asking only what delta debugging already asks its oracle: does the failure persist? A neutral word, such as a space, preserves the failure when inserted between such units but not inside them, so it splits the input into tokens. A delimiter pair is two tokens that preserve the failure only when added or removed together, so the span they bound can be reduced as a unit. We formalize both, state when the oracle can reveal them, and learn each with a bounded number of calls. AutoDiDact reduces the resulting tree of spans by hierarchical delta debugging (HDD) and shrinks each token across its occurrences. AutoDiDact finds a neutral word in 75 of 125 inputs from 18 format families. On these, it returns outputs 83% smaller than byte-level delta debugging with 37% fewer calls on geometric mean, inference included. The savings grow with input size, to 98% and 87% on inputs of at least 10 KiB. Without a grammar, AutoDiDact matches grammar-based HDD in output size at 3.85 times its calls, and uses 54% fewer calls than C-Reduce's language-agnostic mode. Because it needs only the oracle, AutoDiDact can minimize whatever a fuzzer finds, malformed inputs included.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。