Downloads · 30 days
107
1% of all-time downloads
sindsub/cybersec-mpnet-finetuned
cybersec-mpnet-finetuned is a sentence similarity model from sindsub. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as apache-2.0.
A cybersecurity-domain sentence embedding model fine-tuned from sentence-transformers/all-mpnet-base-v2 on 2,179 CTI-Bench training pairs from two sources: - CTI-ATE — real threat intelligence report excerpts mapped t…
Downloads · 30 days
107
1% of all-time downloads
All-time downloads
10.3K
Public
Parameters
109M
438 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
A cybersecurity-domain sentence embedding model fine-tuned from sentence-transformers/all-mpnet-base-v2 on 2,179 CTI-Bench training pairs from two sources:
Built as part of an Agentic Cybersecurity Threat Intelligence & Incident Response Advisor capstone project — a LangGraph-based pipeline that ingests raw security logs, enriches IoCs via threat feeds (AbuseIPDB, VirusTotal, ThreatFox), maps to MITRE ATT&CK, and generates grounded incident response playbooks.
sentence-transformers>=5.5.1
This model was trained with sentence-transformers 5.5.1. Older versions will fail to load due to internal module path changes introduced in 5.5.x. If you see a ModuleNotFoundError: No module named 'sentence_transformers.base' error, upgrade:
pip install "sentence-transformers>=5.5.1"
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("sindsub/cybersec-mpnet-finetuned")
# Encode cybersecurity text
embeddings = model.encode([
"T1059.001 - PowerShell command execution via encoded payload",
"Adversary used scheduled task for persistence after initial access",
"CVE-2024-1234: Remote code execution in Apache HTTP Server",
])
# Semantic similarity
similarity = model.similarity(embeddings[0], embeddings[1])
print(similarity) # Higher for semantically related CTI text
| Parameter | Value |
|---|---|
| Base model | sentence-transformers/all-mpnet-base-v2 |
| Training set | CTI-Bench — 2,179 QA pairs |
| Domains | MITRE ATT&CK, CVE/CWE, CAPEC, threat intelligence |
| Loss function | MultipleNegativesRankingLoss (MNRL) |
| Epochs | 4 |
| Batch size | 16 |
| Training loss | 0.41 → 0.08 |
| Hardware | CPU-only |
Self-retrieval proxy evaluation across four ChromaDB collections (25 chunks sampled per collection, query = chunk's own text):
| Collection | Hit@1 | Hit@3 | Hit@5 |
|---|---|---|---|
| MITRE ATT&CK techniques | 100% | 100% | 100% |
| NVD CVE records | 0% | 100% | 100% |
| CISA KEV entries | 0% | 100% | 100% |
| NIST SP 800-61 procedures | 0% | 0% | 100% |
| Overall | 25% | 75% | 100% |
Hit@5 = 1.000 — exceeds the ≥ 0.90 target. Runtime: 100 queries, CPU-only.
RAGAS-style faithfulness (cosine similarity between generated playbook step embeddings and cited source embeddings): 0.548 — a significant improvement over the 0.143 Jaccard score of the base model on the same data.
all-mpnet-base-v2)