Security and trust model #
This page explains what specborn's proofs and tests establish, what they do not, and what you are trusting when you run it. The full, itemised record is TRUST.md (what is trusted, with reasons) and PROOF_LEDGER.md (every theorem and every open gap).
What the proofs cover #
A refinement theorem says: for the inputs its hypotheses describe, the shipped function (in Specborn/) computes what the frozen reference (in Spec/) computes. Such theorems exist, among others, for the cryptographic primitives, RLP and SSZ, the EVM and block execution of several forks, the consensus state transition along chains of blocks, fork choice and its pruning, the storage engine's crash safety, parts of the networking protocols, the node's import pipeline, validator keystore decryption and the slashing-protection database (through which every attestation the validator client signs passes), the validator duties' committee assignments, signing roots and doppelganger state, the transaction pool's admission checks and the beacon API's answers. Each is kernel-checked, and scripts/audit-axioms.sh shows that every theorem rests only on Lean's three standard axioms (propext, Classical.choice, Quot.sound): the project declares no axioms of its own, and sorry, native_decide, bv_decide and their relatives are banned (scripts/scan-banned.sh). The axiom audit is a step of every gate and passes only if no theorem rests on another axiom; it passed in the scoped gates of the 2026-11-17 merges (STATUS.md).
Read the exact statements before relying on one: many hold under hypotheses (bounds on sizes or gas, well-formed inputs), and the ledger says which parts are still OPEN. For example, some halves of optimistic sync and parts of the node's composition are TESTED, not proved.
What the proofs do not cover #
- The toolchain and the machine. Proofs are about Lean definitions. The Lean compiler, the C code it generates, the C compiler, the Lean runtime (including its reference counting and arbitrary-precision arithmetic), libc, the Linux kernel and the hardware are TRUSTED. Nothing here is a proof about the machine code that runs. One runtime behaviour shaped the code: in the pinned Lean runtime a write to a reference shared between threads can be lost against a concurrent read, which once made the node's event loop hang; shipped code avoids such writes, and that the runtime primitives it uses instead behave as read from the runtime source is TRUSTED (
TRUST.md,docs/pieces/nodehang.md). - The fidelity of
Spec/to the upstream specifications.Spec/is a translation of Python and Markdown, reviewed independently and tested against the official vectors; that it means the same as the upstream text is TRUSTED, not proved. For BLS12-381 and KZG, where an official Lean specification exists (ethereum/cryptography-specs), the translation is proved equal to it where that specification is total (PLAN.md, ADR-6). - Foreign functions. Fifteen functions are implemented in C rather than Lean: fourteen wrappers for sockets,
poll, the monotonic clock andgetrandominnative/netio.c, and one positional file read for the storage engine. Each is listed inTRUST.mdwith its exact semantics; the build compiles the C file with all warnings as errors. Replacing the C file with the Lean runtime's own interfaces was decided (D-27) and then deferred on 2026-11-15: the pinned Lean has no positional file read and no socket close/reset, so the C file stays until it does (then the trust would move to the Lean runtime, which is trusted already). - Programs it calls. The storage engine (and the slashing-protection export) runs
/usr/bin/syncfor durability (Data directory); keystore import runs/usr/bin/statto warn about readable key files. - Secrets in memory. Validator keys and passwords decrypted by
validator keys importorrun --validator-keysare not wiped from memory (Lean has no way to), and the arithmetic on secret keys is not constant-time (docs/pieces/vkeys.md§16). - Inputs you supply. Your network files, your checkpoint-sync anchor and your data directory are trusted input. Peer input is not: it is untrusted and bounded (Networking).
- Recorded implementation limits. For example, the shipped executor stops without a verdict on Prague payloads with a gas limit above about 2^34, where the specification would give one; it never accepts a block the specification rejects (decision D-19,
TRUST.md). - Performance and liveness. Proofs say what is computed, not how fast. A correct node that is too slow misses the head; that is measured (TESTED), not proved.
Tests #
Every piece runs the official vectors that apply to it (execution-spec-tests, consensus-spec-tests, the execution-apis conformance tests and others), with counts recorded in STATUS.md and in docs/pieces/. Interop is tested on Kurtosis devnets against the latest releases of geth, Nethermind, reth, Besu, Lighthouse, Teku, Prysm and Lodestar (testnet/kurtosis/clients.lock). A passing test shows behaviour on the inputs tried.
The EVM has been compared with go-ethereum operation by operation on every official state test through specborn-evm, the tool differential fuzzers use.
Not done yet: an external security review (milestone M12), a long-running differential fuzzing campaign, a long soak on a public network, and power-cut experiments on the storage engine.
What specborn will never do #
These are rules of the project (AGENTS.md), not just current behaviour: no telemetry or phone-home; no hard-coded blocklists or allowlists of addresses, peers or transactions; no kill switch; no privileged or default external service — every optional external service is opt-in and the node works without it; the RPC binds to localhost by default; no proprietary code. Performance work may not skip a check the specification requires.
Running it safely today #
- Run it as an unprivileged user; it needs no root rights, listens on no TCP port reachable from other machines (JSON-RPC and the beacon API bind to
127.0.0.1only; the discovery UDP sockets are bound on all interfaces and answer discovery messages) and writes only to its data directory. - Every local program can use the JSON-RPC (and, with
--beacon-api, the beacon API): there is no authentication. On a shared machine, use--no-rpcunless you need it. - Do not use real validator keys with it: its validator client has run only on local devnets, and its key handling has recorded limits (secrets are not wiped from memory, the key arithmetic is not constant-time; Validators).
- Do not rely on its view of any public network: on Hoodi and Sepolia it follows the consensus head optimistically, without executing payloads.
Reporting a vulnerability #
There is no published security contact yet, and the repository is not public. If you can read this guide's source, you received access from the maintainers: report a suspected vulnerability to them privately, not in any public channel, with the commit you used and the steps to reproduce. A consensus disagreement with the specification (a block or transaction that specborn judges differently from the specification) counts as a vulnerability. A private reporting channel will be published here before the repository is made public (planned): adding a SECURITY.md file with it is a step of the open-source gate in PLAN.md (decision D-26).