interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / om / tls / AUDIT_SCOPE.md

62 lines · 3394 bytes Raw Blame History Rendered
1# Audit scope: om/tls and seed/net
2
3For an outside, independent security audit of the Omega TLS 1.3 client and the HTTP/1.1 unit it
4transports. Revision: branch `audit/tls-outside-review` on aien-dev/omega-mv (base main `0b77e6ea` after the merge
5of `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
22Every 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
371. Does any branch, loop bound or memory index in the in-scope units depend on secret data?
382. Can any input from the network make the client trap (exit >= 100), loop without bound, or
39 exceed `TLCSZ`/`TLSTSZ`?
403. Is the key schedule, the nonce construction and the transcript hash exactly RFC 8446?
414. 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?
435. Are the key-lifetime, deadline and wiping paths reachable on every error path?
446. 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```
49git clone https://github.com/aien-dev/omega-mv.git && cd omega-mv && git checkout audit/tls-outside-review
50sha256sum seed/out/omc # must print 2c824805...029f
51sh om/tls/test/tls/run.sh "$PWD/seed/out/omc" # add TLS_NET=1 for the live rows
52python3 seed/net/tests/check.py --keep /tmp/netcheck # add TLS_NET=1 for the live HTTPS GETs
53python3 om/tls/test/tls/residue.py "$PWD/build/tls/tls/client/bin" "$PWD/build/tls/interop"
54```
55
56Prior inside reviews and their raw logs: `evidence/om-tls-review-2026-10-26/` (SHA-256 sums inside).
57
58## Reporting
59
60Findings go to aien-dev/omega-mv issues with the label `security`; embargoed findings to
61drake@aienos.com. Each finding should name the unit, the line, the input that triggers it and, where
62possible, a `fakesrv.py` mode or a vector file so the fix can carry a failing-before test.