Downloads · 30 days
18
2% of all-time downloads
pyToshka/wazuh-assist
wazuh-assist is a text classification model from pyToshka. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This is a fine-tuned SecRoBERTa model for classifying Wazuh security logs into three categories: - Benign (0): Normal, safe activities - Suspicious (1): Potentially concerning activities that require monitoring - Mali…
Downloads · 30 days
18
2% of all-time downloads
All-time downloads
829
Public
Parameters
83.5M
334 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors334 MB · 99%
From the Hugging Face model README
This is a fine-tuned SecRoBERTa model for classifying Wazuh security logs into three categories:
The model is based on jackaduma/SecRoBERTa and fine-tuned using LoRA (Low-Rank Adaptation) for efficient parameter updates.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
model_name = "pyToshka/wazuh-assist"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Prepare input
text = "Failed login attempt from IP 192.168.1.100"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
# Make prediction
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class = torch.argmax(logits, dim=-1).item()
# Class mapping
class_names = ["benign", "suspicious", "malicious"]
prediction = class_names[predicted_class]
print(f"Prediction: {prediction}")
from src.models.secroberta import WazuhSecRoBERTa
# Load model
model = WazuhSecRoBERTa.load_model("pyToshka/wazuh-assist")
# Make prediction
log_text = "Failed login attempt from IP 192.168.1.100"
prediction, confidence = model.predict(log_text)
print(f"Prediction: {prediction} (confidence: {confidence:.3f})")
The model achieves strong performance on Wazuh log classification:
This model can be deployed using:
@misc{wazuh-assist-2025,
title={Wazuh SecRoBERTa Security Log Classifier},
author={Your Organization},
year={2024},
howpublished={\url{https://huggingface.co/pyToshka/wazuh-assist}},
}
BSD 3-Clause License