[Paper Review] Uncovering CWE-CVE-CPE Relations with Threat Knowledge Graphs
This paper proposes a threat knowledge graph that integrates CVE, CWE, and CPE databases to predict previously unknown associations between vulnerabilities, weaknesses, and products. Using knowledge graph embedding with the TransE model, it achieves strong performance in link prediction—especially for CVE→CWE and CVE→CPE associations—demonstrating that optimized graphs can uncover future vulnerabilities with high accuracy, even in open-world settings.
Security assessment relies on public information about products, vulnerabilities, and weaknesses. So far, databases in these categories have rarely been analyzed in combination. Yet, doing so could help predict unreported vulnerabilities and identify common threat patterns. In this paper, we propose a methodology for producing and optimizing a knowledge graph that aggregates knowledge from common threat databases (CVE, CWE, and CPE). We apply the threat knowledge graph to predict associations between threat databases, specifically between products, vulnerabilities, and weaknesses. We evaluate the prediction performance both in closed world with associations from the knowledge graph, and in open world with associations revealed afterward. Using rank-based metrics (i.e., Mean Rank, Mean Reciprocal Rank, and Hits@N scores), we demonstrate the ability of the threat knowledge graph to uncover many associations that are currently unknown but will be revealed in the future, which remains useful over different time periods. We propose approaches to optimize the knowledge graph, and show that they indeed help in further uncovering associations.
Motivation & Objective
- To address the limitation of incomplete and manually curated associations in threat databases like CVE, CWE, and CPE.
- To develop a methodology for constructing and optimizing a unified threat knowledge graph from public security databases.
- To evaluate the predictive power of the knowledge graph for uncovering future, unreported associations between products, vulnerabilities, and weaknesses.
- To improve prediction performance through knowledge graph optimization techniques such as data filtering and integration of CVSS vectors or CAPEC mappings.
- To demonstrate the utility of the graph in both closed-world and open-world evaluation settings for real-world threat modeling and vulnerability assessment.
Proposed method
- Construct a knowledge graph by integrating structured data from CVE, CWE, and CPE databases, forming triples of the form (subject, predicate, object).
- Apply knowledge graph embedding using the TransE model to represent entities and relations in a low-dimensional vector space.
- Optimize the knowledge graph by filtering outdated entries (e.g., removing data before 2016) and enriching it with additional data sources such as CAPEC and CVSS vectors.
- Perform link prediction by scoring candidate triples based on vector similarity and evaluating performance using rank-based metrics.
- Conduct both closed-world and open-world evaluations: closed-world uses known associations from the graph, while open-world evaluates predictions against future-revealed associations.
- Use metrics including Mean Reciprocal Rank (MRR), Mean Rank (MR), and Hits@N to assess prediction quality across different triple types.
Experimental results
Research questions
- RQ1Can a unified threat knowledge graph effectively predict unknown future associations between CPE products, CVE vulnerabilities, and CWE weaknesses?
- RQ2How does the performance of link prediction vary across different triple types (e.g., CVE→CPE, CVE→CWE) when using different knowledge graph configurations?
- RQ3To what extent does optimizing the knowledge graph—via data filtering or enrichment with CVSS/CPE—improve prediction accuracy?
- RQ4How does the model perform in open-world evaluation, where predictions are tested against associations revealed after the training cutoff date?
- RQ5Which knowledge graph embedding model performs best for threat link prediction, and what factors influence its effectiveness?
Key findings
- The TransE model achieved the best performance across all triple types, with a Mean Reciprocal Rank (MRR) of 0.445 for CVE→CWE and 0.424 for CVE→CPE in closed-world evaluation.
- In open-world evaluation, the knowledge graph predicted 80% of future CVE→CPE associations revealed between August 4, 2021 and November 1, 2022, achieving a Hits@20 score of 0.620 for CVE→CPE predictions.
- Adding CVSS vectors significantly improved prediction performance for CVE→CWE links, increasing MRR from 0.445 (base) to 0.441 and Hits@10 from 0.731 to 0.719.
- Removing outdated data (post-2016 filtering) improved MRR for CVE→CPE from 0.424 to 0.426 and reduced Mean Rank from 1643 to 1278, indicating better generalization.
- The integration of CAPEC data slightly reduced performance, suggesting limited direct benefit for predicting CVE-CPE or CVE-CWE links, though it enabled prediction of new CWE-CAPEC associations.
- The knowledge graph’s predictive capability improved over time, with higher performance in open-world evaluation when trained on more recent data, indicating long-term utility for vulnerability discovery.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.