REEF:一个用于收集真实世界漏洞与修复的框架
REEF: A Framework for Collecting Real-World Vulnerabilities and Fixes
AI总结:
针对现有自动程序修复基准规模小、语言单一且漏洞解释质量低的问题,提出自动化收集框架REEF,通过多语言爬虫与神经语言模型生成高质量漏洞-修复对及解释,构建了涵盖7种语言、4466个CVE的大规模数据集。
摘要:
软件在我们的日常生活中扮演着至关重要的角色,因此软件系统的质量和安全性变得愈发重要。然而,软件中的漏洞仍然构成重大威胁,可能造成严重的后果。自动程序修复的最新进展试图利用数据驱动技术自动检测和修复漏洞。复杂的深度学习方法已被应用于该领域并取得了可喜的成果。然而,用于训练和评估这些技术的现有基准仍然有限,因为它们往往专注于单一编程语言且数据集相对较小。此外,许多基准往往过时且缺乏多样性,仅关注特定的代码库。更糟糕的是,现有数据集中漏洞解释的质量较低,因为它们通常使用不精确且无信息量的提交信息作为解释。为了解决这些问题,我们提出了一个自动化收集框架 REEF,用于从开源仓库收集真实世界的漏洞与修复。我们开发了一个多语言爬虫来收集漏洞及其修复,并设计了指标来过滤高质量的漏洞-修复对。此外,我们提出了一种基于神经语言模型的方法来生成高质量的漏洞解释,这对于生成信息丰富的修复信息至关重要。通过大量实验,我们证明我们的方法能够收集高质量的漏洞-修复对并生成强有力的解释。我们收集的数据集包含 4,466 个 CVE 和 30,987 个补丁(包括 236 个 CWE),涵盖 7 种编程语言并附带详细的关联信息,在规模、覆盖范围和质量上均优于现有基准。人类专家的评估进一步证实,我们的框架能够生成高质量的漏洞解释。
英文摘要:
Software plays a crucial role in our daily lives, and therefore the quality and security of software systems have become increasingly important. However, vulnerabilities in software still pose a significant threat, as they can have serious consequences. Recent advances in automated program repair have sought to automatically detect and fix bugs using data-driven techniques. Sophisticated deep learning methods have been applied to this area and have achieved promising results. However, existing benchmarks for training and evaluating these techniques remain limited, as they tend to focus on a single programming language and have relatively small datasets. Moreover, many benchmarks tend to be outdated and lack diversity, focusing on a specific codebase. Worse still, the quality of bug explanations in existing datasets is low, as they typically use imprecise and uninformative commit messages as explanations. To address these issues, we propose an automated collecting framework REEF to collect REal-world vulnErabilities and Fixes from open-source repositories. We develop a multi-language crawler to collect vulnerabilities and their fixes, and design metrics to filter for high-quality vulnerability-fix pairs. Furthermore, we propose a neural language model-based approach to generate high-quality vulnerability explanations, which is key to producing informative fix messages. Through extensive experiments, we demonstrate that our approach can collect high-quality vulnerability-fix pairs and generate strong explanations. The dataset we collect contains 4,466 CVEs with 30,987 patches (including 236 CWE) across 7 programming languages with detailed related information, which is superior to existing benchmarks in scale, coverage, and quality. Evaluations by human experts further confirm that our framework produces high-quality vulnerability explanations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。