Notes index: Verification and security
Part of the notes index, which says how to add a line.
- Machine-checked proofs (Kani): how the Kani proofs work, and what they prove.
- Proving things about
kernel/src: proving kernel code, and the stub boundary. Name provisional. - Proving things about
user/: proving the EL0 programs, and what it found. Name provisional. - Verus, and whether it reaches the code Kani stops at. Name provisional.
- Upstreaming the riscv64 target to Kani: the branch, and the pull request text. Name provisional.
- Did the proofs catch the bugs?. Name provisional.
- Does a standing proof notice a regression?: every mutant in a harness's reach, proved; which proofs can fail. Name provisional.
- Have the Kani proofs ever failed in CI?: 9,794 verify runs, no harness failure on a pull request. Name provisional.
- Falsification records: recording that each proof harness can fail.
- Falsification coverage: which kinds of test carry a replayed falsification, and what gates on it.
- Fuzzing the parse surface: coverage-guided fuzzing of the parsers that read outside bytes.
- Fuzzing talc: the heap algorithm under every program, its upstream targets, Miri, and a target that drives it as nife's heap does. Name provisional.
- Fuzzing the services' request handlers: session targets over the file server, the system log and the compositor, each checking a confinement rule.
- Taking a dependency update: what notices a new release, who merges which bump, and what a bump that cannot land leaves behind. Name provisional.
- Overflow checks: which builds panic on integer overflow and which wrap, what checking the shipped build found and costs, and the options (provisional name).
- Dynamic undefined-behavior checking (Miri): Miri over the host crates, and what "clean" means.
- Interleavings, model-checked (loom): loom over the hand-rolled concurrency protocols, and its finds.
- Mutation testing: the cargo-mutants triage rule, the current census, and per-crate triage in 17 appendices. The ledger index (
nifeos/nife:notes/mutation-testing/README.md) says which appendix holds each crate. - Untested error paths: how many error paths no test executes, by crate and kind, and the twenty that release memory or authority.
- Kernel coverage under QEMU:
script/coverage --kernel, the instrumented kernel test image, theminicovaudit and the first count of kernel error paths reached. - The mutation census record: per-crate mutation scores for every census, comparable. Names provisional.
- Where an unsafe obligation is written, and where it is only implied.
- nife's dependencies, held to nife's own standards: the 99 shipped crate versions against each internal code standard, and which should bind a dependency. Name provisional.
- Third-party crates short of the bar: each shipped crate and the parts of §46's bar it fails; they stay in use while upstream contributions close the gap. Name provisional.
- The unsafe code in the crates the kernel links: the listing §46 (thin primitives or whole subsystems; we write everything in between) asks for in its kernel bar. It names each
unsafesite inuuidand in the kernel's own lock,crates/test_and_set_lock, which the kernel reaches, what checks them, and the claims that rest on them. Name provisional. - What nife claims a confined component cannot do.
- A second outsider pass over the confinement claims: each claim attacked, and where each attack landed.
- A third outsider pass over the confinement claims: every claim attacked again, counted only when booted on three ISAs, and the one escape it found.
- A fourth outsider pass over the confinement claims: the informed non-Anthropic attack. A booted re-discovery of the socket capture in milestone 649 (every client of a network stack shares its socket numbers), claim 26's own test made falsifiable, and a refusal log.
- A fifth outsider pass over the confinement claims: the informed Claude attack after the socket fix. No escape on a shipped path across all 34 rows (row 25 not attacked, with a reason), a booted test that a socket holder cannot receive on its socket capability, and a refusal log.
- A sixth outsider pass over the confinement claims: the informed non-Anthropic attack on the newest shipped surface, the milestone 801 (packages over the internet) fetch path. A booted escape: the listed-location address check and the connection resolve the name twice and a rebinding DNS answers them apart, so the client reaches a private address Q1 forbids. Ruled an escape by calef and fixed: the client now dials only the addresses its check passed.
- A seventh outsider pass over the confinement claims: the blind Claude attack after the package-fetch fix, briefed with only the claims table and the source. No escape; claim 3's known retype gap re-found and extended to kernel objects; three rows booted on three ISAs and 31 read; a refusal log.
- An eighth outsider pass over the confinement claims: the blind GLM 5.3 attack at the commit that brings milestone 824 (a retype mints no right its budget lacks) to main. No escape and four near misses; 25 of the 27 bootable rows booted by its own table; a blindness breach it disclosed first, audited row by row.
- A ninth outsider pass over the confinement claims: the blind Claude pass in Claude's cloud runner, served by Opus 4.8 rather than Fable. No escape; 20 of the 27 bootable rows booted, short of the floor, so it does not count; per-row table, host facts and an empty refusal log.
- A tenth outsider pass over the confinement claims: the GLM 5.3 pass whose reviewer found the W^X alias escape on claim 11; calef ruled it on a shipped path and the fix mandatory. 2 of 29 bootable rows booted from the tests in the tree, so it does not count; the committed witness replays red on all three ISAs, with the per-row table.
- Verdict briefs for fatal risks 6 and 7: evidence and a recommended color each, for the architect to rule on.
- A security audit: the first adversarial review of the whole kernel.
- Auditing the shared pages: the second security audit, reading for double fetches.
- Auditing untrusted counterparty input: network and device input read as hostile.
- Code scanning: which languages CodeQL scans, why Rust is off, and every alert's disposition. Name provisional.
- What each system makes you trust, measured.
- The incremental path to a safer kernel, and why nife is not on it. Name provisional.
- RedLeaf, and the opposite bet about where isolation comes from.