Downloads · 30 days
6
17% of all-time downloads
SHARIHEHE/mistral-sigma-fyp
mistral-sigma-fyp is a machine learning model from SHARIHEHE. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model has been fine-tuned on CAPEv2 behavioral analysis reports to generate Sigma detection rules for SIEM platforms.
Downloads · 30 days
6
17% of all-time downloads
All-time downloads
36
Public
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
This model has been fine-tuned on CAPEv2 behavioral analysis reports to generate Sigma detection rules for SIEM platforms.
Generate Sigma detection rules from CAPEv2 malware analysis reports for deployment in SIEM platforms like:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained(
"./mistral-sigma-full-model",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("./mistral-sigma-full-model")
# Prepare input
system_prompt = "You are a cybersecurity expert specializing in creating Sigma detection rules from CAPEv2 behavioral analysis reports."
instruction = "Given this CAPEv2 behavioral report, produce Sigma rules that a SOC analyst could deploy in a SIEM."
# Your CAPEv2 report data
cape_report = {
"signatures": ["process_injection", "registry_modification"],
"processes": [...]
}
prompt = f'''<<SYS>>
{system_prompt}
<</SYS>>
{instruction}
Input Data:
{cape_report}
Response:'''
# Generate
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=500, temperature=0.7)
sigma_rules = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(sigma_rules)
Apache 2.0 (same as base model)