Downloads · 30 days
0
sohomn/siem-log-generator-base-1500ds
siem-log-generator-base-1500ds is a text generation model from sohomn. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned Mistral-7B model specialized in generating realistic cloud security logs for AWS, Azure, and GCP platforms. This model generates authentic SIEM logs from structured prompts for security testing, training,…
Downloads · 30 days
0
Access
Public
Updated Jan 18, 2026
Repo size
55.1 MB
Likes
1
Public
Click a slice to open those files.
.safetensors54.6 MB · 93%
From the Hugging Face model README
A fine-tuned Mistral-7B model specialized in generating realistic cloud security logs for AWS, Azure, and GCP platforms. This model generates authentic SIEM logs from structured prompts for security testing, training, and analysis.
This model generates production-quality cloud security logs including:
Trained on diverse security datasets:
pip install transformers peft torch bitsandbytes accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import PeftModel
import torch
import json
# Configure 4-bit quantization
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True
)
# Load base model
base_model = "mistralai/Mistral-7B-Instruct-v0.2"
model = AutoModelForCausalLM.from_pretrained(
base_model,
quantization_config=bnb_config,
device_map="auto"
)
# Load LoRA adapters
model = PeftModel.from_pretrained(model, "sohomn/siem-log-generator-v1")
tokenizer = AutoTokenizer.from_pretrained("sohomn/siem-log-generator-v1")
# Set to evaluation mode
model.eval()
def generate_log(prompt, max_tokens=400):
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=max_tokens,
temperature=0.7,
top_p=0.9,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
# Extract generated log (after [/INST])
if "[/INST]" in response:
log_text = response.split("[/INST]")[-1].strip()
try:
return json.loads(log_text)
except:
return log_text
return response
# Example 1: Generate DDoS attack log
prompt = "[INST] Generate cloud security log for DDoS attack [/INST]"
log = generate_log(prompt)
print(json.dumps(log, indent=2))
# Example 2: Generate authentication failure
prompt = "[INST] Generate authentication log for BruteForce [/INST]"
log = generate_log(prompt)
print(json.dumps(log, indent=2))
# Example 3: Generate benign traffic
prompt = "[INST] Generate cloud security log for BENIGN attack [/INST]"
log = generate_log(prompt)
print(json.dumps(log, indent=2))
AWS CloudTrail DDoS Event:
{
"eventVersion": "1.08",
"eventTime": "2026-01-15T14:32:45.123Z",
"eventSource": "ec2.amazonaws.com",
"eventName": "NetworkActivity.DDoS",
"awsRegion": "us-east-1",
"sourceIPAddress": "203.45.67.89",
"destinationIPAddress": "10.0.1.15",
"threatIntel": {
"attackType": "DDoS",
"mitreAttack": "T1498",
"severity": "high"
}
}
Azure Sign-In Brute Force:
{
"time": "2026-01-15T14:35:22.456Z",
"operationName": "Sign-in activity",
"properties": {
"userPrincipalName": "[email protected]",
"ipAddress": "203.45.67.100",
"attackType": "BruteForce",
"mitreAttackId": "T1110"
}
}
⚠️ Important:
@misc{siem-log-generator-2026,
author = {Sohom Nandi},
title = {SIEM Cloud Log Generator - Mistral 7B QLoRA},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/sohomn/siem-log-generator-v1}
}
Apache 2.0 (inherits from Mistral-7B-Instruct-v0.2)
For issues or questions, please open an issue on the model repository.
Model Version: v1.0
Last Updated: January 2026
Status: Experimental - Use with validation