Skip to main content
QUICK REVIEW

[Paper Review] Constructing a Knowledge Graph from Textual Descriptions of Software Vulnerabilities in the National Vulnerability Database

Anders Mølmen Høst, Pierre Lison|arXiv (Cornell University)|Apr 30, 2023
Information and Cyber SecurityComputer Science3 citations
TL;DR

This paper presents a knowledge graph construction pipeline for software vulnerabilities using NVD data, combining NER, rule-based relation extraction, and TuckER-based entity prediction to improve detection of missing CWEs and CPEs. The method achieves a Hits@10 of 0.760 in entity prediction, demonstrating improved knowledge graph completeness despite challenges in relation labeling and input consistency.

ABSTRACT

Knowledge graphs have shown promise for several cybersecurity tasks, such as vulnerability assessment and threat analysis. In this work, we present a new method for constructing a vulnerability knowledge graph from information in the National Vulnerability Database (NVD). Our approach combines named entity recognition (NER), relation extraction (RE), and entity prediction using a combination of neural models, heuristic rules, and knowledge graph embeddings. We demonstrate how our method helps to fix missing entities in knowledge graphs used for cybersecurity and evaluate the performance.

Motivation & Objective

  • To address the problem of missing or inconsistent vulnerability metadata in cybersecurity knowledge graphs.
  • To improve the completeness of vulnerability knowledge graphs by predicting missing weakness types (CWEs) and vulnerable products (CPEs).
  • To develop a scalable pipeline for extracting structured information from unstructured CVE descriptions in the NVD.
  • To evaluate the effectiveness of combining neural models, heuristic rules, and knowledge graph embeddings for vulnerability knowledge graph construction.

Proposed method

  • Named entity recognition (NER) is performed using a fine-tuned SecBERT model to identify CWEs and CPEs from unstructured CVE descriptions.
  • Relation extraction uses a rule-based system grounded in a custom vulnerability ontology to link identified entities into triples.
  • A reverse triple generation step doubles the training data by reversing all triples to improve model generalization.
  • Knowledge graph embeddings are learned using the TuckER model to capture latent structural patterns for entity prediction.
  • Entity prediction is evaluated using Hits@n and MRR metrics, with the model trained on four million triples.
  • Distant supervision and heuristic rules are used to label relations due to lack of ground truth, with manual validation on a 100-triple sample.
Figure 1: Example of a CVE with labels
Figure 1: Example of a CVE with labels

Experimental results

Research questions

  • RQ1Can the knowledge graph predict missing vulnerability weakness types (CWEs)?
  • RQ2Can the knowledge graph predict missing vulnerable products (CPEs)?
  • RQ3How effective is the combination of neural NER, rule-based RE, and knowledge graph embeddings in improving KG completeness?
  • RQ4How does the performance of the proposed entity prediction model compare to state-of-the-art methods on similar tasks?

Key findings

  • The rule-based relation extraction model achieved a precision of 0.77 on a manually validated sample of 100 triples.
  • The TuckER-based entity prediction model achieved a Hits@10 score of 0.760, indicating that the true tail entity was ranked in the top 10 predictions 76% of the time.
  • The model's performance was lower than Rastogi et al. (2023), who reported a Hits@10 of 0.804, likely due to less consistent labeling and the challenge of predicting unique CVE-IDs.
  • Fine-tuned SecBERT outperformed the Averaged Perceptron model in NER, demonstrating the benefit of domain-specific pre-training.
  • The use of reversed triples improved model generalization, with four million triples used as input for training.
  • Over two million valid triples were extracted from the NVD dataset, forming the basis of the knowledge graph.
Figure 2: The figure illustrates the steps in our approach. We start by downloading our data from NVD, pre-processing the data, and adding labels to the entities. With our labeled data, we perform NER and RE to construct the KG. Because missing entities might occur in the KG, we predict these in the
Figure 2: The figure illustrates the steps in our approach. We start by downloading our data from NVD, pre-processing the data, and adding labels to the entities. With our labeled data, we perform NER and RE to construct the KG. Because missing entities might occur in the KG, we predict these in the

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.