spark-connector
aien-dev/spark-connector
Brought by drakestapleton
spark-connector / AUDIT_SCOPE.md
| 1 | # Audit scope |
| 2 | |
| 3 | For an outside, independent security review of the community runner (version 1, 2026-11-11). |
| 4 | |
| 5 | ## What to review, in priority order |
| 6 | |
| 7 | 1. `runner/30cell.om`: the only path by which brought code runs (fork, stage files on 0..2, |
| 8 | `execpure`, wall clock, process-group kill, the close-on-exec error pipe). |
| 9 | 2. `runner/40job.om`, `runner/20net.om`: what the runner accepts from the hub (job fields, the |
| 10 | record and its hash check), outbound HTTP(S) only, response size handling. |
| 11 | 3. `runner/10key.om`: key generation, storage (0600, O_EXCL) and ECDSA signing (random k, blinded |
| 12 | inversion, self-verification). |
| 13 | 4. `runner/50cmd.om`, `runner/00base.om`: the state folder, `leave` (recursive removal that never |
| 14 | follows a link), the background supervisor, the pid file check. |
| 15 | 5. `runner/joingen.om`: the generated join script (downloads by hash, refusal on mismatch). |
| 16 | 6. interplane-forge `community/*.om`: message parsing, signature check, order of checks, rate and |
| 17 | deny files, job issue and use, the counting rule, file serving under `/community/`. |
| 18 | |
| 19 | ## Trust boundaries |
| 20 | |
| 21 | - Untrusted: published parts (run on volunteers' machines), runner messages (to the hub), the hub |
| 22 | (from the runner's side, beyond its choice of published part). |
| 23 | - Trusted: the pinned compilers, the Linux kernel's Landlock/seccomp/rlimits, the operator who |
| 24 | edits the hub's deny list. |
| 25 | |
| 26 | ## How to run every check |
| 27 | |
| 28 | `FORGE_SRC=... OMEGA_SRC=... sh gates/run.sh` (Linux aarch64). Its recorded output is in |
| 29 | `evidence/`. |