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

KernJC:针对 Linux 内核漏洞的自动化易受攻击环境生成

KernJC: Automated Vulnerable Environment Generation for Linux Kernel Vulnerabilities

Bonan Ruan, Jiahao Liu, Chuqi Zhang, Zhenkai Liang

AI总结:

针对内核漏洞复现中环境构建的挑战,提出基于补丁和图的方法自动识别易受攻击内核版本及必要配置,开发了工具 KernJC 并构建数据集,成功复现 66 个漏洞并发现 NVD 中 128 个虚假版本声明。

摘要:

Linux 内核漏洞复现是系统安全中的一项关键任务。要复现内核漏洞,需要易受攻击的环境和 Proof of Concept (PoC) 程序。现有研究多集中于 PoC 的生成,而环境的构建常被忽视。然而,建立有效的易受攻击环境以触发漏洞极具挑战。首先,难以保证用于复现的内核版本确实存在漏洞,因为在线数据库中的漏洞版本声明有时是虚假的。其次,许多漏洞无法在使用默认配置构建的内核中复现。必须设置复杂的非默认内核配置以包含并触发内核漏洞,但关于如何识别这些配置的信息很少。为解决这些挑战,我们提出一种基于补丁的方法来识别真实的易受攻击内核版本,以及一种基于图的方法来识别激活特定漏洞所需的配置。我们在工具 KernJC 中实现了这些方法,实现了内核漏洞易受攻击环境生成的自动化。为评估 KernJC 的有效性,我们构建了一个数据集,包含过去五年内核漏洞研究中 66 个具有 PoC 的代表性真实世界漏洞。评估表明,KernJC 为所有这些漏洞构建了易受攻击环境,其中 48.5% 需要非默认配置,且有 4 个在 National Vulnerability Database (NVD) 中的版本声明不正确。此外,我们对内核漏洞进行了大规模虚假版本检测,识别出 128 个在 NVD 中存在虚假版本声明的漏洞。为促进未来研究,我们将 KernJC 及数据集发布到社区。

英文摘要:

Linux kernel vulnerability reproduction is a critical task in system security. To reproduce a kernel vulnerability, the vulnerable environment and the Proof of Concept (PoC) program are needed. Most existing research focuses on the generation of PoC, while the construction of environment is overlooked. However, establishing an effective vulnerable environment to trigger a vulnerability is challenging. Firstly, it is hard to guarantee that the selected kernel version for reproduction is vulnerable, as the vulnerability version claims in online databases can occasionally be spurious. Secondly, many vulnerabilities can not be reproduced in kernels built with default configurations. Intricate non-default kernel configurations must be set to include and trigger a kernel vulnerability, but less information is available on how to recognize these configurations. To solve these challenges, we propose a patch-based approach to identify real vulnerable kernel versions and a graph-based approach to identify necessary configs for activating a specific vulnerability. We implement these approaches in a tool, KernJC, automating the generation of vulnerable environments for kernel vulnerabilities. To evaluate the efficacy of KernJC, we build a dataset containing 66 representative real-world vulnerabilities with PoCs from kernel vulnerability research in the past five years. The evaluation shows that KernJC builds vulnerable environments for all these vulnerabilities, 48.5% of which require non-default configs, and 4 have incorrect version claims in the National Vulnerability Database (NVD). Furthermore, we conduct large-scale spurious version detection on kernel vulnerabilities and identify 128 vulnerabilities which have spurious version claims in NVD. To foster future research, we release KernJC with the dataset in the community.

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

↑