Skip to content
Repos

TOSV

Markdown 3.0 KB74 lines Opens in site

Directory Raw Download

Future platform: lock, TPM, NTP, VFS

  • Status: PLAN for v2, needs ADRs, v1 stopgaps hold
  • Spec: A-02, A-03, D-04 follow-ups
  • Sources: uploads/paste.txt vision, elite report sections 4, 6, 7, legacy hw DB field

What it is

The platform-hardening bundle: mlock/VirtualLock plus MADV_DONTDUMP plus guard pages plus RAII locked buffers with sodium_memzero plus 5s integrity canaries; encrypted-or-disabled swap; idle-timeout key wipe; NTP skew guard that blocks access on clock tamper; TPM/CPU-id hardware binding (legacy DB already reserves the hw field); network kill-switch (no outbound, inbound whitelist); FUSE VFS with CoW 4 KiB blocks, B+ tree index, HMAC journal, 30s path leases, and read-only snapshots.

How TOSV will do it

Memory first (locked buffers are drop-in), then swap and idle wipe as config, then NTP guard as a fetch pre-check, then TPM bind as an opt-in grant flag, then the VFS as the big v2 milestone with the journal HMAC chain closing the audit-tamper hole. Each lands with its own ADR and Gate proof; none is bundled silently.

What it protects against

Memory scrapers, hibernation images, clock-tamper window escapes, vault-copy portability (a copied vault without its TPM is bricks), data exfiltration over outbound sockets, and filesystem-level corruption or lock races.

Attack realism

Mixed honestly: memory locks and swap policy fight real VPS scrapers; NTP guards fight real VM clock games; TPM binding fights the real "stolen disk image" trade; the kill-switch fights real backdoor phones-home. FUSE plus snapshots serve operability as much as security. Debugger and header-tamper detection (elite 7) plus signed remote wipe cover targeted attack at higher cost.

Pros

Each item is a proven primitive with prior art. Staged landing keeps v1 shippable. The hw field reservation shows the schema already leans this way.

Cons and how the vault resolves them

  • mlock limits and privilege needs. Resolved by attempt-and-log degrade, same rule as v1 hardening: never fail closed on a lock.
  • TPM binding bricks legitimate migration. Resolved by opt-in per vault plus printed recovery ceremony, mirroring the Shamir story in future crypto.
  • NTP guard can self-DoS on network blips. Resolved by fail-open with alert after a grace window, documented, never silent.
  • FUSE is a large new surface. Resolved by keeping flat-blob mode forever as the simple path; FUSE is additive, gated by ADR.
  • Kill-switch complicates restic backups. Resolved by explicit backup allowlist entries in the switch config, reviewed per vault.

v1 stopgap that holds until then

Short key lifetimes plus streaming plus loopback bind plus audit: the cheap half of every item above, already shipped.

See also

53.6ms