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

程序环境模糊测试

Program Environment Fuzzing

Ruijie Meng, Gregory J. Duck, Abhik Roychoudhury

AI总结:

本文提出一种基于灰盒模糊测试扩展的程序环境模糊测试方法,通过记录系统调用并选择性变异来搜索导致崩溃的环境,无需人工环境建模,其 EnvFuzz 工具在真实软件中发现 33 个未知缺陷(含 16 个 CVE)。

摘要:

计算机程序并非孤立执行,而是与驱动程序行为的执行环境进行交互。因此,软件验证方法需要捕捉可能复杂的环境交互效果。程序环境可能来自文件、数据库、配置、网络套接字、人机交互等。符号执行和模型检测中环境捕捉的传统方法采用环境建模,这需要人工努力。在本文中,我们采用一种基于灰盒模糊测试扩展的不同方法。给定一个程序,我们首先以系统调用的形式记录内核/用户模式边界上所有观察到的环境交互。接下来,我们在原始记录的交互下重放程序,但这次应用选择性变异,以获得不同程序环境的效果——所有这些都无需环境建模。通过在模糊测试活动中进行重复的(反馈驱动的)变异,我们可以搜索导致崩溃行为的程序环境。我们的 EnvFuzz 工具在知名的真实世界协议实现和 GUI 应用程序中发现了 33 个以前未知的缺陷。其中许多是安全漏洞,并分配了 16 个 CVE。

英文摘要:

Computer programs are not executed in isolation, but rather interact with the execution environment which drives the program behaviors. Software validation methods thus need to capture the effect of possibly complex environmental interactions. Program environments may come from files, databases, configurations, network sockets, human-user interactions, and more. Conventional approaches for environment capture in symbolic execution and model checking employ environment modeling, which involves manual effort. In this paper, we take a different approach based on an extension of greybox fuzzing. Given a program, we first record all observed environmental interactions at the kernel/user-mode boundary in the form of system calls. Next, we replay the program under the original recorded interactions, but this time with selective mutations applied, in order to get the effect of different program environments -- all without environment modeling. Via repeated (feedback-driven) mutations over a fuzzing campaign, we can search for program environments that induce crashing behaviors. Our EnvFuzz tool found 33 previously unknown bugs in well-known real-world protocol implementations and GUI applications. Many of these are security vulnerabilities and 16 CVEs were assigned.

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

↑