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 / evidence / SECURITY-673 / pure3 / REPORT.md
| 1 | # Strict-profile bypass and fail-closed controls for Omega #670 |
| 2 | |
| 3 | Date: 2026-10-23. Parent tracker: #673. Branch: `fix/security673-qualified`. |
| 4 | Base: `8dfe778` plus the control sources in this commit. Platform: Linux AArch64, native execution. |
| 5 | |
| 6 | ## Purpose |
| 7 | |
| 8 | The strict `execpure` profile is only meaningful if removing an enforcement step produces the |
| 9 | expected bypass, and if an unavailable kernel operation refuses the launch. This campaign compiles |
| 10 | controlled mutants of the actual compiler, rebuilds the launcher from each, and checks the exact |
| 11 | exit or signal. |
| 12 | |
| 13 | All mutants are qualification artifacts. None is a production compiler. |
| 14 | |
| 15 | ## Controlled mutations |
| 16 | |
| 17 | `branch-mutate.om` performs exact single-substring transforms on `seed/omc/omc.om`: |
| 18 | |
| 19 | | Mode | Transform | Removed control | |
| 20 | | --- | --- | --- | |
| 21 | | `2` (ASCII 50) | `hsys 436` -> `hsys 999` | close_range unavailable, must fail closed | |
| 22 | | `4` (ASCII 52) | `hsys 277` -> `hsys 172` | seccomp filter installation replaced with getpid | |
| 23 | | `5` (ASCII 53) | `hsys 446` -> `hsys 172` | landlock_restrict_self replaced with getpid | |
| 24 | |
| 25 | The transform is exact once; the mutator refuses if the needle is absent or appears more than once. |
| 26 | The mutated source is compiled by the same rebuilt compiler, then `pure-launch.om` is rebuilt with |
| 27 | the mutant. The resulting compilers are byte-identical to the earlier candidate artifacts for modes |
| 28 | 4 and 5. |
| 29 | |
| 30 | ## Results |
| 31 | |
| 32 | | Control | Expected | Observed | |
| 33 | | --- | --- | --- | |
| 34 | | fixed-other: normal launcher, target exec from raw fixture | Landlock denies with EACCES; fixture exits 0 | 0 | |
| 35 | | bypass-filter: seccomp mutant, raw getpid fixture | getpid succeeds; fixture exits 71 | 71 | |
| 36 | | bypass-inode: Landlock-restrict mutant, target-exec fixture | target executes; fixture exits 77 | 77 | |
| 37 | | cpu: normal launcher, deliberate CPU exhaustion | SIGXCPU from the 1 s limit; exit 152 | 152 | |
| 38 | | output: normal launcher, 1,048,577-byte write to a regular file | write returns 1,048,576; file size 1,048,576; exit 0 | 0, 1,048,576 bytes | |
| 39 | | unavailable close_range: mode 2 mutant | ENOSYS (38), `PURE_LAUNCH_REFUSED`, no child | 38 | |
| 40 | |
| 41 | `fixed-other.strace` shows `execveat(..., pure-other, ...) = -1 EACCES`. |
| 42 | `bypass-filter.strace` shows `getpid()` succeeding because no filter was installed. |
| 43 | `bypass-inode.strace` shows the target `execveat` succeeding because the Landlock restriction was |
| 44 | replaced. |
| 45 | `output.strace` shows `write(..., 1048577) = 1048576` followed by `exit(0)`. |
| 46 | |
| 47 | The author evidence in `../pure1` also records unavailable landlock_create_ruleset = 38, |
| 48 | seccomp = 13 and prlimit64 = 1. Those three rows were not independently replayed in this pass; they |
| 49 | remain author evidence, not reviewer-confirmed results. |
| 50 | |
| 51 | ## Residual limits |
| 52 | |
| 53 | - Removing a control proves the control is reachable and meaningful for these fixtures; it does not |
| 54 | prove there is no other bypass or kernel defect. |
| 55 | - The profile remains fixed. Grant identity, generation, revocation and durable budgets are still |
| 56 | open under #670/#649/#651. |
| 57 | - The mutants and fixtures share the seed compiler lineage. No diverse compilation or formal proof |
| 58 | is claimed. |
| 59 | - Only synthetic files and native fixtures were used. This does not close #670 or #673. |