interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

GitHub aien-dev/aienux#179 (code only)

merged derived 192e438c634a3abc #179

Imported from GitHub aien-dev/aienux#179 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base fb54e46f82c8b1de8e6f3888395731851b754000 · Head fb54e46f82c8b1de8e6f3888395731851b754000

github-advanced-security[bot] commented on scripts/trust1_key_ceremony.sh line 168 on 2026-10-01 02:06 UTC

<code>verify</code> establishes its trust anchor from inside the very directory it is validating: the manifest signature is checked against <code>${pub}/owner_root.pub.pem</code>, and the generation/anti-rollback check reads <code>generation=</code> from that same manifest. An attacker who can modify the public bundle in transit (backup stick, copy back to the Spark) simply generates their own Ed25519 root, writes a manifest with their own role fingerprints and a high <code>generation</code>, signs it, and ships <code>owner_root.pub.pem</code> alongside — every check prints PASS, so the tamper and rollback protections provide no real integrity guarantee. The verification should pin the expected <code>owner_root</code> fingerprint out of band (e.g. required argument/stored anchor on the verifying host) and compare the observed generation against a locally persisted high-water mark rather than a caller-supplied minimum.


To fix this without changing core functionality, make <code>verify()</code> require an out-of-band trusted <code>owner_root</code> fingerprint and optionally enforce a local high-water generation file:</p> <ul> <li>Pin trust anchor out-of-band: Add a required verify argument for expected <code>owner_root</code> SHA-256 fingerprint (hex). Compute actual fingerprint of <code>${pub}/owner_root.pub.pem</code> and fail if mismatch before signature verification. This prevents key-substitution attacks.</li> <li>Use local persisted anti-rollback state: Add optional verify argument for a high-water mark file path. If provided and exists, read prior max generation and reject bundle generation lower than that. On successful verify, update the file to the new generation if greater. This ensures rollback protection is host-local and attacker-independent.</li> <li>Keep existing <code>min_gen</code> support for compatibility, but enforce effective minimum as max(<code>min_gen</code>, persisted high-water).</li> </ul> <p>Edits are confined to <code>scripts/trust1_key_ceremony.sh</code>, inside the shown <code>verify()</code> function region.

github-advanced-security[bot] reviewed (COMMENTED) on 2026-10-01 02:06 UTC

Code

The head commit is on main: fb54e46f82c8b1de8e6f3888395731851b754000.

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aienux
179
fb54e46f82c8b1de8e6f3888395731851b754000
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":179,"url":"https://github.com/aien-dev/aienux/pull/179","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:35:53Z","metadata":"unavailable","state_derived":true}

Changes

There is no diff: the head commit is already on main.