Skip to content

Verify keygen end-to-end, retire panic overrides, promote clean Word-RAM headlines, and prove 31 ELF-direct bug-injection disproofs - #11

Open
antonkov wants to merge 1 commit into
mainfrom
copybara/export-e51353b49317
Open

antonkov wants to merge 1 commit into
mainfrom
copybara/export-e51353b49317

Conversation

@antonkov

@antonkov antonkov commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

This export updates the repository (arm64-semantics v0.76.4, Lean v4.35.0).

Zero hooks, zero patches, zero panic overrides, and hardware SHA-2. The 18 Rust panic overrides from DEV-E7 are retired: every instruction of the pinned libsignal-cli AArch64 ELF executes directly from plain loaded ELF memory (ElfImage.loadState under Program.pureMem), with panics running through musl abort to .Signaled 6. ARMv8 hardware SHA-2 is verified alongside hardware AES (sha2_backend = "soft" removed; AT_HWCAP = 0x2319fb, AT_HWCAP2 = 0, DEV-CLI10). Neither binary correctness nor computational security carries an .OutOfMemory excuse on the modelled 1 GiB machine. The process-boundary spec also constrains stderr (fd 2) and requires empty stdout on Outcome.aborted. The pinned binary is rebuilt from libsignal v0.105.4 + spqr v1.6.0 with rustc 1.98.1 and stock ld.lld, SHA-256 43c103ec7e4502ab09b419a385c8bdd779fad72b78e5c07eea50ab55bc60523e (was f35c326d…).

End-to-end libsignal-cli keygen verification. Both the symbolic and computational headlines now verify key generation (libsignal-cli keygen) starting from empty directories rather than pre-populated key directories. The .symtab trust point is limited to the 6 libcrux_ml_kem SampleNTT entry points (the 5 init/send/recv targets plus Kyber-1024 generate_key_pair, DEV-CLI22).

Clean modular abstract Word-RAM computational headlines and concrete (t, ε) corollaries. All 11 promoted computational headlines (0 sorry, std3-only axioms) are promoted in clean, modular, reduction-free abstract Word-RAM form (HeadlineClean.lean, HeadlineKeygenClean.lean, ConcreteProfiles.lean), strictly decoupling the keygen-backed Main Theorem (libsignal_cli_pq_secure_elf_binary) from L4 / record codecs in both module-import and constant closure, and exporting four keygen-backed concrete (t, ε) → (t', ε') and contrapositive refutation corollaries (libsignal_cli_pq_{concrete_secure,attack_breaks}_clause{1,2}). The export also closes Clause 2 shared-RO side channels, clamped-image DDH oracle leaks, multi-session driver edge cases (SPK reveal, OPK reuse, failed start), split-aware Word-RAM addressability budgets, and adds post-quantum HNDL proofs (including 6 concrete-ELF HNDL theorems).

Single canonical symbolic headline and 31 proved ELF-direct bug-injection disproofs. On the symbolic side, the pre-real-primitive duplicates are retired in favor of the single canonical real-primitive, keygen-backed signal_session_secure, comp_refines_cli, and real_prims_admissible headlines over a self-contained DyLean library (comparator/symbolic.json: 14 theorems). Under BugInjection/ (with standalone interactive HTML walkthroughs in docs/BugInjection/), all 31 ELF-direct 0-hook disproofs (2 historical Cheval '26 bugs, 17 synthetic spec-audit mutants, and 12 in-scope natural mutants from a 46-mutant spec-blind corpus) are proved against the canonical keygen-backed SignalSessionSecure headline with zero sorrys and standard axioms only, alongside two new CV2F* CCS '26 UKS historical bugs (patches, witnesses, and spec-half disproofs proved) and a computational disproof predicate + soundness bridge.

New AtomSep proof library and arm64-semantics upgrade (v0.56.1 → v0.76.4). The arm64-semantics engine advances from v0.56.1 to v0.76.4, replacing the previous proof library with AtomSep, a clean-slate, module-sealed separation logic in ProofLib/. AtomSep moves all program logic, Hoare judgments, and ABI/placed-object definitions out of Arm64/Trusted/, cutting the trusted engine tree by ~4,000 lines while adding support for LD4R, scalar SHL, PSTATE.DIT, AdvSIMD scalar FP, madvise fork flags, and idempotent RX mprotect. Built over an encapsulated Iris UPred core, AtomSep provides relocation-native AArch64 symbolic execution, reflected spatial framing with an automatic carving planner, linear-time static ELF carving, and position-independent VerifiedLibraries. It also ships an opt-in verified decompiler (ProofLib.VDec + arm64-decompile) that lifts AArch64 code atoms to kernel-checked SSA IR, alongside zero-TCB proof-producing solvers (tools/bv-smt, ProofLib.Solvers) relying only on Lean's standard axioms.

Comparator verification (25 theorems across symbolic.json and computational.json). Migrated to Lean 4.35 built-in lake comparator with olean-export, strict bubblewrap (bwrap) sandboxing, and Aeneas-verified con-ron --verified. Only the standard axioms are allowed (propext, Quot.sound, and Classical.choice):

  • comparator/symbolic.json (14 theorems): PASS — Compare.compareAt + Axioms.checkAxioms (18m 31s), con-ron --verified --jobs=4 (246,800 decls, 40m 27s, 27.25 GiB peak RSS, exit 0).
  • comparator/computational.json (11 theorems): PASS — Compare.compareAt + Axioms.checkAxioms (35m 30s), con-ron --verified --jobs=4 (578,958 decls, 1h 57m 52s, 48.33 GiB peak RSS, exit 0).

Lean v4.35.0, arm64-semantics v0.76.4.

GitOrigin-RevId: e51353b49317cdf9e93d4caf7bd3074a4d157490

@google-cla

google-cla Bot commented Dec 4, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

  - ReductionDsl: honest I/O cost accounting and time conjunc...
  - ReductionDsl: run-value width bound `RunFits` in the boun...
  - spec(Symbolic): pin SPQR V1 operations to real primitives...
  - Scope KyberMismatch to PreKeyRep and include bobStart in ...
  - Require empty stdout on Outcome.aborted and add pre-abort...
  - feat(bug-injection): direct-ELF 0-hook disproof harness a...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - lake: pass per-process -j thread cap via leanMemoryCapArg...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - feat(bug-injection): 0-hook direct-ELF SignalSessionSecur...
  - Symbolic: add 46 natural bug-injection mutants targeting ...
  - Symbolic/BugInjection: port #8, #18, #19, #25, #22, #39 ...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - feat(bug-injection): prove SignalSessionSecureReal dispro...
  - Retire DEV-E7: remove Rust panic overrides from cliProgEl...
  - WordRAM T1 headline closed (H1): Option A residual plumbi...
  - ck+hm: AuthCk / HmArms arms on T1 (proof-only)
  - spec(Symbolic): delete SignalSessionSecure and the pre-re...
  - spec(Symbolic): simplify SignalSessionSecureReal (follow-...
  - spec(Symbolic): restore promoted refinement preservation ...
  - refactor(Symbolic): replace DYBridge with a self-containe...
  - docs: drop internal PR/issue numbers from comments and do...
  - WordRAM T1: tighter bounds (L5 + L5b c=64)
  - [Docs/Process] Fix stale 128 KiB defaultStackSize referen...
  - [Signal HW-SHA2] Remove sha2_backend="soft" and verify AR...
  - build(engine): bump arm64-semantics to v0.61.0
  - WordRAM form-1: DSL-free abstract word-RAM headlines  (#1...
  - Promote all 4 closed abstract word-RAM headlines & update...
  - Tighten advice budgets & flat-link all 4 promoted abstrac...
  - compress(pqxdh): Wave 1A — private #capscut node thms (-1...
  - compress(libbin): Wave 1F — collapse cross-dir LibsignalB...
  - compress(libbin): Phase 2.2 pilot — reflective AArch64 bl...
  - Retire 133 unreachable dead computational proof modules (...
  - compress(symbolic): Wave 1E — collapse Swarm UA/CREF/TRRE...
  - [LibsignalBinary] Verify libsignal-cli.elf from scratch o...
  - feat(hndl): add DSL-free Tier-1 HNDL PQXDH assumptions, L...
  - compress(wordram): add Compile/Auto v2 static analyzer & ...
  - compress(wordram): compress Form1/Cli and Form1 root adap...
  - refactor(wordram): compress Form1/Pqxdh/Auth* proofs (-44...
  - refactor(wordram): compress Form1/Composition/HaltedKind*...
  - refactor(wordram): compress Session/OuterD* proofs (-70,2...
  - feat(hndl): additive standard-model PQXDH HNDL 1-key secu...
  - feat(hndl): additive hybrid DH + SPQR ML-KEM-768 CKA and ...
  - refactor(wordram): compress Session banked specs & prefix...
  - feat(hndl): additive multi-session HNDL composition & ELF...
  - refactor(wordram): compress Link & Native proofs (-35,879...
  - feat(hndl): add post-quantum HNDL conditional-disproof sp...
  - compress(wordram): collapse HaltedPrefix composition proo...
  - docs(computational): private Main.lean:15 import, honest ...
  - feat(hndl): unconditional end-to-end glue bridging #1580,...
  - refactor(wordram): compress Compile/* proof scaffolds (-4...
  - fix(pqxdh): close both clamped-image DDH oracle leaks in ...
  - refactor(arm64): parametric AllocIface & CarbonHoareBase ...
  - Reorganize bug injection into top-level BugInjection/ wit...
  - refactor(wordram): compress Composition exec, linker & co...
  - proof(arm64): unify Protocol PoolAlloc4{h,i}* deser proof...
  - proof(arm64): unify Protocol PoolAlloc3* & ratchet loop p...
  - proof(arm64): consolidate CLI SPQR pool-linking & panic p...
  - refactor(wordram): AutoV3 single-pass analyzer & CliHop1 ...
  - proof(wordram): compress PQXDH canonical & misc shard (-8...
  - proof(wordram): compress Compile/Templates shard (-36,179...
  - proof(arm64): consolidate pool potential-theory core (-9,...
  - fix(computational): unify Clause 2 KeyIndRoSoundMPrimAt w...
  - proof(arm64): unify Protocol PoolAlloc4{e,f,g}* deser pro...
  - proof(arm64): unify Protocol PoolAlloc5{,a,c,e}* proofs (...
  - proof(wordram): compress Form1/FlatLink shard (-50,210 li...
  - proof(arm64): unify Spqr PoolAlloc{1,2,5}* & Chain* proof...
  - feat(bug-injection): add CV2F* CCS '26 UKS bugs with witn...
  - Bump arm64-semantics submodule to v0.74.0 (9ad1c32ecc0f) ...
  - docs(BugInjection): promote interactive HTML bug-injectio...
  - docs(BugInjection): add standalone HTML walkthroughs for ...
  - refactor(bug-injection): rename Disproof.lean to Disproof...
  - docs(BugInjection): replace internal proof-split section ...
  - docs(bug-injection): add standalone HTML walkthroughs for...
  - fix(bug-injection): descriptor-based chunked ELF and SymT...
  (And 40 more changes)

GitOrigin-RevId: e51353b49317cdf9e93d4caf7bd3074a4d157490
@antonkov
antonkov force-pushed the copybara/export-e51353b49317 branch from 6dc442b to 4aef113 Compare December 4, 2026 21:06

This branch has not been deployed

No deployments
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