Downloads · 30 days
5
33% of all-time downloads
chickenpwny/securebert-siem-triage
securebert-siem-triage is a text classification model from chickenpwny. Use it when you need a label for a piece of text. The card lists the license as mit.
A fine-tuned encoder for SIEM and EVTX log triage, classifying raw Windows Event Logs and SIEM telemetry into the 14 tactics of the MITRE ATT&CK enterprise matrix.
Downloads · 30 days
5
33% of all-time downloads
All-time downloads
15
Public
Parameters
125M
997 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 GB · 99%
From the Hugging Face model README
A fine-tuned encoder for SIEM and EVTX log triage, classifying raw Windows Event Logs and SIEM telemetry into the 14 tactics of the MITRE ATT&CK enterprise matrix.
Built on top of ehsanaghaei/SecureBERT (a RoBERTa-based encoder pretrained on cybersecurity text), this model was fine-tuned on labeled EVTX/SIEM telemetry for fast Tier-1 SOC log classification.
RobertaForSequenceClassificationFine-tuned for 3 epochs (2,532 steps) on MITRE ATT&CK-labeled SIEM/EVTX telemetry:
| Epoch | Eval Accuracy | Eval Loss |
|---|---|---|
| 1 | 59.7% | 1.276 |
| 2 | 81.8% | 0.516 |
| 3 (final) | 89.5% | 0.320 |
reconnaissance, resource-development, initial-access, execution, persistence, privilege-escalation, defense-evasion, credential-access, discovery, lateral-movement, collection, command-and-control, exfiltration, impact
transformers)import json
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "chickenpwny/securebert-siem-triage"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
alert = {
"EventID": "4688",
"CommandLine": "powershell.exe -ExecutionPolicy Bypass -enc SQBFAFgA..."
}
text = json.dumps(alert)
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
logits = model(**inputs).logits
predicted_class_id = logits.argmax().item()
print(f"Predicted MITRE Tactic: {model.config.id2label[predicted_class_id]}")
This model is designed to be used with a confidence threshold and margin gate rather than trusted blindly. We recommend withholding automated tagging for predictions under 80% confidence, or where the delta between the top-1 and top-2 predicted classes is less than 15%. Ambiguous logs should be escalated to a human analyst or a Tier-2 LLM.
MIT License, consistent with the base SecureBERT model.