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

[CRYPTO-REUSE] Add cross-repository adversarial gates and independently checked receipts

Open · #639 · open 2026-10-23 10:50 UTC

Imported from GitHub aien-dev/omega-mv#639, by drakestapleton

drakestapleton wrote on 2026-10-23 10:50 UTC

Problem and goal

Create the bounded experiment OMEGA-CRYPTO-REUSE-1: demonstrate keystream-reuse failures on synthetic inputs, then verify that the actual AIEN protocol and storage boundaries retain their protections across misuse and recovery. Reuse repository-local test runners and existing receipt/checker machinery. This is a small fixture/receipt contract plus adapters, not a new crypto library, daemon, or security subsystem.

Source review on 2026-10-23: Omega main a8ffd2b912c84197d08f963b05f9c7d8b30a3f8a; Open Humanity b368ea8f7dcfbc4e7f21d4a9911e4c1c24409440; Aienux 18e276590424593647cd7c39c6d16c2f9f8d6027; Sovereign Core 754c07b118f41ad899607b60329bd851b1ccb13e. These are inspection pins, not newly executed test receipts. Reconcile current branches and owners before implementation.

Four gates

  1. Historical control: use equal-length synthetic plaintexts to demonstrate (P1 XOR K) XOR (P2 XOR K) = P1 XOR P2. Include independent expected bytes and a deliberately broken detector.
  2. Modern primitive controls: demonstrate payload-XOR disclosure for repeated key/nonce in ChaCha20-Poly1305 and AES-GCM, excluding tags from the XOR comparison. Primitive APIs may accept nonce reuse; the test must not mistake that for safety or expect automatic rejection. Test AES-GCM-SIV separately against published vectors and repeated-input cases; absence of simple XOR leakage in samples is not a security proof. Test authentication failures independently from nonce reuse.
  3. Real boundary adapters: invoke existing Open Humanity transport/helper tests, Aienux sealed-store recovery tests, and Sovereign Core KV tests. Keep those tests in their owning repositories. Distinguish nonce safety, integrity, replay resistance, freshness and entropy assumptions.
  4. Mutation and provenance: each protection has a named negative mutant, observed failing assertion/refusal and control run. Build errors, crashes, timeouts, missing executables and skipped tests are INVALID/NOT_RUN, never a killed-mutant PASS.

Implementation and acceptance

  • Version a minimal fixture and receipt format, reusing existing canonical receipt conventions. A CLI can consume fixture input and emit machine-readable results plus diagnostic stderr; no cross-repo production dependency.
  • Bind repository/source commit and dirty state, compiler/dependency/binary pins, fixture digest, command, environment, expected/observed result, mutant identity, logs and checker version. Represent PASS/FAIL/INVALID/NOT_RUN explicitly.
  • Independent known-answer vectors/oracle check fixture and result bytes; receipt tampering, mismatched pins, stale inputs and missing evidence are refused. Existing signing support may bind provenance; a signature alone is not proof of a correct run.
  • Integrate bounded XOR/counter properties with checker2 only where its supported IR and assertion semantics can express the obligation. Document bounds and assumptions; unsupported/timeout is UNKNOWN/NOT_RUN. Do not claim that c2_blast_notrap proves cipher security.
  • Host-only reproduction uses synthetic keys and payloads. No real keys, private traces or model weights enter evidence.
  • Provide concise reproduction commands, a coverage matrix and an explanation of how each mutant demonstrates that the test catches the intended defect.
  • Follow the repositories' existing test/judge policy, including local execution where hosted workflows are intentionally disabled.

Existing work and references

Reuse src/checker2/c2_blast.c, c2_receipt.c and existing receipt validation; coordinate with #623 (translation validation) and #450 (checker hardening) rather than duplicating them. System-specific follow-ups will link here.

Security regression results and weight-streaming performance are separate experiments. This issue authorizes neither new cryptography nor production promotion.

Implementation tickets and order

Start with Open Humanity replay and contributory fixes; these need not wait for the shared schema. Transport and storage tests stay with their existing owners. Freeze the small receipt/fixture contract, then integrate and independently validate the adapters. Do not close this gate because component PRs exist: record the actual aggregate result.

Separate performance experiments

  • aien-dev/omega-mv#640: overlap/preparation cost.
  • aien-dev/CUDApp#51: lossless representation break-even, extending CUDApp #48. These are independent of security completion and do not block the security fixes.

No comments.

Sign in to comment