Views
No views yet
Defensive use only. This model generates blue-team detection rules. It is not designed or intended for offensive security.
| metric | base Qwen3-1.7B | this model (SFT) |
|---|---|---|
| valid + compilable rule rate | 0.0% | 45.8% |
| mean reward (0–0.6) | 0.10 | 0.36 |
| tier breakdown (0.0 / 0.2 / 0.6) | 12 / 12 / 0 | 3 / 10 / 11 |
Qwen/Qwen3-1.7B (Apache-2.0)(description → rule) pairs derived from SigmaHQ (MIT)1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "e12ex2/Qwen3-1.7B-SigmaRL" # <-- set to your repo
4tok = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id)
6
7SYSTEM = ("You are a detection engineer. Given a threat description, output a single "
8 "valid Sigma detection rule in YAML. Output only the YAML, no prose, no code fences.")
9messages = [
10 {"role": "system", "content": SYSTEM},
11 {"role": "user", "content": "Write a Sigma rule that detects: powershell launched with a base64 -enc command"},
12]
13text = tok.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
14out = model.generate(**tok(text, return_tensors="pt"), max_new_tokens=512)
15print(tok.decode(out[0], skip_special_tokens=True))