diff --git a/.crumb b/.crumb index f4ef0f1..e167458 100644 --- a/.crumb +++ b/.crumb @@ -10,20 +10,20 @@ }, { "digest": "9b4d3e18760b749e899cf49938f83db80792c260fa8cde3656dc55e2369f051b", - "last_commit": "6fc6396", + "last_commit": "59b32f2", "name": "docs", "purpose": "Planning documents and decision records for the Aienix core tree" } ], "children_root": "sha256:64571795057d478f43b5cdf2a2e8f4c46e9966850c1e78af0b5ce58a747f2ede", - "compiled_at": "2026-10-31T11:00:16Z", + "compiled_at": "2026-10-31T11:42:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:2e34ede8c9c91a3d5fcc9a0c1d62d0fba478658ee9e9f8bfd9346bd123eac026", + "digest": "sha256:26b1a8d44f561c8392add4a9de95d75f832487dfa1768be382e2effdb58c7bf3", "evidence_files": 4, "evidence_root": "sha256:43f613ac4c8f8433f0e1c15a886add053aab7a1873dde72335bf71993d02c134", - "files": 13, - "generated_at_commit": "af4cca69b9fd828e5b4606f16cefc39aaabb898a", - "source_tree": "sha256:6b6cadfa876829c88573796ca77acd2ea5676099807db42e011923109f45452f" + "files": 15, + "generated_at_commit": "eb86386b63762496db4d2fe641450d9e2b82d406", + "source_tree": "sha256:0bf12a6f88f1b4cfb11063b23158bad5846c4172cdb320273e1123dec06b6720" } }, "name": "aienix", diff --git a/AUDIT_SCOPE.md b/AUDIT_SCOPE.md new file mode 100644 index 0000000..00818bb --- /dev/null +++ b/AUDIT_SCOPE.md @@ -0,0 +1,105 @@ +# Audit scope + +Written for an outside, independent security audit. Revision described: +`59b32f2` on `main` (2026-10-31; the only change since `292a38cd` on 2026-10-26 is the docs-only +proposal `docs/plans/2026-10-16-single-source-of-truth.md` with its receipts). 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 AienOS front door. It links six core components and six attachments as Git submodules pinned at +exact commits, so one clone fetches versions that belong together. It contains one executable, the +69-line POSIX shell script `aienos` (`get`, `status`, `bump`, `help`), plus `README.md`, +`AGENTS.md`, two SVG wordmarks in `assets/`, `.crumb` metadata, a docs-only plan proposal under +`docs/plans/` and `LICENSE` (AGPL-3.0-or-later). +Component code is not here; it is developed in each component's repository. README states it is not +a release, a finished system, or a claim of hardware qualification. + +## What an auditor can and cannot check here + +- Can check: the `aienos` script, the `.gitmodules` URL list against the gitlinks, and whether + tracked files carry private data. +- Cannot check here: any component's code, tests or evidence. The pins name revisions; they do not + certify them. AGENTS.md: "a remote `main` commit alone does not prove qualification." + +## What to review, in priority order + +1. `aienos` (shell). Reads `.gitmodules` with `git config -f`, calls `git ls-remote`, + `git submodule update --init --depth 1`, `git fetch` and `git checkout --detach`, and stages the + gitlink with `git add`. Check: + - quoting of submodule paths and URLs taken from `.gitmodules`; + - that `bump` only accepts a path already listed in `.gitmodules` (it checks with + `paths | grep -qx "$p"`, which treats the argument as a regular expression); + - that `status` exits non-zero when a component is behind or unreachable, and `bump` exits 2 on + an unknown path and 1 on an unreachable `main`; + - that nothing is committed or pushed (the script says it stages only). +2. `.gitmodules` (12 submodules, all `https://github.com/aien-dev/...`) and the gitlinks + (`git ls-files -s`, mode 160000). Check every URL is the repository the README table names and + that no gitlink was moved without a matching pull request. +3. `README.md` and `AGENTS.md`. Commands an operator copies (`git clone --recurse-submodules + --shallow-submodules`, `./aienos status`). +4. `assets/*.svg`. Static wordmarks referenced by README; `.crumb` says they have no external + assets. Check they contain no script. + +There is no `.github/workflows/` directory; AGENTS.md: "There is no root build manifest, test suite +or workflow in the current tree." + +## Trust boundaries + +- Untrusted at run time: remote replies from `git ls-remote` and `git fetch` for each component URL. +- Trusted: the URLs in `.gitmodules` and the pinned gitlinks as reviewed in pull requests; Git. +- The pins are source revisions only. Any verdict on a component comes from that component's own + workflow and receipts. + +## Threat model summary + +- Assets: the mapping from component name to exact source revision that users clone. +- Attackers considered: a pull request that redirects a submodule URL or moves a pin silently; a + hostile remote or path that abuses the shell script. +- Defended: changes arrive by pull request; `bump` stages, never commits; pins are exact commits. +- Not defended / explicitly out of scope: integrity of component content behind a pin; GitHub + availability; Git's own submodule handling. + +## Build from source at a pin + +Nothing to build. Prerequisites per AGENTS.md: POSIX `sh`, Git and ordinary shell utilities; +network access for the component commands. + +```sh +git clone --recurse-submodules --shallow-submodules https://github.com/aien-dev/aienix.git +``` + +## Run every test + +There is no test suite. AGENTS.md lists these checks (NOT_RUN while writing this document): + +```sh +sh -n aienos # syntax check +./aienos help # non-mutating usage output +git submodule status # recorded pins, no fetch +./aienos get # network: initialise components at pinned commits +./aienos status # network: exit 1 if any component is behind or unreachable +``` + +AGENTS.md says not to run `./aienos bump` merely as a smoke test; exercise it in a disposable +clone. + +## Known limitations and NOT_RUN + +- `aienos status` exiting 1 means a component is behind or unreachable, not a script defect + (AGENTS.md). +- No automated check that `.gitmodules` URLs and pins match a reviewed list. +- Component evidence is not linked from this tree at this revision. + +## Dependencies and provenance + +- No lockfile, no vendored code. `.gitmodules` plus gitlinks act as the pin file. +- Network access to github.com for `get`, `status` and `bump`. +- No GitHub Actions. + +## Evidence + +No receipts live here. Component receipts are published by each component's verification +workflow; README names `aien-dev/aien-receipts` as the append-only store of signed verification +receipts, one per judged commit. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..6298dc5 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,58 @@ +# Security policy + +## Reporting a vulnerability + +Report privately. Do not open a public issue, pull request or discussion about it. + +1. GitHub: open this repository's Security tab and choose "Report a vulnerability". This + creates a private advisory that only the maintainers can see. Private vulnerability reporting + is enabled for this repository. +2. Email: drake@aienos.com with the subject `[aienix] security report`. + +Include the commit or release you tested, the component (path), steps to reproduce, and what an +attacker gains. If the report involves a secret, say where it was exposed and do not send the +secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly. + +## Response targets + +This project has one maintainer; the targets below are best effort and stated honestly. + +- Acknowledgement: within 3 working days. +- Triage and severity: within 7 days of acknowledgement. +- Fix or mitigation for confirmed issues: aim for 30 days for high and critical, 90 days + otherwise, with a status update at least every 14 days until closed. +- Disclosure: coordinated. An advisory is published with credit (unless you ask otherwise) + once the fix is on the default branch. Default embargo 90 days, negotiable. + +## Scope + +This repository is a front door: `.gitmodules`, pinned gitlinks, the POSIX shell script `aienos`, +two wordmark SVGs and documentation. Component code lives in each component's own repository. + +In scope: + +- The `aienos` script: a way for a crafted `.gitmodules` entry, submodule path or remote reply + to make `get`, `status` or `bump` run commands, write outside the clone, or stage something + other than the named component's `main` commit. +- A `.gitmodules` URL or gitlink that points somewhere other than the component the README + names. +- Credentials, home paths, private addresses, internal hostnames or SSH usernames in a tracked file + (AGENTS.md forbids them). + +Out of scope: + +- Vulnerabilities inside a component (`aienux/`, `omega/`, `sovereign-core/`, `architecture/`, + `protocols/`, `physics/`, `attachments/*`). Report those in the component's own repository. +- Git itself and the host operating system. + +## Supported versions + +Only the default branch `main`; there is no release. README: "What this repository is not: a +release, a finished system, or a claim of hardware qualification." Reports against older commits +are welcome but fixes land on the default branch only. + +## Status + +AGENTS.md: a pinned Git-submodule front door, not an imported monorepo or a hardware-qualified +release. This repository has no verification workflow; its pins select source revisions, not +verdicts (README). No certification, no bug bounty. See AUDIT_SCOPE.md for what to review.