Repository navigation
Live Evidence Admission Live3
Published documentation mirror. Edit the source through a repository PR. See Project status.
Status: accepted; 217 local gates passed, nine hosted checks passed and maintainer reported manual operational GUI review and merge (2026-11-29 UTC). Accepted baseline: LIVE2.
The ordinary unprivileged desktop remains the trusted owner of the approved LIVE1/LIVE2 session. In addition to scope and optional passive sampling, LIVE3 requires a separate unchecked retention consent control. Only after approval and a valid initial kernel sample may the desktop open a dedicated store. A successful subsequent scope-checked kernel sample produces a typed kernel snapshot; a validated five-field passive helper line produces a typed passive batch. The helper does not acquire storage access. The store independently checks numeric bounds; it is not a new authorization or authentication service. No persistence occurs in ordinary no-consent sessions or before approval. Stop, manager loss, topology invalidation and desktop close close the store.
This is operational local evidence admission, not KSTD or OCSF journal admission. The existing journal EventStore and manager EVENTS queries do not accept this schema. The native bounded sequence reader is available to a serialized trusted owner for LIVE4 integration. LIVE3 itself does not enable detection, remote admission, Event Explorer integration, event correlation or alert publication.
As the ordinary user, deliberately prepare a dedicated local directory if you
want retention: mkdir -m 0700 ~/.knetsentry-live-evidence (do not use sudo).
Do not reuse an unrelated directory, use a symlink or change permissions on
existing evidence without review. The GUI does not create the directory or
choose a fallback. The candidate supports ext4, XFS, Btrfs and F2FS here;
OverlayFS is only accepted by explicit native fixture configuration. The
M8.10 mount inspection features do not themselves grant operational storage
approval. External/network, automount and removable storage are not qualified
for this initial append stream.
The store opens the directory with no symlink/magic-link resolution, requires same-effective-UID 0700 ownership, obtains a nonblocking exclusive directory lock and creates or opens a single 0600 regular file with one link. Before and after append it rechecks directory/file identity, mode, filesystem type and expected size. No elevated process, socket, raw payload, peer address, MAC, port, process identity, credential or interface name is retained. The approved local numeric address, netmask and interface index are private scope metadata; the index is session/namespace-local, not a device identity.
observations-v1.bin contains fixed 144-byte records: fourteen unsigned
64-bit big-endian words (112 bytes), followed by a 32-byte SHA-256 digest of
those 112 bytes concatenated with the preceding digest (all-zero for the first
record). The words are: format version 1, two random session words, one-based
file sequence, local receiver Unix epoch milliseconds, kind, interface index,
local IPv4 address, mask, and five values. No timestamp or network identity
is asserted by an untrusted helper. Local wall clock can move backward.
| Kind | Values (in order) | Interpretation |
|---|---|---|
| 1 | RX bytes, TX bytes, neighbor count, TCP count, zero | Interface totals include all interface traffic; neighbor cache and scoped TCP are bounded snapshots, not verified assets. |
| 2 | TCP, UDP, ICMP, outside-prefix, examined | At most 256 examined; accepted protocol sum cannot exceed examined, outside-prefix cannot exceed accepted. Loss and coverage unknown. |
The file holds at most 8192 records (1,179,648 bytes). The first open checks the entire bounded chain and every record's schema and sequence. Read by sequence is bounded and checks the selected record and preceding digest after open. The store synchronizes the file and directory on open, then acknowledges an append only after an exact positional write, successful fdatasync and path revalidation. There is no implicit retention, deletion, rotation or truncation. A partial tail or digest mismatch is refused, never silently repaired. A failed or interrupted write can be ambiguous; the UI stops persistence, preserves existing bytes, and reports uncertainty rather than claiming durability. A subsequent explicit approval may reopen a complete valid stream. A full store refuses further records and does not erase prior evidence.
SHA-256 chaining detects accidental corruption and many changes on reopen; it is not a signature, independent evidence authenticity or protection against same-UID modification, full-chain rewriting or deletion of complete suffixes. The approved directory and its ancestors must be stable and controlled by the operator. Existing same-UID trust assumptions and TB-01/TB-03, local scope and privacy constraints remain applicable. No protection against a malicious kernel or administrator is claimed. File synchronization was synchronous on the desktop sampling thread in LIVE3. LIVE6D.1 moves it to a bounded worker (accepted); shutdown can still wait on stalled storage. LIVE6D.2 introduces candidate bounded segmented rotation with the same record format and global sequence. Controlled expiration, stronger evidence anchoring, manager-owned integration and long-duration performance qualification remain follow-up work. Do not use this development store as the sole evidence vault.
knetsentry_live_evidence_contract checks refusal without approval, invalid
scope/values, private paths, competing owner, exact read/reopen, session and
sequence, capacity, directory replacement, hardlink/symlink and unsafe mode
rejection, partial tail and corruption. The full local runner repeats it in
Release and ASan/UBSan, checks native dependency independence and extends the
existing isolated LIVE1 and LIVE2 fixtures to pass actual synthetic-network
kernel observations and helper aggregate output to the native evidence store
as the ordinary user, then reopen and verify exact values. These fixture
paths are disposable and do not write real LAN evidence. They do not test the
actual GUI admission adapter; separately check the consent, status, no-write
and Stop/reopen behavior in the ordinary GUI. Hosted CI and full target-host
qualification are required before acceptance.
Source repository · Documentation index · License policy
Documentation mirror — CC-BY-SA-4.0. KnetSentry is not an official KDE project.