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/aienux/patches/31046ebe63892b10
# aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
## 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 /tmp/aienos-unlock-pass. age -o creates the file with mode 0666 & ~umask (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 rm -f. Additionally, the surrounding comments claim the passfile "lives only in RAM", but /tmp 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 mktemp under a verified tmpfs with a restrictive umask (or pipe the passphrase to gocryptfs via -passfile /dev/stdin) instead of a fixed world-readable path.
Use a securely created temporary passfile instead of a fixed path, with restrictive permissions and guaranteed cleanup.
Best fix in this snippet:
scripts/collect_recovery_boot_evidence.sh around lines 149–157: mktemp (unique, non-predictable path).umask 077 while creating/decrypting to ensure owner-only access.age -o and gocryptfs -passfile.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.