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.

// locality

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.

// quorum

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.

// autonomy

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.

where the decision happens raw lines vs scored verdicts
Centralized log shipping compared with decentralized edge scoring On the left, four collectors forward every raw line to a single SIEM correlator, which must see everything for detection to work. On the right, four edges each score locally. One host can set wake.alert. Peers gossip deposits, and that mesh does not set the mark. 01 / centralized Ship every line. One correlator decides, so it must receive everything. every line, all the time 1 2 3 4 forwarders SIEM correlator must see everything Detection latency is pipeline latency. The WAN link is a prerequisite, not a convenience. Cost scales with log volume, not with risk. 02 / decentralized Score at the source. The host sets wake.alert. The mesh does not. SOC console verdicts only 1 2 3 4 peer gossip no broker each edge scores locally The verdict exists before the line is written. Link down: detection and correlation continue. No single box has to see everything.
Both sides can run the same Sigma corpus. What changes is the precondition: the left needs the link and the central box, the right needs neither to keep detecting.

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.

pheromone quorum entity 203.0.113.66 · tenant: north
Four edges depositing on one entity Four edges each deposit a weak observation about the same IP. The deposits add to threat_level, capped at 0.30. They do not set wake.alert. A quorum alert is a separate check and wants two sources by default. pheromone quorum One entity, four partial views. score two sources 0 peers quorum 1 edge-01 3 failed logins +0.04 2 edge-02 one port touch +0.05 3 edge-03 periodic DNS +0.06 4 edge-04 off-hours auth +0.08 mesh_bonus, cap 0.30
The deposits add to 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.

degraded uplink local detection continues, verdicts spool
Site behaviour while the uplink to the SOC console is down Three edges at a site gossip continuously among themselves. The uplink to the off-site SOC console goes down: verdict delivery stops and the local retry buffer grows, while local detection and gossip continue unaffected. When the link returns, the buffer flushes and normal delivery resumes. availability Delivery is not detection. SOC console off site verdict uplink link down site · dmz · floor 1 edge-01 2 edge-02 3 edge-03 local gossip never stops buffer retained
While the uplink is down the site keeps parsing, matching, scoring and reaching quorum. Only delivery is deferred. Be precise about the buffer, though: the 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.

PlanePayloadScope
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.