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 / om / tls / AUDIT_SCOPE.md
| 1 | # Audit scope: om/tls and seed/net |
| 2 | |
| 3 | For an outside, independent security audit of the Omega TLS 1.3 client and the HTTP/1.1 unit it |
| 4 | transports. Revision: branch `audit/tls-outside-review` on aien-dev/omega-mv (base main `0b77e6ea` after the merge |
| 5 | of `705c0f01` work; compiler `seed/out/omc` sha256 |
| 6 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`, also run on `189ada82`). |
| 7 | |
| 8 | ## In scope |
| 9 | |
| 10 | | path | what | lines of .om | |
| 11 | |---|---|---| |
| 12 | | `om/tls/sha2.om`, `hkdf.om` | SHA-256/384, HMAC, HKDF | see `wc -l om/tls/*.om` | |
| 13 | | `om/tls/x25519.om` | X25519 (RFC 7748) | | |
| 14 | | `om/tls/chacha.om`, `aesgcm.om` | the two AEADs | | |
| 15 | | `om/tls/ec.om`, `rsa.om`, `x509.om` | P-256/P-384 ECDSA verify, RSA PKCS#1 v1.5 and PSS verify, X.509 chain | | |
| 16 | | `om/tls/tls.om` | handshake, records, KeyUpdate, deadlines, wiping, DNS A lookup, DIT probe | | |
| 17 | | `seed/net/http.om`, `https.om`, `notls.om` | HTTP/1.1 client and server, HTTPS transport, plain stubs | | |
| 18 | | `seed/json/*.om` only where `seed/net` composes it | | | |
| 19 | | `om/tls/test/**`, `seed/net/tests/**` | suites, fake server, residue scan, timing driver, mutants | | |
| 20 | | `.github/workflows/om-tls-arm64.yml` | hosted arm64 rerun | | |
| 21 | |
| 22 | Every implementation byte is `.om` compiled by the pinned `omc`. Python (`fakesrv.py`, `check.py`, |
| 23 | `residue.py`, `gen_crafted.py`, `parity.py`) and `openssl` are referees and fixtures only. |
| 24 | |
| 25 | ## Out of scope |
| 26 | |
| 27 | - The compiler (`seed/omc/omc.om`, `seed/out/omc`) and its code generation; register and spill |
| 28 | hygiene is a stated limit (`THREAT_MODEL.md`). |
| 29 | - Server-side TLS (there is none), client certificates, session resumption, 0-RTT, early data, |
| 30 | ALPN beyond `http/1.1`, HTTP/2. |
| 31 | - Revocation (OCSP, CRL): absent by policy. |
| 32 | - The Linux kernel, `getrandom`, the socket layer, the Spark hardware. |
| 33 | - The rest of omega-mv. |
| 34 | |
| 35 | ## Questions the auditor is asked to answer |
| 36 | |
| 37 | 1. Does any branch, loop bound or memory index in the in-scope units depend on secret data? |
| 38 | 2. Can any input from the network make the client trap (exit >= 100), loop without bound, or |
| 39 | exceed `TLCSZ`/`TLSTSZ`? |
| 40 | 3. Is the key schedule, the nonce construction and the transcript hash exactly RFC 8446? |
| 41 | 4. Is chain verification (`x509.om`) sound against the Wycheproof-free X.509 corners: name |
| 42 | constraints, EKU, key usage, path length, algorithm confusion, RSA key policy? |
| 43 | 5. Are the key-lifetime, deadline and wiping paths reachable on every error path? |
| 44 | 6. Does `seed/net/https.om` ever hand plaintext to a TLS socket or TLS records to a plain socket? |
| 45 | |
| 46 | ## How to reproduce |
| 47 | |
| 48 | ``` |
| 49 | git clone https://github.com/aien-dev/omega-mv.git && cd omega-mv && git checkout audit/tls-outside-review |
| 50 | sha256sum seed/out/omc # must print 2c824805...029f |
| 51 | sh om/tls/test/tls/run.sh "$PWD/seed/out/omc" # add TLS_NET=1 for the live rows |
| 52 | python3 seed/net/tests/check.py --keep /tmp/netcheck # add TLS_NET=1 for the live HTTPS GETs |
| 53 | python3 om/tls/test/tls/residue.py "$PWD/build/tls/tls/client/bin" "$PWD/build/tls/interop" |
| 54 | ``` |
| 55 | |
| 56 | Prior inside reviews and their raw logs: `evidence/om-tls-review-2026-10-26/` (SHA-256 sums inside). |
| 57 | |
| 58 | ## Reporting |
| 59 | |
| 60 | Findings go to aien-dev/omega-mv issues with the label `security`; embargoed findings to |
| 61 | drake@aienos.com. Each finding should name the unit, the line, the input that triggers it and, where |
| 62 | possible, a `fakesrv.py` mode or a vector file so the fix can carry a failing-before test. |