arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.02312cs.SE
收藏

线性时间时序逻辑引导的灰盒模糊算法

Linear-time Temporal Logic guided Greybox Fuzzing

Ruijie Meng, Zhen Dong, Jialin Li, Ivan Beschastnikh, Abhik Roychoudhury

摘要:

软件模型检验是一种广泛用于检验软件系统时态特性的验证技术。尽管它是一种属性验证技术,但它在实践中的常见用法是“bug查找”,即查找对时态属性的违反。出于这种观察和利用模糊的最新进展,我们建立了一个灰盒模糊框架,以发现违反线性时间时序逻辑(LTL)属性。我们的框架需要作为输入的C/C ++编写的顺序程序,和LTL属性。它发现有状态软件系统中LTL属性的违规或反例痕迹;然而,它没有实现验证。我们的工作大大扩展了直接灰盒模糊见证任意复杂的事件排序。我们注意到,现有的定向灰盒模糊方法仅限于见证到达一个位置或见证简单的事件排序,如使用后免费。同时,与模型检查器相比,我们的方法可以更快地找到反例,从而在给定的时间预算内找到更多的反例。我们的LTL-Fuzzer工具,建立在AFL fuzzer之上,被证明是有效的,在著名的协议实现,如OpenSSL和SSL的检测错误。我们使用LTL-Fuzzer再现已知漏洞(CVEs),通过检查从RFC(已分配12个CVEs)中提取的属性来查找15个零日错误,并在现实世界的协议实现中找到违反安全性和活性属性的行为。我们的工作代表了一个实际的进步,在软件模型检查-同时代表了一个概念上的进步,在现有的灰盒模糊。因此,我们的工作为理解软件模型检验和灰盒模糊化之间未探索的协同作用提供了一个起点。

英文摘要:

Software model checking is a verification technique which is widely used for checking temporal properties of software systems. Even though it is a property verification technique, its common usage in practice is in "bug finding", that is, finding violations of temporal properties. Motivated by this observation and leveraging the recent progress in fuzzing, we build a greybox fuzzing framework to find violations of Linear-time Temporal Logic (LTL) properties. Our framework takes as input a sequential program written in C/C++, and an LTL property. It finds violations, or counterexample traces, of the LTL property in stateful software systems; however, it does not achieve verification. Our work substantially extends directed greybox fuzzing to witness arbitrarily complex event orderings. We note that existing directed greybox fuzzing approaches are limited to witnessing reaching a location or witnessing simple event orderings like use-after-free. At the same time, compared to model checkers, our approach finds the counterexamples faster, thereby finding more counterexamples within a given time budget. Our LTL-Fuzzer tool, built on top of the AFL fuzzer, is shown to be effective in detecting bugs in well-known protocol implementations, such as OpenSSL and Telnet. We use LTL-Fuzzer to reproduce known vulnerabilities (CVEs), to find 15 zero-day bugs by checking properties extracted from RFCs (for which 12 CVEs have been assigned), and to find violations of both safety as well as liveness properties in real-world protocol implementations. Our work represents a practical advance over software model checkers -- while simultaneously representing a conceptual advance over existing greybox fuzzers. Our work thus provides a starting point for understanding the unexplored synergies between software model checking and greybox fuzzing.

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

↑