Baseline capture¶
--baseline <file> captures the current state of a system as a golden
reference and writes it in the exact norm config schema that --cfg
consumes, so it round-trips:
delta --baseline golden.json # capture known-good state
delta --cfg golden.json --json # later: detect drift
Any deviation — a process now running but not in the baseline, a newly opened
port, a changed mount or filesystem type — is reported as a violation. Pass
- to write the baseline to stdout. No policy checks run in this mode.
In baseline mode Delta collects all domains (processes, ports, packages,
network, mounts; fingerprints when --fingerprint is given) regardless of
the per-domain flags, so the reference is complete.
The file also carries the collect section of the run that captured it (see
Configuration), naming each domain it holds something to compare
against, and the directory the file checksums came from. This is what makes
--cfg golden.json alone enough: a run that collects less than the baseline
holds finds nothing where the baseline recorded something, and reports the
captured state as missing. Adding the collection flags again does no harm,
because the two are OR’d.
What gets captured¶
Domain |
Captured |
|---|---|
Processes |
|
Ports |
|
Mounts |
|
Files |
|
Packages |
|
Network |
|
other_*_present are emitted as false: a baseline is strict by
construction — only what was observed is allowed, so anything new is drift.
Editing a baseline¶
The output is an ordinary config and is meant to be hand-edited as policy — for
example to relax a too-specific entry, drop a transient process/port, set an
other_*_present back to true to enforce only a subset, or pin a single
security property (e.g. "promisc": false on every interface). See
Configuration.
Notes¶
Point-in-time. Transient processes/connections present at capture become part of the allowed set; capture on a quiesced system or prune the result.
Capturing an image —
--baselinehonors--root(see Offline image analysis).Drift over time and across a fleet build on the same data — see Continuous monitoring and Fleet / cohort analysis.