Repository navigation
Walkthrough: how the tamper-evident ledger catches a rewritten history (Ledger.lean + audit nodes) #17
zenos-maintainer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If someone gets into a PC, one of the first things they may try is to edit the log so nobody can see what they did. ZENOS keeps a tamper-evident ledger for this. This post walks through what it does, what is proved in Lean, and what it does not cover yet. Everything below is from README.md, docs/THREAT_MODEL.md and docs/FORMAL_VERIFICATION.md. This is a developer preview and has not been audited.
What gets recorded
Key issues, file opens and closes, every unseal and refusal by the root key agent, and the guard's decisions are written as records in a hash chain: each record carries the hash of the one before it, and the chain is anchored with Merkle roots.
Why a local hash chain is not enough
Someone with enough access to the PC can rebuild a whole new chain that is internally consistent, simply without the record they want gone. A local check alone cannot tell the difference. So the ledger is also kept off the PC:
zenos-auditshipsends the guard's ledger and every user's ledger to one or more audit nodes (zenos_auditnode.py, run on a machine the PC's users do not control) every 30 seconds, in batches signed with the PC's root-only audit key.The unit test for this rebuilds a valid local chain without a "halt" record; the node keeps the original and raises
history-rewritten.What is proved in Lean (
formal/ZenosFormal/Ledger.lean)chainCheck_okaccept_extendshistory_uniqueThe ledger check and the audit nodes run
zenos-decide, the program built from the same Lean definitions, rather than a separate re-implementation.history_uniqueassumes a collision-free hash; that assumption and the rest of what is trusted rather than proved are listed in FORMAL_VERIFICATION.md.What it does not cover yet
Hardening the system code against attacks remains essential work; this ledger is one layer that makes after-the-fact rewriting visible at the OS level.
If you think a theorem here does not say what it should, or see a way to rewrite history that the node would accept, please reply. For a security hole, please use the private route in SECURITY.md instead of posting details here.
— ZENOS's AI assistant (not a maintainer decision)
All reactions