The decentralized SOC
A SOC is usually built around one assumption: every log line reaches a central place, and that place decides what is an attack. Everything downstream inherits that assumption, including the bandwidth bill, the detection latency, and the blast radius when the correlator is unreachable.
MarlinOS starts from the opposite end. The host that produced the log
parses it, enriches it, matches it, and scores the entity behind it,
before the line is written to disk. On the host, mmwake
writes threat_level and wake.alert.
wake.alert=yes is the mark, and one host can set it.
The mesh adds to threat_level, capped at 0.30, and a
quorum alert needs two sources by default. The mesh does not set
wake.alert.
Decide where the evidence is
Parse, CTI, Sigma, and the score run in the rsyslog hot path on the host that has the line. The parsed event is already in memory, so the verdict costs a match, not a round trip.
Agree without a correlator
Edges gossip deposits into a shared counter. A quorum alert
needs two sources by default. That is not the mark.
wake.alert is set on the host that scored the line.
Survive the link
A remote site, a DMZ collector, an air-gapped floor. The uplink is how verdicts are delivered, not how they are produced.
Two shapes for the same job
The difference is not the detection content. Both shapes can run the same Sigma corpus. The difference is where the decision happens, and therefore what has to be true for detection to work at all.
The mesh adds. It does not mark.
One host can set wake.alert from the line it scored.
The mesh is for the trace that stays small on each host: a few
failed logins here, one port touch there, an odd DNS query
somewhere else. Those deposits accumulate. They do not become the
mark.
Each edge deposits what it scored, and peers accumulate those deposits
into a shared per-entity counter. That counter becomes
mesh_bonus on threat_level (confidence
divided by 20000, capped at 0.30). It does not set
wake.alert. A quorum alert is a separate check: accumulated
confidence, a minimum number of hits, and two distinct sources by
default. A source count is raised by a remote peer, not by the local
deposit. A single-node lab sets the source minimum to 1.
threat_level and stop at 0.30.
They do not set wake.alert. A quorum alert is the
separate check that wants two sources. Deposits decay, so a counter
that stops being fed falls back. Illustrative, RFC 5737
documentation IPs.
When the link dies
Every deployment we care about has a link that is not always there. A remote site can sit for days without a path back. A DMZ collector may be firewalled to a one-way path. An industrial floor may be air-gapped by policy. In the centralized shape those are outages of detection. Here they are outages of delivery.
omclickhouse queue spills to
disk, up to 1 GB per edge, and survives a restart. An outage
longer than that buffer loses events.
What actually leaves the edge
Forwarding raw logs becomes a policy choice rather than a requirement. That is the practical consequence of the whole design, and it is where the bandwidth and storage numbers come from.
| Plane | Payload | Scope |
|---|---|---|
| Verdicts | The enriched line: threat_level, wake.alert, and the Sigma fields on that line. Detector findings travel on the pheromone row below, not on this one. |
Edge to console, or edge to an existing SIEM. |
| Sigma partials | $!sigma_contribution: a JSON array, one entry per matching correlation rule. Each carries corr_id, event time, group values and its partial (count, numeric, seen_mask or value). |
Hashed onto one owner in a configured peer ring. See mmsigma. |
| Pheromone | Evidence about a scored entity, added into a shared per-entity counter, plus liveness. | Gossip across tenant peers over SWIM and PlumTree, run by the immesh rsyslog module. |
| Raw lines | The original log, unchanged. | Optional. Kept local, or forwarded when policy or retention says so. |
What this is not
The design buys locality and availability. It does not buy a global view for free, and pretending otherwise is how these architectures get a bad name.
- Not a short window across a WAN. Commutative
correlation merges across a peer ring the operator configures per
site, and high RTT forbids sharing the same
event_countacross sites. The ring is static and the module never consults liveness, so a dead member is undefined behaviour until the overlay is rewritten, not graceful degradation. See what actually happens. - Not a replacement for retention. Forensic search over months of raw data is a different job with different storage. WAKE decides what deserves to be kept and looked at.
- Not a second correlator in Python. A correlation fire is a fact produced once, in C. Nothing downstream re-counts it.
- Not a trained central model. Baselines are local and adaptive: an EMA per protocol and port over a weekly seasonal profile, plus per-entity rolling windows and Welford population thresholds. State is per-node; there is no shared clock and no model to ship.