interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / AUDIT_SCOPE.md

130 lines · 7211 bytes Raw Blame History Rendered
1# Audit scope
2
3Written for an outside, independent security audit. Revision described:
4`deebe99863a4a97d45d711649b06ae95da14d821` on `main`, 2026-10-26. Everything below is taken from
5the repository's own files at that revision; items marked NOT_RUN were not executed while writing
6this document.
7
8## What this repository is
9
10The source of the AienOS website, www.aienos.com. A Rust program (`crates/site-builder`, Maud
11templates) renders the pages, copies hand-written files from `public/`, rewrites every head and
12writes Markdown mirrors and machine-readable files. GitHub Pages serves the output as origin; an
13nginx edge adds Markdown negotiation and the opt-in live Hive feed. Some pages (`/hive/`,
14`/alpha/`, `/support/`) are generated by seeded Omega programs under `om/`, compiled by a committed
15`omc` binary. `crates/hive-feed` is opt-in telemetry tooling that does not run during static
16builds. `public/install.sh` is published at `https://aienos.com/install.sh`. The site is live and
17rebuilt hourly.
18
19## What to review, in priority order
20
211. `.github/workflows/pages.yml`. Triggers: hourly schedule, manual dispatch, push to `main` and
22 `data/now`. Build job has `contents: read` and uses `github.token` to collect public facts;
23 only the deploy job holds `pages: write` and `id-token: write`. A push to `data/now` also
24 deploys. The build lays in `now.tsv` from the `data/now` branch and runs `ledger-check` before
25 building. Actions pinned by sha.
262. Privacy projection: `site-builder ledger-project` and `ledger-check` (the public `/now/`
27 ledger), `/dash/` inputs (`public/data/accounts.tsv`, `routing.tsv`), and
28 `crates/hive-feed/src/privacy.rs` (whitelist and credential screening of Hive text).
293. Output escaping: `om/hive-render/render.om` (edge renderer for `/hive/board/`, escapes every
30 feed string), `om/hive-page/*.om`, `crates/site-builder/src/components/`, `seo::enrich` and the
31 Markdown mirror generation. The browser client only parses same-origin `/hive/board/` HTML.
324. `public/js/allen-intro.js` and `scripts/test-allen-intro.cjs`: no X request or `window.twq`
33 before consent; refusal persists; `twclid` stored only after consent.
345. `public/install.sh`: stated as byte-identical to the signed copy in aien-dev/sovereign-intelligence
35 release `alpha-20261026.2` (sha256
36 `b3ba6a3938f418a575c605f8314f62f1aff58de2278509fa23b7266fbb82c93b`); it verifies an Ed25519
37 signature and SHA-256 before unpacking. Users run it with `curl ... | sh`.
386. Committed binaries: `om/hive-page/omc`, `om/hive-page/irwasm`, `om/hive-render/hive-render`
39 (static AArch64 ELF) and `public/wasm/hive-fresh.wasm`, each with a `.sha256` sidecar;
40 `om/hive-page/irwasm.provenance`.
417. Edge templates: `scripts/hive/nginx-location.conf`, `hive-feed.service`,
42 `hive-publish.service`, `scripts/hive/DEPLOY-board.md`.
438. `.github/workflows/generated-hive.yml`: pull request and main push on listed paths,
44 `contents: read`, runs only skeleton-hash and generated-script-hash tests.
459. Third-party script: `public/vendor/d3-7.9.0.min.js`.
46
47## Trust boundaries
48
49- Untrusted: site visitors; Hive feed content from agents; the `data/now` branch contents until
50 `ledger-check` passes; landing URL parameters (`twclid`).
51- Trusted: repository source; the committed `omc` (sha256 recorded); GitHub Pages; the edge host
52 operator; the release named by `public/install.sh`.
53- Third parties reached by visitors: X (`static.ads-twitter.com` and analytics hosts) only after
54 consent.
55
56## Threat model summary
57
58- Assets: visitor browsers (XSS), privacy of the private ledger and account data, integrity of the
59 installer served to users, deploy credentials.
60- Attackers considered: hostile text in feed or ledger rows; a pull request that alters generated
61 artifacts; a push to `data/now`; a tampered binary under `om/`.
62- Defended: escaping in the Omega renderer and builder; ledger check before build and again
63 before copy; verifier that rejects outside script sources on every HTML page; consent gate for
64 X; digest sidecars for generated artifacts; deploy permissions isolated to one job.
65- Not defended / explicitly out of scope: no CSP is installed by this repository; the edge host
66 configuration is outside the repository; the Rust process glue in the edge receiver is
67 unfinished migration to Omega (AGENTS.md).
68
69## Build from source at a pin
70
71A stable Rust toolchain (`rustup toolchain install stable`); no `rust-toolchain.toml` and no
72tracked `Cargo.lock`, so dependency versions are resolved at build time. Omega pages need the
73committed `om/hive-page/omc` (sha256
74`734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61`) on arm64; `irwasm` sha256
75`2d235a70c39ac1461a09c41e10e058d962b767ae83893cdcfc693ef6c47182e6`, built from omega-mv
76`a84f1e80020dede868b103605484529a9395ad69` `seed/wasm/irwasm.om`; `hive-render` sha256
77`c91602525bceb76c858d3b909b698320e47f921aaf83dd11f396fa356536cfc1`.
78
79```sh
80cargo build --release --manifest-path crates/site-builder/Cargo.toml
81mkdir -p build
82om/site/omc < om/site/build.om > build/build-tool && chmod +x build/build-tool
83build/build-tool om/site/modules.txt build/site
84build/build-tool om/site/verify.manifest build/verify
85build/site "$PWD" "$PWD/dist" "$(git log -1 --format=%cI)"
86```
87
88## Run every test
89
90```sh
91cargo test --workspace
92build/verify --sources
93build/verify dist data/quotes.json public/data/engineer.json
94cargo run --release --manifest-path crates/site-builder/Cargo.toml -- verify dist
95node scripts/test-allen-intro.cjs dist/js/allen-intro.js
96sh om/hive-page/check.sh
97sh om/alpha-page/check.sh
98sh om/support-page/check.sh
99sh om/hive-render/check.sh
100```
101
102- `build dist` writes and then verifies the site; the verifier fails on outside script sources,
103 plural first-person words, non-canonical names, missing contact lines and unregistered pages.
104- The `om/*/check.sh` scripts need arm64 for the committed `omc`.
105- AGENTS.md: the remaining suite runs on the Spark; GitHub runs only the hash tests and the build.
106- Browser verification of the consent flow is manual. All of the above: NOT_RUN while writing this
107 document.
108
109## Known limitations and NOT_RUN
110
111- No `Cargo.lock`, no toolchain pin.
112- Python is used for test and helper scripts (`scripts/og-cards.py`, `scripts/test-hive-cosmic.py`,
113 `om/hive-render/*.py`); these are not part of the deployed site.
114- The X Conversion API backend does not exist; `eventIds` are empty.
115
116## Dependencies and provenance
117
118- Rust crates: `maud`, `serde`, `serde_json` (AGENTS.md).
119- Committed binaries under `om/` and `public/wasm/` with sha256 sidecars; `irwasm` provenance file.
120- Vendored `d3` 7.9.0 with its licence.
121- External services: GitHub Pages, GitHub API (facts and progress collection), X pixel (consent
122 only), the nginx edge host.
123- Licence: Apache-2.0 WITH LLVM-exception (README badge; `LICENSE`).
124
125## Evidence
126
127- No `evidence/` directory. Measurement and check outputs live beside the Omega sources
128 (`om/hive-render/measurement.json`, `checks.txt`, `browser-checks.json`, `nginx-check.txt`).
129- Whether `aien-dev/aien-receipts` holds `aienos.com/<sha>/` entries is unknown from the
130 repository. Receipts are append-only and never edited.