omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / qualification / om2 / evidence / phaseB / leak-sha256-om1-notes.txt
| 1 | OM-1 SHA static leakage evidence, revised under E11/E12/E13 (supersedes both earlier false-PASS rules). |
| 2 | Contract §8 evidence (a); SOURCE evidence, scan executed on AArch64 host. Dynamic traces: NOT_RUN. |
| 3 | Compiler seed/out/omc sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61. |
| 4 | Source om/sha256/sha256.om (main acb3f15) sha256 7f034814303a8a40b4bc56383ddd55ab2ae8460291f80793340bc3b0ac024e21. |
| 5 | Artifact leak/fixtures/sha256-om1.bin sha256 3b0ee1ffd7247514b1fd685b5cd48e83ccda4d1ded40e18a4237e81eb44bc97f. |
| 6 | Scanner identity: see leak-s1-rot.txt (same revised scanner used for both scans). |
| 7 | |
| 8 | Entry: omsha c b n op w b8 (sha256.om:11,1509). c,b,w,b8 public pointers; n/op public length/opcode. |
| 9 | No xN DATA arguments. Explicit declaration pub:0:32:8 identifies the context count bytes [32,40), |
| 10 | contract layout at 32, E5; E11 permits an explicit public-memory declaration. Its presence is shown |
| 11 | as PUBLIC-DECL 0+32:8 in the full report. |
| 12 | |
| 13 | Commands (worktree root): |
| 14 | build/om2-qual/leakscan-e13 < seed/qualification/om2/leak/fixtures/sha256-om1.bin > seed/qualification/om2/evidence/phaseB/leak-sha256-om1.txt |
| 15 | build/om2-qual/leakscan-e13 pub:0:32:8 < seed/qualification/om2/leak/fixtures/sha256-om1.bin > seed/qualification/om2/evidence/phaseB/leak-sha256-om1-pub.txt |
| 16 | Both exit 2, same classification counts: |
| 17 | SUMMARY branches=83 len=57 trap-check=10 data-branch=16 branch-unreached=0 mem=387 const=16 |
| 18 | public-index=363 data-index=8 mem-unreached=0 unknown=0 unhandled=0 |
| 19 | VERDICT TRACE-EQUIV-STATIC NOT_RUN |
| 20 | Objdump 2.42 agrees on all 83 conditional branches/targets and all 387 non-SP memory accesses (773 |
| 21 | SP-only spills omitted from listings). Full cross-check: leak-sha256-om1-xcheck.txt. |
| 22 | |
| 23 | Ten DATA checks discharged by E12 AND known-bits: |
| 24 | @40: putle uchar(and x,255), @2446 @2456 @2466 @2476 @2486 @2496 @2506 @2516: rounds uint(and x, |
| 25 | 0xffffffff), @3209: final uchar(and shr bits sh,255). They use LSR then CBNZ, provably zero after |
| 26 | AND with a constant fitting the conversion target. These are the ONLY data never-taken-trap-checks. |
| 27 | |
| 28 | Sixteen branches remain MANUAL (data-branch summary field), including nine unproved trap checks: |
| 29 | @80: loadh uint(getle(...)) conversion, no AND proof. |
| 30 | @136 @143 @150 @157: schedb bounds checks. |
| 31 | @2540 @2543: tobuf bounds checks; @3107 zbuf bounds check; @3139 final bounds check. |
| 32 | @2528: tobuf loop condition; @2616 @2620 @2782 @2809: absorb condition/loops; |
| 33 | @3099: zbuf loop condition; @3160: final padding condition. |
| 34 | Eight DATA addresses remain: @137 @144 @151 @158 (schedb), @2541 @2544 (tobuf), @3108 (zbuf), |
| 35 | @3140 (final). E13 conservatively revokes pub:0:32:8 at 68 potentially poisoning store offsets (each |
| 36 | listed PUBLIC-MEM-REVOKED). No declaration is applied to any SHA load. Independently, getle shares |
| 37 | calls for many fields and loops over p+i, losing exact constants. Both limitations are conservative. |
| 38 | |
| 39 | Listed manual classification of the original 15 items (7 branches + 8 addresses), not a static PASS: |
| 40 | schedb @137 @144 @151 @158: input offset from absorb's off; |
| 41 | tobuf @2528 @2541 @2544: n / bo+i / 40+bi+i; |
| 42 | absorb @2616 @2620 @2782 @2809: bi, lf and off conditions; |
| 43 | zbuf @3099 @3108: start bi+1; final @3140 @3160: bi. |
| 44 | All depend on count loaded by `cnt = getle c 32 8` (sha256.om:890,953), public length state under |
| 45 | §8 equal lengths/call sequence and the explicit E11 declaration. A prior throwaway counterfactual |
| 46 | replaced both count loads by a constant and removed all 15 findings; that is root-cause evidence, |
| 47 | not execution evidence for the unchanged artifact. Nine additional E12 trap checks remain unproved |
| 48 | as listed above, even after the manual count classification; no overall PASS is claimed. |
| 49 | |
| 50 | Required E12 false-PASS control and native reachability: leak/fixtures/reachable-trap.om scans data |
| 51 | MANUAL trap=5 / NOT_RUN; program twins execute with 0 (exit0) and 2^32 (trap5, exit105). See gate receipts |
| 52 | and leak-reachability.txt. The earlier assumption "branch to trap implies never taken" is retracted. |
| 53 | |
| 54 | E13 retracts any claim that a declaration can declassify a secret overwritten field. The required |
| 55 | pub-secret counterexample revokes the declaration at @3; its reloaded-byte branch is MANUAL/NOT_RUN. |
| 56 | Native message-byte twins actually exit0 and exit1. Unknown-address stores revoke too; proven |
| 57 | same-base disjoint stores do not. The no-revocation mutant is killed. See leak-public-store.txt and |
| 58 | the updated gate receipts; whole-artifact revocation iterates the entire analysis to stability. |