基于模型的脚本合成方法用于模糊测试
model-based script synthesis for fuzzing
AI总结:
本文提出 WinkFuzz 方法,通过从系统调用轨迹中学习依赖关系并合成新的系统调用序列来引导内核模糊测试到达不同状态,实验显示系统调用数量增加 70.8% 且能有效发现崩溃。
摘要:
内核模糊测试对于发现关键内核漏洞至关重要。闭源(例如 Windows)操作系统内核模糊测试由于缺少源代码而更具挑战性。现有方法通过从系统代码的轨迹或静态分析中对系统调用序列进行建模来模糊测试内核。然而,一个常见的局限是它们不会学习和变异系统调用序列以到达不同的内核状态,这可能导致发现更多错误或崩溃。在本文中,我们提出 WinkFuzz,一种学习和变异所追踪系统调用序列以到达不同内核状态的方法。WinkFuzz 从轨迹中学习系统调用依赖关系,识别轨迹中可能存在依赖后续系统调用的潜在系统调用,并应用这些依赖关系在保持依赖关系的同时向轨迹中插入更多系统调用。然后 WinkFuzz 对合成的新系统调用序列进行模糊测试以发现系统崩溃。我们将 WinkFuzz 应用于四个种子应用程序,在三个插入级别内发现系统调用总数增加了 70.8%,成功率为 61%。追踪、依赖分析、恢复模型脚本和合成脚本的平均时间分别为 600、39、34 和 129 秒。即时模糊测试速率为每秒 3742 次系统调用执行。然而,当考虑初始化时间、等待时间和其他因素时,平均模糊测试效率下降到每秒 155 次系统调用执行。我们对每个种子应用程序进行了 24 秒的模糊测试,在该时间范围内平均获得了 12.25 次崩溃。
英文摘要:
Kernel fuzzing is important for finding critical kernel vulnerabilities. Close-source (e.g., Windows) operating system kernel fuzzing is even more challenging due to the lack of source code. Existing approaches fuzz the kernel by modeling syscall sequences from traces or static analysis of system codes. However, a common limitation is that they do not learn and mutate the syscall sequences to reach different kernel states, which can potentially result in more bugs or crashes. In this paper, we propose WinkFuzz, an approach to learn and mutate traced syscall sequences in order to reach different kernel states. WinkFuzz learns syscall dependencies from the trace, identifies potential syscalls in the trace that can have dependent subsequent syscalls, and applies the dependencies to insert more syscalls while preserving the dependencies into the trace. Then WinkFuzz fuzzes the synthesized new syscall sequence to find system crashes. We applied WinkFuzz to four seed applications and found a total increase in syscall number of 70.8\%, with a success rate of 61\%, within three insert levels. The average time for tracing, dependency analysis, recovering model script, and synthesizing script was 600, 39, 34, and 129 seconds respectively. The instant fuzzing rate is 3742 syscall executions per second. However, the average fuzz efficiency dropped to 155 syscall executions per second when the initializing time, waiting time, and other factors were taken into account. We fuzzed each seed application for 24 seconds and, on average, obtained 12.25 crashes within that time frame.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。