VLAI for Severity
					Collection
				
A collection of papers, models, and datasets supporting the AI and NLP components of the Vulnerability-Lookup project.
					• 
				7 items
				• 
				Updated
					
				•
					
					1
This model is a fine-tuned version of hfl/chinese-macbert-base on the dataset CIRCL/Vulnerability-CNVD.
For more information, visit the Vulnerability-Lookup project page or the ML-Gateway GitHub repository, which demonstrates its usage in a FastAPI server.
You can use this model directly with the Hugging Face transformers library for text classification:
from transformers import pipeline
classifier = pipeline(
    "text-classification",
    model="CIRCL/vulnerability-severity-classification-chinese-macbert-base"
)
# Example usage for a Chinese vulnerability description
description_chinese = "TOTOLINK A3600R是中国吉翁电子(TOTOLINK)公司的一款6天线1200M无线路由器。TOTOLINK A3600R存在缓冲区溢出漏洞,该漏洞源于/cgi-bin/cstecgi.cgi文件的UploadCustomModule函数中的File参数未能正确验证输入数据的长度大小,攻击者可利用该漏洞在系统上执行任意代码或者导致拒绝服务。"
result_chinese = classifier(description_chinese)
print(result_chinese)
# Expected output example: [{'label': '高', 'score': 0.9802}]
The following hyperparameters were used during training:
It achieves the following results on the evaluation set:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | 
|---|---|---|---|---|
| 0.6543 | 1.0 | 3465 | 0.5870 | 0.7529 | 
| 0.5973 | 2.0 | 6930 | 0.5463 | 0.7736 | 
| 0.4937 | 3.0 | 10395 | 0.5417 | 0.7841 | 
| 0.448 | 4.0 | 13860 | 0.5541 | 0.7884 | 
| 0.3624 | 5.0 | 17325 | 0.5994 | 0.7858 | 
Base model
hfl/chinese-macbert-base