Skip to content

Phase 3: immune system and recovery - #6

Open
thearpankumar wants to merge 302 commits into
masterfrom
phase/3-immune-recovery
Open

thearpankumar wants to merge 302 commits into
masterfrom
phase/3-immune-recovery

Conversation

@thearpankumar

Copy link
Copy Markdown
Owner

Phase 3 of the backlog: the immune system and recovery. 14 of the 15 Phase 3 boxes in docs/backlog.md are ticked; the genome log (E12) is left unticked because its write cost misses its target (below).

What it adds

  • Genome log (E12, unticked), snapshots and snapshot lock (E11, E17).
  • The guard: canaries and honey keys, behaviour detection, learning mode (A6, A7, A16); the response playbook (A8); incidents (A15); ransomware rollback (U3); leak-path control (A9).
  • Self-sandbox (O2), the BPF-LSM guard (O4), binary integrity and eBPF telemetry (O5, O6).
  • TPM sealing (O3): the root share sealed to a signed PCR policy over salted sessions, a TPM PIN with lockout, the recovery share before enrolment, keys wiped on suspend and lock.
  • Webhooks and SIEM bridge (M4): redacted, signed notices from a notifier process that holds no vault key; destinations are a protected setting.
  • The inspector: a small process that opens a fixed set of a caller's /proc files for the decider, which stays under Landlock (Landlock refuses ptrace checks across domains). It is the only process with CAP_SYS_PTRACE and CAP_DAC_READ_SEARCH; every other daemon process holds no capability. The root helper takes mounts only from the registered key holder, and the decider can signal no other process.
  • Master's Phase 2 end-run fixes are merged in (one merge commit; numbers that clashed were moved to the next free ones).

Measured at the phase end (2026-12-07)

Missed targets are written as missed:

  • One log entry adds 10.11 % to a small commit, against 5 % (E12).
  • Restoring a file from a snapshot is 14.0 to 19.4 times a plain read, against 1.2. A snapshot of 100,000 files takes 114 ms, against 50 ms; its size bound passes.
  • A small store commit takes 59 to 62 ms, against 20 ms; a gibibyte in commits reaches 0.36 of plain-file speed, against 0.5; the CLI's get of large files reaches 0.40 to 0.43 of a plain copy, against 0.5.

Met, among others: telemetry overhead 0.50 % (target 5 %), sandbox setup 278 µs, canary timing within 4.6 % of a twin, rollback dry run 1.07 s, incident list 177 µs, playbook step about 30 ns, identity lookup 21.6 µs median (a Phase 2 miss, now met), bus 2,282 jobs/s.

The VM-only tests (kernel mount, leak mount, every process under its filter, the unit's capabilities, the BPF guard, the helper's guard), the demo, the swtpm tests and the slow ignored tests pass. Not run: the two verity tests (no loop device in the guest), the full-size scale bench and mount_io.

Checks

Each item passed the local gate before it merged: fmt, clippy, the workspace tests (3,747 passed at the tip), docs, test vectors, layers, features, vendored sources, zstd link, commit messages, typos and actionlint. long-checks.yml (with the TPM job) is left for the 1.0 gate.

🤖 Generated with Claude Code

…uzz seeds for the keys and actions of the lock
…se, the cost of a tick and the new vectors in the spec, the threat model and the backlog
…eep their merged tables in helpers within the length lint
…eir own aggregator, TV-25 and docs say what is built
…ning shows it and guard except proposes an exception with presence
…es of an agent tree add to the program's guard score
… a content report for another user counts nothing
…eir own tokens, an exception keeps a share at the hard ceiling and old baselines are pruned
…e decider holds no call that signals another process
…it and the key holder stops if a helper that answers refuses it
…ck and the helper's start rule, threat model v0.41
…ogram by hash, starts it with a terminal and gives the daemon the environment capability
…a seccomp filter that opens read-only and maps no file
…ller's files for the decider, which holds none
…or alone and list it among the filtered processes
…h the resolver's own descriptor, so a stalled file system cannot hold the inspector
…aller's launch untrusted and its chain unreadable
… the inspector's standard error is /dev/null
…le is a place, and no process but the inspector holds the two capabilities
…r as the one process with the two capabilities
…, since the test binary is made not dumpable
@gitguardian

gitguardian Bot commented Dec 6, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
42793716 Triggered Generic Password 8aeada7 crates/access/fs/src/leak/mod.rs View secret
42793716 Triggered Generic Password 7677392 crates/access/fs/src/leak/scan.rs View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant