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#178 (code only)

merged derived 31046ebe63892b10 #178

Imported from GitHub aien-dev/aienux#178 (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 1b0c570f5060fbd8e18ec73a6f9b8b3d3d4b65ab · Head 1b0c570f5060fbd8e18ec73a6f9b8b3d3d4b65ab

github-advanced-security[bot] commented on scripts/collect_recovery_boot_evidence.sh line 156 on 2026-10-01 01:55 UTC

The decrypted gocryptfs passphrase is written to the fixed, predictable path <code>/tmp/aienos-unlock-pass</code>. <code>age -o</code> creates the file with mode <code>0666 & ~umask</code> (typically world-readable), so any local user on the Spark can read the master passphrase for the encrypted store during the window between decryption and <code>rm -f</code>. Additionally, the surrounding comments claim the passfile "lives only in RAM", but <code>/tmp</code> is not guaranteed to be a tmpfs on the live host, so the plaintext key may be written to the NVMe and remain recoverable after deletion. Use <code>mktemp</code> under a verified tmpfs with a restrictive umask (or pipe the passphrase to <code>gocryptfs</code> via <code>-passfile /dev/stdin</code>) instead of a fixed world-readable path.


Use a securely created temporary passfile instead of a fixed path, with restrictive permissions and guaranteed cleanup.</p> <p>Best fix in this snippet:</p> <ul> <li>In <code>scripts/collect_recovery_boot_evidence.sh</code> around lines 149–157: <ul> <li>Create a temp file with <code>mktemp</code> (unique, non-predictable path).</li> <li>Temporarily set <code>umask 077</code> while creating/decrypting to ensure owner-only access.</li> <li>Use that temp file for both <code>age -o</code> and <code>gocryptfs -passfile</code>.</li> <li>Always remove the temp file afterward.</li> </ul> </li> <li>Keep behavior/functionality identical: still decrypt once, mount read-only, check result, then cleanup.</li> </ul> <p>This avoids fixed-path races and reduces plaintext exposure without changing script flow.

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

Code

The head commit is on main: 1b0c570f5060fbd8e18ec73a6f9b8b3d3d4b65ab.

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
178
1b0c570f5060fbd8e18ec73a6f9b8b3d3d4b65ab
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":178,"url":"https://github.com/aien-dev/aienux/pull/178","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.