diff --git a/AUDIT_SCOPE.md b/AUDIT_SCOPE.md new file mode 100644 index 0000000..3f84a53 --- /dev/null +++ b/AUDIT_SCOPE.md @@ -0,0 +1,99 @@ +# Audit scope + +Written for an outside, independent security audit. Revision described: +`4f405e1093b923d8252cead889c4669b7e0c3cdf` 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 publication repository for projects built with Allen at https://www.aienos.com/allen/. Each +project is meant to live in `projects//` with an `index.html`, the Omega source +(`.om`), a `README.md` and a `meta.json`. Submissions arrive as pull requests on +`submissions/-` branches, and only the maintainer's merge to `main` publishes them through +GitHub Pages. At this revision no projects are live: the tree holds the root `index.html`, +`projects/README.md`, issue forms, a CODEOWNERS file and licence files. There is no code and no +build. + +## What an auditor can and cannot check here + +Can check: + +- The root `index.html` and its Content-Security-Policy. +- The issue forms under `.github/ISSUE_TEMPLATE/` and the code owner rule. +- The stated publication rule (review and merge before anything is served). + +Cannot check here: + +- Allen, the service that opens submission pull requests and files issues, and the removal of + email addresses and phone numbers before filing. That code is not in this repository. +- Any project page, because none is live yet. +- Branch protection settings, which live in GitHub, not in the tree. + +## What to review, in priority order + +1. `index.html` (24 lines). Served from `main` by GitHub Pages. It sets + `Content-Security-Policy: default-src 'self'; script-src 'none'; style-src 'unsafe-inline'` and + links only to aienos.com and GitHub. Check that the policy is what the README promises + ("no external scripts, stylesheets, frames or network requests"). +2. The publication path described in `README.md`: submission branch, review, merge to `main`, + Pages. Every future `projects//index.html` shares the Pages origin with the others. Check + that a submission cannot carry script that reaches other projects or the root page; at this + revision nothing in the tree enforces this beyond review. +3. `.github/CODEOWNERS`: one rule, `*` owned by the single maintainer account. +4. `.github/ISSUE_TEMPLATE/` (`bug_report.yml`, `feature_request.yml`, `question.yml`, + `config.yml`). Blank issues are disabled and the contact link points to Allen. Check the forms + do not ask for personal data. +5. `meta.json` format described in README: slug, title, description, submission date, item id, no + personal data. No example exists yet. + +There is no `.github/workflows/` directory; GitHub Pages serves `main` directly (`.nojekyll` is +present, so no Jekyll build runs). + +## Trust boundaries + +- Untrusted: the content of submission pull requests (HTML and `.om` source generated with or + by Allen for outside users) and issues filed from Allen. +- Trusted: the maintainer who reviews and merges to `main`. +- Served: whatever is on `main`, on the GitHub Pages origin. + +## Threat model summary + +- Assets: visitors to the Pages site; the personal data of people who use Allen; the publication + decision. +- Attackers considered: a user who crafts a submission with hostile HTML or script; a filed issue + that carries personal data. +- Defended: human review before merge; self-contained page rule; CSP on the root page; personal + data removal stated in README (implemented outside this repository). +- Not defended / explicitly out of scope: no automated check in this repository enforces the + self-contained rule or a CSP on project pages; GitHub Pages and Allen are outside this tree. + +## Build from source at a pin + +Nothing to build. The site is static HTML served as committed. + +## Run every test + +There is no test suite and no CI in this repository. A manual check an auditor can run on a +plain host (NOT_RUN while writing this document): + +```sh +grep -rniE '/` or the root `index.html` that loads an external script, + stylesheet, frame or network request. README requires pages to be self-contained. +- A page that runs script against the GitHub Pages origin in a way that could affect other + projects served from the same origin, or weakens the root page's Content-Security-Policy + (`script-src 'none'`). +- Personal data (email addresses, phone numbers) in a project, a `meta.json`, or an issue filed + from Allen. README says these are removed before anything is filed. +- A way for a submission to be published without the maintainer's review and merge to `main`. + +Out of scope: + +- Allen itself and the aienos.com site; report those through the aienos.com site repository. +- The Omega compiler (`aien-dev/omega-mv`) and GitHub Pages hosting. + +## Supported versions + +Only the default branch `main`; there is no release. Reports against older commits are welcome +but fixes land on the default branch only. + +## Status + +No projects are live yet (`projects/README.md`). Every submission arrives as a pull request and goes +live only after the maintainer reviews and merges it. No certification, no bug bounty. See +AUDIT_SCOPE.md for what to review.