Do Chase Your Tail! Missing Key Aspects Augmentation in Textual Vulnerability Descriptions of Long-tail Software through Feature Inference
Linyi Han, Shidong Pan, Zhenchang Xing, Jiamou Sun, Sofonias Yitagesu, Xiaowang Zhang, Zhiyong Feng
TL;DR
This paper tackles missing key aspects in TVDs for long-tail software by introducing a software feature inference framework that combines standardized software naming via government CVE mappings, CWE-based expansion to diversify training examples, and LLM-driven generation augmented with an NLI-based hallucination filter and wiki-grounded background knowledge. The approach yields significant improvements in generating and selecting missing key aspects, with long-tail software performance rising from $0.27$ to $0.56$ in accuracy and non-long-tail performance also improving, while enabling stronger downstream task performance such as CVSS and CWE prediction. Key innovations include a Software-CVE Mapping Database, CWE-driven retrieval and clustering for representative in-context examples, an NLI-based software-feature correlation model, and a per-software hallucination-detection paradigm grounded with DSSM embeddings and Wikipedia content. The framework demonstrates robust generalization across datasets (CVE, NVD, NVD*) and tasks, offering practical benefits for vulnerability analysis and software maintenance in real-world settings where long-tail software are prevalent and TVDs are incomplete.
Abstract
Augmenting missing key aspects in Textual Vulnerability Descriptions (TVDs) is crucial for effective vulnerability analysis. For instance, in TVDs, key aspects include Attack Vector, Vulnerability Type, among others. These key aspects help security engineers understand and address the vulnerability in a timely manner. For software with a large user base (non-long-tail software), augmenting these missing key aspects has significantly advanced vulnerability analysis and software security research. However, software instances with a limited user base (long-tail software) often get overlooked due to inconsistency software names, TVD limited avaliability, and domain-specific jargon, which complicates vulnerability analysis and software repairs. In this paper, we introduce a novel software feature inference framework designed to augment the missing key aspects of TVDs for long-tail software. Firstly, we tackle the issue of non-standard software names found in community-maintained vulnerability databases by cross-referencing government databases with Common Vulnerabilities and Exposures (CVEs). Next, we employ Large Language Models (LLMs) to generate the missing key aspects. However, the limited availability of historical TVDs restricts the variety of examples. To overcome this limitation, we utilize the Common Weakness Enumeration (CWE) to classify all TVDs and select cluster centers as representative examples. To ensure accuracy, we present Natural Language Inference (NLI) models specifically designed for long-tail software. These models identify and eliminate incorrect responses. Additionally, we use a wiki repository to provide explanations for proprietary terms.
