Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/omega-mv/issues/1a745dcfeff8cbab
# 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
Sign in to star 1 stars 0 watching
About Files History Releases Proposed changes Issues For developers
# [OM-SEC P1] Qualify hostile parsers and resource exhaustion at Om trust boundaries
Open · #671 · open 2026-10-23 22:21 UTC
Imported from GitHub aien-dev/omega-mv#671, by drakestapleton
drakestapleton wrote on 2026-10-23 22:21 UTC
## Objective
Turn external bytes into bounded, unambiguous typed values before they influence authority or execution. Extend existing #621/#622 codecs/importers, #648 interfaces, #624 conformance and #639 receipt tests. This owns a cross-boundary adversarial campaign, not a second parser framework.
## Acceptance
- Inventory actual active .om ingress paths: source/imports, manifests, receipts, RPC/tool arguments, model/artifact metadata, trace bundles and device command descriptions. Map each path to one implementation owner and maximum resource profile.
- Freeze supported versions, lengths, nesting depth, integer ranges, encodings, unknown-field handling, duplicate-field handling and complete-input consumption. Unsupported inputs refuse explicitly.
- Ensure authentication and interpretation bind the same bytes or the same rigorously specified canonical form. Reject ambiguous encodings, duplicate authority fields, trailing payloads and parser differentials.
- Resolve imported files/objects under the intended authority; reject traversal and stale-object substitutions through actual platform APIs, not only lexical string filters.
- Run bounded grammar-aware and mutation fuzzing through actual compiled consumers. Test truncation at each boundary, oversized counts, arithmetic overflow, pathological nesting, malformed text, corrupted signatures and resource exhaustion.
- Measure parser/compiler wall time and peak resources on adversarial families; enforce budgets outside potentially compromised workloads. No universal complexity guarantee inferred from a finite corpus.
- Differential oracles are independent of the implementation under test. Preserve a minimized regression for each actual failure.
- Meaningful acceptance-bypass, canonicalization, length and budget mutants fail named checks. Missing binaries/build failures/timeouts are INVALID unless timeout is the explicitly expected budget-enforcement outcome.
- Feed coverage and raw results into #624; evidence uses synthetic data, never secrets, private traces or sealed evaluation tasks.
Historical rationale: economical mechanisms and complete mediation (Saltzer/Schroeder); input-language design research at https://langsec.org/ .
## Delivery and qualification
Authorized security follow-up, 2026-10-23. Reconcile current source, branches, issue comments, AGENTS.md, plan authority and worktree ownership before edits. One writer per shared compiler/runtime file; preserve existing Renda/desk review and release ownership. All new first-party implementation, runners and tests use seeded .om. Missing facilities go to the existing compiler owner; no second compiler, runtime, authority or store. Qualify replacements and consumers before removing superseded active first-party code/dependencies; preserve Git history and immutable evidence. Record exact source/seed/compiler/binary/config/fixture identities, raw commands and exits, independent review and explicit PASS/FAIL/INVALID/NOT_RUN. Emulation is not hardware qualification. A hash/signature authenticates identity, not correctness. No automatic deployment, live GPU interruption, driver changes, private-data upload or issue closure from a source-only PR.
## Quantity, aggregate budget and observation consumers
Consume #756 for parser lengths/counts/serialized quantities and #757 for pre-authentication parser/handshake/queue reservations. Existing local buffer limits do not establish a global client/storage bound. Integrate the real omnet#3 consumer without forking codecs.
Extend current source/execprog/renames/path/argread evidence with overflow-before-bounds, multiply/narrowing, exact/trailing input, aggregate queued bytes and cancellation/short-I/O cases. Keep authentication bound to exactly the interpreted canonical bytes. Secret-consuming paths additionally obey #758/#759 error/admission/reclamation disclosure rules; public-input parsers need no blanket constant-time claim. Separate valid denial from service-wide crash or unbounded cleanup.
did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:09 UTC
Recovered GitHub comment by @aien-spark on 2026-10-24T01:07:40Z. Original comment `6377950197`
Additional active `.om` ingress qualified on `fix/security673-qualified`:
- `ddd7417`: `renames` seven-case campaign (valid pair renames; one/three records, empty paths, trailing byte, embedded NUL all trap 3 before the kernel rename). Evidence `evidence/SECURITY-673/renames1`.
- `833078c`: native path and `argread` boundaries (valid open; embedded-zero and 4096-byte paths trap 3; empty path returns the kernel errno; short `argread` returns -105 without changing the slice; invalid index traps 3; exact capacity returns the length). Evidence `evidence/SECURITY-673/paths1`.
The gate now covers compiler source, `execprog`, `renames`, native paths and `argread`. Remaining ingress is the legacy/migration set: manifests, receipts, RPC/tool arguments, model/artifact metadata, trace bundles and device command descriptions. Those have no seeded `.om` implementation yet, so they remain BLOCKED/NOT_RUN rather than PASS. #671 stays open until they are replaced and qualified.
did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:14 UTC
Recovered GitHub comment. Original comment `6377604616`
Packed-list ingress qualification added on `fix/security673-qualified` at `9a2b6a5`.
- Nine cases run through a compiled consumer calling `execprog`: accepted single record and 64 records execute `/bin/true`; count 0, count 65, truncated record, trailing byte, empty first record, embedded NUL, and an over-declared record each trap 3 (exit 103) before any kernel exec.
- The parser path is the existing `hpack` lowering in `seed/omc/omc.om`; no production parser change and no copied implementation.
- `evidence/SECURITY-673/ingress-inventory.md` maps the active seeded `.om` paths (source text, packed lists, argv, native paths) and marks the legacy manifest/receipt/RPC/model/trace/device parsers as migration dependencies, not PASS.
- Evidence: `evidence/SECURITY-673/packet1`; gate `build/gate669 0` and `build/gate669 3` both exit 0; host gate exits 0.
Residual: `renames`, `argread`, native path words, canonicalization/authentication, broad fuzzing and kernel budgets remain NOT_RUN. #671 stays open.
Sign in to comment