2026 · APPLIED AI · CYBERSECURITY
MiniSOC
From a pretrained LLM to a measured authentication-triage model.
Qwen3-0.6B · QLoRA · MLX-LM · Apple Silicon
The project
I built MiniSOC to explore LLM post-training for security-event triage. Starting with a 4-bit Qwen3-0.6B model, I used supervised fine-tuning with QLoRA on an Apple Silicon Mac to classify synthetic authentication summaries as benign, suspicious, or needing review. The model returns structured JSON with an attack type, severity, explanation, and recommended investigation step.
I took the project through the full experimentation loop: reproducible data generation, supervised fine-tuning, validation, error analysis, revised training, and held-out testing.
The training journey
- Establish a baseline. The pretrained model classified every validation example as benign, achieving 40% accuracy.
- Fine-tune and inspect failures. Early adapters learned output templates but sometimes contradicted the event evidence. Training for 600 updates raised validation accuracy to 80%.
- Probe irrelevant identifiers. Replacing only usernames and source IPs changed 16 of 120 validation predictions and corrected 16 errors. This exposed sensitivity to identifiers that should not determine the labels in this synthetic task.
- Revise data and training. I randomized training identifiers independently of labels. Accuracy initially fell to 60% at 600 updates; extending training to 1,800 updates, approximately three epochs, raised it to 100%.
- Freeze and evaluate. I evaluated the final adapter on reserved test examples and an approved-travel challenge, then spot-checked explanations against the inputs.
Measured results
| Evaluation | Correct | Accuracy |
|---|---|---|
| Pretrained baseline: validation | 48 / 120 | 40% |
| Final adapter: validation | 120 / 120 | 100% |
| Final adapter: held-out test | 120 / 120 | 100% |
| Final adapter: approved-travel challenge | 40 / 40 | 100% |
The final test result included 48 benign, 48 suspicious, and 24 needs-review examples. All 40 travel-challenge examples were benign.
Evaluation design and lessons
The dataset contains 600 training, 120 validation, and 120 test examples, plus 40 examples from a withheld approved-travel scenario family. Related event variants stay within a split, and user and IP identities are separated across splits. Fixed seeds, dataset hashes, a pinned model revision, and saved raw predictions make the experiments reproducible.
Controlled probes showed why accuracy alone was insufficient: a model could change its answer when only identifiers changed, or return the right label with an unsupported explanation. Six final spot-checks matched the expected classification, attack type, and severity; the travel explanation still omitted the travel-approval evidence.
Scope: these results measure a small, rule-based synthetic benchmark, not production SOC performance. The rows include paired variants, and answers use repeated templates. I also identified missing event-order evidence in the inputs despite reference answers describing failures before success. Broader generalization and explanation grounding remain separate evaluation goals.
Next experiments
Add explicit event sequences and harder paired scenarios, then investigate reward-based reinforcement learning with verifiable evidence checks. RL is planned; the reported results are from supervised fine-tuning.