Hi all,
Back in October I wrote up a first build testing inline Suricata on a Protectli Vault V1610 they sent over (OPNsense 26.7.5-amd64, Suricata 8.0.7_1). Since then I built out the log collection side on a wired Windows review unit (64 GB Minisforum MS-S1 MAX) and spent a few weeks testing a specific question: how much of OPNsense/Suricata alert triage can a local LLM actually handle reliably? All testing and opinions are my own. And the results are mixed.
The biggest lesson personally had nothing to do with AIDuring an early timed self-test, I misread my own logs. I saw an allowed STUN alert and assumed the connection succeeded without checking the Windows client. In IPS mode, an allowed Suricata alert only tells you how one rule treated a packet. Multiple rules can fire on the same packet (for example, an alert rule can log "allowed" even when a separate drop rule drops the packet), so you still want the EVE packet verdict if enabled. Confirming the application actually connected requires matching the client-side record across the 5-tuple and timestamp window (6 fields), plus an attempt ID when running controlled multi-attempt test fixtures.
To test those edge cases without any AI in the loop, I put together two short local exercises:
- F05: Attempt 1 has one blocked entry plus ten allowed rule matches. Attempt 2 fires 11 seconds later with one allowed match, and there is a single client success receipt. All ten allowed matches belong to attempt 1, while the client receipt only matches attempt 2 (UDP 43005 to 3478).
- F07: Fourteen allowed alerts to UDP 3478, paired with a client success record that matches the timestamp and attempt ID, except the port is UDP 443. That leaves the UDP 3478 outcome unknown rather than falsely marking it resolved.
What runs completely model-free for day-to-day review- OPNsense forwards Suricata EVE syslog (RFC5424) over UDP 5514 to a local Python listener that writes append-only JSONL segments and builds a derived SQLite index.
- The local viewer collapses noisy repeats into a single expandable row (for example, 710 repeated STUN records on one line) and verifies byte-offset hashes back to the original raw log file.
- The collector has zero firewall credentials. If the Windows PC sleeps, the V1610 keeps enforcing rules normally, though the collector will miss incoming UDP syslog packets while asleep.
What the local AI benchmarks actually showed meI benchmarked several base models (Qwen3 4B, Qwen3.5 4B, Qwen3.5 9B, Gemma 4 12B QAT, and Ling-3.0-tiny) on receipt matching and next-check selection, then fine-tuned Qwen3.5 4B with QLoRA on Windows ROCm for raw flow triage:
- When I added near-matching receipts to test strict multi-field joins, small non-thinking models failed badly (0/12 to 4/12 passes). Moving the exact join into deterministic Python solved it completely. Once Python handled the facts and record links, Qwen3.5 4B picked a useful next check and target on 21/24 fresh cases (22/24 after updating the option labels and instructions) compared to 4/24 for a fixed-order baseline.
- QLoRA fine-tuning pushed dev attack flags from 1/62 to 61/62, with benign-labeled false flags rising from 0/152 to 18/152. Across six selected IoT-23 captures, though, 585 of 596 flows still needed human review across flags and uncertain calls, and a separate 27B second-opinion reviewer moved 0 of 64 benign-labeled flags on a fresh Mirai capture (43-1).
Where I landed is straightforward: deterministic Python handles grouping, exact record matching, and hash-verified links. Base Qwen3.5 4B stays strictly optional for scheduled summaries where Python supplies the verified facts.
Repo and full write-ups- GitHub repo (model-free SQLite viewer, --no-model CLI, F05/F07 exercises, 320-row Muhstik 3-1 and Mirai 35-1 scorecards): https://github.com/TrevTron/protectli-home-soc
- Part 1 (V1610 Netmap inline Suricata setup): https://unland.dev/blog/building-home-soc-protectli-vault
- Part 2 (full benchmark tables and methodology): https://unland.dev/blog/testing-local-ai-analyst-home-soc-logs
For anyone running Suricata inline on OPNsense at home or in a small lab: when an unfamiliar allowed alert shows up, what are you checking or retaining on the endpoint side to verify whether the connection actually succeeded and which process opened it?
Hi TrevTron,
nice write-up. I haven't tested your tools, so this is only general practice for your question.
On the firewall side, besides the alert I would keep the EVE "flow" records for the same 5-tuple: bytes and packets in both directions tell you if anything came back. For UDP like STUN there is no handshake, so reply bytes are the only evidence.
On the endpoint side, to see which process opened a connection I would use Sysmon event ID 3 (network connection: process, user, destination) or the Windows Filtering Platform audit events, together with the DNS client log to see which name was resolved. On Linux, auditd or osquery do the same. Keeping those logs with a timestamp lets you join them to the alert.
Sergio
Hi Sergio, I appreciate the breakdown, especially with this being my first post here.
That makes a lot of sense on both sides. Right now my collector saves the raw syslog verbatim, but only indexes event_type "alert" into SQLite. Pulling in EVE "flow" records (joining on flow_id and the 5-tuple) is a great call for seeing whether stateless UDP like STUN actually got reply bytes back.
Pairing Sysmon Event ID 3 with the Windows DNS client log is right at the top of my list for the next phase. Having exact timestamp, 5-tuple, process, user, and resolved domain fields lets Python join everything deterministically back to the Suricata alert instead of guessing from headers or reverse lookups.
Quick question if you have run EVE flow logging on smaller OPNsense boxes: do you forward all flow records off the firewall over syslog, or filter/keep them local so they do not flood storage?
Thanks again,
Trevor