This page explains three features that work together: admin-access monitoring, event correlation with a local-LLM review, and the dashboard tools for working through the results (drill-down, Related column, collapsible and rearrangeable boxes). For installation see SETUP.md.

Every event passes the same stages in order. Each stage removes or resolves some events, so fewer reach the next one and AI cost and human attention stay low.
With web search on, stages 3 and 5 also enrich the event: the attacker indicators named in the threat reports the AI reads are hunted through this network’s own logs and kept on the event as researched artifacts (Indicator hunt).
The two images below follow one real event through stages 3 and 4 (addresses and the host name are changed; scores, probabilities, queries and hit counts are the real ones). The event is a threat-intel finding: a game server answered inbound connections from two threat-listed IPs.


pasta.avx2 is, and the owner of one listed IP via its ipinfo.io page).For every review of an event that involves an internal system, Syn also runs four fixed searches (they do not use up the planner’s own search budget; each shows its plain-English reason on the event): (1) admin connections - ssh, telnet, rdp, vnc, winrm - going TO the system in the 3 hours around the event and the addresses they came from (Zeek conn); (2) accepted ssh logins in the 12 hours before, with user and source address (auth log); (3) sessions opened / closed per user (auth log: more logons than logoffs = probably still logged in); (4) which people’s accounts ran programs on the system around the event, with the parent program (endpoint process logs, system accounts excluded). The system’s host.name comes from the event text or from the auth log’s host.ip. Events with no internal system get none.
Every way an administrator, or an attacker moving sideways, gets onto another machine is tracked between internal hosts, successful and failed.
| Category | Protocols (catalog in adminproto.py) |
|---|---|
| Remote shell / desktop | SSH, Telnet, RDP, WinRM / PowerShell remoting, VNC, rexec/rlogin/rsh, TeamViewer, AnyDesk, RustDesk |
| Remote execution / management | SMB admin shares (PsExec), RPC / DCOM (WMI, PsExec service), Docker API, Kubernetes API, kubelet, MikroTik Winbox, Proxmox, VMware ESXi, IPMI, Cockpit, Webmin |
| Databases | MSSQL, MySQL, PostgreSQL, Redis, MongoDB (failures count; successful app traffic is normal) |
Evidence (extras.admin_access(); each source is optional):
ssh auth_success, rdp result, ntlm / kerberos success, PsExec-style
service creation (dce_rpc svcctl CreateService) and PSEXESVC written over SMB.user:pass@ are removed from command lines before anything is stored.Evidence is merged per (from, to, protocol) and rated (lateral.admin_sessions(), also used by the risk score,
the nightly report and the watcher):
| Level | When |
|---|---|
| High | ≥ 10 failed logins, ≥ 3 invalid user names, or ≥ 3 failures followed by a success on the same account (possible guessed password) |
| Medium | any failed login, or ≥ 5 refused connections |
| Low | 1–4 refused connections, or a successful session not covered by the network policy’s allow list |
| Allowed | a successful session that the network policy allows |
Failures also raise host risk: they add to the threat score of the machine being logged into and to the reach score of the machine trying. On the dashboard: Network → Lateral movement → Admin access has stat tiles, a logins-by-protocol chart (click to filter), an outcome chart, the session list and the admin tools seen.
The watcher (every event window, default 5 min) (watch.py check 7) runs the same logic over its window. It raises Admin ALERT
(investigate) for high and Admin notice for medium, tagged with ATT&CK (T1110.x brute force, T1021.x remote
services), muted for 12 h per (from, to, protocol, level).
dashboard/app/correlate.py (served at /api/correlate?id=<snapshot>) turns every event in a snapshot into a node:
| Type | Source |
|---|---|
| Alert | watcher alerts in the window (for the newest snapshot: up to now) |
| Finding | baseline behaviour findings |
| IDS | Suricata signatures (very chatty info rules are skipped) |
| Admin | admin sessions (above) |
| Endpoint | Elastic Agent / osquery host findings |
| Gateway | UniFi gateway events: IPS threat detections, high-severity, WAN, device and VPN events (gw|<time>|<key>|<src>|<dst>) |
| Threat intel | inbound / outbound listed IPs, listed domains. An outbound IP hit carries the TLS server names / DNS names the network used for that address (dns artifacts) and is low on a CDN / shared-hosting address (Cloudflare, Akamai, WP Engine, AWS…), medium at most otherwise: an IP-only hit is not suspicious on its own. The reviewer is told to judge the domain / SNI / certificate and research it on the web. Feed entries for a big shared service’s own host (e.g. login.microsoftonline.com) are never listed. |
| Vulnerability | open Fix-list items: timeless, related by host |
Candidates are pairs that share an entity: an internal host (MAC addresses and endpoint host names are resolved
to the same IP; gateway interfaces ending in .1 are ignored), an external IP, a domain or a user account. Nothing is
linked just for being close in time. An entity that sits on most events (more than 60, or half of all events) is
treated as noise and creates no candidates. Each candidate gets a score:
| Part | Points |
|---|---|
| Shared entities, weighted by rarity | weight × 1 / (1 + log₂(1 + n/4)), n = events carrying the entity. Weights: external IP 4.0, domain 3.5, internal host 3.0, account 2.0 |
| Time (events with a time, no vulnerability involved) | two events whose time spans are more than one event window apart (below) are never a candidate; within it: gap ≤ 15 min +2 (“within 15 min”, or “same time window” for long spans); ≤ 1 h +1 (only with a window over 15 min) |
| Same problem seen by two detectors, and a shared entity | +2 (e.g. the “SSH password login” vulnerability and SSH sessions with failed logins; a threat-intel finding and the IDS reputation signature for the same IP) |
| Same ATT&CK technique | +1 |
| Vulnerability and an event that share a host | +1.5 (“vulnerability on the same host”); time is not scored for vulnerabilities |
| Two vulnerabilities on one host | score × 0.5 (context, not an incident chain) |
Kept: score ≥ 1.5, at most 4 of any one type and 10 per event. This is only the proposal; the time-window setting, the review limits and the event reviewer (section 3) decide what is actually looked at.
Artifacts read from the event itself. While it builds the events, correlate.py pulls the concrete things each
event already names: accounts (user alice, “accounts alice (1 failed, 2 ok)”, login-attempt users), processes
(executables in program directories, parent process, command line), files (paths, with a SHA-256 when the text has
one), DNS names (public domains; .lan/.local ignored), plus the event’s host IP and destination IPs. Up to 10 per
event, as [kind, value, relation], without any lookup and before any review. They appear in the Related popover
immediately and are handed to the event reviewer as “known artifacts” of each event.
Every correlation pass also records, without any model: the accounts seen in endpoint logins, auth failures, sudo, account changes, admin sessions and suspicious processes (Network → Users, accounts.py), and how often each IP appears in correlated events, as source or destination, with the accounts, processes and DNS names named in those events. From that it keeps host notes (category behavior, tagged [profile:ip] / [profile:users], author netmon) up to date for the newest report: “frequent” is 5+ events for an internal IP and 3+ for an external one, top 25. The event reviewer reads these as ai_notes. Each artifact stays with the IP it belongs to: processes, files and accounts count only for the event’s single source host (a host finding’s source is the host it was read on; any other IP in it, e.g. “from 10.0.0.5”, is a peer), DNS names for the single source or single destination, and an event naming several hosts on one side adds no artifacts to any of them. They are counts, not verdicts; delete a note on the host pages and it is rewritten next pass if still true.
The script only proposes links. Models decide: the decision model (clef) decides every link and nothing else;
the event reviewer model (whichever is selected) labels every event and writes one analyst write-up per event, the link
artifacts and the notes. A person’s verdict on the event, or on artifacts it shows, outweighs the reviewer’s label. dashboard/app/corr_llm.py runs as a background thread in the
dashboard container. With the decision model on (the default, AI pipeline configuration → Decision model settings) a review pass has two
stages; with it off, the older event reviewer-only flow is used (described at the end of this section).
p ≥ related_min (default 0.5) = related. That answer is the verdict — related and not related
alike — stored with the decision model’s name. The default decision model is syn-correlation-flash: Syn’s own
model, distilled from Cloudflare clef onto Google’s Gemma 4 E4B (FP8, ~8 GB), served by Patapsco AI’s vLLM engine
(ModelDeployment syn-correlation-flash, stack netmon-ai, k8s/syn-flash-patapsco.yaml; weights from a private
Hugging Face repo) and reached only on loopback, 127.0.0.1:30893, through the syn-ai-loopback bridge to Patapsco’s gateway (API and per-model health) — no NodePort,
and every API call needs the key from Secret syn-flash-keys. It answers one token, A (no) or B (yes); p(yes) is the softmax of the two
logprobs (clef._flash_ask). Cloudflare clef on the System One API is still supported when chosen. 4 questions
run in parallel (~1,200 links/min on the GB10; full clef was ~3 s each, ~70 links/min).
The default event reviewer is syn-reviewer-flash, Syn’s reviewer distilled from the Gemma 26B onto Gemma 4
E4B (FP8), the same way (ModelDeployment syn-reviewer-flash, 127.0.0.1:30894; provider “Syn flash (syn-reviewer-flash)”).
The Gemma 26B itself is retired and stays off. Current test setup: the reviewer is Qwen4-35B-A3B (FP8, plain vLLM image
vllm/vllm-openai:qwen4, Deployment qwen4-vllm, k8s/syn-qwen4-vllm.yaml, 127.0.0.1:30892, own API key, text-only, N-gram table on
disk via --engram-config, 8 requests at once; provider “Qwen4-35B-A3B”); syn-correlation-flash still decides the links and the Elasticsearch
planner is syn-esquery-12B (below). syn-reviewer-flash is paused, not removed; rollback is golive_qwen.py rollback. Either reviewer’s prompt uses the
no-note rule: attack-like activity that nothing explains (scanning, password guessing, exploit attempts,
unexpected su / sudo / new accounts, web shells, exfiltration) is suspicious even without a note — a missing
note never makes it benign; benign / expected best guesses (confidence ≤ 0.6) are only for odd-but-harmless
activity such as protocol quirks or TLS / DNS anomalies with no actor behind them.api.ipify.org and cdn.optimizely.com) is
not followed, so each domain gets its own review, web research and label; events once labelled together with another
domain are reviewed again apart. A group settles once its newest event is one event window old
and none of its links is undecided (late Elasticsearch arrivals are covered by the pull gate below, not a fixed
slack); the worker loop then makes one event reviewer call for the whole group — the most severe, best-connected member is the anchor,
the other members are its candidates — and stores the label and reason on every member (each weighed against
its own person’s verdict). Until then the group’s events show ⏳ Pending review · settles at HH:MM on every
page that shows a label (table review_pending, rewritten each pass). The reviewer works on the newest review run
plus every kept older run that still holds an open event with no label (a run covers one window, so a group
usually settles after the next run replaced it; an event whose run was pruned is rebuilt from the event store); an open event with no link at all is a group of its own. An open
event that will not be labelled (cleared by a person, excluded from review, its run removed, 3 failed calls, the
reviewer off) shows ⊘ Not reviewed: reason (review_pending.why); one opened since the last pass shows
Pending review (queued). A labelled group is reviewed again only when
it gains a member (or a member’s person’s verdict / threat-intel hit changes), and then again only after it
settles. Because an event can reach Elasticsearch up to one window after it happened, a group also waits until the
watcher (the Elasticsearch pull, once per event window) has committed a pull whose arrival window ends after its
newest event + one window (window.bookmark("watch")), so no later pull can add a member after the review; the
shown settle time includes that pull. A group made only of streamed events (Suricata alerts, watched syslog,
host alerts — see Event stream below) uses the stream’s bookmark instead (window.bookmark("stream"), which
trails now by about 75 s), so it is labelled about a minute after the window ends rather than at the next pull slot.
The worker does not sleep through that moment: when idle it checks every 5 s and starts a pass as soon as a new
alert arrives or a pending group’s settle time is reached (_idle). Late arrivals: the pull reads by arrival time (event.ingested) from its
bookmark, so an event that reaches Elasticsearch late is picked up by the next pull and never dropped. A watcher alert
keeps when it happened (alerts.event_ts, the Elasticsearch @timestamp; IDS alerts today, other checks fall back
to the pull time) and is placed and linked at that time; it belongs to the correlation of the pull that stored it.
It links to events within one window of it that are still in the newest correlation (those that arrived within about
one window + 5 min); if it joins an already labelled group, that group is re-reviewed once. A late event whose
partners arrived long before it is labelled with whatever it links to among the events of the same late batch.
A group that keeps changing for 3 settle waits (a scan firing every minute) is reviewed anyway.
Fast path: a high-severity event with no label yet gets a provisional single-event review at once (at most 5 per
pass) so alarms do not wait; its group review replaces it after the settle. Each call is one review_events row
with members (events labelled), kind (group / fast / overdue) and delay (seconds from settling to the review).
The call carries all clef-related events, owner / AI / artifact notes and (if enabled) Elasticsearch and web look-ups. It gives the event’s label (suspicious / benign / expected) with a
confidence and writes the reason: an analyst’s write-up of up to two paragraphs headed Why it fired: (the
detector / feed and exact value, then what the device actually did: domains, SNI, certificates, owners, web research)
and Verdict: (the deciding reason, what to check); related events, artifacts and notes only when they bear on the
label. It writes no per-link reason - each related event keeps clef’s verdict text - and gives only the link’s
artifacts (file, process, user, IP, DNS name; each benign / expected / suspicious). It never decides a link.
PERSON'S VERDICT: <verdict> (…) and the reviewer is told to follow it unless concrete evidence of
harm contradicts it. After the answer, the reviewer’s label is replaced by the person’s verdict unless the
reviewer is at least as confident as the verdict’s weight (0.95 for a verdict scoped to artifacts the event
shows, 0.9 for a verdict on the event itself), or the event has a strong threat-intel hit (listed domain or file hash; IP-only and file-name-only hits do not count), the reviewer says
suspicious and the verdict is expected / benign (the suspicious label is kept). An applied verdict takes the
verdict’s weight as confidence and the reason starts Person’s verdict applied (…); the event reviewer said X
(0.NN). The outcome is stored in event_class.owner (verdict, kind, weight, note, matched artifacts, applied or
held and why, the reviewer’s own label and confidence).min_indicators) is
capped at 0.7 (few_indicators_max_confidence; corr_llm.calibrate) before a person’s verdict is weighed in.
The prompt shows the current numbers (corr_llm.with_trust). Stored in
event_class.indicators (JSON list) and returned by classes().user_alert_min_confidence) and two or
more indicators, or a person marked it suspicious (pushgate.user_sure). Baseline-finding alarms
(ev|f|…, a device’s last 24 h against its ~30-day history) never go to Users (pushgate.is_baseline;
baseline_alerts_to_users, default off).
The advice for the device owner says stop using this device only when Syn is 100% sure: suspicious at
confidence 1.0 (stop_device_min_confidence) with at least two indicators (advice.py); Ask AI follows the same
rule. All five settings live under More > Settings > Site (site_cfg.trust()).Host notes (expected behaviour), internet notes and DNS notes are written from the artifacts as before. At most 20
groups per pass, never-reviewed and most severe first. An event whose every link clef
rejected still gets an event reviewer call: the prompt says the empty candidate list is deliberate, so the event
reviewer explains the label from the event and its notes alone. If the call fails (prose instead of JSON, no
label, an error), nothing is stored and the event is asked again on later passes, at most 3 times per set of
link decisions; after that it waits until its group changes. Suspicious medium / high events become alarms.
event_class.model is the event reviewer’s model. Audit-log purpose: event-review.
dashboard/state/corr_llm.db (verdicts; clef’s probabilities in
clef), so each pair is asked once and the decision applies in both directions. A person’s decision (✓/✗, or an
adopted model answer) is never overwritten. ↻ Ask again removes both the verdict and clef’s answer./api/correlate drops rejected links, marks confirmed ones with clef’s verdict text and the artifacts, and flags the
rest as pending. Undecided links that the review limits skip are hidden, not shown as pending.If the decision-model server is unreachable the pass waits and the AI pipeline pages shows the error — it never falls back silently.
flowchart LR
EV["Events + script candidates\ncorrelate.py"] --> LIM{"Review limits\ntype pairs, window,\nmax links, cleared"}
LIM -- "skipped" --> HID["not sent"]
LIM -- "allowed" --> CLEF["Decision model (clef)\nyes/no per link\n= the verdict"]
CLEF --> DB[("corr_llm.db\nverdicts, clef")]
DB -- "group settled:\nnewest event 1 window old,\nno link undecided" --> REV["Event reviewer model\none call per correlated group,\nlabel on every member"]
PV["Person's verdict\n(event or chosen artifacts)"] --> REV
NOTES["Owner / artifact / AI notes,\nuser profiles"] --> REV
MEMO[("lookup_memo\nre-review within 6 h:\nreuse earlier results")] -.-> REV
PLAN["Look-ups first\nplanning call:\nsearches only"] --> ES["Elasticsearch look-ups\nvia host broker (max 3)"]
PLAN --> WEB["Web look-ups (max 2)\nFirecrawl search / page,\nipinfo.io for IPs"]
WC[("web_cache\n7 days")] <--> WEB
REV --> PLAN
ES -- "es_result" --> REV
WEB -- "web_result [W1]..." --> REV
REV --> LAB["Event label\nsuspicious / benign / expected"]
PV -- "outweighs unless reviewer\nas confident or TI hit" --> LAB
REV --> RS["Reason for the label\n+ cited sources [W1] links"]
RS --> SRC[("event_sources")]
SRC --> OE["Open events modal,\nclassification pop-up 🌍"]
REV --> LN["Link artifacts\n(Kibana queries, 🌍 web)"]
LN --> HN["Host / internet / DNS notes\n(+ Sources: links)"]
ES --> KPI["AI pipeline monitoring: look-ups / 24 h,\n% reviews searched, cited, cached"]
WEB --> KPI
LAB --> AL["Alarms (suspicious, medium+)"]
DB --> UI["Related popover,\nAI pipeline pages"]
Cloudflare clef is a “System One” decision model: it writes no text, it returns the probability of yes for a typed question. Syn asks it only related?, once per candidate link.
| clef (default) | clef-flash | |
|---|---|---|
| Size / file | 27B, Cloudflare_clef-Q4_K_S.gguf, 16.6 GB |
9B, Cloudflare_clef-flash-Q4_K_S.gguf, 5.7 GB |
| Speed (4 parallel, this host) | ~3.3 s per link, ~72 links/min | ~1.0 s per link, ~230–365 links/min |
| AIT-ADS benchmark, 320 links | F1 22.0, 66 false links | F1 17.0, 157 false links |
(For comparison, the event reviewer model deciding links itself on the same benchmark: F1 26.2, ~28 links/min.)
Event labels (earlier benchmark). Earlier versions also let clef label events. On the same AIT-ADS benchmark (40 events: 20 attack, 20 normal):
| Who labels the event | Correct | Attacks caught /20 | Normal events flagged /20 | Speed |
|---|---|---|---|---|
| Event reviewer, deciding links itself (older flow) | 62.5 % | 13 | 8 | 3.5 events/min |
| Event reviewer, after clef decided links | 52.5 % | 17 | 16 | 7.2 events/min |
| clef, event + all candidates, p ≥ 0.5 | 72.5 % | 14 | 5 | 21 events/min |
| clef, event + related events only, p ≥ 0.5 | 70.0 % | 14 | 6 | 53 events/min |
| clef, related only, p ≥ 0.8 | 75.0 % | 10 | 0 | 53 events/min |
| clef-flash, related only, p ≥ 0.5 / 0.7 | 47.5 / 67.5 % | 16 / 14 | 17 / 7 | 108 events/min |
These runs had no notes, look-ups or people’s verdicts. clef no longer labels events: the event reviewer labels every event, with the notes, look-ups and a person’s verdict in view, and the decision model decides links only. Lab data, 40 events: differences of 2–3 events are within noise.
The decision model needs a server that implements the System One decision API on loopback:
| Endpoint | Contract |
|---|---|
POST /v1/systemone |
{"model", "state": "<text>", "questions": {"<id>": {"type": "noul", "instructions": "<question>"}}} → {"answers": {"<id>": {"noul": <p(yes)>}}} |
GET /health |
200 when ready (a JSON {"status":"ok"} or an empty body) |
Requirements:
llama-server and SGLang builds with System One support.-b/-ub on llama.cpp, default 8192 here): a decision model reads its whole input in one micro-batch.
llama-server’s default 512 rejects longer event pairs with input … too large, which the client sees as a hang.
Must be ≥ 4096.NETMON_CLEF_WORKERS to the number of slots.clef.py ignores any URL that is not http://127.0.0.1, localhost or [::1], so event
data never leaves the host.Pick how it runs on AI pipeline configuration → Decision model server → Backend (admins). The dashboard reaches the host through
the host broker (POST /clef, clef_server.py); settings are stored in the Syn database (document
clef_server), and CLEF_* environment variables override them.
| Backend | What Syn manages | Endpoint |
|---|---|---|
| Kubernetes deployment (default) | a model deployment named clef in namespace default (SGLang), via kubectl: status, replicas, image, served model, recent log; Stop/Start scale it to 0/1 replicas, Restart replaces the pod |
loopback NodePort http://127.0.0.1:30891 |
| Host service | systemd user unit netmon-clef (clef.sh, llama.cpp llama-server): model file, runtime binary, parallel slots, context, batch, port, Save & restart, start / stop, start at boot, recent log |
http://127.0.0.1:8091 |
| Any other System One server | nothing: set NETMON_CLEF_URL (and NETMON_CLEF_MODEL if the server needs a model name); it is only health-checked |
your loopback URL |
Notes for GPU-sharing setups (one GPU serving both the decision model and the event reviewer): on unified memory
keep both models quantised (e.g. FP8) and start them one at a time; on SGLang, --mem-fraction-static must leave
room for the KV cache after the weights (clef FP8 needs about 0.49 or more), or the server restarts in a loop. The
review worker tries /health 3 times before it pauses reviews with “decision model unreachable”; the AI pipeline monitoring
Status badge then shows Error with a card explaining the cause, since when, and that it retries by itself.
Standing up the host service (the same steps are on the AI pipeline pages under Stand-up instructions):
llama-server supports System One, with GPU support. Syn looks for it at
CLEF_SERVER, on the PATH and in the folders listed in CLEF_SERVER_DIRS (check: llama-server --version).~/models (or a folder listed in CLEF_MODELS_DIR):
mkdir -p ~/models && cd ~/models
curl -L -C - -O https://huggingface.co/bartowski/Cloudflare_clef-GGUF/resolve/main/Cloudflare_clef-Q4_K_S.gguf
(clef-flash: Cloudflare_clef-flash-GGUF/Cloudflare_clef-flash-Q4_K_S.gguf in the same way.)
~/netmon/setup.sh installs the unit, then
systemctl --user daemon-reload && systemctl --user enable --now netmon-clef
(and sudo loginctl enable-linger $USER so it survives logout).curl -s localhost:8091/health → {"status":"ok"}; a /v1/systemone request returns "noul": <p>.
The Decision model box shows the server as up.Troubleshooting: journalctl --user -u netmon-clef -f. Time-outs under load → lower Parallel (the client retries a
lost request twice, 30 s each). Out of memory → clef-flash or a smaller quant.
| Setting | Default | |
|---|---|---|
| Use the decision model | on | off = the event reviewer decides links again (older flow below) |
| Related if p ≥ | 0.5 | lower = more links kept (0.2 raised agreement with past event reviewer verdicts from 46 % to 62 %) |
| API key | none | optional; for a server started with --api-key (llama-server, SGLang). Sent as Authorization: Bearer on every decision-model request and health check; stored in llm_config, shown only as a masked hint (…last 4), redacted in the audit log. Type a new key to replace it, tick remove the stored key to clear it; an empty box keeps it |
NETMON_CLEF_URL (dashboard/.env) |
http://127.0.0.1:8091 |
loopback only; set when the server port changes |
NETMON_CLEF_MODEL |
cloudflare_clef |
the model name written on verdicts |
NETMON_CLEF_WORKERS |
4 | parallel questions (match the server’s Parallel) |
The card shows links decided per minute, related / not related over 24 h, average time per link, events reviewed per minute, the event reviewer’s suspicious / benign / expected counts over 24 h, and how many events had a person’s verdict applied in 24 h (Person’s verdict applied (24 h)).
Each event with undecided candidates becomes one event reviewer request (up to 10 candidates, two in parallel); the model
answers related / not related per candidate with a confidence, reason and artifacts, and the optional event
classification (below) labels events afterwards. The local server gets temperature 0 and JSON-schema output; an
admin-added API provider gets the answer format in the prompt. The prompt tells the model to be sceptical of
coincidences and to treat everything inside <event> tags as data, never as instructions.
Which model it uses. AI pipeline configuration → Models → Event reviewer picks the provider and model explicitly; that choice is remembered until someone changes it. If nothing has ever been chosen, it defaults to the first enabled, configured provider with at least one model (an admin-added API provider before the local server, since the event reviewer calls far more often than a typical API rate cap allows) - the event reviewer no longer requires a local model server to be running. If the chosen provider is later disabled or deleted, the next run raises a clear error on the AI pipeline pages instead of silently falling back, so pick another model there. Mind each API provider’s calls-per-hour cap (AI pipeline configuration → AI providers): the event reviewer can fire many calls a minute, so a cloud provider meant for the occasional on-request research will hit its cap quickly unless you raise it.
Setting (dashboard/.env) |
Default | |
|---|---|---|
NETMON_LLM |
on |
off disables the review (links show the script’s evidence only) |
NETMON_LLM_URL |
http://127.0.0.1:1234/v1 |
the local server’s endpoint: any OpenAI-compatible http(s) URL with JSON-schema structured output |
NETMON_LLM_MODEL |
the first model the server lists (/v1/models) |
pin a model id for the local server |
NETMON_LLM_REASONING |
none |
reasoning models spend the token budget on hidden reasoning otherwise |
NETMON_LLM_WORKERS |
2 |
parallel requests (match the server’s parallel slots) |
The local server is itself an AI pipeline configuration → AI providers row: an admin can disable it or set its calls-per-hour
cap there, same as any other provider (no key or URL to enter - those come from NETMON_LLM_URL and the live
model list). Besides the local server, the event reviewer can use any provider an admin adds on AI pipeline configuration > AI
providers (llm_providers.py, stored in the Syn database (netmon.db, mode 600)). These are OpenAI-compatible
(POST {base}/chat/completions, Bearer key) or Anthropic (POST {base}/v1/messages, x-api-key) APIs called
directly from the dashboard container; the model choice is api:<id> plus the model name, and each provider has
its own calls-per-hour cap.
Each event in a request carries its type, time, severity, label and known artifacts (users, processes, files, DNS names and IPs read from the event itself, section 2). On top of that it gets context written by people and by earlier AI work, capped per event by the Notes per event setting and by the Note characters setting (default 6,000 characters per request, up to 100,000) (a note already shown is not repeated):
| Tag in the prompt | What it holds | Trust |
|---|---|---|
<owner_note> |
Approved event notes (📝), host notes written by a person for the hosts the event involves, and user notes for the accounts it names (subject art:user:<account>, 300 characters each) |
trusted guidance |
<artifact_note> |
A person’s notes on a file, process, user, IP or DNS artifact (📝 beside the artifact in the Related popover, subject art:<kind>:<value>), up to 25, those named in these events first |
authoritative |
<ai_note> |
The research verdict and summary for the event, AI-written and profile host notes (including the expected behavior notes below), and each named account’s profile from Network → Users (usual hosts, sources, methods, hours) | informed but unverified |
Notes are chosen by artifact first. Every host note (people’s, AI-written, event reviewer, internet and profile notes) is indexed
by the artifacts it is about: IPs (internal and internet), DNS names, ports, processes / files (by base name) and accounts. They
are read from the note’s subject, its [reviewer:<kind>:<value>] tag and its text. Before a review prompt is built, the
event reviewer collects the same kinds of artifact from each event (its host and destination IPs, the files, processes, users and DNS
names the script read from it, and the IPs, ports and names in its label) and looks them up in that index. Notes are then
ranked by match: IP, DNS name or process = 3 points, account = 2, port = 1; a note that matches only on a port (under 2 points)
is never picked. Highest score first, then the old order (decision, role, baseline, behavior, config, risk, watch, other, newest
first), and the first Notes per event are sent. This also pulls in notes that hang on a different host or subject
but name the same IP address or DNS name (for example a note on a backup server that mentions the internet address this event
shows); those are shown to the model as (matches ip:…). Processes, files, accounts and ports are local to a host, so a note on
another host never matches on them (an art: subject note about that process or account still does). A [reviewer:…] tag whose
value is not of its kind ([reviewer:ip:25565], [reviewer:dns:LivingRoomTV], [reviewer:process:8.8.8.8], a protocol, analyzer or port filed as a process such as [reviewer:process:dns], [reviewer:process:spicy_stun], [reviewer:process:ssh/publickey] or [reviewer:process:8220/tcp], a detection name filed as an account (THREAT_BLOCKED_V3), or a device name filed as an account) is not indexed;
kb.valid_art checks every event reviewer artifact before it is stored or tagged. Expected artifact notes (corr_llm._note_expected)
go only to the host that owns the artifact: the single source host of an event that really carries it, by artifact key and
kind (corr_llm.art_owners); an artifact in neither event, or in an event with several source hosts, gets no note. Generated [profile:…] notes are only used for their own host, never
matched across hosts. Each note’s artifacts are refreshed whenever it is added or edited, and existing notes were indexed once
at upgrade. Artifacts an event reviewer writes into its notes (the [reviewer:…] tag and the value in the text) are what make the next
reviews find them. On the host pages, the DNS, TLS and IPs notes pages and the notes cards, each note shows its artifacts as chips under the text (⚙️ process / file, 🌐 IP, 🔎 DNS name, 👤 account, 🔌 port), so you can see what the event reviewer will match on.
DNS notes. Notes on dom:<domain> (or art:dns:<domain>) apply by suffix: a note on example.com covers a.b.example.com; a note on b.example.com covers only that name and below. For each event the DNS names are taken from its dns artifacts and its label (kb.dns_names), the matching notes are found with kb.dns_notes_for (most specific first, up to 6) and are shown to the event reviewer as dns note [domain] (or dns note [example.com covers a.b.example.com]) and to event research as dns_notes on each work item. When the event reviewer judges a dns artifact and adds a note, corr_llm._note_dns writes a host note on dom:<name> (one per name, tagged [reviewer:dns:<name>], updated in place; the name must appear in one of the two events). GET /api/kb/dns lists domains with their notes.
Note review (accept / reject). host_notes has status (‘’ not reviewed, approved, rejected), reviewed_by, reviewed_at (added to kb.db automatically). An admin or defender sets it with POST /api/kb/host {action: approve|reject|clear, id}. approved makes corr_llm._human() true, so the note goes in the owner-notes group and research items carry authoritative: true. rejected notes are dropped by every AI-facing read (kb.host_notes(..., ai=True), notes_by_artifacts, dns_notes_for, kb.dump, netmon_mcp) but stay on the pages. add_host_note raises for an ai author changing an approved/rejected note, and kb.put will not delete one, so the AI can neither edit nor recreate them. A person editing a note clears its status.
Host notes are ordered decision, role, baseline, behavior, config, risk, watch, other, then newest first; accounts come
first because they decide most “expected” calls. Unapproved User notes never reach the AI. The prompt tells the model
never to let an <ai_note> outweigh an owner or artifact note, or concrete evidence of harm.
With the decision model on, the event reviewer writes one analyst write-up per event and artifacts per link, never a per-link reason (see How each AI step is prompted, section 7). In the older flow it returns per candidate:
benign (looks odd, harmless), expected (normal for this
device or task) or suspicious (needs a person’s eye). benign and expected must be backed by a note and the
model must name it; without support it chooses suspicious. Values must come from the events, never invented.expected becomes a
host note (category behavior, author ai, tagged [reviewer:<kind>:<value>]) on the host both events involve
(up to two hosts, the shared IPs first). One note per host and artifact, updated in place, marked unverified; delete
one on the host’s page if it is wrong. Notes whose value does not appear in either event, or that name the host’s own
IP, are not written. Later reviews and event research read them as <ai_note>s. Turn this off with
NETMON_REVIEW_HOST_NOTES=off in dashboard/.env; a host holds at most 40 notes.query artifact on the links it was run for (up to 12 per link): the search in KQL, its time range, the hit count
and the model’s why. In the Related popover it is a 🔭 query button that opens Kibana Discover with that
search (needs kibana_url / kibana_data_view in the site settings (More → Settings); without it the query is shown as text). A search that
uses aggregations or clauses KQL cannot express is marked ≈ and opens a broader search than the one the model ran.With the decision model on, the event reviewer labels every event in stage 2 and this switch is not needed.
AI pipeline configuration → Review limits → Classify events (off by default) makes the event reviewer give every event whose correlation
review is finished one label: suspicious (needs a person’s eye), benign (odd but harmless) or expected
(normal for this device, user or task), with a confidence and reason (prompt CLASS_SYSTEM: the same two-paragraph
Why it fired: / Verdict: write-up, 50–140 words, and the same threat-intel weighting as the event reviewer,
section 7.2, and the same indicators rule: a suspicious label with fewer than two independent indicators is capped at
0.7). An event qualifies when none of its links is
undecided and at least one is decided; the confirmed related events are the evidence. benign / expected need a
supporting owner, artifact or AI note that the reason names, otherwise it says suspicious. At most 20 events are
classified per pass on the newest snapshot, an event is re-classified when its set of verdicts changes, and events
that are cleared, excluded or muted are skipped. The label is a 🏷 badge next to the Related count (click for the
reason) and the page shows the totals. Turning it on offers to enable the event reviewer’s Elasticsearch look-ups too, which
classification uses. Audit-log purpose: event-classify.
Admins and network defenders choose which candidate links are never sent to the event reviewer, to save tokens. Skipped links are neither reviewed nor shown (links that already have a verdict are unaffected). The box shows how many candidate links each setting affects.
| Limit | What it does | Default |
|---|---|---|
| Link types (grid) | Every event type (ids, alert, admin, ti, gw, host, finding, vuln, seg) × severity (low, medium, high) against every other: each cell is review or skip. Click a cell to flip it. Cells you never touched inherit the default. |
review, except on a brand-new deployment (no verdicts yet): skip, so nothing is sent until an admin opts in |
Severity of seg |
Segmentation issues and findings are their own type. Their severity is set by the port: high = admin / remote-control ports (SSH, RDP, SMB, WinRM, databases, Docker and Kubernetes APIs, the policy’s sensitive_ports), low = standard service ports (standard_ports, default web, mail, DNS, NTP, LDAP…), medium = any other (odd) port. All other types take the event’s own severity (critical/severe/investigate = high; moderate/warning/review = medium; anything else low). |
– |
| Time window | Shown here, set as the event window (More > Settings > Site > event_window_minutes): only events that happened within X minutes of each other are correlated. The gap is measured between the two events’ time spans. Events without a time (open vulnerabilities) are never “apart”. The box shows how many candidate links are outside the window now. |
5 min |
| Max links per event | Undecided links one event may have. Best script score first; a link needs room at both of its events; the rest are skipped. 0 = no cap, at most 200. |
0 |
| Discard old verdicts | Delete verdicts (and artifacts) whose pair has not been a candidate link for more than N days. Runs hourly after a snapshot has refreshed the “last seen” times; person-made verdicts are kept and the freed space is returned to the disk. 0 = keep forever, at most 3650. |
0 |
| Classify events | See above. | off |
Mute rules (legacy). Excluding events and Never send rules were removed: nothing is held back from the queue or the event reviewer by name, host or ID, and the Review limits API ignores those fields. Alerts are no longer muted from the Alerts page; use 🚫 suppress instead (below). Mute rules saved before the change still clear matching alerts as they arrive and are listed in the Alert mute rules card on the Alerts page, where Remove rule brings their alerts back.
Suppress findings. Suppressing hides a finding like a check-off does, but as a rule by signature name, and it is listed under Settings → Configuration → Suppress rules. Nothing is bypassed: the event stays in correlation, research and review.
* = any text, ? = one character, otherwise “contains”),
optionally plus one artifact that must be involved. The artifact dropdown is filled from the event itself (📍 This
event) and from the events correlated with it (🔗 Correlated events, with the event each came from):
🌐 IP (source and destination), 🔗 domain, 👤 user, ⚙️ process, 📄 file, 🔌 port. other… takes a typed value (wildcards allowed).
A rule on a correlated artifact also covers findings and alerts correlated with it. Alerts get the same dropdown (🚫 suppress… on the alert).gw|…, whose check-off key is the event id itself) are checked
off with the note suppressed: rule N: … and leave their lists; matching alerts leave the feed and are not pushed (a new alert is checked against the rules when it arrives; its correlated artifacts are checked on the next correlation pass, a minute or so later).suppress_rules and suppress_log; API GET /api/suppress, GET /api/suppress/suggest, and
suppress / unsuppress on POST /api/llm/review-limits.Checked events. Checked-off events (Alerts, Posture, Fix list, Lateral movement…) are reviewed and researched like any other event; nothing is skipped because it was cleared. When the event reviewer classifies a checked event as suspicious, it is un-checked and moves back from Checked into the findings; a later expected or benign classification may auto-close it again (only a person’s un-check keeps auto-close off an item for good). An event a person marked Expected or Benign (📝 verdict buttons) is never reopened by the AI. Which later events count as repeats of a closed one is listed in Closed events and repeats below.
People’s verdicts. The 📝 notes popover on every event has ✅ Expected / 🟢 Benign / ⚠️ Suspicious buttons.
⚠️ Suspicious saves at once. ✅ Expected and 🟢 Benign only select the verdict: an Applies to list then
shows the event’s artifacts as checkboxes (read from the stored event on the server: device dev:, finding kind
find: such as port-spike or a gateway event type, IDS signature sig:, ip:, dns:, proc:, user: and
port:, including ports written as 443/tcp), you type why and press Save ✅ Expected / Save 🟢 Benign.
Tick none for this event only; tick some and the verdict applies to any event that shows all of them (tick
the device too to keep it to that device). Only Expected / Benign can be scoped. The note starts
ANALYST VERDICT: <VERDICT> (... authoritative ...) (plus applies to any event with k1, k2 when scoped), so every
AI prompt that reads event notes (event reviewer, research, Ask AI, MCP) sees it; the verdict and scope are stored in
the note’s verdict and scope columns. Expected/Benign check the event off at once and auto-close also closes later
repeats of it (same stable event key), whatever the four auto-close switches say; Suspicious un-checks it and blocks
auto-close. A User-role account’s verdict waits for a defender/admin approval like any of their notes.
In correlation review an approved verdict outweighs the event reviewer’s label (stage 2 above): the newest verdict
on the event or an earlier run of it weighs 0.9, a scoped Expected / Benign verdict whose artifacts the event all
shows weighs 0.95 (the heavier wins, the newer on a tie). The reviewer’s label is replaced unless the reviewer is at
least as confident as that weight, or the event has a strong threat-intel hit (domain or file hash) and the reviewer says suspicious against an
expected / benign verdict. A new or changed verdict has the event reviewed again. The classification popover and the
Open events window show **👤
Auto-close guard rails (autoclose.py, settings min_conf, protect, expire_days, host_hold in meta autoclose; More →
Configuration). They hold back AI verdicts only; a person’s verdict note always applies:
event_class.confidence >= min_conf (default 0.8) or a
research note also says expected/benign.autoclose.categories(eid, sev), keys in CATS): events in a ticked category are never
closed by an AI verdict.host_hold, default on; window fixed 24 h, HOLD_HOURS). Off: only the suspicious event itself stays
open, the rest of its host closes on its own verdicts. Code-scan findings (iss|sec|, NO_HOLD) never hold a host.
On: hosts (id device/host part plus host_ips, never destination IPs) of open
events seen in the last 24 h whose newest person verdict, or any AI verdict, is suspicious/malicious are held: no AI
closure on them, and AI closures of their events active in the window are reopened (reopened-verdict, reason “held”).expire_days, default 7, 0 = never): an AI closure older than that whose event group repeated after the
window is reopened (log state expired, old time in closed_at); it closes again only on a verdict whose at is
newer than the old closure.
Rules 1 and 2 leave earlier closures alone (counted as kept_*); POST /api/config/triage/reopen-guard reopens them.Queue behaviour. The worker pass repeats about every minute (every 5 seconds while it finds work). It reviews the
newest snapshot first, then snapshots opened in the last hour. If the provider is down or rate-limited the links stay
pending and the worker backs off (3 minutes after an error). Clear review queue (admin, AI pipeline pages; or docker exec netmon-dashboard
python /app/enrich.py clear-review) gives every undecided link of the newest three snapshots the verdict not related by
dismissed:<user> (“review queue cleared by an admin”) and remembers those events: undecided links between two
remembered events are never asked again, links to new events are. Undo by deleting verdicts whose model starts with
dismissed:. Clear event queue dismisses the current snapshot’s event families from the queue (new
events and Send to research are unaffected). python /app/enrich.py clear-queue --wipe (inside the dashboard container) additionally deletes all research notes
and the model’s verdicts after backing up both databases.
Off by default. When an admin turns on AI pipeline configuration → Models → Elasticsearch queries · correlation review, the event reviewer may search the
Security Onion logs for more context before it decides an event’s links, for example to check whether the host
behind an IDS alert also made the failed SSH logins, or whether a domain was resolved before the connection. For a
threat-intel hit on an IP it is told to look up the TLS server name (zeek ssl ssl.server_name), certificate
(zeek x509) and DNS names (zeek dns dns.resolved_ip) for that address and web-search those domains: the site
decides, not the shared address.
| Setting (AI pipeline configuration → Models, admin only) | Default | |
|---|---|---|
| Elasticsearch queries · correlation review (checkbox) | off | lets the event reviewer search the logs |
| Elasticsearch queries · event research (checkbox) | on | separate switch: lets event research (Send to research) search the logs (es_search tool) |
| Max per event | 3 | the total number of searches the event reviewer may run for one event review (one anchor event and its up to 10 candidates), 1–20; classification uses the same budget |
| Note characters | 6000 | total characters of notes in one review request (1,000–100,000, context_notes.chars), set below Notes per event; the re-check of a single link uses a third of it |
| Notes per event | 7 | host + user notes the event reviewer is given for each event, 1–100 (the llm_config settings context_notes); more notes = more tokens in |
The event reviewer’s switch and Max per event are stored in the Syn database (settings document llm_config) ("es_queries": {"enabled",
"max"}, with who changed them and when); the event research switch is part of the event research settings in the Syn
store (es_search). Both take effect from the next review or run.
How a review works with searches on:
{"decisions": [], "queries": [...]}).es_context.py documents every key):
source (zeek, suricata, detections, endpoint, auth) and why, plus any of
match (exact, all must match), any (at least one, e.g. an IP as source or destination),
exclude (none may match), range (numbers, IPs, dates), prefix (subnet / name start), exists / missing,
text (free text), start / end (default: the anchor’s time ±2 h, at most 7 days);size, sort newest / oldest), or group_by one or two fields (top 10 × 5,
top up to 20, order rare for the least common), metrics (distinct, sum, avg, min, max overall and
per group), or a histogram (1m … 1d, at most 300 buckets) with a regularity summary (active buckets, median gap,
gap_cv — near 0 means machine-regular, a beacon hint).
Field names are checked against the index mapping (_field_caps, cached 30 minutes): a spelling slip at the same
depth (destination_ip) is corrected and reported in the result (fixed_fields), an unknown field is refused with
suggestions, free-text fields are grouped by their .keyword twin, and ranges / sums need number, IP or date fields.
The prompt carries a short playbook that maps hypotheses to searches: scan / sweep (distinct ports and hosts),
beacon (5-minute histogram), exfiltration (bytes out per destination), brute force (distinct users per source),
lateral movement (internal subnet prefix on admin ports), rare / first seen, DNS tunnelling, and “who else”.
Elasticsearch planner (optional). AI pipeline configuration > Models > Elasticsearch planner: an admin can pick a
small model trained only to plan searches. Two exist, both distilled from OpenAI gpt-6.1-sol’s planned and executed searches
plus the admin’s 👍 / 👎 marks: syn-esquery-flash (Gemma 4 E4B, port 30895 via the loopback bridge, ModelDeployment syn-esquery-flash) and
syn-esquery-12B (Gemma 4 12B, LoRA merged, FP8; plain vLLM Deployment syn-esquery-12b, k8s/syn-esquery-12b-vllm.yaml, same port 30895 and the
same key in Secret syn-flash-keys, served model name syn-esquery-12b; the bridge points at one of them at a time; golive_esq12.py configure|rollback).
On 100 held-out events with every search run on Elasticsearch: E4B 99 % valid / 70 % useful (a search that found something), 12B 99 % / 78 %, original E4B
93 % / 62 %, teacher 90 % / 68 %. The 12B needs about 16 GB of GPU memory against about 13 GB. When set, the planner writes the look-ups-first
searches instead of the event reviewer, each with a plain-English why (the hypothesis and what a result would show) that is shown as
Why: under every search on the event and in its Kibana artifacts; web look-ups stay with the reviewer, and if the
planner fails the reviewer plans as before. None (the default) = the event reviewer plans its own searches.
Planning review (admin, /esqreview). Events from Syn’s history with the searches the teacher models planned (each
already run): the admin marks searches 👍 / 👎, runs and adds his own (host broker, read-only, at the event’s time) and
notes. Those verdicts and searches are training data for syn-esquery-flash and syn-esquery-12B; Hermes’s review notes on the page are not.host_broker.py, POST /esquery). es_context.py validates it, builds a read-only _search itself (field names are checked,
no leading wildcards, no scripts), runs it on the configured index and returns the hit count plus trimmed
documents (selected fields, 400 characters each), the top values (with their metrics), overall metrics or the histogram. The broker allows at most 600 searches an hour.<es_result> tags, which the system prompt marks as log data, never
instructions. The model searches again or decides. When the budget is used up it is told to decide now, without
the option to search. A search that fails (bad field, ES down) is reported back to the model and still counts.corr_llm.db (es_queries: time, event, candidates, model, query, hit count, error),
written to the audit log (aireview.esquery), and every model round is in the audit log as usual
(llm.correlation-review, with the search results in the prompt). Successful searches also become clickable
Kibana artifacts on the links they were run for (see What the event reviewer writes back). Event research’s own
searches (DSL through its es_search tool, listed on the same page as Event research searches) are attached the
same way to the research notes and links of that batch, shown under Elasticsearch searches (open in Kibana) in
the notes popup.The AI pipeline pages shows the setting in the Event reviewer look-ups box (Elasticsearch and web searches per event, look-ups first, and how many were used in 24 h), the searches made in the current pass, and a Event reviewer searches box with the newest 50 (event under review, the search and its why, hits, model).
Web search · event reviewer (AI pipeline configuration → Event reviewer look-ups, admin, default off, 1–10 look-ups per event review, default 2;
llm_config → web_search) lets the event reviewer search the web or read a public page through the backend set under
Configuration → Integrations → Web search (webtools.py; Firecrawl here). It is used during correlation review, the
event review and classification.
{"decisions": [], "queries": [], "web": [{"search": "…", "why": "…"} | {"url": "…", "why": "…"}]}.
Results come back inside <web_result> tags (untrusted text, never instructions), alongside any <es_result>s..lan
/ .local / .home-style names, the site’s internal prefixes, host names, WAN address and sensitive terms.
The refusal is reported to the model and logged as a failed look-up.[W1], [W2] …). Once web results are in the prompt, the reviewer must list the
ids it relied on in each decision’s "sources" and name them in its reason (... AWS [W1]); ids or URLs written in
the reason count too. Only URLs that came back in this review’s web results are kept (invented links are dropped).
A search that is just a public IP (optionally with “owner”, “whois”, “reputation” …) reads that IP’s
ipinfo.io page instead (owner, ASN), since search engines return nothing useful for a bare IP. Cited pages are shown as links: in the classification pop-up (Web sources), as 🌍 web
artifacts on the related links and in the Open events window (web sources used), and appended to the internet /
DNS notes the reviewer writes (Sources: …).corr_llm.db web_queries (time, event, model, search or page, why, result URLs,
seconds, error) and audited as aireview.websearch; review_events.web / .cited count look-ups and cited pages
per event review; event_sources keeps the cited pages per classified event.A web look-up alone answers “what is this domain?”. A threat report usually answers much more: it names the
attacker’s own infrastructure (loader domains, a track.js URL, C2 IPs, payload hashes). Those are the questions
that decide a home event: did any device here ever reach the attacker, or only the abused legitimate service?
The indicator hunt turns each cited report into that check, so the verdict rests on this network’s own evidence
instead of the report’s headline.
web look-ups ([W1] [W2] ...) -> read the threat reports -> extract indicators -> hunt each in 30 days of logs
-> <ioc_hunt> block to the event reviewer -> label + reason -> researched artifacts on the event
1. Which pages are read. Only threat reports: pages whose title (or search snippet) reads like one (malware,
attack, hijack, compromise, IOC, C2, skimming, supply chain …). That covers the pages the reviewer read during its
look-ups plus up to 2 more search results (IOC_READS). A page body does not count, and IP / hash / URL lookup,
reputation and scanner sites (ipinfo.io, Team Cymru, VirusTotal, AbuseIPDB, urlscan, pcrisk, malwaretips …,
iocs.LOOKUP_SITES) are never mined: what they list is whatever was looked up, not attacker infrastructure. Vendor
documentation is not mined either. Reads go through the same web
backend and the shared Syn web cache (key i:<url>, up to 20,000 characters), are logged in web_queries
(why: read the threat report for its indicators) and audited like any other look-up.
2. What is extracted (iocs.py, at most 20 per review):
| Kind | Example in a report | Kept as |
|---|---|---|
| Domain | `loader-example.cc`, ldr1[.]example-bad.icu |
dns |
| URL | https://loader-example.cc/track.js, loader-example.cc/track.js (no scheme) |
url (and its host as dns) |
| Public IP | 203.0.113.40 |
ip |
| File hash | MD5, SHA-1, SHA-256 | hash |
Defanged forms ([.], (.), [dot], hxxps://, and markdown-escaped \[.\]) are re-fanged first. An indicator
written as code, in a table or defanged is strong and always kept; a plain-prose domain must appear at least twice.
Never extracted: link and image targets (navigation, the publisher’s CDN), file names that look like domains
(track.js, card.php), names whose last label is not a real top-level domain (iocs_tlds.txt, the IANA list -
so vendor.console is ignored), well-known platforms (Google, Microsoft, GitHub, Cloudflare, AWS, social networks
…), the publisher’s own site, the event’s own domains and IPs, the pages already cited, private / non-routable
addresses, network addresses (x.x.x.0, x.x.x.255), and anything a sentence of the report itself clears (“… resolves to 203.0.113.7. These are delivery
addresses, not malicious indicators”).
3. The hunt (host broker POST /iochunt -> es_context.hunt, at most 120 per hour; each indicator’s result is
cached 6 h in corr_llm.db ioc_hunt, so a group of events citing one report is hunted once). One read-only
aggregation over the last 30 days of:
| Indicator | Fields searched |
|---|---|
| Domain / URL host | dns.query.name, ssl.server_name, tls.client.server_name, http.virtual_host, url.domain, destination.domain; a registered domain (loader-example.cc) also matches every sub-name through dns.highest_registered_domain |
| IP | destination.ip, source.ip |
| Hash | hash.*, file.hash.*, process.hash.* (md5 / sha1 / sha256) |
over Zeek (DNS, TLS, HTTP, connections), Suricata and endpoint events. Per indicator it returns the hit count, first and last time, the 5 busiest local devices, the log types and the DNS names seen. The DSL is built from the validated values only (no scripts, no free text from the page). Syn’s own stored events (open or checked off) that name the indicator are counted too.
4. What the event reviewer gets. One block after the web results, plus a rule (IOC_RULE) to use it:
<ioc_hunt indicators="5" seen_here="1">
- dns loader-example.cc (from [W2]): not seen in this network's logs in the last 30 days; no earlier Syn event names it
- url https://loader-example.cc/track.js (from [W2]): not seen in this network's logs in the last 30 days; ...
- ip 203.0.113.40 (from [W2]): SEEN HERE 3x in the last 30 days, first 2026-11-02T10:14Z, last 2026-11-02T10:16Z;
devices: 192.0.2.30 (3x); logs: zeek.conn; no earlier Syn event names it
- ...
</ioc_hunt>
Seen here means a device really contacted the attacker’s infrastructure: the reviewer names the device, the times and the report. Not seen means the report’s later stages (loader download, exfiltration) did not happen from this network in that window, and the reason says so. If the broker or Elasticsearch fails, the indicators are still listed, marked log search failed, and the review goes on.
5. Stored and shown. corr_llm.db event_iocs (event, kind, value, source page and its [Wn] id, hunt result,
Syn-event matches, model, time). A correlated group’s members get the anchor’s set. A re-review that runs no new hunt
(look-up memo, no reports) keeps what is stored. classes() returns them as iocs, and the AI verdict pop-up, the
Open events window and Alerts show them as 🔬 Researched artifacts: each row tagged researched artifact, with its
kind and value, seen here N× in 30 days (red; devices and last time) or not seen here in 30 days (green), how many
earlier Syn events name it, the report it came from ([W2], linked), the 📝 notes and 🔎 search buttons, and the
model flare. The list opens by itself when anything was seen here.
6. Artifact notes: the indicator is bad, and here is the article. Every indicator also gets an AI note on its
artifact (kb.add_ioc_notes, subject art:dns:<domain> / art:ip:<ip> / art:hash:<hash>; a URL is filed on its
host domain and kept in the text), category risk, tagged [ioc:<kind>:<value>]:
[ioc:dns:loader-example.cc] MALICIOUS: attacker infrastructure named in a threat report. Treat any contact with it as
an indicator of compromise. URLs in the reports: https://loader-example.cc/script.js, https://loader-example.cc/track.js.
Not seen on this network in the 30 days before 2026-11-20. Reported in: https://report-one.example/post
https://report-two.example/blog (found by Syn research, event reviewer, <model>; source-based, not verified here).
One note per indicator: a later report naming it adds its link to the same note (newest first, up to 4,
IOC_SOURCES_KEPT) and refreshes the seen / not seen line. A note a person approved or rejected is never
changed by the AI. These notes are what makes the finding last beyond one event: they show under 📝 on the
artifact (here, in the Open events window’s notes on this event’s artifacts and on Network → DNS, TLS and IPs), and the event
reviewer reads them on every later event that shows the same domain, IP or hash, so a device that contacts the
infrastructure next month is judged with the report already in hand. Turned off with the other AI host notes
(NETMON_REVIEW_HOST_NOTES=off).
Event research (Send to research) does the same on every page its model reads: web_fetch returns the page with
an indicators list (seen_here_30d, devices, first / last, logs) so the researcher can es_search the ones seen
here, and the run stores them on the researched event (event_iocs, model marked (research)) and writes the same
artifact notes (via event research).
| Limit | Value | Where |
|---|---|---|
| Extra threat reports read per review | 2 | IOC_READS (corr_llm.py) |
| Indicators per review | 20 | MAX_IOCS (iocs.py) |
| Hunt window | 30 days | HUNT_DAYS (es_context.py) |
| Hunt result reuse | 6 h | IOC_HUNT_TTL (corr_llm.py) |
| Hunts per hour | 120 | IOC_RATE (host_broker.py) |
The hunt runs only when web search is on for the event reviewer (it needs a report to read) and Elasticsearch is
configured. Requirement WEB-09; tests tests/unit/test_ioc_pivot.py.
An event is reviewed again whenever its set of links changes (often hourly). Within 6 h (NETMON_LOOKUP_MEMO_H) a
re-review gets the earlier review’s look-up results again (corr_llm.db lookup_memo, with their [W] ids so
citations still resolve) instead of a new planning step and new searches; the reviewer may still ask for more. Web
searches and page reads are shared across all events (Syn web cache, web_cache; AI pipeline configuration → Event reviewer
look-ups: on/off, 1–30 days kept, default on / 7 days, entries + 24 h hit rate, Clear cache), so the same IP’s
ipinfo.io page is fetched once, not for every event naming it; such look-ups are logged with cached = 1. The AI pipeline monitoring
page shows both (re-reviews reusing look-ups; web look-ups answered from cache).
Models tend to decide in the first round and almost never ask for searches. Look-ups first · event reviewer
(AI pipeline configuration → Event reviewer look-ups, admin, default on; llm_config → lookup_plan) adds a planning call before every review that
may search (Elasticsearch and/or web on): a separate STEP 1 prompt whose answer can only be
{"queries": [...], "web": [...]} (PSCHEMA for schema providers). The planned look-ups run, then the usual rounds
follow with the results (more look-ups allowed up to the per-event limits). Costs one extra model call per review
(about the prompt tokens again). Slips in planned searches are tidied before the broker sees them (_fix_query:
times like 2026-11-05 00:00 UTC -> ISO, unreadable ones dropped for the default window, destination_port ->
destination.port, the ` x357 event count stripped from rule names and web searches). review_events.es /
.planned` record searches per review; the Event reviewer Elasticsearch box shows the share of reviews that searched.
The AI pipeline pages report how often it searches: a Web look-ups (24 h) KPI and a Web search line in the Event
reviewer box (look-ups in 24 h, % of event reviews that searched). The look-ups themselves are items in the Audit
log (action aireview.websearch, user Syn (event reviewer)): the 24 h count links there for admins, the Audit
log has a Web searches KPI and an event reviewer web searches filter link, and each entry shows the search or page,
why, the event under review, the result count (or error, or cached) and the result links.
Searching costs time and, with Anthropic or OpenAI reviewers, tokens: each round resends the event, its candidates and the earlier results. Most decisions are clear without searching, and the model is told not to search then.
Throughput with a ~30B open-weights event reviewer on a single local GPU is about 15–30 links a minute. A full day’s snapshot (~2,000 candidate pairs) takes 1–2 hours the first time; after that, only new pairs are asked. If the event reviewer’s current provider goes down or hits its rate cap, the worker backs off and retries, and links stay pending until it’s reachable again (or an admin picks a different model on AI pipeline configuration → Models).
Shows the review job (status, schedule, last run, note coverage, token and cost history), the event reviewer’s status (reviewing / waiting / idle / error / off), the queue for the current snapshot with % reviewed and an ETA, verdicts per hour, tokens per minute and the average tokens in / out per event review, and every decision with both events (linked), the verdict, confidence and the model’s reason. Both pages are four boxes, one per part (the former boxes are sections inside them): Models (monitoring: each model’s source and up / down status; configuration: models, AI providers, decision model server), Correlation review, Event review and Research review. Monitoring shows figures and decisions, configuration holds every setting. The boxes:
| Box | What it holds |
|---|---|
| Review job | Health, event reviewer model, schedule, Run now / Pause, latest run summary, note coverage of the current snapshot |
| Time and tokens: review job, event research and Ask AI chat | Tokens and estimated cost per day, and per researched event |
| Decision model | clef’s speed (links / min, time per link), related / not related, event reviewer labels per day, person’s verdicts applied (24 h), on/off and the related threshold |
| Decision model server | (admins) The netmon-clef server: status, served model, model file / runtime / parallel / context / batch / port, Save & restart, start / stop, log, stand-up instructions |
| Event reviewer | The event reviewer’s status, speed (verdicts per hour, tokens per minute, average tokens in / out per event review) and error |
| Queue: events without a note / Links awaiting review | The two queues. Clear event queue and Clear review queue (admins) sit under them and ask for confirmation |
| Models | Provider and model for the event reviewer (also used by the review job), event research and chat; the Elasticsearch switches (event reviewer, event research) and Max per event; Notes per event |
| AI providers | Added API providers, calls-per-hour caps, Local server on/off |
| Review limits | Link types grid, time window, max links per event, verdict retention, event classification (above) |
| Event research limits | Cost and size caps of event research (section 5) |
| Decisions | Filters: verdict (confirmed, rejected, set by a person), event type, event pair, confidence, this snapshot only. Per decision ✓ / ✗ overrides the model (stored as manual:<user>, never overwritten), ↻ deletes the verdict so the model reviews that link again |
| Event reviewer searches / Event research searches | The newest Elasticsearch searches of each AI |
stream.py)Elasticsearch has no change feed, so Syn tails it: stream.py (a long-running child of the scheduler) reads
every 15 s the documents that arrived (event.ingested) since its bookmark (meta arrival:stream), up to
now − 60 s (two index refreshes). Windows touch end to end, so every document is read by exactly one tick however
late it reaches Elasticsearch; a tick with a failed check keeps the bookmark and the next tick reads the span again.
| Streamed | Index | Alert key (same as the watcher) |
|---|---|---|
| Suricata alerts: severity 1 or a malware / C2 / exploit category, not known-benign | logs-suricata.alerts-so |
ids|<signature>|[<src>] |
Watched syslog patterns (host policy syslog_patterns with "watch": true), one search for all patterns |
logs-system.syslog-default |
host|syslog|<host>|<pattern> |
| Elastic Defend alerts | logs-endpoint.alerts-* |
host|defend|… |
| Security Onion detections (Sigma rules: SOC / grid login failures, …); high / critical = ALERT | logs-detections.alerts-so |
host|detect|<host>|<rule> |
The checks live in streamchecks.py and the watcher runs the same IDS check (its host check still covers syslog
and Defend), so the watcher stays the fallback when the stream is down. Both share the 12-hour mute (watch_mute), so
an event is stored once, by whichever saw it first. Streamed alerts are stored with source stream, held (events
for correlation and the event reviewer, never an alarm or push by themselves) and with the event time (event_ts).
A new alert wakes the dashboard’s event-store ingest (within 10 s, otherwise every 5 min) and the event reviewer
(within 5 s), and a high-severity one gets its provisional label at once (fast path).
Timeline (event window 10 min): a Suricata alert at 12:00:00 reaches Elasticsearch at about 12:00:30, is read by the stream by about 12:01:45, is on the Alerts page and in the correlation a few seconds later, and its group (if nothing else joins) is labelled at about 12:11:15 — the window, plus the stream’s lag. Before the stream it waited for the next watcher pull (up to 10 min) and then for a pull past 12:10 + 2 min margin, i.e. about 12:21–12:30.
Run python3 stream.py status for the bookmark and the last tick (docs state/stream: span, counts per check,
new alerts, errors) and python3 stream.py once for one tick by hand; log logs/stream.log. Load: three small
searches per tick (~0.6 s), about 17,000 a day.
benign / expected / suspicious call and
relation, and 🔭 query buttons that open the AI’s Elasticsearch searches in Kibana. 📝 beside an artifact adds your
note on it (the AI reads it). Each item jumps to its own list filtered to that one event (?ev=<id>). That event has
its own Related count, so you can keep pivoting. Beside the count: ✨ notes (the research note, with its
Elasticsearch searches), 🏷 suspicious / benign / expected (the classification, when switched on) and 📝 (your
notes on the event).?zone=, ?country=,
?severity=, ?aproto=…). Filters show as removable chips, and the URL can be bookmarked.The event reviewer’s write-up is the analyst’s report on an event. It shows in full in the Alerts row panel (click
an alert), the Related popover (🏷 badge / verdict), the Open events window and the verdict pop-up: paragraphs
are kept, the Why it fired: and Verdict: headings are bold, and [Wn] citations link to the pages the reviewer
read (🌍 sources under it). Shorter forms use only the Verdict paragraph:
| Where | Text |
|---|---|
Alarm title (review alarms, sync_alarms) |
<event label> - AI review: suspicious (<Verdict paragraph, 160 characters>) (reason_summary) |
Phone push (pushgate.context) |
AI verdict: <label> - <Verdict paragraph, 140 characters, cut on a word> + group size |
| Older reasons without headings | first 160 / first sentence, as before |
Illustration of the format (a listed IP on a CDN; wording is the reviewer’s own):
Why it fired: OpenCTI’s Phishunt feed lists 141.193.213.10 (score 60,
opencti_ips); the iPad and the laptop made answered HTTPS connections to it this morning. The address is Cloudflare / WP Engine shared hosting; the TLS server names on it were www.clever.com, arlington.palette22.com and amerinat.com. Clever is a school sign-in portal [W1]; nothing ties the feed’s phishing entry to these sites.Verdict: Expected (0.85). An IP-only hit on a shared CDN address, and the sites reached are legitimate school and vendor sites. Nothing to do; a hit on one of those domains themselves would change the call.
review.py) and event research (research.py)There are two separate host jobs:
review.py) runs on the schedule (or Run now). It collects and analyzes a fresh snapshot, then
its event reviewer (the event reviewer’s model) copies earlier notes onto events
that repeat. Everything else waits in the queue. It never researches an event, has no web access and never writes
a note of its own.research.py --event ID) runs only when a person clicks Send to research. It uses the
research model chosen on AI pipeline configuration → Models. It is never scheduled.Both use a small set of read-only lookup tools (shared in aijob.py) plus a validated submit tool they must call
to write anything.
flowchart LR
subgraph SRC["Where they get information from"]
SNAP["Snapshot & analysis\nsnapshots and analysis (netmon.db docs table)"]
KB["Notes KB\nenrich.sh kb (host + event notes)"]
DEV["Device lookup\nnetmon_mcp (traffic, services, findings)"]
ES["Elasticsearch\nSecurity Onion logs, via es_search tool"]
WEB["Public internet\nweb_search / web_fetch"]
PRIOR["Earlier notes\nsame family, correlated,\nsimilar label"]
end
subgraph JOB["Review job — review.py (scheduled / Run now)"]
C["Collect + analyze\ncollect.py, analyze.py (no model)"]
RV{"Event reviewer\n(review job)\nreview-mode events vs prior notes"}
Q["Queue\nwaits for a person"]
end
subgraph REQ["Event research — research.py --event ID (Send to research only)"]
R["Research\none event and its correlated events"]
end
subgraph OUT["What they write (validated submit_* tools only)"]
COPY["Copied note\n(marked 'Copied by the event reviewer')\nenrich.sh copy"]
NOTES["Research note, link verdicts,\nhost notes -> enrich.sh put"]
SRC2["sources documents (netmon.db)\ncited pages only"]
end
SNAP --> C
C --> RV
SNAP --> RV
PRIOR --> RV
RV -- "similar enough: copy" --> COPY
RV -- "different / unsure / no prior" --> Q
Q -. "person clicks Send to research" .-> R
SNAP --> R
KB --> R
DEV --> R
ES --> R
WEB --> R
R --> NOTES
R --> SRC2
collect.py, analyze.py) build the snapshot and fold it into the baseline. No model is involved.enrich.py attaches the candidate prior notes to each such event: the note of the same event family, notes of
correlated events, and notes on same-type events whose label is at least 60 % similar (numbers masked). The event reviewer
(prompt prompts/reviewer.md; tools: Elasticsearch, device lookup, notes KB) answers per event with submit_review:
copy (naming which prior note and why) or queue (leave it for a person). A copy is stored by enrich.sh copy /
enrich.py copy_notes: the earlier verdict, priority, summary, links and research text are reused, with a first line
[Copied by the event reviewer (<model>) from the note on <id> (<date>), researched by <model>: <reason>. Not
re-researched.], and the note’s source shows “reviewer (copied note)”. The event reviewer is told to queue an event when
unsure, when a malicious/suspicious prior doesn’t clearly match, or when the prior is old; events with no prior at all
are queued without asking it. If the event reviewer fails, or no event reviewer model is usable, its events stay queued, so nothing
is dropped. The run summary shows how many notes were copied and how many stayed queued.research.py) runs only on a Send to research click, for one event, with the broadest toolset:
it can query Elasticsearch, look up a device’s full history, read the notes KB, and search/fetch the open web (when
web access is on). It may only cite a page after fetching it, and may only link pages it actually read. Results go
through submit_notes, which shells out to enrich.sh put to store the note, link verdicts and host notes. The host
broker starts it at once; if another research is running, the click waits in research_requests and the scheduler
starts it as soon as the running one ends (at most two tries per click).submit_* tool that validates its input (ids must exist, URLs must have been fetched,
verdicts/priorities must be from a fixed list): the model proposes, the tool enforces the schema before anything
lands on disk.| Setting | Default | What it sets |
|---|---|---|
| Interval | 240 min | How often the review job runs, 5–1440 min, on a grid anchored at 05:00 UTC; the first run at or after 05:00 UTC each day is the daily run (24 h of logs) |
| Event window | 5 min | More > Settings > Site > event_window_minutes (2–120 min, SQLite cfg table, read live — no restart). One setting for three things: the correlation window (two events farther apart never link; events up to one window + 5 min outside a snapshot still count), the review coverage (each run collects everything that arrived since the previous run’s end minus one window, window.arrival(back=), so nothing falls between runs whatever the interval) and the settle wait of the event reviewer (above). The job runs at least once per window (the effective interval is capped at the window, never under 5 min). The old hours lookback (meta review_lookback) is migrated once (hours × 60, clamped) |
| On / off | on | Pause on the Review job card stops scheduled runs |
The per-event-category setting (review / queue / test / skip, categories host, ids12, gw, ti,
alert, the three seg_* severities and high / medium / low / info for the rest) decides what the event reviewer
considers and what shows in the queue: review events go to the event reviewer first, queue events go straight to the
queue, test events are listed and tagged testing, skip events are ignored. New deployments start every category in
test. These live in the Syn store (netmon.db, meta table, key review_job, review_cfg.py; the event window in
the cfg table, lookback.py), so the dashboard container and the host scheduler read the same values. Settings
saved before the review / research split are read from the old research_job record, with the old research mode
read as queue.
The caps below are the Event research limits box on the AI pipeline pages (admins; they apply to the next Send to
research). A research run stops at its next model call once a cap is passed; what it found until then is kept.
0 = no limit. Store meta key research_job (research_cfg.py).
| Setting | Default | What it limits |
|---|---|---|
| $ per research | 5.00 | Estimated cost of one research run (needs a price for the model on AI pipeline configuration → AI providers) |
| $ per day | 20.00 | Send to research is refused once today’s research (UTC) cost this much |
| Tokens per research | 25,000,000 | Input + output tokens of all calls in a research run; works without prices |
| Research batches | 10 | Research conversations per run (8 events each), max 40 |
| Searches per event | 3 | Web searches per researched event, max 20; ignored when web access is off |
| Web access | off on new deployments | Lets the research model search and read web pages and cite them; off = local data only |
| Elasticsearch (Models box) | on | Lets event research’s es_search tool run (separate from the event reviewer’s switch) |
The event reviewer is the model step of a review-job run inside review.py (Review.review_items), using the event reviewer’s model. Its job is to avoid
paying for research twice: when an event is the same activity as one already researched, the earlier note is reused;
everything else stays in the queue until a person sends it to research. Only events whose category is review
(the per-category setting kept in the store) and that have no note of their own enter this phase. Events set to queue
skip it and go straight to the queue; events set to test are only listed on the dashboard.
flowchart LR
subgraph IN["What goes in"]
WORK["Work items\nenrich.sh events\nmode = review, no note yet"]
subgraph PRIORS["Candidate prior notes (enrich.py _prior)"]
P1["Same event family\n(the event's own earlier note)"]
P2["Correlated events\nup to 8, from section 2"]
P3["Similar label\nsame type, >= 60% match\nnumbers masked, up to 4"]
end
end
subgraph REV["Event reviewer — review.py review_items"]
NP{"Any prior\nnote?"}
RM["Event reviewer model\nprompts/reviewer.md\nbatches of 16, max 20 turns"]
TOOLS["Read-only tools\nes_search, device_lookup, notes_kb"]
SUB["submit_review\nvalidated decision per item"]
DEC{"Decision"}
end
subgraph OUT["What happens next"]
CP["enrich.sh copy -> copy_notes\nverdict, priority, summary, links, research reused\nfirst line: Copied by the event reviewer ... Not re-researched\nsource: event reviewer (copied note)"]
RS["Queue\nwaits for a person\n(Send to research)"]
STAT["Run summary\nnotes copied / left queued"]
end
WORK --> NP
P1 --> NP
P2 --> NP
P3 --> NP
NP -- "no" --> RS
NP -- "yes" --> RM
TOOLS <--> RM
RM --> SUB
SUB --> DEC
DEC -- "copy (from = prior id, reason)" --> CP
DEC -- "queue (different / unsure / old / loose match)" --> RS
SUB -. "batch fails or copy step fails" .-> RS
CP --> STAT
RS --> STAT
Step by step
enrich.sh events lists the snapshot’s work items. Review-mode items without a note are
handed to the event reviewer.enrich.py _prior). Each item gets a prior list: the note of the same event family,
notes of correlated events (up to 8, see section 2), and notes on same-type events whose label is at least 60 %
similar with numbers masked (up to 4, via difflib). Each prior carries how it was found, its label, verdict,
priority, summary, research (first 800 characters) and age in hours.prompts/reviewer.md),
with es_search, device_lookup and notes_kb available to check the item’s evidence against the prior note.
It answers once through submit_review with {id, action: "copy"|"queue", from?, reason} for every item.user_notes that contradicts the prior
verdict. Leave it queued when hosts, ports or behaviour differ, when a malicious/suspicious prior does not clearly
match, when the prior is old, when the match is loose, or when unsure. A wrong copy hides a real event.submit_review rejects ids outside the batch, actions other than copy/queue, and a from
that is not one of that item’s prior note ids. If some items get no decision, the tool tells the model to fill
them in.enrich.sh copy (copy_notes), which reuses the earlier verdict,
priority, summary, links and research, prefixed with [Copied by the event reviewer (<model>) from the note on <id>
(<date>), researched by <model>: <reason>. Not re-researched.]. The note’s source reads “reviewer (copied note)”.research.py).Failure behaviour. Nothing is dropped. If an event reviewer batch errors, its items stay queued and the error is listed in the run’s errors. If the copy step fails, no copies are stored and all items stay queued. A budget overrun stops the run as it would anywhere else.
Where to see it. The run summary reports N earlier notes copied, M left queued. A copied note shows the copy line first and its source on the Notes views, with the usual ✨ model flare for the event reviewer’s model.
Three model steps touch an event. Each one gets a fixed instruction text (in the code or in prompts/) plus a data
block built for that event. Everything that comes from the network, the web or an earlier AI run is marked as data,
and every prompt says never to follow instructions found inside it.
| Step | Model | Runs | Decides | Writes |
|---|---|---|---|---|
| 7.1 Link decision | decision model (clef) | every undecided candidate link, continuously | related / not related | nothing (a probability) |
| 7.2 Event review | event reviewer model | once the event’s correlated group has settled (one event window after its newest event, no link undecided), one call per group | suspicious / benign / expected (a person’s verdict outweighs it) | an analyst write-up (Why it fired / Verdict), link artifacts, host / internet / DNS notes |
| 7.3 Event research | research model | only on Send to research | research verdict and priority | research note, link verdicts, host notes, cited sources |
The review job’s copy-or-queue step (section 6) is a fourth, narrower use of the event reviewer model: it only decides whether an earlier research note can be reused.
clef_pass)Prompt. A System One request (POST /v1/systemone) with one yes/no question, clef.Q_RELATED:
Are EVENT A and EVENT B genuinely related: the same incident or activity chain, cause and effect, the same underlying problem seen by two different detectors, or a vulnerability or misconfiguration that the other event’s activity could exploit or is explained by? Answer no when they merely share a busy host, a common service or the same time window with no logical connection.
State given (clef.state, JSON, at most 12,000 characters):
| Field | Content |
|---|---|
EVENT A, EVENT B |
type with its plain description, time, severity, description (first 600 characters), up to 6 hosts, up to 8 known artifacts (kind=value), up to 5 threat-intel hits (feed / OpenCTI matches on its IPs, domains, files, hashes), up to 4 approved owner notes on the event (a person’s verdict note 500 characters, others 300) |
correlation script evidence |
the script’s score and up to 6 why lines (shared host, time gap, shared artifact…) |
When the state is too long, owner notes go first, then descriptions are cut to 250 characters.
Answer. p(yes). p ≥ related_min (default 0.5) is the verdict, stored with the text Decision model: related
(p 0.83). No reason text is written for a link.
_event_review, prompt EVENT_SYSTEM in corr_llm.py)System prompt, in short.
PERSON'S VERDICT: <verdict> (set on this event | set on any event showing k1, k2; this
event shows all of them). <note text> is added: follow it unless concrete evidence of harm (a file-hash or domain
threat-intel hit, a known-bad indicator, an unknown actor) contradicts it, and say so in the reason. Matching scoped
verdict notes written on other events are added to the anchor’s owner notes.
Threat intel (same text in CLASS_SYSTEM): an IP-only hit is not evidence of harm — hosting and CDN
addresses (Cloudflare, Akamai, Fastly, AWS, Azure, WP Engine…) are shared by thousands of sites, so a feed listing
the address says little, less still on a CDN. The reviewer works out which domain, TLS server name (SNI) or
certificate the device actually used (the event’s site names; Elasticsearch zeek ssl / dns / x509 look-ups) and
researches that domain on the web; a legitimate, well-known site means expected or benign. A domain hit on a
well-known legitimate service (a major provider’s login or CDN host) is usually a feed false positive and is
checked on the web first. File-hash hits and domain hits on obscure or look-alike domains stay strong evidence.
The threat-intel line the reviewer is given for an IP hit says so too (intelmatch.lines: IP-only hit, NOT
suspicious on its own … find the domain / TLS SNI / certificate used and judge that).[Wn]). It says plainly when a feed hit is a
shared address or a false positive.Written for a security analyst: specific and factual, no filler. A related event, artifact or note is mentioned only when it supports or undermines the label; never why each related event is or is not linked. How it is shown: What the analyst sees (section 4).
ESCHEMA): {"id": "anchor", label, confidence, indicators, reason} plus {"id": "c<n>", "label": "link",
confidence, artifacts} per candidate. If nothing is related, NO_CANDS says the empty list is on purpose and only
the anchor is answered.User message given (_ask_full):
| Block | Content |
|---|---|
ANCHOR: |
<event id="anchor" type="…" when="…" severity="…" hosts="…"> the label (400 characters), known artifacts (up to 8), threat-intel hits </event> |
| per event | its <owner_note>s (approved event notes, people’s host and user notes, 300 characters each) and <ai_note>s (research verdict + summary, AI / profile host notes, user profiles, internet and DNS notes; 400 characters each), ranked by artifact match, capped by Notes per event and the Note characters budget, each text once per prompt |
CANDIDATES |
the related events, up to max links per event (default 20), picked for variety: round-robin across event types (host, IDS, threat intel, alert, finding, …), each type highest link probability first, and a distinct condition before a repeat of one already picked (repeats only fill leftover slots), each with the same event block, its notes and a script evidence line that starts with decision model: related (p=…) |
OWNER NOTES ON ARTIFACTS |
up to 25 <artifact_note>s: people’s (or approved) notes on art:<kind>:<value> that these events show |
AI NOTES ON ARTIFACTS |
the AI’s own artifact notes (e.g. indicators mined from threat reports) on artifacts these events show, as <ai_artifact_note> - unverified research, never owner guidance; notes on artifacts the events do not show are never sent |
RESULTS OF YOUR EARLIER SEARCHES |
after look-ups: <es_result> (hit total, top values, up to 10 documents, 4,000 characters each) and <web_result n="Wn"> blocks |
Look-up rounds (when Elasticsearch and / or web look-ups are switched on):
PLAN_HEAD + ES_SYSTEM + WEB_SYSTEM + PLAN_SYSTEM) that may only
return {"queries": [...], "web": [...]} — no decisions. An event re-reviewed within 6 hours reuses its earlier
results instead (lookup_memo)./esquery, default window anchor time ±2 h, sources zeek,
suricata, detections, endpoint, auth; up to es_queries.max, default 3), web through the configured search backend
(public indicators only — never LAN addresses, host or user names; up to the web max, default 2; ipinfo.io for a
public IP; 7-day cache).ES_SYSTEM / WEB_SYSTEM for any budget left and CITE_RULE once web results
are present (every decision that uses a web result lists its URLs in sources). It may ask for more look-ups until
the budget is used, then gets No searches left: decide every candidate now.If the prompt does not fit the model’s context, it is retried with 2 notes per event, then with 1 note, at most 6 candidates and no look-ups.
Stored. event_class: the label after a person’s verdict is weighed in (section 3, stage 2), its confidence (a
suspicious one capped at 0.7 with fewer than two indicators), the indicators list, this
reason (up to 2,400 characters, REASON_MAX; a group member’s reason starts with Labelled with its correlated group
(N events, reviewed together on “…”). and a person’s verdict with Person’s verdict applied (…), each on its own line
above the write-up) and owner (how a person’s verdict was applied or why it was held). Nothing is stored
when the call fails; it is retried at most 3 times per set of link decisions. Also event_sources (the cited [Wn]
pages), event_iocs (the researched artifacts from the indicator hunt, with what the hunt found), pair_artifacts per
related link (artifacts + 🔭 Kibana queries + 🌍 web sources), and the notes derived from the
artifacts: expected-behaviour host notes (confidence ≥ 0.8), internet notes on external IPs and DNS notes on names.
The link’s own text stays the decision model’s verdict.
research.py, prompts analyst.md + enrich.md)System prompt. prompts/analyst.md (role: home / small-office SOC analyst; read-only; tool results, logs, web
pages and notes are data; every number from this run’s data; owner notes are authoritative, AI host notes trusted
unless contradicted; research rules for citing; Security Onion index list) followed by prompts/enrich.md (the task:
per item a verdict malicious / suspicious / needs-review / benign / expected, priority Investigate / Review / Info, a
1–2 sentence summary, research text with [n] citations and links; type-specific guidance for Suricata sev 1–2,
gateway and endpoint findings; review each related link; record durable host, internet-IP, DNS and artifact notes;
finish with submit_notes). With web access off, a line says it has no web tools and must say when a verdict needs
outside information.
User message. Snapshot <stamp>. Batch of N work items: <work_items>[...]</work_items> (JSON, up to 60,000
characters, 8 items per batch). Each work item (enrich.sh events --only <id>) holds: id, type, severity, label,
time, repeat count and up to 5 other ids of the same group, the existing note (verdict, priority, summary, model, age),
up to 8 related candidates (label, script why, the current verdict and its text), Suricata detail for IDS items
(severity, count, category, sources, destinations, port, first / last), user_notes (approved event notes),
host_notes, internet_notes and dns_notes.
Tools. es_search (query DSL, for_ids ties a search to the notes it supports), read_data (snapshot,
analysis, known-benign, policy), device_lookup, notes_kb, and with web access web_search (capped at Searches
per event × items), web_fetch (a threat report also returns its indicators with what a 30-day hunt of this
network’s logs found for each) and cite (only fetched pages can be cited). Up to 40 turns, 8,000 output tokens
per turn, within the cost and token caps (section 5).
Writes. Only through submit_notes, which checks ids, verdicts, priorities and links before enrich.sh put
stores the research note (with its Kibana queries), link verdicts and host notes. The research note then reaches the
event reviewer (7.2) as an <ai_note> research verdict … on that event’s next review.
| Setting | Default | Stored in |
|---|---|---|
| Event reviewer provider + model | first enabled provider with a model | llm_config (Syn database) → correlation |
| Chat provider + model | – | llm_config → chat |
| Elasticsearch look-ups for the reviewer: on/off, max per event | off, 3 (1–20) | llm_config → es_queries |
| Notes per event | 7 (1–100) | llm_config → context_notes |
| Note characters | 6000 (1000–100000) | llm_config → context_notes.chars |
| Review limits: link-type modes, default mode | review (skip on a brand-new deployment) | llm_config → review_limits.pair_modes, pair_default |
| Event window (minutes): correlation window, review coverage, settle wait | 2-120, default 5 | cfg table site / event_window_minutes (lookback.py) |
| Event stream tick / margin | 15 s / 60 s | NETMON_STREAM_S (environment of the scheduler unit) / window.STREAM_MARGIN_S |
| Review limits: max links per event | 0 = no cap, max 200 | review_limits.max_links |
| Review limits: discard verdicts after N days | 0 = keep, max 3650 | review_limits.discard_days |
| Review limits: classify events | off | review_limits.classify |
| Decision model on/off, related threshold (0.05–0.95) | on, 0.5 | llm_config → clef |
| Decision model server: model, runtime, parallel, context, batch, port | auto, auto, 4, 32768, 8192, 8091 | Syn database document clef_server (clef_server.py) |
| Event reviewer verdicts, artifacts, classifications, searches, token logs | – | dashboard/state/corr_llm.db (verdicts, clef, pair_artifacts, event_class (with owner), cleared_events, es_queries, review_tokens, review_events; clef_event is retired and kept only so older determinations still show) |
| Review job schedule and modes; event research settings, pending clicks, dismissed queue | see section 5 | store meta review_job, research_job, research_requests, research_dismissed |
| Research notes | – | dashboard/state/enrich.db |
People’s event notes and verdicts (verdict, scope) |
– | dashboard/state/kb.db (event_notes) |
| Host, user and artifact notes | – | dashboard/state/kb.db (kb.py; subjects ip:, mac:, host:, dom:, art:<kind>:<value>) |
NETMON_LLM, _URL, _MODEL, _REASONING, _WORKERS, NETMON_REVIEW_HOST_NOTES |
see section 3 | dashboard/.env |
There is no fuzzy matching. Closing an event (a check-off by a person, an auto-close or a suppress rule) stores an
ack under a key derived from the event id (eventstore.ack_refs() → corr_llm._ack_keys()). An event that
arrives later is “the same” only when it produces the same key; then it stays closed. A different key is a new open
event. On Open events, repeats of one condition are also shown as one row through the group key eventstore.gkey()
(app.js grpRef() / evNorm() mirror it).
| Event | Identity (what must match) | A repeat after closing |
|---|---|---|
Baseline finding f\|<kind>\|<device>\|<detail> |
kind + device + detail. Group key grp\|f\|<kind>\|<device>\|<detail> with volatile numbers (counts, MB, ratios, intervals) replaced by #; IPs, ports (port N, N/tcp) and MACs are kept |
Closed on Open events: the group ack covers every repeat that differs only in numbers. Closed on Posture: the ack (finding, fnv of device|kind|detail) covers the exact detail only. A new IP, port or MAC is a new event either way |
| Segmentation finding | the flow <source MAC or IP>\|<dest>\|<port> (ack type seg), not the detail text |
stays closed (see Clearing segmentation findings) |
Endpoint finding hf\|<key> |
the finding key from the host collector: kind, host and kind-specific parts (e.g. process + remote side for network findings) | stays closed while the key is the same; a new remote IP or name is a new key (Open events merges those variants into one row for display, but each keeps its own ack) |
IDS ids\|<signature> |
the signature name only | stays closed, on any host |
Admin session adm\|<src>\|<dst>\|<protocol> |
source, destination, protocol (ack type admin) |
stays closed |
Threat intel ti\|in\|<ip>, ti\|out\|<ip>, ti\|dom\|<domain> |
direction + listed IP or domain | stays closed |
Fix-list item iss\|<issue key> |
the issue key | stays closed; also resolved automatically once the scan stops listing it |
Gateway event gw\|<time>\|<type>\|<src>\|<dst> |
includes the event time | never: every occurrence is new (use a 🚫 suppress rule for a recurring type) |
Watcher alert alert\|<id> |
the alert row id | never: every alert is new (use a 🚫 suppress rule) |
What can bring a closed event back:
expire_days): an AI closure older than that whose group (gkey) repeats is reopened
(expired) and closes again only on a newer verdict. A person’s closure never expires.corr_llm.reopen_checked() un-checks it, except when a person marked it
Expected/Benign or a suppress rule closed it.HOLD_HOURS reopens AI
closures of that host’s events active in the window.reopened).A person’s Expected / Benign verdict also closes later repeats with the same group key, and a scoped verdict closes any event showing all ticked artifacts, whatever the auto-close switches say.
Research notes carry over on a looser key (enrich.skey()): findings with digits masked, gateway events per
gwfam|<type>|<dst>, watcher alerts per family (first three parts of the alert key). A new event can therefore show
an earlier note even though it is not closed.
alert|<id> · f|<kind>|<device>|<detail> · ids|<signature> · adm|<src>|<dst>|<protocol> · hf|<key> ·
ti|in|<ip> · ti|out|<ip> · ti|dom|<domain> · iss|<issue key> · gw|<time>|<type>|<src>|<dst>
Every piece of LLM-written text in the app carries a purple ✨ model flare (hover for model, source and time):
research notes, device notes, Ask AI answers, correlation-review reasons (Related popover,
AI pipeline pages), and the event reviewer’s paragraph in the Open events detail and under each alert (the flare names the
event reviewer model, event_class.model). review.py records generated_by: {model, via} with what it writes. Chat answers record the model that
answered; correlation verdicts store the event reviewer’s model id. Fix-list “How to fix” text and risk scores are rule-based (no flare).
Tick the box on a segmentation finding (Posture), a Segmentation: Fix-list item, or a flagged port in a Lateral
movement link to mark the flow as expected. It is stored once as a stable flow key (<source MAC or IP>|<dest>|<port>,
ack type seg), so clearing it anywhere clears it everywhere and it stays cleared on later snapshots. Cleared flows
are hidden from Posture, the Fix list and Risk, shown as allowed on Lateral movement, dropped from correlation,
and no longer raise host risk. Failed admin logins on a cleared flow still escalate. They are listed in a
separate Cleared segmentation section (Posture, Fix list, Lateral movement, Checked); untick to bring one back.
For a permanent rule that also applies to the nightly analysis, add it to the network policy’s allow list (More → Settings).