arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.20831cs.CRcs.AI
收藏

利用BERT推进漏洞分类:一种多目标学习模型

Advancing Vulnerability Classification with BERT: A Multi-Objective Learning Model

National Taiwan University of Science and Technology (NTUST)(台湾科技大学)

Himanshu Tiwari

AI总结:

本文提出一种基于BERT的多目标学习模型,用于对NVD中的CVE报告进行多标签分类,同时预测严重性和漏洞类型,并通过REST API和Streamlit UI实现实时漏洞分析,为自动化漏洞分诊提供开源解决方案。

摘要:

网络安全漏洞的快速增长使得自动化分析和分类漏洞报告的工具变得必不可少。本文提出了一种新颖的漏洞报告分类器,该分类器利用BERT(来自变换器的双向编码器表示)模型对来自国家漏洞数据库(NVD)的常见漏洞和暴露(CVE)报告进行多标签分类。该分类器根据文本描述预测严重性(低、中、高、严重)和漏洞类型(例如,缓冲区溢出、XSS)。我们引入了一个自定义训练流程,使用组合损失函数——用于严重性的交叉熵和用于类型的带对数的二元交叉熵——集成到Hugging Face Trainer子类中。在最近的NVD数据上进行的实验展示了有希望的结果,评估损失在各轮次中递减。该系统通过REST API和Streamlit UI部署,实现实时漏洞分析。这项工作为网络安全从业者提供了一个可扩展的开源解决方案,以自动化漏洞分诊。

英文摘要:

The rapid increase in cybersecurity vulnerabilities necessitates automated tools for analyzing and classifying vulnerability reports. This paper presents a novel Vulnerability Report Classifier that leverages the BERT (Bidirectional Encoder Representations from Transformers) model to perform multi-label classification of Common Vulnerabilities and Exposures (CVE) reports from the National Vulnerability Database (NVD). The classifier predicts both the severity (Low, Medium, High, Critical) and vulnerability types (e.g., Buffer Overflow, XSS) from textual descriptions. We introduce a custom training pipeline using a combined loss function-Cross-Entropy for severity and Binary Cross-Entropy with Logits for types-integrated into a Hugging Face Trainer subclass. Experiments on recent NVD data demonstrate promising results, with decreasing evaluation loss across epochs. The system is deployed via a REST API and a Streamlit UI, enabling real-time vulnerability analysis. This work contributes a scalable, open-source solution for cybersecurity practitioners to automate vulnerability triage.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑