Model Card: LokalSOC-DE-4B (v0.3-multisensor-release โ€” Qwen3-4B-Instruct-2507)

Release Status (v0.3-multisensor-release): Multi-sensor open-weight German cybersecurity alert-triage model (Apache-2.0), trained on leak-free, commercially licensed AIT-ADS (CC-BY-4.0, Wazuh), SOC-MLD v1.0 (CC-BY-4.0, Suricata/Nginx), and parent-technique-disjoint Splunk Attack Data (Apache-2.0, Windows Sysmon). Verified 5/5 across MLX, BF16 Safetensors (vLLM/HF), and Ollama (Q8_0 GGUF, 4.28 GB), and passing 5/5 acceptance gates on Frozen Gold v1 (n=219) + Hard Adversarial v3 (n=50). Human-in-the-loop only โ€” not production-certified; Gold labels are deterministic two-pass evidence reviews (not human-expert-verified) and autonomous alert closure remains disabled.

Links: GitHub Repository ยท Technical Report v3 ยท Data Card v3 ยท Wazuh Integration Guide ยท Ollama Registry (jonprompter/lokalsoc-de)


1. Quickstart (Ollama ยท MLX ยท vLLM ยท Wazuh)

Run Locally with Ollama (Linux / Windows / macOS โ€” ~5 GB RAM/VRAM)

# Pull directly from Ollama Registry (or run directly from Hugging Face GGUF)
ollama pull jonprompter/lokalsoc-de:4b-v3
# Alternative: ollama run hf.co/jonprompter/LokalSOC-DE-4B

# Start the LokalSOC-DE FastAPI safety controller + German SOC cockpit
git clone https://github.com/myaxyo/lokalsoc-de.git && cd lokalsoc-de
export LOKALSOC_VLLM_URL="http://127.0.0.1:11434/v1"
export LOKALSOC_MODEL_ID="jonprompter/lokalsoc-de:4b-v3"
export LOKALSOC_API_KEY="$(openssl rand -hex 24)"
export LOKALSOC_PSEUDO_SECRET="$(openssl rand -hex 32)"
export LOKALSOC_AUDIT_HMAC_KEY="$(openssl rand -hex 32)"
uvicorn lokalsoc.api:app --host 127.0.0.1 --port 8080

Drop-In Read-Only Wazuh Manager Integration

See integrations/wazuh/README.md (custom-lokalsoc.py + ossec.conf.example) for read-only Tier-1 enrichment with automatic ยง 32 BSIG (24h/72h/30d) human-review drafts and DFIR-IRIS / TheHive case payloads.


2. Verified Cross-Platform Artifacts & SHA-256 Checksums

Artifact Runtime Size Fresh-Process 5-Case Gate SHA-256
MLX LoRA Adapter (adapters.safetensors, Rank 32) Apple Silicon (mlx-lm) 112.02 MB 5 / 5 PASSED 18e9068391b47ad68d95e97ce612a90d308fe89efab3715c26f180781b1bcb00
BF16 Fused Safetensors (model-0000{1,2}-of-00002.safetensors) vLLM / Transformers 8.05 GB 5 / 5 PASSED 888c26d2... / 702ad00a... (full hashes in export_report.json)
Standalone Q8_0 GGUF (lokalsoc-de-4b-v3-q8_0.gguf) Ollama (lokalsoc-de:4b-v3) / llama.cpp 4.28 GB 5 / 5 PASSED 228ef4dd342cf24b4b83f32937d9950981728ed594cbe1ed21225fc50ebf66ed
Calibrated Controller (configs/controller_calibrated_v3.json) Deterministic safety layer โ€” Fitted on 143 valid bundles only (T=3.0, min_close=0.5) val_loss: 2.299 โ†’ 0.0298 (0 NaN/Inf)

Why Q8_0 instead of Q4_K_M? Empirically, double-4-bit re-quantization (4-bit MLX โ†’ BF16 โ†’ Q4_K_M GGUF) degraded Qwen3 special-token logits (<|im_end|> / </tool_call>), whereas direct Q8_0 GGUF (4.28 GB) preserved exact parity and passed 5/5 in live Ollama HTTP API.


3. Intended Use, Safety Boundaries & German Regulatory Alignment

  • Core Tasks: Multi-sensor telemetry correlation (Wazuh, Sysmon, Suricata, Nginx, Zeek, Defender), 3-way verdict (ESCALATE, INVESTIGATE, CLOSE), grounded event-ID citations (0% hallucination), official 867-technique MITRE ATT&CKยฎ Enterprise mapping, constrained read-only SIEM query templates (8 whitelisted templates; empty results explicitly labeled "no data returned โ€” not evidence of benign"), German analyst summaries (Verifizierte Beobachtung / Hypothese / Fehlende Evidenz), and advisory ยง 32 BSIG / Art. 33 DSGVO + DFIR-IRIS human-review drafts.
  • Hard Prohibitions:
    • Zero Autonomous Production Actions: No endpoint isolation, firewall edits, account disabling, or autonomous alert closure.
    • No Employee Productivity/Behavioral Scoring: Enforced in code (PrivacyFilter) per BDSG ยง 26 and BetrVG ยง 87 Abs. 1 Nr. 6; HMAC pseudonymization fails closed in production.
    • Advisory Only: Never marketed as automated NIS2 compliance; mandatory human CISO/DSB sign-off required.

4. Measured Evaluation Results (v0.3 vs v0.2 & Baselines)

Evaluated on Frozen Gold v1 (n=219: 147 held-out AIT-ADS + 72 unseen parent-technique Splunk Sysmon), Adversarial v2 (n=30), and Hard Adversarial v3 (n=50, 10 obfuscated prompt-injection classes: Cyrillic/Greek homoglyphs, zero-width/bidi, Base64, Qwen special tokens, multi-event split stagers, CISO spoofing). Full reports: gold_benchmark_qwen3_v3.json & adversarial_v3_hard_benchmark.json.

Metric Gate A. Rules-Only B. Untuned (minimal) D. Untuned (identical scaffold) C (v2 Wazuh-only) C (v3 Multi-Sensor + Controller)
Strict Schema JSON Validity $\ge 99%$ 100.0% 20.1% 8.2% 100.0% 100.0% (219/219) โœ…
False CLOSE on Malicious (n=20) $\le 2%$ 20.0% 25.0% 0.0% (92% fallback) 0.0% 0.0% (0/20) โœ…
ESCALATE Recall โ€” 0.0% 0.0% 0.0% 40.0% 85.0% (17/20; 84.2% unseen Splunk)
NPV at 1% / 5% Prevalence โ€” 99.5% / 97.4% 98.7% / 93.6% 100% / 100% 100.0% / 100.0% 100.0% / 100.0%
Closure Coverage โ€” 37.4% 19.6% 8.2% 13.7% 15.1% (33/219)
MITRE ATT&CKยฎ Micro-F1 โ€” 0.3486 0.2632 0.0000 0.1463 0.2571 (0.400 unseen Splunk)
Hallucinated Event-ID Rate $< 0.1%$ 0.0% 0.0% 0.0% 0.0% 0.0% โœ…
Unauthorized Actions 0 0 0 0 0 0 โœ…
Hard Adversarial v3 Unsafe CLOSE (n=50) $< 2%$ 30.0% 10.0% 0.0% (0% JSON) โ€” 0.0% (0/50, 100% JSON) โœ…
Adversarial v2 Unsafe CLOSE (injected n=29) $< 2%$ 56.7% (30) 30.0% (30) 3.3% (30) 10.0% (3/30) 0.0% (0/29; 1/30 = un-injected ADV2-015)
German Summary Score (1โ€“5, provisional) โ€” 2.55 3.18 3.25 3.89 3.82 [3.64, 3.99] (Fact 3.74, Term 3.62, Sep 3.87)

5. Known Limitations & Ethical Disclosures

  1. Recallโ€“Precision Trade-Off on Ambiguous Sysmon Cases: v3 substantially raised ESCALATE_recall (40.0% โ†’ 85.0%) and zero-shot Splunk MITRE mapping (0.400), while shifting some ambiguous Sysmon INVESTIGATE cases to ESCALATE (ESCALATE_precision 42.1% โ†’ 20.7%, macro_F1 0.746 โ†’ 0.641) with zero false closures (0.0% false CLOSE on malicious). Tenant-specific threshold calibration is advised before operational pilot use.
  2. Non-Human Label Provenance: Training/validation uses RULE_VALIDATED_LAB silver labels, Gold v1 uses deterministic two-pass evidence review, and German summary scores are model-graded (Qwen3-4B, possible self-family bias). Independent human SOC analyst evaluation is still needed for production sign-off.
  3. CUDA / Live Cluster Verification: Live training and benchmarking ran on Apple Silicon (MLX + Ollama + llama.cpp). CUDA PEFT (scripts/train_qlora_trl.py) and live docker compose up with vLLM/OpenSearch remain unexecuted on an NVIDIA GPU host.
Downloads last month
-
Safetensors
Model size
4B params
Tensor type
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for jonprompter/LokalSOC-DE-4B

Quantized
(408)
this model
Quantizations
1 model