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 / evidence / SECURITY-673 / pure2 / REPORT.md

87 lines · 4320 bytes Raw Blame History Source

Strict pinned-executable launch profile for Omega #670

Date: 2026-10-23. Parent tracker: #673. Branch: fix/security673-qualified. Base: 9a2b6a5 plus the execpure change in this commit. Platform: Linux AArch64, native execution.

Threat and protected assets

A launcher admits a native executable after a caller supplies only a path and argument vector. The untrusted program may try to read or write inherited descriptors, open files outside its pinned image, create sockets, fork, execute a different image, allocate unbounded memory, or run without a time limit. The protected assets are the caller's descriptors and filesystem view, other processes, and host availability.

This is a strict, fixed profile for one pinned executable. It is not a general sandbox for arbitrary workloads and it does not add a second authority service.

Enforcing code

The compiler adds one host word, execpure (code 135), lowered by hpack in seed/omc/omc.om. After the existing packet validation and descriptor closure, hpure performs these operations at the kernel boundary, in order:

  1. openat(AT_FDCWD, path, O_RDONLY|O_CLOEXEC|O_PATH) pins the image as descriptor 3.
  2. landlock_create_ruleset handles execute, read, write, directory, remove, make and refer rights.
  3. landlock_add_rule allows only EXECUTE|READ_FILE beneath the pinned descriptor.
  4. prctl(PR_SET_NO_NEW_PRIVS, 1) then landlock_restrict_self.
  5. prlimit64 sets CPU 1 s (hard 2 s), file size 1 MiB, stack 8 MiB, core 0, processes 0, descriptors 4 and address space 128 MiB.
  6. seccomp(SECCOMP_SET_MODE_FILTER) installs a 27-instruction filter allowing only: read on descriptor 0, write on descriptors 1 and 2, execveat on descriptor 3 with AT_EMPTY_PATH, and exit/exit_group.
  7. execveat(3, "", argv, empty env, AT_EMPTY_PATH) replaces the process.

Every failure before execveat returns the kernel's negative error; there is no fallback to a less-restricted launch. The caller cannot select a weaker profile through this word.

Tested properties

pure-child.om is the untrusted consumer. It asserts, in order:

AttemptExpected
read public stdinworks
read descriptor 3 (the pinned image)EPERM
write descriptor 0EPERM
read descriptor 1EPERM
open private dataEPERM
open judge data for write/truncateEPERM
create a socketEPERM
forkEPERM
execute a different imagedenied
write public stdoutworks

The child exits 0 only if every assertion matches. pure-raw.om emits four fixed native images that attempt execveat on an unassigned inode, raw openat, raw getpid and a 1 GiB mmap. Each expects the exact kernel refusal and exits 0.

Results

CaseObserved
Compiler rebuild om4 -> stage1 -> stage2stage1 == stage2
pure-launch with pure-childexit 0; stdout public-output; protected files unchanged
raw-0 absolute execveatexit 0; kernel EACCES
raw-1 raw openatexit 0; kernel EPERM
raw-2 raw getpidexit 0; kernel EPERM
raw-3 1 GiB mmapexit 0; kernel EPERM
Gate branch/packet/sourceexit 0
Native host suiteexit 0

Raw traces in launch.strace and raw-0..3.strace show the Landlock ruleset, rlimits, seccomp filter, pinned execveat, and each refusal. protected-before.sha256 and protected-after.sha256 match.

Residual limits