Downloads · 30 days
18
4% of all-time downloads
conflick0/vuln-cat
vuln-cat is a text classification model from conflick0. Use it when you need a label for a piece of text. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
18
4% of all-time downloads
All-time downloads
493
Public
Parameters
110M
3.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors440 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of allenai/scibert_scivocab_uncased on the None dataset. It achieves the following results on the evaluation set:
vuln-cat is a classification model based on fine-tuning of scibert. It categorizes CVE summaries into 11 types of vulnerabilities, with class labels including:
[
'csrf',
'directory_traversal',
'file_inclusion',
'input_validation',
'memory_corruption',
'open_redirect',
'overflow',
'sql_injection',
'ssrf',
'xss',
'xxe'
]
from transformers import pipeline
text = 'A path traversal exists in a specific dll of Trend Micro Mobile Security (Enterprise) 9.8 SP5 which could allow an authenticated remote attacker to delete arbitrary files.'
classifier = pipeline(
"text-classification",
model="conflick0/vuln-cat",
padding=True,
truncation=True,
max_length=512,
)
classifier(text)
# [{'label': 'directory_traversal', 'score': 0.9969494938850403}]
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 1.0 | 88 | 0.3975 | 0.9006 |
| No log | 2.0 | 176 | 0.3922 | 0.9034 |
| No log | 3.0 | 264 | 0.4732 | 0.9034 |
| No log | 4.0 | 352 | 0.5226 | 0.8949 |
| No log | 5.0 | 440 | 0.4903 | 0.9034 |
| 0.0513 | 6.0 | 528 | 0.5203 | 0.9062 |
| 0.0513 | 7.0 | 616 | 0.5192 | 0.8949 |
| 0.0513 | 8.0 | 704 | 0.5132 | 0.9034 |