Skip to main content
QUICK 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 Science被引用 3
一句话总结

本文提出了一种基于NVD数据的软件漏洞知识图谱构建流水线,结合命名实体识别(NER)、基于规则的关系抽取以及TuckER嵌入的实体预测,以提升对缺失CWE和CPE的检测能力。该方法在实体预测任务中实现了0.760的Hits@10得分,表明尽管在关系标注和输入一致性方面存在挑战,其知识图谱的完整性仍得到显著提升。

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.

研究动机与目标

  • 解决网络安全知识图谱中漏洞元数据缺失或不一致的问题。
  • 通过预测缺失的弱点类型(CWEs)和受影响产品(CPEs),提升漏洞知识图谱的完整性。
  • 开发一种可扩展的流水线,用于从NVD中的非结构化CVE描述中提取结构化信息。
  • 评估结合神经网络模型、启发式规则和知识图谱嵌入在漏洞知识图谱构建中的有效性。

提出的方法

  • 使用微调后的SecBERT模型进行命名实体识别(NER),从非结构化CVE描述中识别CWEs和CPEs。
  • 关系抽取采用基于自定义漏洞本体的规则系统,将识别出的实体链接为三元组。
  • 通过反转所有三元组进行反向三元组生成,将训练数据量翻倍,以提升模型泛化能力。
  • 使用TuckER模型学习知识图谱嵌入,以捕捉潜在的结构模式,用于实体预测。
  • 使用Hits@n和MRR指标评估实体预测性能,模型在四百万个三元组上进行训练。
  • 由于缺乏真实标签,采用远程监督和启发式规则进行关系标注,并对100个三元组样本进行了人工验证。
Figure 1: Example of a CVE with labels
Figure 1: Example of a CVE with labels

实验结果

研究问题

  • RQ1知识图谱能否预测缺失的漏洞弱点类型(CWEs)?
  • RQ2知识图谱能否预测缺失的受影响产品(CPEs)?
  • RQ3结合神经网络NER、基于规则的RE和知识图谱嵌入在提升KG完整性方面的有效性如何?
  • RQ4所提出的实体预测模型在类似任务上的性能与当前最先进方法相比如何?

主要发现

  • 基于规则的关系抽取模型在100个三元组的人工验证样本上实现了0.77的精确率。
  • 基于TuckER的实体预测模型实现了0.760的Hits@10得分,表明真实尾部实体在前10名预测中出现的比例为76%。
  • 模型性能低于Rastogi等人(2023年)报告的0.804 Hits@10,可能由于标注一致性较低以及预测唯一CVE-ID的挑战。
  • 微调后的SecBERT在NER任务中优于平均感知器模型,证明了领域特定预训练的优势。
  • 使用反转三元组显著提升了模型泛化能力,训练输入包含四百万个三元组。
  • 从NVD数据集中提取了超过两百万个有效三元组,构成了知识图谱的基础。
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

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。