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

漏洞的声音补丁生成

Sound Patch Generation for Vulnerabilities

Zhen Huang, David Lie

摘要:

安全漏洞是存在的最关键的软件缺陷之一。因此,它们需要正确且快速部署的补丁。这促使自动补丁生成方法,强调健全性和广泛的适用性。为了应对这一挑战,我们提出了Senx,它使用三种新的补丁生成技术来创建补丁的越界读/写漏洞。Senx使用符号执行从目标应用程序的源代码中提取表达式来合成补丁。为了减少补丁的运行时开销,它使用循环克隆和访问范围分析来分析这些漏洞中涉及的循环,并将补丁提升到循环之外。对于跨多个函数的漏洞,Senx使用表达式转换来转换表达式,并将其放置在所有值都可用于创建补丁的函数范围中。这使得Senx能够修补具有复杂循环和过程间依赖关系的漏洞,而这些漏洞是以前基于语义的补丁生成系统无法处理的。我们已经使用这种方法实现了一个原型。我们的评估表明,Senx生成的补丁成功修复了来自11个应用程序的42个实际漏洞中的76%,这些应用程序包括用于操作图形/媒体文件的各种工具或库,程序设计语言解释器,关系数据库引擎,用于创建和管理二进制程序的编程工具集合,以及基本文件,外壳和文本操作工具集合。Senx生成的所有补丁都是合理的,并且Senx在其分析不充分的情况下正确地中止补丁生成。

英文摘要:

Security vulnerabilities are among the most critical software defects in existence. As such, they require patches that are correct and quickly deployed. This motivates an automatic patch generation method that emphasizes both soundness and wide applicability. To address this challenge, we propose Senx, which uses three novel patch generation techniques to create patches for out-of-bounds read/write vulnerabilities. Senx uses symbolic execution to extract expressions from the source code of a target application to synthesize patches. To reduce the runtime overhead of patches, it uses loop cloning and access range analysis to analyze loops involved in these vulnerabilities and elevate patches outside of loops. For vulnerabilities that span multiple functions, Senx uses expression translation to translate expressions and place them in a function scope where all values are available to create the patch. This enables Senx to patch vulnerabilities with complex loops and interprocedural dependencies that previous semantics-based patch generation systems cannot handle. We have implemented a prototype using this approach. Our evaluation shows that the patches generated by Senx successfully fix 76% of 42 real-world vulnerabilities from 11 applications including various tools or libraries for manipulating graphics/media files, a programming language interpreter, a relational database engine, a collection of programming tools for creating and managing binary programs, and a collection of basic file, shell, and text manipulation tools. All patches that Senx produces are sound, and Senx correctly aborts patch generations in cases where its analysis will fall short.

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

↑