Generated by tests/gen_docs.py from tests/requirements.py and the REQ: tags in each test’s docstring - do not edit by hand. How the tests work: TESTING.md.
A User’s pushes and Alerts page show a short plain-language line (device + what happened); the raw alert text (signature names, IPs) stays with admins and defenders.
The model-training status page (/training) is shown only to admins; defenders and Users get 403, signed-out visitors the login redirect, and a missing status file a 404.
An alarm reaches a User (push or Alerts page) only after the final group verdict is suspicious - never on a fail-safe push, a pending or provisional label, or an expected / benign verdict.
Every log entry sent to Elasticsearch goes to a daily index .YYYY.MM.DD of its own timestamp (whole days can be deleted by a retention rule); every correlation-review pass with work or a problem and every review-job run is logged (syn.review) and summarised on AI review > Review log.
No audit entry is lost while Elasticsearch is slow, busy or restarting: deferred (429/503) entries, a full queue and the queue at shutdown go to the disk spool; re-sends are idempotent (_id = event.id); malformed entries are kept in a dead-letter file; entries are dropped only when disk space runs low.
Every event reviewer web search or page read is an audit-log item (aireview.websearch, user Syn (event reviewer)) with the search or URL, why, the event under review, result count, result links, cached flag and error; the Audit log page labels, counts and filters them (they replace the AI pipeline monitoring web searches box).
Auto-close checks off every open event (any type or age) an enabled AI source calls expected/benign, never one called suspicious, never re-closes one a person reopened, and reopens it when the verdict turns bad.
Open events older than the loaded snapshot keep their related events: the count, linked events, artifacts and the decision model’s (clef) p(related) come from the stored verdicts.
Nightly host note consolidation merges only unreviewed AI notes, keeps every [reviewer:] tag and identifier (IPs, domains, ports, paths, hashes) or leaves the notes unchanged, never touches person-written notes, skips unchanged hosts, and runs once a day at the time set on AI review.
The UniFi pre-warm cache (system/admin log and flow rows, current-state calls, console id) lives in netmon.db with its freshness rules (tail refresh, retention, row cap, 15-min TTL), atomic writes and consistent reads; no cache files are written and the retired cache directory is blocked by the ship gate.
Auto-close guard rails hold back AI verdicts (never a person’s): an event reviewer label below the minimum confidence without an agreeing research note, events in protected attack categories, and any event on a host with a recent open suspicious event stay open (the host hold also reopens that host’s recent AI closures); an AI closure expires after the set days when the event repeats and closes again only on a newer verdict.
Internet notes may cover a wider scope: a note on a parent domain (*.example.com) applies to every subdomain and a note on a CIDR range (/8 or narrower) to every address in it; the event reviewer and event research receive those notes for each covered name / address.
A person’s Expected / Benign verdict on an event can name the artifacts it applies to (scope: device, kind of finding, IDS signature, IPs, DNS names, processes, accounts, ports); any event showing all of them gets that verdict. The event reviewer is told the verdict, and its label is replaced by the person’s verdict unless it is at least as confident as the verdict’s weight (artifact match 0.95, same event 0.9); a threat-intel hit keeps a suspicious label unless the verdict covers the listed indicator (STO-18). Expected / Benign do not save on click: the person adds a reason and picks artifacts, then saves.
Consolidation merges only notes about one shared artifact (not counting the host itself or a bare port), never adds an identifier its notes did not have, and drops malformed [reviewer:] tags, so it never links artifacts the notes did not link.
Security > Event notes lists every person’s event note grouped by the signature that raised it (IDS signature via ids
event, sig: scope or quoted label; detection kind via f
or find: scope; host finding kind; threat-intel direction; admin service; alert title), leaving no note out, and lets people edit a note's text, verdict and scope: admins / defenders edit any note and keep its review status, a User edits only their own notes and the edit goes back to pending; the verdict boilerplate is rebuilt and the editor recorded.
A person’s Expected / Benign verdict stops a recurring alert: its scope may name a whole domain (dns:*. = the name and all of its subdomains, never a bare suffix); a verdict that covers an event's listed domain (written on that event, or scoped to the domain) overrides a threat-intel hit unless the intel grew since the verdict (new feed or higher score); a verdict may expire (7 / 30 / 90 / 365 days, default 30 when the event has threat intel), after which the AI and auto-close ignore it; the AI's notes calling a cleared domain malicious are marked rejected and not written again; report text that names JavaScript code, public resolvers, threat-intel services or victim sites is not extracted as an indicator.
Every host note carries its creation date and last-used date; an AI reading it for an event or host it involves (or a person editing, accepting or rejecting it) restarts the clock, dashboard listings and full dumps do not, and notes unused for the configured days are deleted with their artifact index rows; each note shows how long it has left.
The learned-allowlist findings iot-new-domain (domains, new networks, IPs with no ASN) and new-tls-server (TLS server names) are raised, and destinations collected, only for device classes whose switches are on (class_defs; default iot only, built from the older new_domain_classes / new_tls_classes lists, which are still read until class_defs is saved); collect.py gathers destinations through extras.new_dest_ips.
Notes link only to the artifact they are about: an event reviewer artifact must be of its kind and carried by an event with a single owning host; notes on another host match an event only by a shared IP or DNS name.
AI pipeline monitoring loads its parts separately and lists no individual link decisions: the status request carries no verdict rows but keeps the verdict totals (GET /api/aireview/verdicts is gone).
The Review log shows Correlation review busy: the summed duration of every correlation-review pass in the period divided by the period (capped at 100%), with pass count, median and longest pass, from an Elasticsearch aggregation over all passes, or from the listed entries when only the in-memory log is available.
With the decision model on, clef decides every candidate link (yes/no related?) and nothing else; once no link is undecided the selected event reviewer makes one call per event with its related events and notes, labels it suspicious / benign / expected with a confidence and writes an analyst write-up (Why it fired, with what it actually was, then Verdict) and the link artifacts, with no per-link reason - it never decides a link. A failed answer stores nothing and is retried at most REVIEW_RETRIES times per signature.
Tokens of the decision model and event reviewer are summed per hour and step; the monitoring chart adds an estimated cost only for models with prices set.
GPU use of the local models is sampled per process (SGLang = decision model, vLLM = event reviewer, else other) and averaged per minute for the monitoring chart.
The default decision model is syn-correlation-flash on a loopback-only OpenAI-compatible server: one chat call per question with the trained State / Question / A-B prompt, one token at temperature 0, p(yes) = softmax of the B vs A logprobs; a reply without logprobs raises and stores no verdict.
The event reviewer prompt’s no-note rule: attack-like activity that nothing explains (scanning, password guessing, exploit attempts, unexpected privilege or credential use, web shells, exfiltration) is suspicious even without a note; benign / expected best guesses (confidence at most 0.6) are only for odd-but-harmless activity.
Event reviewer and chat Elasticsearch look-ups are structured requests (never DSL) built and bounded by es_context: exact / any-of / excluded values, numeric and IP ranges, prefixes, exists / missing, one- or two-level top values (common or rare), distinct / sum / avg / min / max metrics and time histograms with a regularity summary; at most 6 filters per kind, 20 top values, 300 histogram buckets, 7 days, 20 s.
Field names in a look-up are checked against the index mapping (_field_caps, cached 30 min): an obvious near-miss is corrected and reported, an unknown field is refused with suggestions, free-text fields group by their .keyword twin, ranges and sums need number / IP / date fields; without a mapping only the shape is checked.
The event reviewer’s look-up instructions include an investigation playbook (scan, beacon, exfiltration, brute force, lateral movement, rare / first seen, DNS tunnelling, who else) mapped to the search features, and the JSON schema offers every feature.
An admin can choose a dedicated Elasticsearch planner model (AI pipeline configuration > Models; none = the event reviewer plans): it writes the look-ups-first searches with a plain-English reason each (shown as ‘Why:’ under every search on the event), web look-ups stay with the reviewer, and a failed planner call falls back to the reviewer.
Admins have an Elasticsearch planning review page (/esqreview): events with the searches the teacher models planned and their Elasticsearch results, where the admin marks each search good / bad, runs and adds searches of his own (host broker, read-only, at the event’s time) and notes; stored in state/esq_review.db (0600), admin-only GET and POST.
For an event that involves an internal system, every review automatically runs standard “who is on this system” Elasticsearch searches, each with a plain-English reason and not counted against the planner’s own search budget: admin connections (ssh, telnet, rdp, vnc, winrm) going to the system and from where, accepted ssh logins (user and source address), session opened / closed per user, and the people’s accounts running processes in the endpoint logs. Events with no internal system get none.
One event window setting (More > Settings > Site > event_window_minutes, SQLite cfg table; whole minutes 2-120, default 5) is read live by the correlation, the review job and the event reviewer without a restart; invalid values are refused and the retired hours review lookback is migrated once (hours x 60).
Two events only become a candidate link when they happened at most one event window apart; events up to one window plus ingest slack outside the snapshot still count.
Review job coverage has no gaps: each run collects everything that arrived since the previous run’s end minus one event window, and the job runs at least once per window (never under 5 minutes).
The event reviewer labels a correlated group (connected decided-related links) with ONE call once its newest event is one window plus ingest slack old and none of its links is undecided, storing the label on every member; a labelled group is reviewed again only after it gains a member and settles again.
The Elasticsearch pull (watcher) runs once per event window, following the setting live, with bookmark windows that touch end to end; a group only settles once a pull has committed arrivals past its newest event plus one window.
A late Elasticsearch arrival is never dropped (arrival-time pull from the bookmark) and keeps its real event time (alerts.event_ts) for correlation and settling; arriving after its group was labelled it still links within the window by event time and causes exactly one re-review.
Every open event gets an event reviewer label even after its review run stopped being the newest and when it has no link (a group of its own); until then it shows Pending review (with its settle time, or queued), and an open event that will never be labelled shows ‘Not reviewed: ' - never a blank.
The stream (stream.py) tails Suricata alerts, watched syslog patterns and host alerts (Elastic Defend + Security Onion detections) every few seconds by arrival time with its own bookmark: windows touch end to end, a failed check keeps the bookmark, alerts carry the watcher’s keys (one 12 h mute for both) and are stored held with source stream.
A group made only of stream-checked events settles on the stream’s bookmark, so the event reviewer labels it within about a minute of its newest event being one event window old (settle = one window, no extra fixed slack); the reviewer and the event store wake on a new alert or a reached settle time instead of waiting for their timers.
A correlated group holds at most one listed (threat-intel) domain: related events about two different listed domains are reviewed, researched and labelled as separate groups, and events once labelled together with another domain are reviewed again apart.
Events whose group has not settled show a filterable ‘Pending review’ badge with the time it settles (never blank); a high-severity event with no label gets a provisional label at once; the AI review page counts events pending review and the settle-to-label delay.
With ‘Wait for AI verdict before phone alerts’ on, an urgent / investigate alarm is not pushed while its correlated group is Pending review (or only provisionally labelled); it stays on the dashboard and is pushed once the group verdict is in.
An alarm whose verdict is expected / benign and that passes every auto-close guard rail (the same autoclose.guard_rails function) is never pushed to phones; it stays on the dashboard and is logged as ‘push suppressed by AI verdict’ (push_gate, verdict pop-up).
An expected / benign alarm that a guard rail holds back (protected category, held host, low confidence, stale) is pushed, naming the guard rail - also when the review withdrew the alarm while it was held.
Suspicious, malicious and unknown verdicts always push, and the notification carries the verdict, confidence, the reviewer’s one-line reason and the group size.
Fail-safe: no verdict within push_hold_max_minutes (0 = event window + 5 min), the event reviewer off or erroring, a ‘Not reviewed’ event, or a gate error push the alarm anyway, marked ‘AI review unavailable’; an urgent alarm is never dropped silently.
push_wait_for_ai (default on) and push_hold_max_minutes live in the cfg table (More > Settings > Site), are validated, and with the switch off every alarm is pushed at once as before.
The watcher and the review job select events by arrival time (event.ingested; @timestamp for documents without it) with a per-job bookmark, so events that reach Elasticsearch late are checked when they arrive: watcher windows touch end to end, the bookmark moves only after a run without failed checks, dashboard time ranges stay on event time, and per-source ingest lag is measured.
OpenCTI settings are validated (URL, scores 0-100, confidence 0.5-1, known severity, PEM CA), the API token is write-only (masked in the public view) and nothing runs unless enabled with a URL and token.
Pulled indicators become local feed lists: only single-value IP / domain / hostname STIX patterns, never private addresses; revoked, expired or below-minimum indicators are dropped; at or above the high score they are SERIOUS.
Matches on OpenCTI lists are reported as one sighting per indicator by Syn’s identity (created once, then its count and last_seen are bumped); a failure never stops the watcher.
Only open events labelled suspicious at or above the configured severity and confidence become incidents, once per logical event; only external IPs and public domains are attached as observables.
File-hash and file-name indicators and malware-sample hashes are pulled into local lists (generic file names and junk hashes are skipped); every hash entry is SERIOUS and matching is case-insensitive.
The event reviewer gets the threat-intel hits on an event’s IPs, domains, file names and hashes (with OpenCTI score and labels); a new hit changes the review signature so the event is reviewed again.
Event artifacts include full file hashes, bare risky file names and external IPs read from the event; artifacts a feed or OpenCTI lists carry ‘listed in ' in their relation.
A sighting points at the live indicator named after the value, else at the observable carrying that hash or file name; the watcher alerts on serious file-hash / file-name hits from Zeek files and endpoint process / file events.
The event reviewer writes an analyst’s write-up of up to two paragraphs headed ‘Why it fired:’ (detector / feed, the matched value and what it actually was) and ‘Verdict:’; it is stored up to 2400 characters, shown with its paragraphs and bold headings, and alarm titles and phone pushes use its Verdict paragraph.
An IP-only threat-intel hit is weak evidence, weaker still on a CDN / shared-hosting address: the hit carries the TLS server names and DNS names the network used for that IP, is low / medium severity (never high), raises no watcher alert on a CDN address, is described to the reviewer as not suspicious on its own (judge the domain / SNI / certificate and research it on the web), and does not stop a person’s verdict from applying; a big shared service’s own host (login.microsoftonline.com) is never listed from a feed.
Feeds are configurable: built-ins can be turned off, re-pointed or marked serious / covered by OpenCTI (never deleted); custom feeds need a valid name, http(s) URL and list type; covered feeds are inactive while the OpenCTI pull is on.
Only active feeds are downloaded and matched (an inactive feed’s old file is ignored); a changed URL is downloaded again at once; domain lists may be hosts files or one domain per line.
With OpenCTI pulling, the built-in block lists come from OpenCTI (URL indicators list their non-shared host, scored IP / CIDR feed observables re-sent within 7 days list their address or range); only the JA3 list is still downloaded.
Every event reviewer web look-up is recorded for the AI review page, and a decision’s cited sources keep only URLs that came back in that review’s web results.
Indicators (domains, URLs, public IPs, hashes) named in a threat report the AI read are extracted, hunted through this network’s logs (last 30 days) and Syn’s earlier events, given to the AI for its analysis and kept on the event as researched artifacts.
The threat-intel trend reads one row per review run from the run_summary table (written once per run), so it never loads run documents and keeps runs whose documents are gone.
Review-run documents (data/) are pipeline input only: once a run is folded into run_summary (threat-intel row), the Fix-list tables (fix_run / fix_item / ..., one column per field, no JSON), finding_seen and the event store, its documents are deleted, except the newest 8 runs and the 05 UTC daily runs of the auto-tune window; the Fix list is one SQL query over the stored rows, so it keeps counting deleted runs.
Lateral-graph nodes are named from the device record, then the inventory, then a known-benign name, else the IP; gateway interfaces take their known-benign name or ‘gateway ()' and carry the known flag and device class.
Unanswered admin-port attempts to a gateway or over UDP stay normal, and an unanswered TCP flow from an internal scanner is medium with a reason naming the scanner.
A network-policy allow rule rates answered admin ports allowed-admin (other ports normal) with the rule’s reason, but never hides a violation or repeated unanswered admin attempts.
A cleared segmentation flow (IP or MAC form, or covered by a segmentation suppress rule) is shown as allowed-admin on its port only, on snapshots and periods alike, and returns to its level when unchecked.
Admin evidence on a port without a flow adds a port row (protocol, session level and reason, port 0 for login-only sessions), and edge ports sort worst first with the documented edge score.
Graph nodes count risky links and connections in and out, edges sort by level then score, and the graph reports whether admin access was collected and from which sources.
Endpoint host names in admin evidence resolve to internal IPs by device name or hostname (short form, longer than 3 characters), inventory name, or the first label of an FQDN.
Extra periods are each requested from the host broker (/range then the ‘lateral’ section, at most 8), merged, and malformed or offset-less periods or broker errors become a clean error message.
GET /api/lateral returns the snapshot (or latest) graph rated with the stored policy and check-offs, merges the p=start~end periods, and answers 404 for unknown snapshots and 400 for bad periods.
The Lateral movement Show filter keeps risky, high+medium, risky+allowed or all links, gateway links only when ticked, and focusing a host keeps only its links.
The Lateral movement page requests /api/lateral for the selected snapshot, adds p= for the time picker’s periods with a ‘N periods combined’ note, reuses the loaded graph while nothing changed and shows API errors.
The lateral SVG graph draws one arrow marker per level, never-answered links dashed, zone labels with host counts, risk scores in host bubbles, GW for gateways and a dashed ring for hosts not in the inventory.
The lateral ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding (else the MAC form) and checked when cleared.
The Admin access section sums logins and failures over sessions, splits open and checked sessions, and explains when there are none or admin access was not collected.
Selecting a link shows its level, both ends with zones, counts, score, ports and admin-session cards; selecting a host (or #/lateral/) focuses it and shows its in/out links and device/admin links.
An address belongs to the policy zone whose CIDR contains it; other internal addresses are ‘internal-other’ and everything else (or an unparsable value) is ‘external’.
Internal flows keep source, destination, port, protocol, connections, answered, bytes, service and both zones per pair; broadcast and self flows are dropped.
A source is an internal scan when its failed connections reach the host or port threshold (configurable in the policy); gateway .1 addresses never are.
The UniFi collector reports clients online, known clients, clients per network, clients missing from the inventory, first seen in the window and IP conflicts, and skips cleanly without an API key.
The UniFi collector summarises flows (totals, blocks per policy, top blocked clients with domains, region blocks, risky flows) and gateway health (ISP, WAN IP, latency, drops, uptime).
/api/history lists banked snapshots oldest first with only the per-device headline numbers (total, internet upload, connections, name) the trend charts use.
The Network map places each internal host in its policy zone (private unzoned addresses in ‘other’) and never draws internet, gateway (.1), network or broadcast addresses.
Network map hosts merge the device registry, DHCP inventory, UniFi clients and live traffic, are marked active only with traffic in the range, and an old IP whose MAC moved is dropped.
Network map host names come from the site display name, then the live traffic name, known-benign name, DHCP name, registry/UniFi name, endpoint host hint, and finally the IP.
Network map hosts carry their device class (by MAC, then IP), risk score and rank, open issues not checked off, Elastic agent and honeypot flags, and whether they are in the inventory.
The Network map lists every configured zone even when empty, in a fixed order then alphabetically, with its gateway, CIDR, host/active/unknown counts, highest risk and issue total.
The Network map draws the internet, the gateway and one node per visible host with one uplink per zone; inactive hosts can be hidden, search dims non-matching hosts, zone risk badges appear from 8 and empty zones say ‘no hosts seen’.
The Network map page shows zone, host, active, not-seen, not-in-inventory and Elastic-agent tiles, a zone summary with the riskiest host and the full host list.
Clicking the gateway on the Network map lists UniFi health and every zone interface; clicking a host shows its details, sources, open issues and device-page link (only with live traffic).
The Traffic map zone-to-zone heatmap has one sorted row and column per zone, connections and bytes per cell, top ports on hover and shading by share of the busiest cell.
The Traffic map lists up to 100 internal flows busiest first and sums internet bytes over devices by country, ASN and protocol, with internet upload by device.
With UniFi data the Traffic map adds a Gateway section (client and flow tiles, health, blocks by policy, clients by network, top blocked clients); without it the section is absent or says ‘No UniFi data’.
With banked history the Traffic map adds a trend section (total and internet-upload bytes, hosts and connections per snapshot) using the snapshots in the range when there are at least two, else all.
Network map and Traffic map are linked from the Network menu; the Traffic map is the traffic view then the gateway and trend sections, and old #/unifi and #/history links land on those sections.
/api/snapshot returns a snapshot’s internal flows, zone matrix and UniFi summary unchanged, and /api/section serves a collected time range’s internal and unifi pieces (404 for unknown ones).
Both Network pages render an empty state (zero tiles, empty zones / matrix) instead of failing when a snapshot has no hosts or no zones are configured.
GET /api/alerts returns the alarm feed newest first without held detections, mute-cleared or suppressed alerts, with limit clamped to 1..2000 and per-row mine plus unread, unread_mine and mode.
An admin or defender who chose devices still gets every alarm with mine set only for those devices (mode some, unread_mine counted); a User only ever receives their assigned devices’ alarms.
GET /api/alerts?held=1 lists held detections newest first with verdict counts for detections and alarms; v= filters by verdict and an unknown v is ignored.
GET /api/alerts?cleared=1 (admin / defender) lists alerts a legacy mute rule cleared with the rule that cleared them; for a User cleared, held and extra are ignored.
POST /api/alerts/read by an admin or defender marks every alert read for everyone; a User’s mark-read is a private marker that leaves others’ unread state alone.
GET /api/alerts/mutes lists the legacy mute rules with how many alerts each cleared for admins and defenders and is refused for Users; the page shows them in the Alert mute rules card.
An alert matching a legacy mute rule is stored cleared, read and never pushed; removing the rule brings back only its alerts, as read and without pushing them.
The watcher raises an investigate detection for a Suricata severity-1 or malware / C2 / exploit category hit not on the known-benign list, naming source, destination and ATT&CK technique.
The watcher raises a DNS-tunnel detection for a domain with 150+ distinct long (avg 20+ chars), high-entropy subdomains in an hour unless benign-listed.
The watcher raises endpoint detections for Investigate-level host findings and for listed Review-level kinds (e.g. agent offline), never for checked-off findings.
A watcher finding is not raised again for 12 hours, and watcher findings are stored as held detections (not in the feed, not pushed, not unread) for the AI review.
The Verdict column shows not reviewed, a person’s verdict (👤) or the event reviewer’s with its confidence, sorted suspicious > expected > benign > unreviewed.
Admins and defenders get Ask, Verdict, Research, Notes and Artifact notes columns; a User gets When, Level, Verdict and Alert with no check-off or Ask. Every role’s rows open inline.
Clicking an alert opens one flat panel right under its row (no modal, no nested sections): the event reviewer’s verdict and paragraph with cited pages, then for admins / defenders research, notes and artifact notes; clicking again closes it. The page lists alerts only (no detections card or verdict tiles).
Each reviewed alert gets a second, separate verdict: advice for the device owner written by the event reviewer model as a SOC analyst to a non-technical user (one action of no_action, watch, update, password, stop_site, stop_app, stop_device, a headline, a 2-4 sentence message starting ‘Syn detected your ...' that names the site / app, says what it is and what to do, up to 4 extra steps, target); a prompt change (PROMPT_VER) rewrites all advice. It is rewritten only when the alert, the reviewer's label / reason or the research note change, at most 4 per pass; bad answers are dropped and 'stop using this device' only when 100% sure (suspicious verdict with confidence 1.0) (else the model is asked again with stop_device ruled out so the message matches; a second stop_device stores nothing).
The Alerts page shows a What to do column (action chip; Users also see the headline), and the inline panel leads with the steps and why for Users (the reviewer’s text below as Analyst’s notes) and adds an Advice for the device owner section for admins / defenders. Users get the advice in their plain /api/alerts feed.
What a User reads about an alarm - the Alerts-page line and the phone push - is the analyst’s model-written note (advice.py), not a fixed sentence: it says when (local time) and what the device did with the concrete site / app / amounts, the everyday thing that usually causes it, and what to do if it was them or not. A ready alarm waits for its note (written on the spot if the review pass has not) up to 30 minutes, then falls back to the plain line.
Syn never tells anyone to stop using a computer or device unless it is 100% sure of a real issue: the alert advice allows stop_device only on a suspicious verdict at confidence 1.0, and the advice and Ask AI prompts both state the rule (otherwise they describe the finding and what to check).
High confidence needs multiple independent indicators all pointing to the same issue: the event reviewer lists its indicators, a suspicious label with fewer than two is capped at 0.7 confidence (defenders still see it), and a User is only told about a suspicious verdict with confidence >= 0.8 and at least two indicators (or one a person marked suspicious).
The who-is-told-what numbers are settings under More > Settings > Site (min_indicators 1-5, few_indicators_max_confidence 0-1, user_alert_min_confidence 0-1, stop_device_min_confidence 0.5-1, baseline_alerts_to_users on/off; defaults 2, 0.7, 0.8, 1.0, off), shown with defaults and notes, validated, read live by the event reviewer (cap and prompt), the User alert gate and the advice.
Which devices alert me: admins and defenders pick All devices or chosen devices (chosen first, badges, save message); a User sees their admin-assigned devices read-only.
The Alerts page has explicit empty states (no alerts, no cleared alerts), a cleared view toggle, a my-devices toggle, and falls back to the plain feed when extras are unavailable.
Every snapshot’s correlation events are persisted in the events table: one row per event id, seen-count incremented once per snapshot, first/last seen and event times only widen, and label/severity/link/doc come from the newest event (capped source item kept).
Fix-list (vulnerability) events in the events store resolve when the latest snapshot no longer lists them, an older snapshot never closes them, and they reopen when listed again.
Repeats of one condition collapse into one row: finding ids that differ only in volatile numbers share a key (IPs, ports, MACs still distinguish), list findings naming the same items in another order share a key (stored group check-offs migrated once, Posture grpRef matches), segmentation findings group by flow key, other events are their own key.
Open events lists unchecked, unresolved events of any age, most severe then newest first; a collapsed row shows the newest variant with summed seen count, all members, earliest first-seen and its source item/IPs.
The list can be filtered by type, severity (case-insensitive) and label text and limited in size; total and per-type counts always describe everything open, and limit=0 returns only the count.
Each event kind maps to the same check-off (ack) type/key the other pages use; kinds without their own list (IDS, threat intel, alerts) are stored as type ‘event’.
A checked-off event (including a Posture check-off of the newest variant or a cleared segmentation flow) is hidden; checking off a collapsed row also hides future variants of it; unchecking restores it.
On the page, host-process findings differing only in the remote side merge into one ‘N variants’ row and segmentation findings of one device and rule toward several devices merge into one ‘-> multiple devices (N)’ row, each with children, union of IPs and all check-offs.
Each displayed row carries extras from its newest member with data: AI research note, classification, person notes, related count and seen counts; failing sources do not break the page.
The Related view of a row lists stored related links of all its members (not links between its own members) with event records for partners, including pruned ones.
The event window (detail) lists every open variant of the condition newest first with their firings; unknown ids give an empty answer and a resolved Fix-list item still opens.
The Open events API (/api/events/open, /detail, /inputs, /related) is readable by admins and defenders only: the User role gets 403 and no session gets 401.
The Open events page draws one card per event type in a fixed order, titled with the open count, with the shared check/severity/verdict/notes and seen columns plus type-specific columns; every type correlate.py emits has a card.
The Open events GET endpoints answer over HTTPS with the persisted store: filters, collapsed rows, check-offs via /api/acks, detail, inputs and related.
Fix-list items (vulnerabilities / misconfigurations) are not part of Open events: /api/events/open leaves them out of rows, per-type counts, the total and the nav badge, and the page has no Fix list card (they are on the Fix list page).
/api/events/open returns at most 2000 rows by default and caps any limit at 5000; invalid limits (negative, non-numeric) must not return unexpected rows or a server error.
An event that is an alert shows the analyst’s advice for the device owner as a collapsed arrow in its detail window: the summary holds the action chip and headline, opening it shows the message, steps and the model.
Every AI verdict badge (label, Pending review, Not reviewed, Posture’s auto-closed check-off flair) opens a verdict pop-up on click or tap: GET /api/verdict (loaded on tap) returns the event reviewer’s label, confidence, reason, model and time, why it is pending or not reviewed, and the auto-close log for the event with a Reopen (POST /api/verdict/reopen) that un-checks it for good.
USER_GUIDE.md (Pending review / Not reviewed, AI verdict pop-up)
The page loads time ranges only: /api/snapshot answers range ids and refuses review-run, malformed or path-traversal ids; there is no review-run list (/api/snapshots).
The snapshot API carries the data of every Posture box: baseline and host findings, IDS signatures, segmentation violations, beacon candidates, threat-intel feeds/hits, DNS-tunnel scoring, malicious JA3 / internal scans, Zeek notices/weird, files and software inventory.
Every requested start/end is handed to the host broker as a time range (no review-run shortcut); times need a UTC offset and the end must be after the start. The page opens on the last 24 h (/api/range/default): the newest pre-collected window (range_warm.py, every 15 minutes) when one is done, else a fresh range.
For a time range, alarms, AI triage, correlation and sources come from the newest nightly report generated at or before the range end (the oldest report when none is).
A collected time range shows its own findings; while it is still being collected the page gets an empty skeleton of the right shape and loads its sections one by one.
A segmentation suppress rule (source / destination / ports) hides matching segmentation violations and findings from the served data without changing the stored snapshot, and a failing filter never breaks the page.
An IDS suppress rule (signature name or glob, optional host) hides the signature (or that host’s share of it) and lowers the alert counts everywhere; removing the rule restores it.
Cleared segmentation flows (ack type ‘seg’, MAC or IP form) and segmentation suppress rules form one cleared set used by risk, lateral movement and correlation.
Check-offs are stored once per item, independent of the loaded snapshot or range, are shared by every account, and only hide rows in the page (show N checked brings them back).
USER_GUIDE.md §5 Checking things off / Open events vs Posture
Each event is mapped to the Elasticsearch records behind it (Zeek, Suricata, endpoint, auth logs; most specific query first, then broader ones) and gets their first and last @timestamp inside its window; IDS signatures, admin sessions and gateway events keep their own record times; status findings with no record behind them get none.
Open events rows, their firings and grouped instances show when the activity happened (first/last Elasticsearch record time, filled every 15 minutes by evtime.py, incrementally as windows extend), falling back to when Syn saw the event, marked (seen), when there is no record.
Posture shows an Occurred column (baseline findings, host findings, threat-intel hits) with the record times inside the selected range from GET /api/events/times; missing ones are looked up on the host in the background (broker POST /evtime) and fill in without a reload; a broker failure never breaks the page.
Baseline and host findings carry last_seen (the newest nightly report that contained them, else the loaded snapshot’s time); the Posture tables show when they happened instead (EVT-03).
Segmentation violations, segmentation findings and seg Fix-list items share one flow key, so clearing one clears all; a device’s MAC form and IP form both count as cleared.
Host findings show a Host column (the computer from the finding key) and a To column (remote side for outbound, this host:port with the source for inbound, empty otherwise).
Admins and defenders read Posture data and manage check-offs and suppress rules; a User gets 403 for snapshots, sections, check-offs, ranges and suppress rules.
A time range collected after the review job still shows the first-seen host findings (new executable, new destination, new login, new listener) that happened in it: new baseline entries on a seasoned host carry their first-seen minute and a range judges ‘new’ against the baseline as of its start.
IDS signature tables (Posture, device page, Threat intel malware signatures) show a Verdict column: the signature’s stored event reviewer label (also when the event is not in the loaded snapshot), Pending review / Not reviewed, a person’s applied verdict and the research note verdict, from GET /api/verdicts (admin and defender only).
The Posture IDS events box is laid out like Baseline and Host findings: a check box + suppress (the shared Open-events ack event / ids
), Ask AI and Kibana, a Severity badge (Suricata 1 = high, 2 = medium, 3 = low) that colours the row edge, open count in the title and checked rows hidden behind a toggle.
Elasticsearch and UniFi URLs must be http:// or https:// without spaces, quotes or brackets; other values are refused and nothing is saved, and accepted URLs are stored without the trailing slash.
Collector index overrides may be comma-separated patterns with wildcards but are refused if they contain spaces, slashes, quotes, ? or #, start with _ - or +, or exceed 200 characters.
Each collector (zeek, suricata, detections) uses its saved index override or the Security Onion default, and default index names used in code are translated to the configured ones.
Without a saved key, Elasticsearch and UniFi use the host secrets file (ES_API_KEY overridable from the environment) and the audit key uses NETMON_AUDIT_ES_KEY; inside the dashboard container the host file is reported as unknown.
The Test buttons for Elasticsearch, UniFi and the audit log try the unsaved form values with fallbacks, report success counts or the HTTP error, never raise on connection errors and never save.
With a send switch off, audit entries of the matching background actors (event/background reviewer, review job, review log = reviewer; event research, research job = researcher) are dropped and counted as skipped, while user actions are always sent.
While the reviewer switch is off the Review log card shows the in-memory entries with source ‘memory (audit log sending off)’ instead of querying Elasticsearch.
Notes per event (1-100, default 7), note characters (1000-100000, default 6000) and notes per host / user (1-500, default 40) are saved one field at a time with the user, read back by the reviewer’s getters, out-of-range values are refused without saving, and hand-edited values are clamped.
Note expiry (days an unused host note is kept, 0-3650, default 30, 0 = never) is saved with the user, shown on the AI pipeline page and refused out of range without saving; hand-edited values are clamped.
The event reviewer uses the local server until a model is chosen; a chosen model is stored with the user and used, only models of enabled providers with a key are accepted, and a model whose provider or model was removed stops the review with an error.
Ask AI is off until a chat model is chosen, the choice is stored with the user, and the Elasticsearch switch for the chat (default on) adds or removes the chat’s search tool.
Web look-ups (default off, 2 per event, 1-10) and Elasticsearch look-ups (default off, 3 per event, 1-20) are stored with the user, other values are refused, and the Elasticsearch maximum is the number of searches the reviewer may run.
Type-pair modes (review or skip) are validated and saved, a skipped pair is never sent to the event reviewer, a new deployment starts with every pair skipped while an existing one keeps reviewing, and legacy skip_pairs / test mode load as skip.
Max links per event accepts 0-200 (0 = no cap), refuses other values without saving anything, and keeps only the best-scoring undecided links of an event.
The time window (0-525600 minutes, 0 = no limit) skips links whose events are further apart, verdict retention accepts 0-3650 days and classify events is an on/off switch; out-of-range values are refused.
The review-limits view lists every type pair with its link count and mode and the setting ranges; the removed exclusion and never-send rule arguments are accepted but store and skip nothing.
The decision model is on by default with a related threshold of 0.5; on/off and the threshold (0.05-0.95, rounded to 2 decimals) are stored with the user, other values are refused and hand-edited values are clamped. There is no event (suspicious) threshold: the decision model decides links only.
Saving an AI provider checks type, name (unique, any case), key format, base URL (https, or http only for LAN / loopback, no credentials, query or fragment), model ids and prices and the number ranges, and fills defaults (official URL, 120 calls per hour).
API keys are write-only: the admin page only sees the last 4 characters, an update without a key keeps it, a changed type or base URL needs the key again, and deleting a provider removes it and its key.
The local server row saves enabled, calls per hour (1-3000), picked models and prices with the user; switching it off stops the event reviewer from using it.
Decision-model server settings default to the Kubernetes backend, are saved with the user only for known backends, listed model files and binaries and in-range numbers (batch at least 4096), and are read back by the server URL, clef.sh’s environment and the decision model’s URL.
Every setting in the shipped policy, host_policy, known_benign and site templates (and every site default) has a non-empty settings_docs entry, and the template’s doc note equals it.
A settings document saved with store.cfg_save comes back from cfg_load identical in values, types and key order (including / # % in keys, empty containers, null and bools), as a private copy.
Policy zones must be a table of name -> valid CIDR and zone_roles must be one of dmz, protected, mgmt, user, iot; anything else is rejected, _ notes are ignored.
upload_spike and spike_thresholds accept only known detections and columns, severity high/medium/low/off and non-negative numbers (no text or booleans).
Unknown device classes, out-of-range or non-numeric sensitive/discovery/gateway ports and non-numeric or below-1 scan_thresholds (hosts, ports) are rejected when saving.
host_policy rejects invalid regexes, site rejects a bad internal_cidr or empty internal_prefixes, known_benign requires signatures and names to be tables.
POST /api/config/cfg rejects unknown documents, missing value, bad or over-6-deep paths, _ keys, missing sections, invalid values, oversized bodies and non-admins without saving anything.
Auto-tune recommendations never write settings; they only make noisy detections less sensitive, leave quiet or switched-off ones alone and never propose severity or min_days.
Applying auto-tune writes only the values of accepted recommendations that are still current (tampered values and unknown ids are ignored); nothing accepted gives 409 and no change.
Discover from UniFi proposes one zone per enabled corporate/guest subnet, roles from the guest flag, network name or members, device classes from gear, fingerprints and hostnames, and writes nothing.
Applying a discovery merges new zones, roles and classes keeping existing ones; with overwrite it replaces roles and classes; it never removes an entry.
Applying a discovery adds internal_prefixes for uncovered subnets (replacing an untouched ‘10.’ default) and POST /api/config/discover previews without writing unless apply=true.
An admin’s save of an Integrations section (Elasticsearch, UniFi, web search, OpenCTI, threat-intel feeds) is persisted and returned by GET /api/config/integrations.
Integration and AI-provider API keys are never returned by any GET (only key_set and a short masked hint); an empty key on re-save keeps the stored key and clear_key removes it.
Switching Send event reviewer / researcher events off on the Audit log page persists and GET /api/audit/status reports send_reviewer / send_researcher accordingly.
The event window, review job schedule, on/off and event modes, event research limits and auto-close settings are saved, read back by their GET, and out-of-range input is refused (400) or clamped without other changes. The guard rails save on every change (no separate Save button) and every auto-close save carries the switches and guard rails as shown.
Admin-added AI providers and the event reviewer / research / chat model choices are saved and read back; unknown types, providers or models return 400 and change nothing.
Event reviewer look-ups (Elasticsearch, web, look-ups first, chat Elasticsearch), web cache, the decision model’s related threshold, context notes, note consolidation and review limits are saved, shown on the AI pipeline page, and invalid values return 400 without changes.
POST /api/config/cfg sets one value in a settings document (read back by GET); unknown documents, bad paths or values that fail validation return 400; auto-tune recommend is read-only and an empty accept list writes nothing.
Admins and defenders choose their own alert devices via /api/push/prefs (read back by GET); some-devices with none picked is refused; a User may not change them.
Every admin-only settings POST returns 403 with a JSON error for a Network defender and a User and changes nothing; defenders may change Review limits but not Elasticsearch-search switches.
The device classes editor (Policy & Site) shows, under each MAC or IP key, the host name Syn learned for it (device registry, then the time range’s devices, then the page’s name lookup) as ‘learned: ', or 'learned: —' when none; the row filter also matches it; the saved device_classes document is unchanged.
The suppress button (🚫 rule) on every event and finding row and the alert suppress button use the same gold pill style and colour variables as the other row action buttons (note / ask), with a line ban icon, gold hover, filled gold active state and a dimmed disabled state.
The ‘More below’ flair of a scrollable box fades out (opacity transition, layout kept) when the box is scrolled to its bottom and fades back in when more is below; no transition with reduced motion.
The magnifying-glass buttons (open related events, search in Elasticsearch) and the web-research count use a gold line magnifier icon instead of the emoji (and the times-seen flair a gold line eye icon), in the same gold colour variables as the other row action buttons, with gold hover, filled gold active and focus states.
The browser Back button or back gesture closes the topmost open modal, popup or mobile menu instead of leaving the page (the welcome wizard steps back a step); closing one with its X, Cancel, Escape or the backdrop removes its history entry so the next Back navigates normally; with nothing open Back goes to the previous page.
Without class definitions every alarm behaves as before: built-in classes (iot, camera, media, game, personal, work, server, k8s, infra) and unclassified each behave like themselves, every alarm is on except the new-destination ones outside iot (or the classes in the older new_domain_classes / new_tls_classes), and every finding kind analyze.py raises has a switch.
An alarm switched off for a class is never raised for devices of that class: baseline findings (analyze.py), live alerts (watch.py), endpoint findings (hosts.py, host matched by learned host name) and destination collection all go through classdefs.alarm_enabled.
Classes can be added, renamed and removed (POST /api/config/classes, admin only); a rename updates device_classes and allow rules using it; a class in use is removed only after choosing a class (or unclassified) for its devices; the first edit stores class_defs and drops new_domain_classes / new_tls_classes; device_classes accepts only defined classes.
Each user-added class behaves like one built-in class and follows its built-in rules (protected-zone and admin-port segmentation, executable downloads, new TLS clients, risk impact, default switches); built-in classes behave like themselves.
Settings > Network policy shows a Device class definitions card (rename, behaves like, an expandable on/off switch per alarm, add, remove with a move target) and the device classes editor offers a drop-down of the defined classes next to the learned host name.
upload_spike, scan_thresholds and beacon each have a device-class scope: classes (which classes the rule runs for; empty or * = every device, unclassified = devices with no class) and by_class (per-class overrides of the section’s numbers; ignore_ports stays section-wide). Without a scope every device gets the section’s numbers as before.
The scope is applied where the findings are made: internal scans (extras.internal_traffic, class by MAC through the device registry or by IP), beacon candidates (extras.beacons, Elasticsearch pre-filter as loose as the loosest class) and upload spikes (analyze.upload_cfg_for).
Settings > Network policy shows the scope as a class drop-down (check boxes) and a per-class override table; cfg_validate refuses unknown classes, empty or unknown override settings and bad values; renaming a class follows into classes / by_class and removing one moves the filter to where its devices went (a narrowed rule never widens to every device).
Auto-tune works per scope: one proposal per by_class override (id section@class, judged on that class’s devices, written to by_class), the section proposal leaves out classes the rule does not run for, and a section-wide change driven by one class also offers an optional class-only override.
The volume-spike finding’s thresholds are the policy section volume_spike (min_mb, times_normal, mad_factor, min_days, severity); its defaults are the former hardcoded numbers (50 MB floor, 3x normal, normal + 6 MAD, 3 days of history, medium), so an install without the section behaves as before and the Settings page shows them with their help text.
volume_spike is validated like upload_spike (values, scope), follows class renames/removals, is listed on the event cards’ detection settings, has a per-class alarm switch, and auto-tune proposes values for it (section-wide and per class override).
Only events seen in Elasticsearch data (IDS, host, threat intel, Zeek-derived findings) record firings; a firing is added per new IDS alert time, and a finding window overlapping the previous firing of the same condition extends it instead of adding one, while the seen count still counts reports.
The Open events detail merges the variants of one related condition into one line that keeps every link’s review time (llm_ats), the union of their artifacts and the most confident variant’s fields, so each firing shows only its own links.
The Alerts web research list shows the event reviewer’s web searches and page reads per event, newest first, marked own or candidate (with its anchor), with only http(s) links, at most per entries, and never manual test look-ups.
The Alerts view sets each alert’s event id and verdict, merges repeats of the same look-up into one row with a times count, strips artifacts and label from people’s notes, and stores each artifact note once (text capped at 700 characters) and refers to it by id per alert.
Detections by verdict lists held detections newest first, with verdict counts kept separate for detections and alarms, an optional verdict filter and a row limit.
The event reviewer writes one analyst write-up per event (up to two paragraphs: Why it fired / Verdict) and gives only artifacts for each related link; the output schema does not require a per-link reason.
Review log entries count events processed: a correlation pass counts each distinct event it touched once, and a review-job run records events processed, given a note and queued and puts them in its log entry and message.
Both AI pipeline pages fold their boxes into four part boxes (Models, Correlation review, Event review, Research review), each with an ⓘ text (what, source, use) under the cardinfo.js key view
Every new or renamed top-level dashboard box (Alerts: Recent alerts; Configuration: Auto-close) has its own ⓘ text in cardinfo.js instead of the generic fallback.
Every setting the code exposes (settings endpoints, Integrations sections, Settings-page documents, setter functions) is listed in the settings inventory, and each one is verified by at least one test.
Stale or missing container logs, high-severity container-log signals (reverse shell, miner, web attack), secrets in logs, pod exec/attach/port-forward, 401/403 bursts, forbidden/PodSecurity events, high SO alerts and new images raise k8s- findings; namespaces exempt in host_policy k8s.signal_exempt raise none.
Kubernetes findings join the nightly host findings (key prefix k8s-, no duplicates) so correlation, review and Posture see them; the pod pivot rejects malformed namespace/pod names.
The Kubernetes API integration accepts only https:// URLs and a one-line token, keeps the token and CA write-only, cannot be enabled without URL and token, and its Test reports whether the account can do more than read.
The CIS benchmark reads control-plane flags, RBAC, pods, namespaces and network policies with GET requests only; failed checks become Fix list items (k8s-cis
, not endpoint findings), accepted checks (host_policy k8s.cis_accept) do not, and checks that need node access are reported as manual, never as passed.
The Kubernetes map links ingress -> service (backend) -> pod (selector) and pod -> workload (ReplicaSet resolved to its Deployment), and summarises each container’s security context.
Several Kubernetes clusters can be configured by name (older single-cluster settings read as ‘default’); the Kubernetes pages filter by one cluster or show all, and Security Onion data is attributed to a cluster by its node names.
Kubernetes warning events and container-log hits that are not findings reach Open events as low-priority host findings (snapshot only, never a watcher alert).
Pod notes: filed on the object that creates the pods - Deployment, StatefulSet, DaemonSet, CronJob or Job (kb subject pod:///; kind pod for unowned static pods) - so one note applies to every pod it creates now or later; the UI says so (owner banner on the pod page, Created by column with a note count on the Pods table). People add them on the pod page; the AI reads them for any of those pods' events and writes (event research host_notes, event reviewer expected-artifact notes).
The Risk page ranks Kubernetes workloads (containers) together with hosts using the same likelihood (exposure, weaknesses incl. image CVEs, threat, reach, visibility) x impact model, and lists container vulnerabilities ranked by risk.
Vulnerability counts over time: once a day the scheduler records open Fix list items by severity, each cluster’s CIS benchmark results and the distinct CVEs (by severity, with a fix available) in its running images (vulnhist.py, table vuln_hist; a same-day re-run replaces that day). Days before daily recording are rebuilt once from stored review runs and never overwrite a daily record. The Fix list and Devices → Kubernetes pages show them as line charts (Kubernetes: all clusters summed, or the picked cluster).
For each running image the newest registry tag of the same form is found (pre-releases skipped), the running and newest images are scanned for CVEs, and images whose critical/high CVEs are fixed by updating become Fix list items (k8s-imgcve
Accounts saved before roles existed become admins on the next start, and it is logged.
pass
AUTH-08
Authentication: A newly created account is flagged for the first-sign-in setup walkthrough until it is finished or skipped; existing accounts are not. (source: ACCESS_CONTROL.md)
add() flags a new account for the welcome walkthrough; welcome_done() clears it; other accounts are unaffected.
pass
AC-01
Access control: Unauthenticated requests get 401 (API) or a redirect to /login (pages); only the login/PWA shell and /healthz are public. (source: ACCESS_CONTROL.md)
A User can load the app shell (the page itself decides which views to show).
pass
AC-04
Access control: A Network defender can read everything and do analyst work but cannot change settings (admin-only POSTs return 403). (source: ACCESS_CONTROL.md)
server.py set-role changes a role from the console; the last admin cannot be demoted.
pass
AC-06
Access control: A User sees only alerts/events of devices assigned to them, and the site config they receive omits IP hints. (source: ACCESS_CONTROL.md (User role))
Level
Test
Verifies
Status
unit
test_config.TestSiteCfg.test_public_subset
public() exposes only the browser-safe keys, never secrets like es_url or sensitive_terms.
A User marking all read does not clear the shared bell of admins.
pass
AC-08
Access control: Role changes, user adds/deletes and password resets are admin-only and take effect on the next request. (source: ACCESS_CONTROL.md (Managing access))
Level
Test
Verifies
Status
unit
test_auth.TestRoles.test_set_role_rules
set_role validates the role and user, protects the last admin and self-demotion, else applies at once.
pass
unit
test_auth.TestUserManagement.test_delete_rules
delete() refuses unknown users, self-deletion, the last user and the last admin; otherwise removes.
Promoting an account takes effect on its very next request, without signing in again.
pass
AC-09
Access control: A User’s pushes and Alerts page show a short plain-language line (device + what happened); the raw alert text (signature names, IPs) stays with admins and defenders. (source: ACCESS_CONTROL.md (User role))
Level
Test
Verifies
Status
unit
test_plain_alerts.TestPlainLine.test_categories
Common alert kinds map to short plain messages; unknown ones get a generic line.
Admin ‘all’ gets both alerts; a User with the laptop gets only the laptop alert; a User with ‘all’ gets none.
pass
AC-11
Access control: The model-training status page (/training) is shown only to admins; defenders and Users get 403, signed-out visitors the login redirect, and a missing status file a 404. (source: ACCESS_CONTROL.md)
Level
Test
Verifies
Status
unit
test_training_page.TrainingPage.test_admin_only
Admins get the status page (no-store HTML); defenders and Users get 403; signed out goes to login.
Access control: An alarm reaches a User (push or Alerts page) only after the final group verdict is suspicious - never on a fail-safe push, a pending or provisional label, or an expected / benign verdict. (source: ACCESS_CONTROL.md (User role))
A successful login sets an HttpOnly, Secure, SameSite=Strict session cookie with a Max-Age.
pass
SEC-04
Web security: Site data (site IPs, MACs, host/account names, private config, DBs, keys) can never be committed to git (repo_guard). (source: SETUP.md §9)
Encoded and plain ../ paths cannot read files outside the static directory.
pass
e2e
test_e2e_dashboard.Pages.test_unknown_api_404
Unknown API paths return 404 for GET and POST.
pass
SEC-06
Web security: The state database and its WAL files (which also hold the UniFi cache) are owner-only (0600); cached controller credentials are redacted. (source: ACCESS_CONTROL.md (Where it lives))
Audit log: Every log entry sent to Elasticsearch goes to a daily index .YYYY.MM.DD of its own timestamp (whole days can be deleted by a retention rule); every correlation-review pass with work or a problem and every review-job run is logged (syn.review) and summarised on AI review > Review log. (source: AUDIT_LOG.md)
Without Elasticsearch the card shows the in-memory ring, with per-kind totals.
pass
AUD-05
Audit log: No audit entry is lost while Elasticsearch is slow, busy or restarting: deferred (429/503) entries, a full queue and the queue at shutdown go to the disk spool; re-sends are idempotent (id = event.id); malformed entries are kept in a dead-letter file; entries are dropped only when disk space runs low. _(source: AUDIT_LOG.md (How it works))
Entries rejected as malformed (400 parsing) are kept in the dead-letter file, not resent or lost.
pass
unit
test_audit.TestNoLoss.test_shutdown_spools_queue
On shutdown the entries still in memory are written to the spool.
pass
AUD-06
Audit log: Every event reviewer web search or page read is an audit-log item (aireview.websearch, user Syn (event reviewer)) with the search or URL, why, the event under review, result count, result links, cached flag and error; the Audit log page labels, counts and filters them (they replace the AI pipeline monitoring web searches box). (source: AUDIT_LOG.md)
The alert feed of a User contains the alert for their device and not the other one.
pass
STO-08
Store: Auto-close checks off every open event (any type or age) an enabled AI source calls expected/benign, never one called suspicious, never re-closes one a person reopened, and reopens it when the verdict turns bad. (source: autoclose.py)
Storing a verdict, and replacing one, both change the mark; reading does not.
pass
STO-10
Store: Open events older than the loaded snapshot keep their related events: the count, linked events, artifacts and the decision model’s (clef) p(related) come from the stored verdicts. (source: eventstore.py / corr_llm.related_view)
Stored related links of a row (all its repeats), newest verdict per partner, artifacts and clef decisions.
pass
STO-09
Store: Nightly host note consolidation merges only unreviewed AI notes, keeps every [reviewer:] tag and identifier (IPs, domains, ports, paths, hashes) or leaves the notes unchanged, never touches person-written notes, skips unchanged hosts, and runs once a day at the time set on AI review. (source: notes_consolidate.py)
Time must be HH:MM and the zone known; the run is due inside 3 h after the local time, once per day.
pass
STO-16
Store: The UniFi pre-warm cache (system/admin log and flow rows, current-state calls, console id) lives in netmon.db with its freshness rules (tail refresh, retention, row cap, 15-min TTL), atomic writes and consistent reads; no cache files are written and the retired cache directory is blocked by the ship gate. (source: docs/ARCHITECTURE.md)
The ship gate flags the retired data/unifi_cache directory on disk and any source that names it again; the
pass
STO-12
Store: Auto-close guard rails hold back AI verdicts (never a person’s): an event reviewer label below the minimum confidence without an agreeing research note, events in protected attack categories, and any event on a host with a recent open suspicious event stay open (the host hold also reopens that host’s recent AI closures); an AI closure expires after the set days when the event repeats and closes again only on a newer verdict. (source: autoclose.py)
While an open event on a host is called suspicious, AI verdicts close nothing else on that host and AI
pass
STO-13
Store: Internet notes may cover a wider scope: a note on a parent domain (*.example.com) applies to every subdomain and a note on a CIDR range (/8 or narrower) to every address in it; the event reviewer and event research receive those notes for each covered name / address. (source: kb.py)
A note added as *.example.com is stored on dom:example.com and applies to a.b.example.com, not to other domains.
pass
STO-14
Store: A person’s Expected / Benign verdict on an event can name the artifacts it applies to (scope: device, kind of finding, IDS signature, IPs, DNS names, processes, accounts, ports); any event showing all of them gets that verdict. The event reviewer is told the verdict, and its label is replaced by the person’s verdict unless it is at least as confident as the verdict’s weight (artifact match 0.95, same event 0.9); a threat-intel hit keeps a suspicious label unless the verdict covers the listed indicator (STO-18). Expected / Benign do not save on click: the person adds a reason and picks artifacts, then saves. (source: kb.py, clef.py, corr_llm.py, kbnotes.js)
An expected verdict written on another event, scoped to an artifact event ‘a’ shows, is told to the event reviewer
pass
STO-11
Store: Consolidation merges only notes about one shared artifact (not counting the host itself or a bare port), never adds an identifier its notes did not have, and drops malformed [reviewer:] tags, so it never links artifacts the notes did not link. (source: notes_consolidate.py)
Two notes that share no artifact (a DNS name and an unrelated IP) stay separate even if the model merges them.
pass
STO-17
Store: Security > Event notes lists every person’s event note grouped by the signature that raised it (IDS signature via ids
event, sig: scope or quoted label; detection kind via f
or find: scope; host finding kind; threat-intel direction; admin service; alert title), leaving no note out, and lets people edit a note's text, verdict and scope: admins / defenders edit any note and keep its review status, a User edits only their own notes and the edit goes back to pending; the verdict boilerplate is rebuilt and the editor recorded. _(source: docs/USER_GUIDE.md)_
A User cannot edit someone else’s note; their own edited note is pending again with the review cleared.
pass
STO-18
Store: A person’s Expected / Benign verdict stops a recurring alert: its scope may name a whole domain (dns:*. = the name and all of its subdomains, never a bare suffix); a verdict that covers an event's listed domain (written on that event, or scoped to the domain) overrides a threat-intel hit unless the intel grew since the verdict (new feed or higher score); a verdict may expire (7 / 30 / 90 / 365 days, default 30 when the event has threat intel), after which the AI and auto-close ignore it; the AI's notes calling a cleared domain malicious are marked rejected and not written again; report text that names JavaScript code, public resolvers, threat-intel services or victim sites is not extracted as an indicator. _(source: kb.py, corr_llm.py, iocs.py, intelmatch.py, server.py, kbnotes.js)_
dns:*. survives clean_scope for a registrable domain or deeper, never a bare suffix, and matches the name
pass
STO-15
Store: Every host note carries its creation date and last-used date; an AI reading it for an event or host it involves (or a person editing, accepting or rejecting it) restarts the clock, dashboard listings and full dumps do not, and notes unused for the configured days are deleted with their artifact index rows; each note shows how long it has left. (source: docs/CORRELATION.md)
Notes unused longer than the setting are deleted with their artifact index rows; 0 days turns expiry off.
pass
ANA-01
Baseline analysis: analyze.py learns a per-device baseline (keyed by MAC) and flags volume/upload/count spikes only after MIN_DAYS of history. (source: analyze.py / RISK_SCORING.md)
Level
Test
Verifies
Status
unit
test_analyze.CompactTests.test_dns_summary
The DNS summary keeps distinct counts, qtypes, TLDs, top domains, resolvers, DoH and DoT conns.
pass
unit
test_analyze.CompactTests.test_hours_and_rounding
Active hours list only hours with connections (sorted); hourly bytes and geo values are rounded.
A device that suddenly uploads 900 MB gets a high ‘upload-spike’ finding keyed by its MAC.
pass
ANA-30
Baseline analysis: new destinations: The learned-allowlist findings iot-new-domain (domains, new networks, IPs with no ASN) and new-tls-server (TLS server names) are raised, and destinations collected, only for device classes whose switches are on (class_defs; default iot only, built from the older new_domain_classes / new_tls_classes lists, which are still read until class_defs is saved); collect.py gathers destinations through extras.new_dest_ips. (source: docs/USER_GUIDE.md (Device class definitions))
correlate.fnv equals a Python model of the app.js function (constants parsed from app.js) for typical ids.
pass
COR-03
Correlation: Events sharing hosts/IPs/accounts/time/ATT&CK are linked when the score passes the threshold, capped per event. (source: CORRELATION.md §2)
The correlation view contains an event for the seeded segmentation finding.
pass
COR-04
Correlation: Host-local artifacts (processes, files, accounts) are attributed only to the host they were read on, never to peer IPs in the same event. (source: CORRELATION.md §2)
When the finding’s host name cannot be resolved, the peer IP is still only a peer.
pass
COR-05
Correlation: Notes link only to the artifact they are about: an event reviewer artifact must be of its kind and carried by an event with a single owning host; notes on another host match an event only by a shared IP or DNS name. (source: CORRELATION.md §2)
/api/mitre serves the ATT&CK matrix (version and tactic order).
pass
AIR-01
AI: AI pipeline monitoring loads its parts separately and lists no individual link decisions: the status request carries no verdict rows but keeps the verdict totals (GET /api/aireview/verdicts is gone). (source: USER_GUIDE.md §7)
The core overview has no verdict rows or decision-model numbers but still counts manual verdicts.
pass
AIR-02
AI: The Review log shows Correlation review busy: the summed duration of every correlation-review pass in the period divided by the period (capped at 100%), with pass count, median and longest pass, from an Elasticsearch aggregation over all passes, or from the listed entries when only the in-memory log is available. (source: AUDIT_LOG.md)
view() puts the Elasticsearch busy aggregation into the correlation summary.
pass
LLM-01
AI: Model answers are parsed defensively: the first JSON object is used and unknown verdicts/priorities fall back to safe values. (source: USER_GUIDE.md §7)
With NETMON_LLM=off the server starts, says the event reviewer is off, and makes no LLM calls.
pass
LLM-03
AI: With the decision model on, clef decides every candidate link (yes/no related?) and nothing else; once no link is undecided the selected event reviewer makes one call per event with its related events and notes, labels it suspicious / benign / expected with a confidence and writes an analyst write-up (Why it fired, with what it actually was, then Verdict) and the link artifacts, with no per-link reason - it never decides a link. A failed answer stores nothing and is retried at most REVIEW_RETRIES times per signature. (source: CORRELATION.md)
A User’s alert feed carries the event reviewer’s paragraph (label, reason, cited pages) for their own alerts only,
pass
LLM-04
AI: Tokens of the decision model and event reviewer are summed per hour and step; the monitoring chart adds an estimated cost only for models with prices set. (source: USER_GUIDE.md §7)
Calls add up per step; purposes map to steps; unknown purposes are ignored; cost only when priced.
pass
LLM-05
AI: GPU use of the local models is sampled per process (SGLang = decision model, vLLM = event reviewer, else other) and averaged per minute for the monitoring chart. (source: USER_GUIDE.md §7)
A minute averages its samples per part; series() buckets and averages the minutes. REQ: LLM-05
pass
unit
test_gpustat.GpuStat.test_parse_and_attribute
pmon rows are attributed by command line; headers and ‘-‘ values are handled. REQ: LLM-05
pass
LLM-06
AI: The default decision model is syn-correlation-flash on a loopback-only OpenAI-compatible server: one chat call per question with the trained State / Question / A-B prompt, one token at temperature 0, p(yes) = softmax of the B vs A logprobs; a reply without logprobs raises and stores no verdict. (source: CORRELATION.md §3)
p(yes) = softmax of the B vs A logprobs, one chat call per question with the trained prompt, 1 token, temperature 0.
pass
LLM-07
AI: The event reviewer prompt’s no-note rule: attack-like activity that nothing explains (scanning, password guessing, exploit attempts, unexpected privilege or credential use, web shells, exfiltration) is suspicious even without a note; benign / expected best guesses (confidence at most 0.6) are only for odd-but-harmless activity. (source: CORRELATION.md §3)
The event reviewer prompt calls unexplained attack-like activity suspicious and never lets a missing note make
pass
LLM-08
AI: Event reviewer and chat Elasticsearch look-ups are structured requests (never DSL) built and bounded by es_context: exact / any-of / excluded values, numeric and IP ranges, prefixes, exists / missing, one- or two-level top values (common or rare), distinct / sum / avg / min / max metrics and time histograms with a regularity summary; at most 6 filters per kind, 20 top values, 300 histogram buckets, 7 days, 20 s. (source: CORRELATION.md (Elasticsearch look-ups))
AI: Field names in a look-up are checked against the index mapping (field_caps, cached 30 min): an obvious near-miss is corrected and reported, an unknown field is refused with suggestions, free-text fields group by their .keyword twin, ranges and sums need number / IP / date fields; without a mapping only the shape is checked. _(source: CORRELATION.md (Elasticsearch look-ups))
AI: The event reviewer’s look-up instructions include an investigation playbook (scan, beacon, exfiltration, brute force, lateral movement, rare / first seen, DNS tunnelling, who else) mapped to the search features, and the JSON schema offers every feature. (source: CORRELATION.md (Elasticsearch look-ups))
AI: An admin can choose a dedicated Elasticsearch planner model (AI pipeline configuration > Models; none = the event reviewer plans): it writes the look-ups-first searches with a plain-English reason each (shown as ‘Why:’ under every search on the event), web look-ups stay with the reviewer, and a failed planner call falls back to the reviewer. (source: CORRELATION.md (Elasticsearch look-ups))
AI: Admins have an Elasticsearch planning review page (/esqreview): events with the searches the teacher models planned and their Elasticsearch results, where the admin marks each search good / bad, runs and adds searches of his own (host broker, read-only, at the event’s time) and notes; stored in state/esq_review.db (0600), admin-only GET and POST. (source: CORRELATION.md (Elasticsearch look-ups))
AI: For an event that involves an internal system, every review automatically runs standard “who is on this system” Elasticsearch searches, each with a plain-English reason and not counted against the planner’s own search budget: admin connections (ssh, telnet, rdp, vnc, winrm) going to the system and from where, accepted ssh logins (user and source address), session opened / closed per user, and the people’s accounts running processes in the endpoint logs. Events with no internal system get none. (source: CORRELATION.md (Elasticsearch look-ups))
Configuration: Suppress rules (signature, IDS and segmentation) are listed and removed on Settings → Configuration; there is no Checked page. (source: USER_GUIDE.md §4 / CORRELATION.md)
The site config a User receives has the site name but no IP hints, prefixes or admin workstations.
pass
EVW-01
Event window: One event window setting (More > Settings > Site > event_window_minutes, SQLite cfg table; whole minutes 2-120, default 5) is read live by the correlation, the review job and the event reviewer without a restart; invalid values are refused and the retired hours review lookback is migrated once (hours x 60). (source: docs/CORRELATION.md)
put() refuses values outside 2-120, fractions, booleans and non-numbers and keeps the saved value.
pass
unit
test_settings_ai.ReviewLimits.test_defaults
Without settings nothing is capped, the window is the default event window (5 min), verdicts kept forever and classification off.
pass
e2e
test_e2e_settings.ReviewJob.test_lookback_saved
The event window is saved under Settings > Site, shown on the AI pipeline page and picked up live; out-of-range or non-numbers are refused.
pass
EVW-02
Event window: Two events only become a candidate link when they happened at most one event window apart; events up to one window plus ingest slack outside the snapshot still count. (source: docs/CORRELATION.md)
The time window is the event window (Settings > Site, read live): links whose events are further apart are skipped;
pass
EVW-03
Event window: Review job coverage has no gaps: each run collects everything that arrived since the previous run’s end minus one event window, and the job runs at least once per window (never under 5 minutes). (source: docs/CORRELATION.md)
The review job runs at least once per event window (never under its 5-minute floor); the stored interval is kept.
pass
EVW-04
Event window: The event reviewer labels a correlated group (connected decided-related links) with ONE call once its newest event is one window plus ingest slack old and none of its links is undecided, storing the label on every member; a labelled group is reviewed again only after it gains a member and settles again. (source: docs/CORRELATION.md)
A group is labelled once, after its newest event is one window + ingest slack old: one call, every member labelled.
pass
EVW-06
Event window: The Elasticsearch pull (watcher) runs once per event window, following the setting live, with bookmark windows that touch end to end; a group only settles once a pull has committed arrivals past its newest event plus one window. (source: docs/CORRELATION.md)
The next watcher run is the next event-window boundary (10 min by default), within one window from now.
pass
EVW-07
Event window: A late Elasticsearch arrival is never dropped (arrival-time pull from the bookmark) and keeps its real event time (alerts.event_ts) for correlation and settling; arriving after its group was labelled it still links within the window by event time and causes exactly one re-review. (source: docs/CORRELATION.md)
A watcher alert stored an hour after it happened keeps event_ts, and correlate.build places and links it at that time.
pass
EVW-08
Event window: Every open event gets an event reviewer label even after its review run stopped being the newest and when it has no link (a group of its own); until then it shows Pending review (with its settle time, or queued), and an open event that will never be labelled shows ‘Not reviewed: ' - never a blank. _(source: docs/CORRELATION.md)_
An open event whose review run is no longer the newest (and a linkless one) shows Pending review with its
pass
EVW-09
Event window: The stream (stream.py) tails Suricata alerts, watched syslog patterns and host alerts (Elastic Defend + Security Onion detections) every few seconds by arrival time with its own bookmark: windows touch end to end, a failed check keeps the bookmark, alerts carry the watcher’s keys (one 12 h mute for both) and are stored held with source stream. (source: docs/CORRELATION.md)
Each tick reads (bookmark, now - margin] on event.ingested; alerts are stored held, source stream, with the event time.
pass
unit
test_stream.StreamTick.test_watcher_twin_is_muted
An IDS alert the watcher already raised (same key) is not stored a second time by the stream.
pass
EVW-10
Event window: A group made only of stream-checked events settles on the stream’s bookmark, so the event reviewer labels it within about a minute of its newest event being one event window old (settle = one window, no extra fixed slack); the reviewer and the event store wake on a new alert or a reached settle time instead of waiting for their timers. (source: docs/CORRELATION.md)
A group of stream events is labelled once newest + window has passed and the STREAM bookmark covers it, while the
pass
EVW-11
Event window: A correlated group holds at most one listed (threat-intel) domain: related events about two different listed domains are reviewed, researched and labelled as separate groups, and events once labelled together with another domain are reviewed again apart. (source: docs/CORRELATION.md)
Related events about two different listed domains are never one group: each domain is reviewed on its own, and
pass
EVW-05
Event window: Events whose group has not settled show a filterable ‘Pending review’ badge with the time it settles (never blank); a high-severity event with no label gets a provisional label at once; the AI review page counts events pending review and the settle-to-label delay. (source: docs/USER_GUIDE.md)
A high-severity event with no label gets a provisional label at once; its group review follows the settle.
pass
PSH-01
Phone alerts: With ‘Wait for AI verdict before phone alerts’ on, an urgent / investigate alarm is not pushed while its correlated group is Pending review (or only provisionally labelled); it stays on the dashboard and is pushed once the group verdict is in. (source: docs/USER_GUIDE.md)
A provisional single-event (fast) label does not release the push; the group review does.
pass
PSH-02
Phone alerts: An alarm whose verdict is expected / benign and that passes every auto-close guard rail (the same autoclose.guard_rails function) is never pushed to phones; it stays on the dashboard and is logged as ‘push suppressed by AI verdict’ (push_gate, verdict pop-up). (source: docs/USER_GUIDE.md)
An alarm the review withdraws while held (group no longer suspicious) is still judged: expected + guard
pass
PSH-03
Phone alerts: An expected / benign alarm that a guard rail holds back (protected category, held host, low confidence, stale) is pushed, naming the guard rail - also when the review withdrew the alarm while it was held. (source: docs/USER_GUIDE.md)
An alarm the review withdraws while held (group no longer suspicious) is still judged: expected + guard
pass
PSH-04
Phone alerts: Suspicious, malicious and unknown verdicts always push, and the notification carries the verdict, confidence, the reviewer’s one-line reason and the group size. (source: docs/USER_GUIDE.md)
Suspicious / malicious / unknown verdicts always push, carrying verdict, one-line reason and group size.
pass
PSH-05
Phone alerts: Fail-safe: no verdict within push_hold_max_minutes (0 = event window + 5 min), the event reviewer off or erroring, a ‘Not reviewed’ event, or a gate error push the alarm anyway, marked ‘AI review unavailable’; an urgent alarm is never dropped silently. (source: docs/USER_GUIDE.md)
No verdict within push_hold_max_minutes (0 = event window + 5): pushed marked ‘AI review unavailable’.
pass
PSH-06
Phone alerts: push_wait_for_ai (default on) and push_hold_max_minutes live in the cfg table (More > Settings > Site), are validated, and with the switch off every alarm is pushed at once as before. (source: docs/USER_GUIDE.md)
push_wait_for_ai off: every alarm is pushed at once, without AI context, as before the gate.
pass
CFG-05
Configuration: The watcher and the review job select events by arrival time (event.ingested; @timestamp for documents without it) with a per-job bookmark, so events that reach Elasticsearch late are checked when they arrive: watcher windows touch end to end, the bookmark moves only after a run without failed checks, dashboard time ranges stay on event time, and per-source ingest lag is measured. (source: SETUP.md (Collection windows))
since() rounds fractional minutes and never goes below 1 minute; since_h converts hours.
pass
unit
test_config.TestWindow.test_now_window
Without NETMON_WINDOW_END the window ends now and the filter is relative to now.
pass
OCTI-01
OpenCTI: OpenCTI settings are validated (URL, scores 0-100, confidence 0.5-1, known severity, PEM CA), the API token is write-only (masked in the public view) and nothing runs unless enabled with a URL and token. (source: SETUP.md (OpenCTI))
Bad scores, confidence, severity, URL and CA are rejected; the token is masked and kept when left blank.
pass
OCTI-02
OpenCTI: Pulled indicators become local feed lists: only single-value IP / domain / hostname STIX patterns, never private addresses; revoked, expired or below-minimum indicators are dropped; at or above the high score they are SERIOUS. (source: SETUP.md (OpenCTI))
OpenCTI: Matches on OpenCTI lists are reported as one sighting per indicator by Syn’s identity (created once, then its count and last_seen are bumped); a failure never stops the watcher. (source: SETUP.md (OpenCTI))
A new hit creates a sighting; an existing one has its count added and last_seen moved. Non-OpenCTI hits are ignored.
pass
OCTI-05
OpenCTI: Only open events labelled suspicious at or above the configured severity and confidence become incidents, once per logical event; only external IPs and public domains are attached as observables. (source: SETUP.md (OpenCTI))
Only suspicious, confident, severe enough open events become incidents, once; only public IPs/domains are attached.
pass
OCTI-06
OpenCTI: File-hash and file-name indicators and malware-sample hashes are pulled into local lists (generic file names and junk hashes are skipped); every hash entry is SERIOUS and matching is case-insensitive. (source: SETUP.md (OpenCTI))
File-hash and file-name patterns are pulled; generic names and junk hashes are not; malware samples add every
pass
OCTI-07
OpenCTI: The event reviewer gets the threat-intel hits on an event’s IPs, domains, file names and hashes (with OpenCTI score and labels); a new hit changes the review signature so the event is reviewed again. (source: SETUP.md (OpenCTI))
Level
Test
Verifies
Status
unit
test_opencti.TestIndicators.test_reviewer_hits
intelmatch finds hits on an event’s IPs, domains, file names and hashes, with the OpenCTI score and labels,
pass
OCTI-08
OpenCTI: Event artifacts include full file hashes, bare risky file names and external IPs read from the event; artifacts a feed or OpenCTI lists carry ‘listed in ' in their relation. _(source: SETUP.md (OpenCTI))_
artifacts_of reads hashes, bare file names and external IPs, and marks listed ones.
pass
OCTI-09
OpenCTI: A sighting points at the live indicator named after the value, else at the observable carrying that hash or file name; the watcher alerts on serious file-hash / file-name hits from Zeek files and endpoint process / file events. (source: SETUP.md (OpenCTI))
The watcher’s file check alerts on a listed hash seen by Zeek or Defend and records an OpenCTI hit.
pass
REV-01
AI: The event reviewer writes an analyst’s write-up of up to two paragraphs headed ‘Why it fired:’ (detector / feed, the matched value and what it actually was) and ‘Verdict:’; it is stored up to 2400 characters, shown with its paragraphs and bold headings, and alarm titles and phone pushes use its Verdict paragraph. (source: CORRELATION.md (event reviewer))
Two headed paragraphs are asked for, stored long enough, and the Verdict paragraph feeds alarms and pushes.
pass
OCTI-10
OpenCTI: An IP-only threat-intel hit is weak evidence, weaker still on a CDN / shared-hosting address: the hit carries the TLS server names and DNS names the network used for that IP, is low / medium severity (never high), raises no watcher alert on a CDN address, is described to the reviewer as not suspicious on its own (judge the domain / SNI / certificate and research it on the web), and does not stop a person’s verdict from applying; a big shared service’s own host (login.microsoftonline.com) is never listed from a feed. (source: CORRELATION.md (threat intel))
IP-only hits are weak (CDN addresses weaker still); a big provider’s own host is never listed; look-alikes stay.
pass
FEED-01
Threat intel: Feeds are configurable: built-ins can be turned off, re-pointed or marked serious / covered by OpenCTI (never deleted); custom feeds need a valid name, http(s) URL and list type; covered feeds are inactive while the OpenCTI pull is on. (source: SETUP.md (threat-intel feeds))
Turning off, re-pointing, adding and the OpenCTI cover all show in feed_list / ACTIVE / SERIOUS.
pass
unit
test_feeds_cfg.TestFeedConfig.test_validation
Built-ins cannot be deleted; custom feeds need a good name, URL and type.
pass
FEED-02
Threat intel: Only active feeds are downloaded and matched (an inactive feed’s old file is ignored); a changed URL is downloaded again at once; domain lists may be hosts files or one domain per line. (source: SETUP.md (threat-intel feeds))
An inactive feed’s file is ignored; bare-domain lists parse; a new URL is fetched although the file is fresh.
pass
FEED-03
Threat intel: With OpenCTI pulling, the built-in block lists come from OpenCTI (URL indicators list their non-shared host, scored IP / CIDR feed observables re-sent within 7 days list their address or range); only the JA3 list is still downloaded. (source: SETUP.md (threat-intel feeds))
A URL on a tenant subdomain of a hosting platform lists that subdomain; the platform itself never.
pass
WEB-01
Web search: A self-hosted Firecrawl (its own URL) works without an API key, and the host secrets file key meant for the Firecrawl cloud is never sent to it. (source: SETUP.md (web search))
a key saved for one Firecrawl instance is dropped when the URL changes without a new key.
pass
WEB-04
Web search: An invalid Firecrawl URL or CA certificate is refused; a saved CA is used only for a self-hosted instance and TLS is always verified. (source: SETUP.md (web search))
an invalid CA or URL is refused; the CA is only used for a self-hosted instance.
pass
WEB-05
Web search: Search and page reads go to the configured Firecrawl instance, with an Authorization header only when a key is set. (source: SETUP.md (web search))
a page Firecrawl fetched after redirecting to a private address is refused.
pass
WEB-07
Web search: The event reviewer’s web searches never carry LAN addresses, MACs or internal names; such a search is refused and reported to the model. (source: CORRELATION.md (web search))
Web search: Every event reviewer web look-up is recorded for the AI review page, and a decision’s cited sources keep only URLs that came back in that review’s web results. (source: CORRELATION.md (web search))
Web search: Indicators (domains, URLs, public IPs, hashes) named in a threat report the AI read are extracted, hunted through this network’s logs (last 30 days) and Syn’s earlier events, given to the AI for its analysis and kept on the event as researched artifacts. (source: CORRELATION.md (web search))
index.html references every .js/.css with ?v=, and the stamped asset is served immutable.
pass
DASH-02
Dashboard: The JSON API serves snapshots and their derived views (overview, issues, risk, ATT&CK, lateral) from stored data. (source: USER_GUIDE.md §6)
Every script src and stylesheet href in static/*.html points to an existing file.
pass
DASH-07
Dashboard: The threat-intel trend reads one row per review run from the run_summary table (written once per run), so it never loads run documents and keeps runs whose documents are gone. (source: USER_GUIDE.md)
The stream, gpu, watch, review, weekly, unifi, rangewarm, k8simages, vulnhist, evtime and opencti jobs (event research is never a scheduled job) are configured with the expected scripts.
scheduler.py status prints the next run of the watcher, review, weekly and UniFi jobs without running them.
pass
OPS-06
Operations: Review-run documents (data/) are pipeline input only: once a run is folded into run_summary (threat-intel row), the Fix-list tables (fix_run / fix_item / ..., one column per field, no JSON), finding_seen and the event store, its documents are deleted, except the newest 8 runs and the 05 UTC daily runs of the auto-tune window; the Fix list is one SQL query over the stored rows, so it keeps counting deleted runs. _(source: docs/ARCHITECTURE.md)_
store.py check reports ok and store.py stats lists the table row counts as JSON.
pass
LAT-20
Lateral movement: Lateral-graph nodes are named from the device record, then the inventory, then a known-benign name, else the IP; gateway interfaces take their known-benign name or ‘gateway ()' and carry the known flag and device class. _(source: RISK_SCORING.md)_
Nodes carry ‘known’ from the device record and their device class (by MAC, else by IP).
pass
LAT-21
Lateral movement: Unanswered admin-port attempts to a gateway or over UDP stay normal, and an unanswered TCP flow from an internal scanner is medium with a reason naming the scanner. (source: RISK_SCORING.md)
An unanswered TCP flow from an internal scanner is medium and its reason names the scanner.
pass
LAT-22
Lateral movement: A network-policy allow rule rates answered admin ports allowed-admin (other ports normal) with the rule’s reason, but never hides a violation or repeated unanswered admin attempts. (source: RISK_SCORING.md)
An allow rule gives an answered admin port ‘admin port, allowed: ' and a plain port its reason as the why text.
pass
LAT-23
Lateral movement: A cleared segmentation flow (IP or MAC form, or covered by a segmentation suppress rule) is shown as allowed-admin on its port only, on snapshots and periods alike, and returns to its level when unchecked. (source: USER_GUIDE.md)
Clearing a segmentation flow (check-off type ‘seg’) shows it as allowed on /api/lateral; unclearing brings the level back.
pass
LAT-24
Lateral movement: Admin sessions involving an internet address stay in the admin list but put no internet host or edge on the internal lateral graph. (source: USER_GUIDE.md)
An admin session to an internet address stays in the admin list but adds no edge or node.
pass
LAT-25
Lateral movement: Admin evidence on a port without a flow adds a port row (protocol, session level and reason, port 0 for login-only sessions), and edge ports sort worst first with the documented edge score. (source: RISK_SCORING.md)
A session seen only in login logs (no port) gets a port-0 row counting its logins.
pass
LAT-26
Lateral movement: Graph nodes count risky links and connections in and out, edges sort by level then score, and the graph reports whether admin access was collected and from which sources. (source: RISK_SCORING.md)
Nodes count risky links and connections in/out; edges sort by level, then score.
pass
LAT-27
Lateral movement: Endpoint host names in admin evidence resolve to internal IPs by device name or hostname (short form, longer than 3 characters), inventory name, or the first label of an FQDN. (source: CORRELATION.md)
IPs pass through; host names resolve by device name/hostname (short, > 3 chars) or inventory name, FQDNs by their first label.
pass
LAT-28
Lateral movement: A link seen in only one of several periods appears on the merged graph, and a link high in one period keeps high with connection counts summed. (source: RISK_SCORING.md)
A link seen in only one period appears; a link high in one period and normal in another stays high with summed counts.
pass
LAT-29
Lateral movement: Extra periods are each requested from the host broker (/range then the ‘lateral’ section, at most 8), merged, and malformed or offset-less periods or broker errors become a clean error message. (source: USER_GUIDE.md)
p=<start~end,…> queries each period through the broker and serves one merged graph: counts added, worst level kept.
pass
LAT-30
Lateral movement: GET /api/lateral returns the snapshot (or latest) graph rated with the stored policy and check-offs, merges the p=start~end periods, and answers 404 for unknown snapshots and 400 for bad periods. (source: RISK_SCORING.md)
Lateral movement: Admins and network defenders can read /api/lateral (with or without periods); a User gets 403 and an anonymous caller 401. (source: ACCESS_CONTROL.md)
The User role’s GET allow-list has neither /api/lateral nor /api/risk.
pass
e2e
test_e2e_lateral.LateralApiE2E.test_roles
Admins and network defenders read the Lateral movement data; a User gets 403 and an anonymous caller 401.
pass
LAT-32
Lateral movement: The Lateral movement Show filter keeps risky, high+medium, risky+allowed or all links, gateway links only when ticked, and focusing a host keeps only its links. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_lateral_page.LateralPageJs.test_filters
The Show filter keeps risky / high+medium / risky+allowed / all links; gateway links only when ticked; focus keeps one host’s links.
pass
LAT-33
Lateral movement: The Lateral movement page requests /api/lateral for the selected snapshot, adds p= for the time picker’s periods with a ‘N periods combined’ note, reuses the loaded graph while nothing changed and shows API errors. (source: USER_GUIDE.md)
Extra periods (or a custom range) are sent as p=start~end,…; more than one shows the ‘N periods combined’ note.
pass
LAT-34
Lateral movement: The Lateral movement page shows link-level KPIs and internal host count (gateways excluded) and a focus list of internal hosts ordered by host risk. (source: USER_GUIDE.md)
The details panel legend lists every risk level (same keys and order as lateral.ORDER) plus ‘never answered’.
pass
LAT-36
Lateral movement: The lateral SVG graph draws one arrow marker per level, never-answered links dashed, zone labels with host counts, risk scores in host bubbles, GW for gateways and a dashed ring for hosts not in the inventory. (source: RISK_SCORING.md)
The SVG has one arrow marker per level, two paths per link (unanswered dashed), GW/risk labels and a dashed ring for hosts not in inventory.
pass
LAT-37
Lateral movement: The lateral ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding (else the MAC form) and checked when cleared. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_lateral_page.LateralPageJs.test_clear_column
The ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding or the MAC form.
pass
LAT-38
Lateral movement: The Admin access section sums logins and failures over sessions, splits open and checked sessions, and explains when there are none or admin access was not collected. (source: USER_GUIDE.md)
The Checked admin sessions card holds a table of the checked sessions, not a stringified element.
pass
LAT-39
Lateral movement: The Lateral movement page shows a Cleared segmentation card for cleared flows, resolving MAC-form keys to the device and its activity in the range. (source: USER_GUIDE.md)
Cleared flows (MAC form) get a ‘Cleared segmentation’ card resolving the device and its activity; none without clears.
pass
LAT-40
Lateral movement: Selecting a link shows its level, both ends with zones, counts, score, ports and admin-session cards; selecting a host (or #/lateral/) focuses it and shows its in/out links and device/admin links. _(source: USER_GUIDE.md)_
#/lateral/ focuses that host (filter widened to include allowed admin) and shows its in/out links, device and admin links.
pass
NET-01
Network pages: An address belongs to the policy zone whose CIDR contains it; other internal addresses are ‘internal-other’ and everything else (or an unparsable value) is ‘external’. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.InternalTraffic.test_zone_of
An address maps to the policy zone whose CIDR contains it, other internal addresses to internal-other, the rest to external.
pass
NET-02
Network pages: Internal flows keep source, destination, port, protocol, connections, answered, bytes, service and both zones per pair; broadcast and self flows are dropped. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.InternalTraffic.test_flows
Each source/destination/port/protocol bucket becomes one flow with conns, answered, bytes, service and both zones; broadcast and self flows are dropped.
pass
NET-03
Network pages: The zone-to-zone matrix sums connections and bytes per ‘src -> dst’ zone pair, keeps the six busiest port/protocols and lists the busiest pair first. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.InternalTraffic.test_matrix
The zone matrix sums conns and bytes per ‘src -> dst’ zone pair, keeps the 6 busiest port/protocols and lists the busiest pair first.
Network pages: A source is an internal scan when its failed connections reach the host or port threshold (configurable in the policy); gateway .1 addresses never are. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.InternalTraffic.test_scans
A source with failed connections to at least the host or port threshold is a scan; gateway (.1) addresses never are.
pass
NET-05
Network pages: The UniFi collector reports clients online, known clients, clients per network, clients missing from the inventory, first seen in the window and IP conflicts, and skips cleanly without an API key. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.UnifiSummary.test_clients
Clients: online count, known total, clients per network, those missing from the inventory, first seen in the window and IP conflicts.
Without a UniFi API key the collector skips (no controller call) and says why.
pass
NET-06
Network pages: The UniFi collector summarises flows (totals, blocks per policy, top blocked clients with domains, region blocks, risky flows) and gateway health (ISP, WAN IP, latency, drops, uptime). (source: USER_GUIDE.md)
Flows: totals, blocks per policy, top blocked clients with their domains, region blocks and risky flows; health keeps ISP, WAN IP and latency.
pass
NET-07
Network pages: /api/history lists banked snapshots oldest first with only the per-device headline numbers (total, internet upload, connections, name) the trend charts use. (source: USER_GUIDE.md)
/api/registry carries the zones, device classes, known-benign names and devices; /api/history the compact trend, oldest first.
pass
NET-08
Network pages: /api/registry returns the policy zones and device classes, the known-benign display names and the device registry the Network map builds hosts from. (source: USER_GUIDE.md)
/api/registry carries the zones, device classes, known-benign names and devices; /api/history the compact trend, oldest first.
pass
NET-09
Network pages: The Network map places each internal host in its policy zone (private unzoned addresses in ‘other’) and never draws internet, gateway (.1), network or broadcast addresses. (source: USER_GUIDE.md)
Hosts land in the policy zone of their address, private unzoned addresses in ‘other’; internet, gateway (.1), broadcast and network addresses are not drawn.
pass
NET-10
Network pages: Network map hosts merge the device registry, DHCP inventory, UniFi clients and live traffic, are marked active only with traffic in the range, and an old IP whose MAC moved is dropped. (source: USER_GUIDE.md)
A host merges the baseline registry, DHCP inventory, UniFi clients and live traffic; live traffic marks it active, and an old IP whose MAC moved is dropped.
pass
NET-11
Network pages: Network map host names come from the site display name, then the live traffic name, known-benign name, DHCP name, registry/UniFi name, endpoint host hint, and finally the IP. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.NetmapHostsJs.test_naming
Host name order: site display name, live traffic name, known-benign name, DHCP name, registry/UniFi name, endpoint host hint, then the IP.
pass
NET-12
Network pages: Network map hosts carry their device class (by MAC, then IP), risk score and rank, open issues not checked off, Elastic agent and honeypot flags, and whether they are in the inventory. (source: RISK_SCORING.md)
Level
Test
Verifies
Status
unit
test_network_pages.NetmapHostsJs.test_decorations
Hosts carry their device class (by MAC, then IP), risk score and rank, open issues not checked off, Elastic agent and honeypot flags.
pass
NET-13
Network pages: The Network map lists every configured zone even when empty, in a fixed order then alphabetically, with its gateway, CIDR, host/active/unknown counts, highest risk and issue total. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.NetmapHostsJs.test_zones
Zones: every configured zone even when empty, fixed order then alphabetical, gateway .1 address and name, host/active/unknown/risk/issue totals, hosts sorted by class then name.
pass
NET-14
Network pages: Network map risk colours are red from 40, amber from 20, yellow from 8 and green below. (source: RISK_SCORING.md)
Level
Test
Verifies
Status
unit
test_network_pages.NetmapHostsJs.test_risk_colour
Risk colours: red from 40, amber from 20, yellow from 8, green below (as in RISK_SCORING.md).
pass
NET-15
Network pages: The Network map draws the internet, the gateway and one node per visible host with one uplink per zone; inactive hosts can be hidden, search dims non-matching hosts, zone risk badges appear from 8 and empty zones say ‘no hosts seen’. (source: RISK_SCORING.md)
One node per visible host (inactive ones hidden on request, search dims the rest), one uplink per zone with its gateway address, risk badges from 8, ‘no hosts seen’ in empty zones.
pass
NET-16
Network pages: The Network map page shows zone, host, active, not-seen, not-in-inventory and Elastic-agent tiles, a zone summary with the riskiest host and the full host list. (source: USER_GUIDE.md)
The page shows zone/host/active/not-seen/not-in-inventory/agent tiles, a zone summary with the riskiest host and the full host list.
pass
NET-17
Network pages: Clicking the gateway on the Network map lists UniFi health and every zone interface; clicking a host shows its details, sources, open issues and device-page link (only with live traffic). (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.NetmapRenderJs.test_panel
Clicking the gateway lists UniFi health and every zone interface; clicking a host shows its details, deduplicated sources, open issues and device links.
pass
NET-18
Network pages: The Traffic map zone-to-zone heatmap has one sorted row and column per zone, connections and bytes per cell, top ports on hover and shading by share of the busiest cell. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.TrafficMapJs.test_empty
Without internal traffic, UniFi or history the page still renders: an empty matrix, ‘Internal flows (0)’, no gateway and no trend section.
pass
unit
test_network_pages.TrafficMapJs.test_zone_matrix
The zone-to-zone heatmap has one sorted row and column per zone in the matrix, conns and bytes per cell, top ports on hover, shading by share of the busiest cell.
pass
NET-19
Network pages: The Traffic map lists up to 100 internal flows busiest first and sums internet bytes over devices by country, ASN and protocol, with internet upload by device. (source: USER_GUIDE.md)
Internal flows are listed (busiest first, up to 100) and internet bytes are summed over devices by country, ASN and protocol.
pass
NET-20
Network pages: With UniFi data the Traffic map adds a Gateway section (client and flow tiles, health, blocks by policy, clients by network, top blocked clients); without it the section is absent or says ‘No UniFi data’. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.TrafficMapJs.test_empty
Without internal traffic, UniFi or history the page still renders: an empty matrix, ‘Internal flows (0)’, no gateway and no trend section.
Network pages: With banked history the Traffic map adds a trend section (total and internet-upload bytes, hosts and connections per snapshot) using the snapshots in the range when there are at least two, else all. (source: USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_network_pages.TrafficMapJs.test_empty
Without internal traffic, UniFi or history the page still renders: an empty matrix, ‘Internal flows (0)’, no gateway and no trend section.
With banked history the page adds a trend section: total and internet-upload bytes, hosts and connections per snapshot.
pass
NET-22
Network pages: Network map and Traffic map are linked from the Network menu; the Traffic map is the traffic view then the gateway and trend sections, and old #/unifi and #/history links land on those sections. (source: USER_GUIDE.md)
The dashboard links both pages in the Network menu and serves netmap.js and app.js with the view code.
pass
NET-23
Network pages: A User cannot open the Network map or Traffic map (redirected to My devices) and gets 403 on every API they load; defenders and admins can read them. (source: ACCESS_CONTROL.md)
A User opening #/netmap or #/traffic gets ‘My devices’; a defender or admin gets the page.
pass
e2e
test_e2e_network.NetworkPagesE2E.test_roles
A User gets 403 on every API the Network pages load; a Network defender and an admin can read them.
pass
NET-24
Network pages: /api/snapshot returns a snapshot’s internal flows, zone matrix and UniFi summary unchanged, and /api/section serves a collected time range’s internal and unifi pieces (404 for unknown ones). (source: USER_GUIDE.md)
Network pages: Both Network pages render an empty state (zero tiles, empty zones / matrix) instead of failing when a snapshot has no hosts or no zones are configured. (source: USER_GUIDE.md)
With no zones configured and no hosts the Network map still renders (tiles at zero, gateway drawn) instead of throwing.
pass
ALR-01
Alerts: GET /api/alerts returns the alarm feed newest first without held detections, mute-cleared or suppressed alerts, with limit clamped to 1..2000 and per-row mine plus unread, unread_mine and mode. (source: USER_GUIDE.md §4)
The feed is newest first and leaves out held detections, mute-cleared and suppressed alerts; limit is clamped to 1..2000.
pass
ALR-02
Alerts: An admin or defender who chose devices still gets every alarm with mine set only for those devices (mode some, unread_mine counted); a User only ever receives their assigned devices’ alarms. (source: USER_GUIDE.md §4)
A User gets only their devices’ alarms; cleared=1 and held=1 are ignored for them and mute rules are refused.
pass
ALR-03
Alerts: GET /api/alerts?extra=1 adds each alarm’s event id, verdict and verdict source plus the research extras keyed by event id. (source: USER_GUIDE.md §4)
extra=1 adds each alarm’s event id, verdict and its source, and the research extras keyed by event id.
pass
ALR-04
Alerts: GET /api/alerts?held=1 lists held detections newest first with verdict counts for detections and alarms; v= filters by verdict and an unknown v is ignored. (source: USER_GUIDE.md §4)
held=1 lists the watcher’s held detections newest first with verdict counts for detections and alarms; v= filters, an unknown v is ignored.
pass
ALR-05
Alerts: GET /api/alerts?cleared=1 (admin / defender) lists alerts a legacy mute rule cleared with the rule that cleared them; for a User cleared, held and extra are ignored. (source: USER_GUIDE.md §4)
A User gets only their devices’ alarms; cleared=1 and held=1 are ignored for them and mute rules are refused.
pass
ALR-06
Alerts: POST /api/alerts/read by an admin or defender marks every alert read for everyone; a User’s mark-read is a private marker that leaves others’ unread state alone. (source: USER_GUIDE.md §4)
A User’s mark-read is private (others still see the alert unread); an admin or defender marks every alert read for everyone.
pass
ALR-07
Alerts: GET /api/alerts/mutes lists the legacy mute rules with how many alerts each cleared for admins and defenders and is refused for Users; the page shows them in the Alert mute rules card. (source: USER_GUIDE.md §4)
A User gets only their devices’ alarms; cleared=1 and held=1 are ignored for them and mute rules are refused.
pass
ALR-08
Alerts: New mute rules can no longer be created: POST /api/alerts/mutes only accepts remove (unknown rule 404) and store.mute_add raises. (source: USER_GUIDE.md §4)
Only remove is accepted; an unknown rule is 404; removing a rule (as a defender) brings its alert back into the feed as read.
pass
ALR-09
Alerts: An alert matching a legacy mute rule is stored cleared, read and never pushed; removing the rule brings back only its alerts, as read and without pushing them. (source: USER_GUIDE.md §4)
Adding alerts keeps a 29-day-old alert and deletes 31-day-old ones whether cleared, held or in the feed.
pass
ALR-12
Alerts: The watcher raises an investigate detection for a Suricata severity-1 or malware / C2 / exploit category hit not on the known-benign list, naming source, destination and ATT&CK technique. (source: USER_GUIDE.md §4)
A Suricata hit not on the known-benign list raises an investigate detection with source/destination and ATT&CK; a benign one is skipped.
pass
ALR-13
Alerts: The watcher raises a new-device detection for an unknown DHCP MAC or an unknown internal IP with 10+ connections, only once a device registry exists. (source: USER_GUIDE.md §4)
An unknown DHCP MAC and an unknown internal IP with 10+ connections raise new-device detections; known, quiet, .1 and .255 do not.
pass
ALR-14
Alerts: The watcher raises a detection for an answered inbound Internet connection on a port the device has never served, once snapshot history exists. (source: USER_GUIDE.md §4)
An answered inbound port a device never served raises a detection; a served port, or no history yet, does not.
pass
ALR-15
Alerts: The watcher raises investigate detections for DNS names and TLS SNI on a threat-intel feed and for outbound connections to IPs on a serious feed. (source: USER_GUIDE.md §4)
DNS names and TLS SNI on a feed raise investigate detections; an outbound IP only when listed on a serious feed.
pass
ALR-16
Alerts: The watcher raises a DNS-tunnel detection for a domain with 150+ distinct long (avg 20+ chars), high-entropy subdomains in an hour unless benign-listed. (source: USER_GUIDE.md §4)
A domain with 150+ distinct long high-entropy subdomains raises a tunnel detection; too few, short or benign-listed do not.
pass
ALR-17
Alerts: The watcher raises endpoint detections for Investigate-level host findings and for listed Review-level kinds (e.g. agent offline), never for checked-off findings. (source: USER_GUIDE.md §4)
Investigate-level host findings always alert (ALERT, investigate); review-level only for the listed kinds; checked-off ones never.
pass
ALR-18
Alerts: The watcher raises detections for high / medium admin sessions with failed logins or refused connections (high = ALERT, investigate). (source: USER_GUIDE.md §4)
High / medium admin sessions with failed logins or refused connections alert (high = ALERT); low or failure-free ones do not.
pass
ALR-19
Alerts: A watcher finding is not raised again for 12 hours, and watcher findings are stored as held detections (not in the feed, not pushed, not unread) for the AI review. (source: USER_GUIDE.md §4)
Watcher findings are stored as held detections: not in the alarm feed, not pushed, not unread, but listed for the AI review.
pass
ALR-20
Alerts: The bell shows the unread count (99+ above 99, my-devices count when narrowed, hidden at zero) and the tab title carries it; Mark all read clears it. (source: USER_GUIDE.md §4)
A User’s mark-read is private (others still see the alert unread); an admin or defender marks every alert read for everyone.
pass
ALR-21
Alerts: The Verdict column shows not reviewed, a person’s verdict (👤) or the event reviewer’s with its confidence, sorted suspicious > expected > benign > unreviewed. (source: USER_GUIDE.md §4)
The Verdict column shows not reviewed, a person’s verdict with 👤, the event reviewer’s with its confidence, or the decision model’s.
pass
ALR-22
Alerts: Admins and defenders get Ask, Verdict, Research, Notes and Artifact notes columns; a User gets When, Level, Verdict and Alert with no check-off or Ask. Every role’s rows open inline. (source: USER_GUIDE.md §4)
Admins and defenders get Ask, When, Level, Verdict, What to do, Alert, Research, Notes, Artifact notes, row links and filter; a User gets When, Level, Alert only (no event id: nothing to open).
A User’s alerts carry the reviewer’s label as the Verdict and open the reviewer’s paragraph inline; no check-off, Ask, research or notes.
pass
ALR-23
Alerts: Clicking an alert opens one flat panel right under its row (no modal, no nested sections): the event reviewer’s verdict and paragraph with cited pages, then for admins / defenders research, notes and artifact notes; clicking again closes it. The page lists alerts only (no detections card or verdict tiles). (source: USER_GUIDE.md §4)
A User’s alerts carry the reviewer’s label as the Verdict and open the reviewer’s paragraph inline; no check-off, Ask, research or notes.
pass
ALR-26
Alerts: Each reviewed alert gets a second, separate verdict: advice for the device owner written by the event reviewer model as a SOC analyst to a non-technical user (one action of no_action, watch, update, password, stop_site, stop_app, stop_device, a headline, a 2-4 sentence message starting ‘Syn detected your ...' that names the site / app, says what it is and what to do, up to 4 extra steps, target); a prompt change (PROMPT_VER) rewrites all advice. It is rewritten only when the alert, the reviewer's label / reason or the research note change, at most 4 per pass; bad answers are dropped and 'stop using this device' only when 100% sure (suspicious verdict with confidence 1.0) (else the model is asked again with stop_device ruled out so the message matches; a second stop_device stores nothing). _(source: advice.py)_
An alert without an event reviewer label (or a pending one) gets no advice yet and costs no model call.
pass
ALR-27
Alerts: The Alerts page shows a What to do column (action chip; Users also see the headline), and the inline panel leads with the steps and why for Users (the reviewer’s text below as Analyst’s notes) and adds an Advice for the device owner section for admins / defenders. Users get the advice in their plain /api/alerts feed. (source: USER_GUIDE.md §4)
Level
Test
Verifies
Status
unit
test_advice.AdviceTest.test_pages_get_the_advice
alert_view (Alerts, every role) and extras (Open events) carry the advice keyed by the row’s event id.
pass
ALR-28
Alerts: What a User reads about an alarm - the Alerts-page line and the phone push - is the analyst’s model-written note (advice.py), not a fixed sentence: it says when (local time) and what the device did with the concrete site / app / amounts, the everyday thing that usually causes it, and what to do if it was them or not. A ready alarm waits for its note (written on the spot if the review pass has not) up to 30 minutes, then falls back to the plain line. (source: USER_GUIDE.md §4)
Admin ‘all’ gets both alerts; a User with the laptop gets only the laptop alert; a User with ‘all’ gets none.
pass
ALR-29
Alerts: Syn never tells anyone to stop using a computer or device unless it is 100% sure of a real issue: the alert advice allows stop_device only on a suspicious verdict at confidence 1.0, and the advice and Ask AI prompts both state the rule (otherwise they describe the finding and what to check). (source: advice.py)
Owner rule: Syn never tells anyone to stop using a computer unless it is 100% sure of a real issue. The advice
pass
ALR-30
Alerts: High confidence needs multiple independent indicators all pointing to the same issue: the event reviewer lists its indicators, a suspicious label with fewer than two is capped at 0.7 confidence (defenders still see it), and a User is only told about a suspicious verdict with confidence >= 0.8 and at least two indicators (or one a person marked suspicious). (source: pushgate.py)
…) never go to Users, even with a high-confidence multi-indicator verdict;
pass
ALR-32
Alerts: The who-is-told-what numbers are settings under More > Settings > Site (min_indicators 1-5, few_indicators_max_confidence 0-1, user_alert_min_confidence 0-1, stop_device_min_confidence 0.5-1, baseline_alerts_to_users on/off; defaults 2, 0.7, 0.8, 1.0, off), shown with defaults and notes, validated, read live by the event reviewer (cap and prompt), the User alert gate and the advice. (source: docs/USER_GUIDE.md)
Changing the settings changes the reviewer’s confidence cap, the prompt numbers, what Users get, baseline
pass
ALR-24
Alerts: Which devices alert me: admins and defenders pick All devices or chosen devices (chosen first, badges, save message); a User sees their admin-assigned devices read-only. (source: USER_GUIDE.md §4)
An admin or defender gets the Which devices alert me picker with All devices and Only devices I choose.
pass
ALR-25
Alerts: The Alerts page has explicit empty states (no alerts, no cleared alerts), a cleared view toggle, a my-devices toggle, and falls back to the plain feed when extras are unavailable. (source: USER_GUIDE.md §4)
An admin alerting on chosen devices sees only their alerts with a show all N link; the toggle shows every alert; ?ev= skips the filter.
pass
OE-01
Open events: Every snapshot’s correlation events are persisted in the events table: one row per event id, seen-count incremented once per snapshot, first/last seen and event times only widen, and label/severity/link/doc come from the newest event (capped source item kept). (source: USER_GUIDE.md (Open events) / eventstore.py)
n counts distinct snapshots (same snapshot twice counts once); first/last seen and t0/t1 only ever widen.
pass
OE-02
Open events: Fix-list (vulnerability) events in the events store resolve when the latest snapshot no longer lists them, an older snapshot never closes them, and they reopen when listed again. (source: USER_GUIDE.md (Open events) / eventstore.py)
A resolved Fix-list item that a later snapshot lists again is open again.
pass
OE-03
Open events: Repeats of one condition collapse into one row: finding ids that differ only in volatile numbers share a key (IPs, ports, MACs still distinguish), list findings naming the same items in another order share a key (stored group check-offs migrated once, Posture grpRef matches), segmentation findings group by flow key, other events are their own key. (source: USER_GUIDE.md (Open events) / eventstore.py)
The list is severity then newest first, beacon variants are one row and the segmentation flows of one device
pass
OE-04
Open events: Open events lists unchecked, unresolved events of any age, most severe then newest first; a collapsed row shows the newest variant with summed seen count, all members, earliest first-seen and its source item/IPs. (source: USER_GUIDE.md (Open events) / eventstore.py)
The list is severity then newest first, beacon variants are one row and the segmentation flows of one device
pass
OE-05
Open events: The list can be filtered by type, severity (case-insensitive) and label text and limited in size; total and per-type counts always describe everything open, and limit=0 returns only the count. (source: USER_GUIDE.md (Open events) / eventstore.py)
type= keeps only those types, sev= matches severity case-insensitively, q= is a case-insensitive label search.
pass
e2e
test_e2e_open_events.OpenEventsApi.test_filters
type= (repeatable), sev= (any case) and q= filter the rows; counts and total stay unfiltered.
pass
OE-06
Open events: Each event kind maps to the same check-off (ack) type/key the other pages use; kinds without their own list (IDS, threat intel, alerts) are stored as type ‘event’. (source: USER_GUIDE.md (Open events) / eventstore.py)
Each event kind maps to the check-off list the other pages use; kinds without one use (‘event’, eid).
pass
unit
test_open_events.CheckOffTest.test_k_in
k_in is true only when the key is stored under that ack type.
pass
OE-07
Open events: A checked-off event (including a Posture check-off of the newest variant or a cleared segmentation flow) is hidden; checking off a collapsed row also hides future variants of it; unchecking restores it. (source: USER_GUIDE.md (Open events) / eventstore.py)
Posting a row’s check-off list hides it (total drops by one); unchecking restores it.
pass
OE-08
Open events: Alert events are listed only while their alert is live (not cleared, not a held detection, not a review alarm). (source: USER_GUIDE.md (Open events) / eventstore.py)
events are listed only while the alert is live: cleared, held (detection) or review alerts are not.
pass
OE-09
Open events: On the page, host-process findings differing only in the remote side merge into one ‘N variants’ row and segmentation findings of one device and rule toward several devices merge into one ‘-> multiple devices (N)’ row, each with children, union of IPs and all check-offs. (source: USER_GUIDE.md (Open events) / eventstore.py)
The list is severity then newest first, beacon variants are one row and the segmentation flows of one device
pass
OE-10
Open events: Each displayed row carries extras from its newest member with data: AI research note, classification, person notes, related count and seen counts; failing sources do not break the page. (source: USER_GUIDE.md (Open events) / eventstore.py)
Rows get their related count from stored verdicts (any member); the decision model labels links only, so no event label.
pass
OE-11
Open events: The Related view of a row lists stored related links of all its members (not links between its own members) with event records for partners, including pruned ones. (source: USER_GUIDE.md (Open events) / eventstore.py)
/related returns stored links of the row’s members; only the first 12 m= members are used.
pass
OE-12
Open events: The event window (detail) lists every open variant of the condition newest first with their firings; unknown ids give an empty answer and a resolved Fix-list item still opens. (source: USER_GUIDE.md (Open events) / eventstore.py)
/detail lists both beacon variants newest first and their firings; no or an unknown id gives an empty answer.
pass
OE-13
Open events: The AI-inputs pop-up returns an event’s stored determinations and a record of every event passed in to them. (source: USER_GUIDE.md (Open events) / eventstore.py)
decision_inputs() returns the event’s determinations and a record for every event passed in to them.
pass
e2e
test_e2e_open_events.OpenEventsApi.test_inputs
/inputs answers an empty determination list (LLM off) and an empty shape without an id.
pass
OE-14
Open events: The Open events API (/api/events/open, /detail, /inputs, /related) is readable by admins and defenders only: the User role gets 403 and no session gets 401. (source: server.py USER_GET / ACCESS_CONTROL.md)
USER_GET (the User role’s GET allow-list) contains none of the /api/events/* endpoints.
pass
e2e
test_e2e_open_events.OpenEventsApi.test_roles
Admins and defenders read every Open events endpoint; the User role gets 403 and no session gets 401.
pass
OE-15
Open events: The Open events page draws one card per event type in a fixed order, titled with the open count, with the shared check/severity/verdict/notes and seen columns plus type-specific columns; every type correlate.py emits has a card. (source: USER_GUIDE.md (Open events) / openevents.js)
Every type has a card, in the page’s fixed type order, titled with the open count; a type with nothing open
pass
OE-16
Open events: Cards never disappear: with nothing open (overall or of one type) every type keeps its card with a ‘Nothing open’ line, and the KPI line shows 0s. (source: openevents.js)
With nothing open the page still shows the KPI line and every type’s card, each saying ‘Nothing open’.
pass
OE-17
Open events: The Open events GET endpoints answer over HTTPS with the persisted store: filters, collapsed rows, check-offs via /api/acks, detail, inputs and related. (source: USER_GUIDE.md (Open events) / eventstore.py)
/related returns stored links of the row’s members; only the first 12 m= members are used.
pass
OE-19
Open events: Fix-list items (vulnerabilities / misconfigurations) are not part of Open events: /api/events/open leaves them out of rows, per-type counts, the total and the nav badge, and the page has no Fix list card (they are on the Fix list page). (source: USER_GUIDE.md (Open events) / server.py / openevents.js)
Every event type correlate.py emits has a card in openevents.js TYPES (no open event is invisible), except
pass
e2e
test_e2e_open_events.OpenEventsApi.test_filters
type= (repeatable), sev= (any case) and q= filter the rows; counts and total stay unfiltered.
pass
OE-18
Open events: /api/events/open returns at most 2000 rows by default and caps any limit at 5000; invalid limits (negative, non-numeric) must not return unexpected rows or a server error. (source: server.py /api/events/open)
A non-numeric limit is answered 400 (bad request), not 500.
pass
OE-21
Open events: An event that is an alert shows the analyst’s advice for the device owner as a collapsed arrow in its detail window: the summary holds the action chip and headline, opening it shows the message, steps and the model. (source: USER_GUIDE.md (Alerts) / openevents.js)
Level
Test
Verifies
Status
unit
test_advice.AdviceTest.test_pages_get_the_advice
alert_view (Alerts, every role) and extras (Open events) carry the advice keyed by the row’s event id.
pass
OE-20
Open events: Every AI verdict badge (label, Pending review, Not reviewed, Posture’s auto-closed check-off flair) opens a verdict pop-up on click or tap: GET /api/verdict (loaded on tap) returns the event reviewer’s label, confidence, reason, model and time, why it is pending or not reviewed, and the auto-close log for the event with a Reopen (POST /api/verdict/reopen) that un-checks it for good. (source: USER_GUIDE.md (Pending review / Not reviewed, AI verdict pop-up))
The verdict pop-up (GET /api/verdict) finds an auto-closed check-off’s event from its (type, key), returns the
pass
POS-01
Posture: The page loads time ranges only: /api/snapshot answers range ids and refuses review-run, malformed or path-traversal ids; there is no review-run list (/api/snapshots). (source: USER_GUIDE.md §3 Choosing a time range)
Posture: A nightly report covers the window generated - hours .. generated (24 hours when hours is missing). (source: USER_GUIDE.md §3 Choosing a time range)
Level
Test
Verifies
Status
unit
test_posture.TimeRangeSemantics.test_snap_window
snap_window gives (generated - hours, generated); hours default to 24; None when the snapshot or its time is missing.
pass
POS-04
Posture: Every requested start/end is handed to the host broker as a time range (no review-run shortcut); times need a UTC offset and the end must be after the start. The page opens on the last 24 h (/api/range/default): the newest pre-collected window (range_warm.py, every 15 minutes) when one is done, else a fresh range. (source: USER_GUIDE.md §3 Choosing a time range)
POST /api/range: every window, even one matching a review run, needs the host broker (400 here, none configured).
pass
POS-05
Posture: For a time range, alarms, AI triage, correlation and sources come from the newest nightly report generated at or before the range end (the oldest report when none is). (source: USER_GUIDE.md §3 Choosing a time range)
A collected time range shows its own findings; its base (the review run whose correlation it uses) is the one by its end; no review-run companions ride along.
A collected time range returns its own findings and names the review run (base) whose correlation it uses.
pass
POS-06
Posture: A collected time range shows its own findings; while it is still being collected the page gets an empty skeleton of the right shape and loads its sections one by one. (source: USER_GUIDE.md §3 Choosing a time range)
A collected time range shows its own findings; its base (the review run whose correlation it uses) is the one by its end; no review-run companions ride along.
A collected time range returns its own findings and names the review run (base) whose correlation it uses.
pass
POS-07
Posture: A segmentation suppress rule (source / destination / ports) hides matching segmentation violations and findings from the served data without changing the stored snapshot, and a failing filter never breaks the page. (source: USER_GUIDE.md §6 Security → Posture)
A segmentation suppress rule hides the flow in every time range; removing it brings the flow back.
pass
POS-08
Posture: Segmentation suppress rules match MAC-keyed findings through the device’s IP from the newest snapshot. (source: USER_GUIDE.md §6 Security → Posture)
A rule on a source IP also hides a segmentation finding keyed by that device’s MAC (MAC -> IP from the newest snapshot).
pass
POS-09
Posture: An IDS suppress rule (signature name or glob, optional host) hides the signature (or that host’s share of it) and lowers the alert counts everywhere; removing the rule restores it. (source: USER_GUIDE.md §6 Security → Posture)
A segmentation suppress rule hides the flow in every time range; removing it brings the flow back.
pass
POS-11
Posture: Cleared segmentation flows (ack type ‘seg’, MAC or IP form) and segmentation suppress rules form one cleared set used by risk, lateral movement and correlation. (source: USER_GUIDE.md §5 Segmentation violations / RISK_SCORING.md)
Clearing a segmentation flow (ack type ‘seg’, bulk form) is visible to every account and does not filter the time range.
pass
POS-12
Posture: Check-offs are stored once per item, independent of the loaded snapshot or range, are shared by every account, and only hide rows in the page (show N checked brings them back). (source: USER_GUIDE.md §5 Checking things off / Open events vs Posture)
Clearing a segmentation flow (ack type ‘seg’, bulk form) is visible to every account and does not filter the time range.
pass
EVT-01
Event times: Each event is mapped to the Elasticsearch records behind it (Zeek, Suricata, endpoint, auth logs; most specific query first, then broader ones) and gets their first and last @timestamp inside its window; IDS signatures, admin sessions and gateway events keep their own record times; status findings with no record behind them get none. (source: USER_GUIDE.md (Open events vs Posture))
Status findings (agent offline, silent device, Kubernetes inventory) have nothing to look up.
pass
EVT-02
Event times: Open events rows, their firings and grouped instances show when the activity happened (first/last Elasticsearch record time, filled every 15 minutes by evtime.py, incrementally as windows extend), falling back to when Syn saw the event, marked (seen), when there is no record. (source: USER_GUIDE.md (Open events))
Open events and their firings get first/last record times; a later window only looks up the new part and widens them.
pass
EVT-03
Event times: Posture shows an Occurred column (baseline findings, host findings, threat-intel hits) with the record times inside the selected range from GET /api/events/times; missing ones are looked up on the host in the background (broker POST /evtime) and fill in without a reload; a broker failure never breaks the page. (source: USER_GUIDE.md (Posture))
Posture rows become items with the page’s ids, the range’s window and the device’s IP.
pass
POS-13
Posture: Baseline and host findings carry last_seen (the newest nightly report that contained them, else the loaded snapshot’s time); the Posture tables show when they happened instead (EVT-03). (source: USER_GUIDE.md §6 Security → Posture)
Baseline and host findings carry last_seen: the newest nightly report that contained them, else the snapshot’s own time.
pass
POS-14
Posture: Each Posture box shows only unchecked rows unless ‘show N checked’ (or an event link) is active, and offers the toggle when something is checked. (source: USER_GUIDE.md §5 Checking things off / Open events vs Posture)
Level
Test
Verifies
Status
unit
test_posture.PostureAckLogicJs.test_ack_split
ackSplit splits rows into open and checked, shows only open ones unless the section shows checked (or ?ev=), and offers a toggle.
pass
POS-15
Posture: Check-off keys are stable across snapshots: baseline finding = fnv(device
kind
detail) (same as the server), host finding = its key, beacon = src
dst
port, DNS tunnel = lower-case domain. (source: USER_GUIDE.md §5 Checking things off / Open events vs Posture)
Posture: Segmentation violations, segmentation findings and seg Fix-list items share one flow key, so clearing one clears all; a device’s MAC form and IP form both count as cleared. (source: USER_GUIDE.md §5 Segmentation violations / RISK_SCORING.md)
Level
Test
Verifies
Status
unit
test_lateral_page.LateralPageJs.test_clear_column
The ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding or the MAC form.
Fix-list items share the ‘seg’ flow key; MAC and IP forms of one flow both count as cleared.
pass
POS-17
Posture: Baseline findings exclude segmentation findings (own box) and show the device’s Host IP even when the finding is keyed by MAC. (source: USER_GUIDE.md §6 Security → Posture)
Baseline findings leave out segmentation findings (own box) and resolve a MAC-keyed device to its Host IP.
pass
POS-18
Posture: Host findings show a Host column (the computer from the finding key) and a To column (remote side for outbound, this host:port with the source for inbound, empty otherwise). (source: USER_GUIDE.md §6 Security → Posture)
Host findings: Host is the second key part; To is the remote side for outbound, this host:port with the source for inbound, empty otherwise.
pass
POS-19
Posture: Admins and defenders read Posture data and manage check-offs and suppress rules; a User gets 403 for snapshots, sections, check-offs, ranges and suppress rules. (source: ACCESS_CONTROL.md / USER_GUIDE.md §6)
A User gets 403 for time ranges, sections, check-offs and suppress rules, and nothing is changed.
pass
POS-21
Posture: A time range collected after the review job still shows the first-seen host findings (new executable, new destination, new login, new listener) that happened in it: new baseline entries on a seasoned host carry their first-seen minute and a range judges ‘new’ against the baseline as of its start. (source: USER_GUIDE.md §6 Security → Posture)
A garbled host.name with no usable Fleet name never becomes a host (no ‘stopped sending syslog’ for junk).
pass
POS-22
Posture: IDS signature tables (Posture, device page, Threat intel malware signatures) show a Verdict column: the signature’s stored event reviewer label (also when the event is not in the loaded snapshot), Pending review / Not reviewed, a person’s applied verdict and the research note verdict, from GET /api/verdicts (admin and defender only). (source: USER_GUIDE.md §6 Security → Posture)
Posture’s IDS signatures, a device’s IDS alerts and Threat intel’s malware/exploit signatures each add vdCol on ids
.
pass
POS-23
Posture: The Posture IDS events box is laid out like Baseline and Host findings: a check box + suppress (the shared Open-events ack event / ids
), Ask AI and Kibana, a Severity badge (Suricata 1 = high, 2 = medium, 3 = low) that colours the row edge, open count in the title and checked rows hidden behind a toggle. _(source: USER_GUIDE.md §6 Security → Posture)_
, shared with Open events), Severity badge from the Suricata
pass
POS-20
Posture: Suppress rules that are empty or would hide everything are rejected with 400 and nothing is stored. (source: USER_GUIDE.md §6 Security → Posture)
Suppress rules that are empty or would hide everything are refused with 400 and nothing is stored.
pass
SET-01
Settings: Integrations URLs: Elasticsearch and UniFi URLs must be http:// or https:// without spaces, quotes or brackets; other values are refused and nothing is saved, and accepted URLs are stored without the trailing slash. (source: SETUP.md (Integrations))
The shared HTTP helper refuses anything but http(s) before opening a connection.
pass
SET-02
Settings: Elasticsearch URL: The Elasticsearch URL is ES_URL from the environment, else the saved setting, else site.json es_url; a blank setting means the fallback. (source: SETUP.md (Integrations))
The Elasticsearch URL is ES_URL from the environment, else the saved setting, else site.json es_url; blank saved = fallback.
pass
SET-03
Settings: Elasticsearch indices: Collector index overrides may be comma-separated patterns with wildcards but are refused if they contain spaces, slashes, quotes, ? or #, start with _ - or +, or exceed 200 characters. (source: SETUP.md (Integrations))
Comma-separated patterns and wildcards are accepted for the collector indices (not for the audit index).
pass
SET-04
Settings: Elasticsearch indices: Each collector (zeek, suricata, detections) uses its saved index override or the Security Onion default, and default index names used in code are translated to the configured ones. (source: SETUP.md (Integrations))
An Elasticsearch post always carries the whole form: indices left out of it go back to their defaults.
pass
SET-05
Settings: API keys: API keys are write-only: the settings page only gets whether a key is set and a masked hint of its last four characters. (source: SETUP.md (Integrations))
public() never returns an API key, only key_set and a masked hint of the last four characters.
pass
SET-06
Settings: API keys: A blank API key keeps the stored key, a new key replaces it, clear_key removes it, and keys with whitespace or over 400 characters are refused. (source: SETUP.md (Integrations))
A blank api_key keeps the stored key, a new one replaces it, and clear_key removes it, for every section.
pass
SET-07
Settings: API key fallbacks: Without a saved key, Elasticsearch and UniFi use the host secrets file (ES_API_KEY overridable from the environment) and the audit key uses NETMON_AUDIT_ES_KEY; inside the dashboard container the host file is reported as unknown. (source: SETUP.md (Integrations))
The UniFi API URL defaults to https://api.ui.com; a saved URL overrides it and a blank one restores the default.
pass
SET-09
Settings: Audit index: The audit index must be one concrete index name (no commas or wildcards) and defaults to logs-syn. (source: AUDIT_LOG.md (Settings))
The audit index must be one concrete name: commas, wildcards and invalid names are refused; blank means logs-syn.
pass
SET-10
Settings: Audit switches: A post carrying only the audit send switches leaves the audit index and key unchanged, while a key/index form post sets the index. (source: AUDIT_LOG.md (Settings))
A post carrying only the send switches leaves the audit index and key as they were.
pass
SET-11
Settings: Audit switches: Send event reviewer events and Send event researcher events are on by default and switch independently. (source: AUDIT_LOG.md (Settings))
send_reviewer and send_researcher are on by default and each toggles without changing the other.
pass
SET-12
Settings: Integrations save: Every integrations save is limited to known sections, leaves other sections untouched and stamps updated_by and updated_at. (source: SETUP.md (Integrations))
Each save stamps updated_by with the user and updated_at with the UTC time, shown by public().
pass
SET-13
Settings: Connection tests: The Test buttons for Elasticsearch, UniFi and the audit log try the unsaved form values with fallbacks, report success counts or the HTTP error, never raise on connection errors and never save. (source: SETUP.md (Integrations))
The UniFi test calls /v1/hosts with X-API-KEY, counts consoles and hosts, and reports HTTP errors without raising.
pass
SET-14
Settings: Audit switches: With a send switch off, audit entries of the matching background actors (event/background reviewer, review job, review log = reviewer; event research, research job = researcher) are dropped and counted as skipped, while user actions are always sent. (source: AUDIT_LOG.md (Settings))
Switching reviewer events off drops the four reviewer actors’ entries, counts them as skipped, and keeps researcher and user entries.
pass
SET-15
Settings: Audit switches: While the reviewer switch is off the Review log card shows the in-memory entries with source ‘memory (audit log sending off)’ instead of querying Elasticsearch. (source: AUDIT_LOG.md (Review log))
The Review log card reads Elasticsearch while the reviewer switch is on and reports ‘memory (audit log sending off)’ when it is off.
pass
SET-20
Settings: event reviewer notes: Notes per event (1-100, default 7), note characters (1000-100000, default 6000) and notes per host / user (1-500, default 40) are saved one field at a time with the user, read back by the reviewer’s getters, out-of-range values are refused without saving, and hand-edited values are clamped. (source: docs/CORRELATION.md)
Level
Test
Verifies
Status
unit
test_settings_ai.NotesLimit.test_defaults
With nothing saved the reviewer gets 7 notes per event, 6000 note characters and 40 notes per subject.
Each field saved on its own keeps the others, is read back by the pipeline getters and stamps the user.
pass
SET-21
Settings: event reviewer notes: The notes-per-event and note-character settings cap how many owner notes, and how many characters of them, go into one review prompt. (source: docs/CORRELATION.md)
Notes per event caps how many notes reach the prompt, and the character budget caps their total length.
pass
SET-16
Settings: event reviewer notes: Note expiry (days an unused host note is kept, 0-3650, default 30, 0 = never) is saved with the user, shown on the AI pipeline page and refused out of range without saving; hand-edited values are clamped. (source: docs/CORRELATION.md)
Note expiry is 0-3650 days (default 30), saved with the user, shown in the AI pipeline config, refused out of range.
pass
SET-22
Settings: event reviewer model: The event reviewer uses the local server until a model is chosen; a chosen model is stored with the user and used, only models of enabled providers with a key are accepted, and a model whose provider or model was removed stops the review with an error. (source: docs/USER_GUIDE.md)
The model choice the UI posts is accepted only for an enabled provider with a key and that model (llm_allowed).
pass
SET-23
Settings: chat model: Ask AI is off until a chat model is chosen, the choice is stored with the user, and the Elasticsearch switch for the chat (default on) adds or removes the chat’s search tool. (source: docs/USER_GUIDE.md)
Level
Test
Verifies
Status
unit
test_settings_ai.Models.test_chat_es_switch
Ask AI may search Elasticsearch by default; switching it off removes the search tool from the chat.
The chat is off until a model is chosen; the choice is stored with the user and used by the chat.
pass
SET-24
Settings: look-ups first: Look-ups first is on by default and makes the reviewer’s first call a planning call when look-ups are allowed; switched off, no planning call is made. (source: docs/CORRELATION.md)
Look-ups first is on by default (a planning call precedes the decision); switched off there is no planning call.
pass
SET-25
Settings: reviewer look-ups: Web look-ups (default off, 2 per event, 1-10) and Elasticsearch look-ups (default off, 3 per event, 1-20) are stored with the user, other values are refused, and the Elasticsearch maximum is the number of searches the reviewer may run. (source: docs/CORRELATION.md)
Web look-ups are off by default with 2 per event; 1-10 are accepted and stored with the user, other values refused.
pass
SET-26
Settings: review limits: Type-pair modes (review or skip) are validated and saved, a skipped pair is never sent to the event reviewer, a new deployment starts with every pair skipped while an existing one keeps reviewing, and legacy skip_pairs / test mode load as skip. (source: docs/CORRELATION.md)
Level
Test
Verifies
Status
unit
test_settings_ai.ReviewLimits.test_defaults
Without settings nothing is capped, the window is the default event window (5 min), verdicts kept forever and classification off.
Pair modes must map ‘typeA-typeB’ to review or skip, skip_pairs must be a list; bad input is refused and not saved.
pass
SET-27
Settings: review limits: Max links per event accepts 0-200 (0 = no cap), refuses other values without saving anything, and keeps only the best-scoring undecided links of an event. (source: docs/CORRELATION.md)
Max links per event accepts 0-200 (0 = no cap); other values are refused and nothing is saved.
pass
SET-28
Settings: review limits: The time window (0-525600 minutes, 0 = no limit) skips links whose events are further apart, verdict retention accepts 0-3650 days and classify events is an on/off switch; out-of-range values are refused. (source: docs/CORRELATION.md)
The time window is the event window (Settings > Site, read live): links whose events are further apart are skipped;
pass
SET-29
Settings: review limits: The review-limits view lists every type pair with its link count and mode and the setting ranges; the removed exclusion and never-send rule arguments are accepted but store and skip nothing. (source: docs/CORRELATION.md)
The review-limits view lists every type pair with its candidate link count and mode, and the configured ranges.
pass
SET-30
Settings: decision model: The decision model is on by default with a related threshold of 0.5; on/off and the threshold (0.05-0.95, rounded to 2 decimals) are stored with the user, other values are refused and hand-edited values are clamped. There is no event (suspicious) threshold: the decision model decides links only. (source: docs/CORRELATION.md)
Level
Test
Verifies
Status
unit
test_settings_ai.ClefSettings.test_defaults
The decision model is on by default with the related threshold at 0.5; there is no event (suspicious) threshold.
On/off and thresholds are stored (rounded to 2 decimals) with the user; a partial save keeps the other fields.
pass
SET-31
Settings: decision model: The related threshold decides whether the decision model’s probability becomes a related verdict. (source: docs/CORRELATION.md)
The related threshold is what turns the decision model’s probability into a related / not related verdict.
pass
SET-32
Settings: AI providers: Saving an AI provider checks type, name (unique, any case), key format, base URL (https, or http only for LAN / loopback, no credentials, query or fragment), model ids and prices and the number ranges, and fills defaults (official URL, 120 calls per hour). (source: docs/USER_GUIDE.md)
Wrong type, empty name, missing or malformed key, unsafe base URLs, bad model ids or prices and out-of-range numbers are refused.
pass
SET-33
Settings: AI providers: API keys are write-only: the admin page only sees the last 4 characters, an update without a key keeps it, a changed type or base URL needs the key again, and deleting a provider removes it and its key. (source: docs/USER_GUIDE.md)
An update without a key keeps the stored key, a new key replaces it, and a new type or base URL needs the key again.
pass
SET-34
Settings: AI providers: The local server row saves enabled, calls per hour (1-3000), picked models and prices with the user; switching it off stops the event reviewer from using it. (source: docs/USER_GUIDE.md)
Out-of-range rates are refused; switching the local server off stops the event reviewer from using it.
pass
SET-35
Settings: decision model server: Decision-model server settings default to the Kubernetes backend, are saved with the user only for known backends, listed model files and binaries and in-range numbers (batch at least 4096), and are read back by the server URL, clef.sh’s environment and the decision model’s URL. (source: docs/CORRELATION.md)
Level
Test
Verifies
Status
unit
test_settings_ai.ClefServer.test_defaults
With nothing saved the server is the Kubernetes backend on port 8091, 32768 context, 4 slots, batch 8192.
pass
unit
test_settings_ai.ClefServer.test_invalid_rejected
Unknown backends, model files or binaries, numbers outside their ranges and a batch below 4096 are refused; nothing changes.
Valid settings are stored in the database with the user, read back by settings(), url(), clef.sh’s env and clef.config().
pass
SET-40
Settings: catalog: Every setting documented in settings_docs.DOCS exists in its shipped *.example.json template or in the code defaults (site_cfg.DEFAULTS). (source: USER_GUIDE.md (Settings))
Every key documented in settings_docs.DOCS exists in its *.example.json template or in the code defaults.
pass
SET-41
Settings: catalog: Every setting in the shipped policy, host_policy, known_benign and site templates (and every site default) has a non-empty settings_docs entry, and the template’s doc note equals it. _(source: USER_GUIDE.md (Settings))_
The doc note in each template is exactly the catalog text and every catalog text is non-empty.
pass
SET-42
Settings: storage: A settings document saved with store.cfg_save comes back from cfg_load identical in values, types and key order (including / # % in keys, empty containers, null and bools), as a private copy. (source: ARCHITECTURE.md (store cfg))
Every shipped template passes its document’s validator.
pass
SET-44
Settings: network zones: Policy zones must be a table of name -> valid CIDR and zone_roles must be one of dmz, protected, mgmt, user, iot; anything else is rejected, _ notes are ignored. (source: USER_GUIDE.md (Settings > Network policy))
A zone role outside dmz, protected, mgmt, user, iot is rejected; each valid role is accepted.
pass
SET-45
Settings: spike thresholds: upload_spike and spike_thresholds accept only known detections and columns, severity high/medium/low/off and non-negative numbers (no text or booleans). (source: USER_GUIDE.md (Settings > Network policy))
upload_spike rejects a bad severity, non-numeric / boolean / negative numbers, unknown keys and a non-table.
pass
SET-46
Settings: beacon and allow rules: beacon ignore_ports must be port numbers 1-65535, scores 0-1, counts at least 1, no unknown keys; every allow rule needs a src and a dst. (source: USER_GUIDE.md (Settings > Network policy))
A device class outside the documented list (iot, camera, media, game, personal, work, server, k8s, infra) is rejected.
pass
SET-48
Settings: host policy, site, known benign: host_policy rejects invalid regexes, site rejects a bad internal_cidr or empty internal_prefixes, known_benign requires signatures and names to be tables. (source: USER_GUIDE.md (Settings))
known_benign rejects signatures or names that are not tables (including a missing one).
pass
unit
test_settings_site.CfgValidate.test_site_values
site rejects an internal_cidr that is not a CIDR and empty or non-list internal_prefixes.
pass
SET-49
Settings: editing: POST /api/config/cfg by an admin sets exactly one value (dict key or in-range list index) in a settings document and changes nothing else. (source: USER_GUIDE.md (Settings))
A request body over the 64 KB cap is refused before parsing (so the 400000 value cap is never reached) and a defender gets 403.
pass
SET-51
Settings: auto-tune: Auto-tune recommendations never write settings; they only make noisy detections less sensitive, leave quiet or switched-off ones alone and never propose severity or min_days. (source: USER_GUIDE.md (Settings > Auto-tune))
A detection with severity off is reported as off; chronic unnamed port-53 beacon pairs propose ignoring port 53.
pass
SET-52
Settings: auto-tune apply: Applying auto-tune writes only the values of accepted recommendations that are still current (tampered values and unknown ids are ignored); nothing accepted gives 409 and no change. (source: USER_GUIDE.md (Settings > Auto-tune))
POST /api/config/tune-apply saves the accepted change and only it; nothing accepted gives 409 and no write.
pass
SET-53
Settings: UniFi discover: Discover from UniFi proposes one zone per enabled corporate/guest subnet, roles from the guest flag, network name or members, device classes from gear, fingerprints and hostnames, and writes nothing. (source: USER_GUIDE.md (Settings > Discover from UniFi))
Roles come from the guest flag (iot) and the name (dmz, mgmt, protected, iot); otherwise mostly-server members make it protected, else user.
pass
SET-54
Settings: UniFi discover apply: Applying a discovery merges new zones, roles and classes keeping existing ones; with overwrite it replaces roles and classes; it never removes an entry. (source: USER_GUIDE.md (Settings > Discover from UniFi))
apply(overwrite=True) replaces existing roles and classes with the proposal but removes nothing.
pass
SET-55
Settings: UniFi discover apply: Applying a discovery adds internal_prefixes for uncovered subnets (replacing an untouched ‘10.’ default) and POST /api/config/discover previews without writing unless apply=true. (source: USER_GUIDE.md (Settings > Discover from UniFi))
POST /api/config/discover returns the proposal without writing; with apply=true it merges and reports counts.
pass
SET-60
Settings: integrations: An admin’s save of an Integrations section (Elasticsearch, UniFi, web search, OpenCTI, threat-intel feeds) is persisted and returned by GET /api/config/integrations. (source: docs/USER_GUIDE.md)
The web search provider, its instance URL and key are saved and read back (key masked).
pass
SET-61
Settings: secrets: Integration and AI-provider API keys are never returned by any GET (only key_set and a short masked hint); an empty key on re-save keeps the stored key and clear_key removes it. (source: docs/ACCESS_CONTROL.md)
Switching off the event reviewer / researcher audit entries persists and /api/audit/status reports it.
pass
SET-64
Settings: review job and auto-close: The event window, review job schedule, on/off and event modes, event research limits and auto-close settings are saved, read back by their GET, and out-of-range input is refused (400) or clamped without other changes. The guard rails save on every change (no separate Save button) and every auto-close save carries the switches and guard rails as shown. (source: docs/CORRELATION.md)
The review job interval (hours + minutes) is saved and read back; under 5 minutes or a non-number is refused.
pass
SET-65
Settings: AI providers and models: Admin-added AI providers and the event reviewer / research / chat model choices are saved and read back; unknown types, providers or models return 400 and change nothing. (source: docs/USER_GUIDE.md)
Updating a provider without a key keeps the stored key and applies the new settings.
pass
SET-66
Settings: event reviewer: Event reviewer look-ups (Elasticsearch, web, look-ups first, chat Elasticsearch), web cache, the decision model’s related threshold, context notes, note consolidation and review limits are saved, shown on the AI pipeline page, and invalid values return 400 without changes. (source: docs/CORRELATION.md)
Level
Test
Verifies
Status
e2e
test_e2e_settings.EventReviewer.test_clef_saved
The decision model switch and its related threshold are saved; a threshold outside 0.05-0.95 is refused.
Web look-ups per event are saved; out of range is refused.
pass
SET-67
Settings: settings documents and auto-tune: POST /api/config/cfg sets one value in a settings document (read back by GET); unknown documents, bad paths or values that fail validation return 400; auto-tune recommend is read-only and an empty accept list writes nothing. (source: docs/USER_GUIDE.md)
Auto-tune recommendations are read-only; applying an empty selection answers 409 and writes nothing.
pass
SET-68
Settings: notification devices: Admins and defenders choose their own alert devices via /api/push/prefs (read back by GET); some-devices with none picked is refused; a User may not change them. (source: docs/ACCESS_CONTROL.md)
A User cannot choose their own alert devices (an admin assigns them): 403.
pass
SET-69
Settings: role enforcement: Every admin-only settings POST returns 403 with a JSON error for a Network defender and a User and changes nothing; defenders may change Review limits but not Elasticsearch-search switches. (source: docs/ACCESS_CONTROL.md)
A rejected settings POST is audited as a failure with its 400, and a defender’s refused one with 403.
pass
SET-70
Settings: audit: Every settings POST (saved, rejected or denied) writes an audit entry with the user, role, path, outcome and status, with API keys redacted. (source: docs/AUDIT_LOG.md)
API keys sent to integration and provider settings never appear in the audit log, saved or rejected.
pass
SET-71
Settings: device classes: The device classes editor (Policy & Site) shows, under each MAC or IP key, the host name Syn learned for it (device registry, then the time range’s devices, then the page’s name lookup) as ‘learned: ', or 'learned: —' when none; the row filter also matches it; the saved device_classes document is unchanged. _(source: USER_GUIDE.md (More -> Settings))_
learnedHost finds the name by registry key / MAC / IP, prefers the learned host name, falls back to the
pass
UI-90
Dashboard theme: The suppress button (🚫 rule) on every event and finding row and the alert suppress button use the same gold pill style and colour variables as the other row action buttons (note / ask), with a line ban icon, gold hover, filled gold active state and a dimmed disabled state. (source: USER_GUIDE.md (Buttons you will see on rows))
Every suppress button template carries the line ban icon (no emoji glyph as content), and style.css styles
pass
UI-91
Dashboard boxes: The ‘More below’ flair of a scrollable box fades out (opacity transition, layout kept) when the box is scrolled to its bottom and fades back in when more is below; no transition with reduced motion. (source: USER_GUIDE.md (Boxes))
The ‘More below’ flair stays in the layout while a box can scroll (cc-can-more) and fades out by opacity when
pass
UI-92
Dashboard theme: The magnifying-glass buttons (open related events, search in Elasticsearch) and the web-research count use a gold line magnifier icon instead of the emoji (and the times-seen flair a gold line eye icon), in the same gold colour variables as the other row action buttons, with gold hover, filled gold active and focus states. (source: USER_GUIDE.md (Buttons you will see on rows))
The pivot (open related events) and Search-in-Elasticsearch buttons and the web-research count use the gold
pass
UI-93
Dashboard navigation: The browser Back button or back gesture closes the topmost open modal, popup or mobile menu instead of leaving the page (the welcome wizard steps back a step); closing one with its X, Cancel, Escape or the backdrop removes its history entry so the next Back navigates normally; with nothing open Back goes to the previous page. (source: USER_GUIDE.md (Finding your way around))
Back (button or gesture) closes the topmost modal, popup or mobile menu instead of leaving the page; closing one any
pass
CLS-01
Device classes: Without class definitions every alarm behaves as before: built-in classes (iot, camera, media, game, personal, work, server, k8s, infra) and unclassified each behave like themselves, every alarm is on except the new-destination ones outside iot (or the classes in the older new_domain_classes / new_tls_classes), and every finding kind analyze.py raises has a switch. (source: docs/USER_GUIDE.md (Device class definitions))
Every finding kind analyze.py raises with a literal kind appears in the alarm catalogue, so each one has a switch.
pass
CLS-02
Device classes: An alarm switched off for a class is never raised for devices of that class: baseline findings (analyze.py), live alerts (watch.py), endpoint findings (hosts.py, host matched by learned host name) and destination collection all go through classdefs.alarm_enabled. (source: classdefs.py)
Level
Test
Verifies
Status
unit
test_classdefs.Edits.test_update_switches
update sets a class’s switched-off alarms (unknown kinds refused) and is read back by alarm_enabled; a
watch.py live alerts for a device (IDS, new device, inbound port, threat intel, admin access) name their alarm
pass
CLS-03
Device classes: Classes can be added, renamed and removed (POST /api/config/classes, admin only); a rename updates device_classes and allow rules using it; a class in use is removed only after choosing a class (or unclassified) for its devices; the first edit stores class_defs and drops new_domain_classes / new_tls_classes; device_classes accepts only defined classes. (source: docs/USER_GUIDE.md (Device class definitions))
Level
Test
Verifies
Status
unit
test_classdefs.Edits.test_add_rename_and_migrate
Adding a class stores class_defs (migrating new_domain_classes / new_tls_classes into the switches and dropping
Removing a class no device uses just removes it; removing one in use is refused until a target class (or
pass
unit
test_classdefs.Edits.test_update_switches
update sets a class’s switched-off alarms (unknown kinds refused) and is read back by alarm_enabled; a
pass
CLS-04
Device classes: Each user-added class behaves like one built-in class and follows its built-in rules (protected-zone and admin-port segmentation, executable downloads, new TLS clients, risk impact, default switches); built-in classes behave like themselves. (source: classdefs.py)
A user class behaving like camera is held to the camera protected-zone rule and gets camera risk impact and
pass
CLS-05
Device classes: Settings > Network policy shows a Device class definitions card (rename, behaves like, an expandable on/off switch per alarm, add, remove with a move target) and the device classes editor offers a drop-down of the defined classes next to the learned host name. (source: docs/USER_GUIDE.md (Device class definitions))
The policy settings GET returns the alarm catalogue and built-in classes; settings.js renders the Device class
pass
CLS-06
Device classes: upload_spike, scan_thresholds and beacon each have a device-class scope: classes (which classes the rule runs for; empty or * = every device, unclassified = devices with no class) and by_class (per-class overrides of the section’s numbers; ignore_ports stays section-wide). Without a scope every device gets the section’s numbers as before. (source: extras.py)
Without classes / by_class every device gets the section’s numbers and the rule applies to every class.
pass
CLS-07
Device classes: The scope is applied where the findings are made: internal scans (extras.internal_traffic, class by MAC through the device registry or by IP), beacon candidates (extras.beacons, Elasticsearch pre-filter as loose as the loosest class) and upload spikes (analyze.upload_cfg_for). (source: docs/USER_GUIDE.md (Device class definitions))
Level
Test
Verifies
Status
unit
test_class_scope.Collectors.test_beacon_per_class
beacons() queries loosely enough for the loosest class, then applies each source’s class: filter, min_conns
A device classed by MAC is found through the device registry (the collector only sees IPs).
pass
unit
test_class_scope.Collectors.test_scan_per_class
internal_traffic reports a scanner by its own class’s numbers and only for the classes the rule runs for.
pass
unit
test_class_scope.Collectors.test_upload_per_class
analyze’s upload-spike check takes the device’s class settings (MAC or IP key) and skips classes the rule
pass
CLS-08
Device classes: Settings > Network policy shows the scope as a class drop-down (check boxes) and a per-class override table; cfg_validate refuses unknown classes, empty or unknown override settings and bad values; renaming a class follows into classes / by_class and removing one moves the filter to where its devices went (a narrowed rule never widens to every device). (source: docs/USER_GUIDE.md (Device class definitions))
Renaming a class renames it in classes / by_class; removing it moves the filter to the class its devices
pass
unit
test_class_scope.Validation.test_validate_scope
classes must be defined classes (or unclassified / *); by_class rows need a known class, at least one
pass
CLS-09
Device classes: Auto-tune works per scope: one proposal per by_class override (id section@class, judged on that class’s devices, written to by_class), the section proposal leaves out classes the rule does not run for, and a section-wide change driven by one class also offers an optional class-only override. (source: docs/USER_GUIDE.md (Auto-tune))
Each by_class override gets its own proposal (id section@class) judged on that class’s devices only; the
pass
VOL-01
Volume spike: The volume-spike finding’s thresholds are the policy section volume_spike (min_mb, times_normal, mad_factor, min_days, severity); its defaults are the former hardcoded numbers (50 MB floor, 3x normal, normal + 6 MAD, 3 days of history, medium), so an install without the section behaves as before and the Settings page shows them with their help text. (source: docs/USER_GUIDE.md (Volume spike))
The volume_spike defaults (code, policy.example.json, Settings page for an install without the section) are
pass
VOL-02
Volume spike: A change to volume_spike applies from the next analysis run to every device the rule runs for; severity off silences the finding. (source: analyze.py (volume_finding))
A global volume_spike change applies to every device: min_mb, times_normal, mad_factor, min_days and
pass
VOL-03
Volume spike: volume_spike by_class gives a device class its own numbers (blank = the section’s value); devices of other classes keep the section’s values. (source: docs/USER_GUIDE.md (Device class definitions))
by_class gives one class its own numbers (MAC or IP key); other classes keep the section’s values.
pass
VOL-04
Volume spike: volume_spike classes limits the rule to the ticked device classes (none ticked or * = every device; unclassified = devices with no class). (source: docs/USER_GUIDE.md (Device class definitions))
Level
Test
Verifies
Status
unit
test_volume_spike.Thresholds.test_class_limit
classes limits the rule to the ticked classes (‘unclassified’ = devices with no class, none ticked or ‘*’
pass
VOL-05
Volume spike: volume_spike is validated like upload_spike (values, scope), follows class renames/removals, is listed on the event cards’ detection settings, has a per-class alarm switch, and auto-tune proposes values for it (section-wide and per class override). (source: docs/USER_GUIDE.md (Auto-tune))
Level
Test
Verifies
Status
unit
test_volume_spike.AutoTune.test_auto_tune_volume
Auto-tune proposes volume_spike values (section-wide and per by_class override, MB units) and apply writes
Event store: Only events seen in Elasticsearch data (IDS, host, threat intel, Zeek-derived findings) record firings; a firing is added per new IDS alert time, and a finding window overlapping the previous firing of the same condition extends it instead of adding one, while the seen count still counts reports. (source: git 7d0f12f; docs/CORRELATION.md)
The event’s n (seen N times) still counts report appearances even when no new firing is recorded.
pass
FEAT-02
Open events: The Open events detail merges the variants of one related condition into one line that keeps every link’s review time (llm_ats), the union of their artifacts and the most confident variant’s fields, so each firing shows only its own links. (source: git 8e94200)
A person’s verdict beats the event reviewer’s; rejected notes are ignored; the decision model gives no event verdict.
pass
FEAT-04
Alerts: The Alerts web research list shows the event reviewer’s web searches and page reads per event, newest first, marked own or candidate (with its anchor), with only http(s) links, at most per entries, and never manual test look-ups. (source: git 83a1e9d)
Look-ups anchored on the event are own; look-ups run while it was a candidate name the anchor; manual tests are left out.
pass
FEAT-05
Alerts: The Alerts view sets each alert’s event id and verdict, merges repeats of the same look-up into one row with a times count, strips artifacts and label from people’s notes, and stores each artifact note once (text capped at 700 characters) and refers to it by id per alert. (source: git 57e2586, 83a1e9d)
Each alert gets its event id and verdict; the same look-up re-run by later reviews is one row with a times count.
pass
FEAT-06
Alerts: Detections by verdict lists held detections newest first, with verdict counts kept separate for detections and alarms, an optional verdict filter and a row limit. (source: git 57e2586)
Held detections are listed newest first with verdict counts kept apart from alarms; a verdict filter narrows the list.
pass
FEAT-07
Event reviewer: The event reviewer writes one analyst write-up per event (up to two paragraphs: Why it fired / Verdict) and gives only artifacts for each related link; the output schema does not require a per-link reason. (source: git 57038cf; docs/CORRELATION.md section 7)
The event-review JSON schema requires id, label, confidence and artifacts, but no per-link reason.
pass
FEAT-09
Review log: Review log entries count events processed: a correlation pass counts each distinct event it touched once, and a review-job run records events processed, given a note and queued and puts them in its log entry and message. (source: git 6673a2a)
Touching the same event twice (link decided, then labelled) counts it once; empty ids are ignored.
pass
FEAT-10
AI pipeline pages: Both AI pipeline pages fold their boxes into four part boxes (Models, Correlation review, Event review, Research review), each with an ⓘ text (what, source, use) under the cardinfo.js key view
title, normalised the same way as cardinfo_ui.js. (source: git 38dd1a3, 76d0f88; references/dashboard.md)
Both AI pipeline page builders end by folding their boxes into the part boxes (so only part titles get ⓘ buttons).
pass
FEAT-11
Box info texts: Every new or renamed top-level dashboard box (Alerts: Recent alerts; Configuration: Auto-close) has its own ⓘ text in cardinfo.js instead of the generic fallback. (source: home-network-report skill step 7 (cardinfo.js))
The Alerts box “Recent alerts” has its own ⓘ text; the removed “Detections by verdict” box left no stale text behind.
pass
SET-90
Settings: Every setting the code exposes (settings endpoints, Integrations sections, Settings-page documents, setter functions) is listed in the settings inventory, and each one is verified by at least one test. (source: TESTING.md (Settings coverage))
Every settings POST endpoint in server.py is an inventory setting or a listed action.
pass
KUBE-01
Kubernetes: Kubernetes monitoring reads only Security Onion Elasticsearch (esq/integrations); a shard failure is an error, never a silent partial result. (source: USER_GUIDE.md (Devices → Kubernetes))
Level
Test
Verifies
Status
unit
test_k8s.HelpersTest.test_only_security_onion
REQ: KUBE-01
pass
unit
test_k8s.HelpersTest.test_shard_failure_raises
REQ: KUBE-01
pass
unit
test_k8s.WatchTest.test_failed_part_is_reported
REQ: KUBE-01
pass
KUBE-02
Kubernetes: Stale or missing container logs, high-severity container-log signals (reverse shell, miner, web attack), secrets in logs, pod exec/attach/port-forward, 401/403 bursts, forbidden/PodSecurity events, high SO alerts and new images raise k8s- findings; namespaces exempt in host_policy k8s.signal_exempt raise none. (source: USER_GUIDE.md (Devices → Kubernetes))
Kubernetes: API server request counters are turned into per-window increases (max - min per series) and classified as denied, exec, rbac, secrets-read or error. (source: k8s.py)
Level
Test
Verifies
Status
unit
test_k8s.ApiserverTest.test_increase_and_classes
REQ: KUBE-03
pass
KUBE-04
Kubernetes: Kubernetes findings join the nightly host findings (key prefix k8s-, no duplicates) so correlation, review and Posture see them; the pod pivot rejects malformed namespace/pod names. (source: USER_GUIDE.md (Devices → Kubernetes))
Level
Test
Verifies
Status
unit
test_k8s.CollectMergeTest.test_k8s_into_hosts
REQ: KUBE-04
pass
unit
test_k8s.HelpersTest.test_pod_rejects_bad_names
REQ: KUBE-04
pass
unit
test_k8s.HelpersTest.test_pod_rejects_bad_owner
REQ: KUBE-04
pass
unit
test_k8s.HelpersTest.test_set_end_window
REQ: KUBE-04
pass
KUBE-05
Kubernetes: The Kubernetes API integration accepts only https:// URLs and a one-line token, keeps the token and CA write-only, cannot be enabled without URL and token, and its Test reports whether the account can do more than read. (source: USER_GUIDE.md (Configuration → Integrations → Kubernetes API))
Kubernetes: The CIS benchmark reads control-plane flags, RBAC, pods, namespaces and network policies with GET requests only; failed checks become Fix list items (k8s-cis
, not endpoint findings), accepted checks (host_policy k8s.cis_accept) do not, and checks that need node access are reported as manual, never as passed. _(source: USER_GUIDE.md (Devices → Kubernetes))_
Kubernetes: The Kubernetes map links ingress -> service (backend) -> pod (selector) and pod -> workload (ReplicaSet resolved to its Deployment), and summarises each container’s security context. (source: USER_GUIDE.md (Devices → Kubernetes map))
Level
Test
Verifies
Status
unit
test_kube_api.MapTest.test_edges_and_workloads
REQ: KUBE-07
pass
KUBE-08
Kubernetes: Several Kubernetes clusters can be configured by name (older single-cluster settings read as ‘default’); the Kubernetes pages filter by one cluster or show all, and Security Onion data is attributed to a cluster by its node names. (source: USER_GUIDE.md (Devices → Kubernetes))
Kubernetes: Kubernetes warning events and container-log hits that are not findings reach Open events as low-priority host findings (snapshot only, never a watcher alert). (source: USER_GUIDE.md (Devices → Kubernetes))
Kubernetes: Pod notes: filed on the object that creates the pods - Deployment, StatefulSet, DaemonSet, CronJob or Job (kb subject pod:///; kind pod for unowned static pods) - so one note applies to every pod it creates now or later; the UI says so (owner banner on the pod page, Created by column with a note count on the Pods table). People add them on the pod page; the AI reads them for any of those pods' events and writes (event research host_notes, event reviewer expected-artifact notes). _(source: KUBERNETES.md (Pod notes))_
Kubernetes: The Risk page ranks Kubernetes workloads (containers) together with hosts using the same likelihood (exposure, weaknesses incl. image CVEs, threat, reach, visibility) x impact model, and lists container vulnerabilities ranked by risk. (source: USER_GUIDE.md (Security → Risk))
Kubernetes: Vulnerability counts over time: once a day the scheduler records open Fix list items by severity, each cluster’s CIS benchmark results and the distinct CVEs (by severity, with a fix available) in its running images (vulnhist.py, table vuln_hist; a same-day re-run replaces that day). Days before daily recording are rebuilt once from stored review runs and never overwrite a daily record. The Fix list and Devices → Kubernetes pages show them as line charts (Kubernetes: all clusters summed, or the picked cluster). (source: USER_GUIDE.md (Fix list, Devices → Kubernetes))
The scheduler has a daily vulnhist job (vulnhist.py record).
pass
KUBE-10
Kubernetes: For each running image the newest registry tag of the same form is found (pre-releases skipped), the running and newest images are scanned for CVEs, and images whose critical/high CVEs are fixed by updating become Fix list items (k8s-imgcve
), not endpoint findings. _(source: USER_GUIDE.md (Devices → Kubernetes))_
Operations: The dashboard’s parsed-document cache is bounded (LRU), so walking every snapshot cannot exhaust the container’s memory. (source: server.py)
More > Settings > Site > event_window_minutes: event window (correlation window, review coverage, settle wait)
/api/config/cfg
EVW-01, EVW-02, EVW-03, EVW-04, SET-64
17
6
push.gate
More > Settings > Site > push_wait_for_ai / push_hold_max_minutes: wait for the AI verdict before phone alerts, longest hold
/api/config/cfg
PSH-01, PSH-05, PSH-06
6
0
users.trust
More > Settings > Site > min_indicators / few_indicators_max_confidence / user_alert_min_confidence / stop_device_min_confidence / baseline_alerts_to_users: who is told what
/api/config/cfg
ALR-30, ALR-31, ALR-32
5
0
review.schedule
AI pipeline configuration > Review job schedule
/api/config/review-schedule
CFG-01, SET-64
21
7
review.job
AI pipeline configuration > Review job: on/off, event modes
/api/llm/review
CFG-01, OPS-06, SET-64
32
7
research.limits
AI pipeline configuration > Research job limits (model, cost caps, web)
/api/llm/research
CFG-01, SET-64
21
7
autoclose
Open events > Auto-close settings and guard rails
/api/config/triage, /api/config/triage/reopen
STO-08, STO-12, SET-64
18
6
notes.consolidate
AI pipeline configuration > Nightly note consolidation
/api/llm/notes-consolidate
STO-09, SET-66
6
8
llm.models
AI pipeline configuration > Models (event reviewer, research, chat model)
/api/llm/config
SET-22, SET-23, SET-65
6
4
llm.providers
AI pipeline configuration > AI providers (added APIs, local server)
/api/llm/providers
SET-32, SET-33, SET-34, SET-65
8
4
llm.clef
AI pipeline configuration > Decision model settings (on/off, thresholds)
/api/llm/clef
SET-30, SET-31, SET-66
6
8
llm.clef_server
AI pipeline configuration > Decision model server
/api/llm/clef-server
SET-35
3
0
llm.notes
AI pipeline configuration > Event reviewer context notes