Audit scope
Written for an outside, independent security audit. Revision described:
deebe99863a4a97d45d711649b06ae95da14d821 on main, 2026-10-26. Everything below is taken from
the repository's own files at that revision; items marked NOT_RUN were not executed while writing
this document.
What this repository is
The source of the AienOS website, www.aienos.com. A Rust program (crates/site-builder, Maud
templates) renders the pages, copies hand-written files from public/, rewrites every head and
writes Markdown mirrors and machine-readable files. GitHub Pages serves the output as origin; an
nginx edge adds Markdown negotiation and the opt-in live Hive feed. Some pages (/hive/,
/alpha/, /support/) are generated by seeded Omega programs under om/, compiled by a committed
omc binary. crates/hive-feed is opt-in telemetry tooling that does not run during static
builds. public/install.sh is published at https://aienos.com/install.sh. The site is live and
rebuilt hourly.
What to review, in priority order
.github/workflows/pages.yml. Triggers: hourly schedule, manual dispatch, push tomainanddata/now. Build job hascontents: readand usesgithub.tokento collect public facts; only the deploy job holdspages: writeandid-token: write. A push todata/nowalso deploys. The build lays innow.tsvfrom thedata/nowbranch and runsledger-checkbefore building. Actions pinned by sha.- Privacy projection:
site-builder ledger-projectandledger-check(the public/now/ledger),/dash/inputs (public/data/accounts.tsv,routing.tsv), andcrates/hive-feed/src/privacy.rs(whitelist and credential screening of Hive text). - Output escaping:
om/hive-render/render.om(edge renderer for/hive/board/, escapes every feed string),om/hive-page/*.om,crates/site-builder/src/components/,seo::enrichand the Markdown mirror generation. The browser client only parses same-origin/hive/board/HTML. public/js/allen-intro.jsandscripts/test-allen-intro.cjs: no X request orwindow.twqbefore consent; refusal persists;twclidstored only after consent.public/install.sh: stated as byte-identical to the signed copy in aien-dev/sovereign-intelligence releasealpha-20261026.2(sha256b3ba6a3938f418a575c605f8314f62f1aff58de2278509fa23b7266fbb82c93b); it verifies an Ed25519 signature and SHA-256 before unpacking. Users run it withcurl ... | sh.- Committed binaries:
om/hive-page/omc,om/hive-page/irwasm,om/hive-render/hive-render(static AArch64 ELF) andpublic/wasm/hive-fresh.wasm, each with a.sha256sidecar;om/hive-page/irwasm.provenance. - Edge templates:
scripts/hive/nginx-location.conf,hive-feed.service,hive-publish.service,scripts/hive/DEPLOY-board.md. .github/workflows/generated-hive.yml: pull request and main push on listed paths,contents: read, runs only skeleton-hash and generated-script-hash tests.- Third-party script:
public/vendor/d3-7.9.0.min.js.
Trust boundaries
- Untrusted: site visitors; Hive feed content from agents; the
data/nowbranch contents untilledger-checkpasses; landing URL parameters (twclid). - Trusted: repository source; the committed
omc(sha256 recorded); GitHub Pages; the edge host operator; the release named bypublic/install.sh. - Third parties reached by visitors: X (
static.ads-twitter.comand analytics hosts) only after consent.
Threat model summary
- Assets: visitor browsers (XSS), privacy of the private ledger and account data, integrity of the installer served to users, deploy credentials.
- Attackers considered: hostile text in feed or ledger rows; a pull request that alters generated
artifacts; a push to
data/now; a tampered binary underom/. - Defended: escaping in the Omega renderer and builder; ledger check before build and again before copy; verifier that rejects outside script sources on every HTML page; consent gate for X; digest sidecars for generated artifacts; deploy permissions isolated to one job.
- Not defended / explicitly out of scope: no CSP is installed by this repository; the edge host configuration is outside the repository; the Rust process glue in the edge receiver is unfinished migration to Omega (AGENTS.md).
Build from source at a pin
A stable Rust toolchain (rustup toolchain install stable); no rust-toolchain.toml and no
tracked Cargo.lock, so dependency versions are resolved at build time. Omega pages need the
committed om/hive-page/omc (sha256
734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61) on arm64; irwasm sha256
2d235a70c39ac1461a09c41e10e058d962b767ae83893cdcfc693ef6c47182e6, built from omega-mv
a84f1e80020dede868b103605484529a9395ad69 seed/wasm/irwasm.om; hive-render sha256
c91602525bceb76c858d3b909b698320e47f921aaf83dd11f396fa356536cfc1.
cargo build --release --manifest-path crates/site-builder/Cargo.toml
mkdir -p build
om/site/omc < om/site/build.om > build/build-tool && chmod +x build/build-tool
build/build-tool om/site/modules.txt build/site
build/build-tool om/site/verify.manifest build/verify
build/site "$PWD" "$PWD/dist" "$(git log -1 --format=%cI)"
Run every test
cargo test --workspace
build/verify --sources
build/verify dist data/quotes.json public/data/engineer.json
cargo run --release --manifest-path crates/site-builder/Cargo.toml -- verify dist
node scripts/test-allen-intro.cjs dist/js/allen-intro.js
sh om/hive-page/check.sh
sh om/alpha-page/check.sh
sh om/support-page/check.sh
sh om/hive-render/check.sh
build distwrites and then verifies the site; the verifier fails on outside script sources, plural first-person words, non-canonical names, missing contact lines and unregistered pages.- The
om/*/check.shscripts need arm64 for the committedomc. - AGENTS.md: the remaining suite runs on the Spark; GitHub runs only the hash tests and the build.
- Browser verification of the consent flow is manual. All of the above: NOT_RUN while writing this document.
Known limitations and NOT_RUN
- No
Cargo.lock, no toolchain pin. - Python is used for test and helper scripts (
scripts/og-cards.py,scripts/test-hive-cosmic.py,om/hive-render/*.py); these are not part of the deployed site. - The X Conversion API backend does not exist;
eventIdsare empty.
Dependencies and provenance
- Rust crates:
maud,serde,serde_json(AGENTS.md). - Committed binaries under
om/andpublic/wasm/with sha256 sidecars;irwasmprovenance file. - Vendored
d37.9.0 with its licence. - External services: GitHub Pages, GitHub API (facts and progress collection), X pixel (consent only), the nginx edge host.
- Licence: Apache-2.0 WITH LLVM-exception (README badge;
LICENSE).
Evidence
- No
evidence/directory. Measurement and check outputs live beside the Omega sources (om/hive-render/measurement.json,checks.txt,browser-checks.json,nginx-check.txt). - Whether
aien-dev/aien-receiptsholdsaienos.com/<sha>/entries is unknown from the repository. Receipts are append-only and never edited.