interplane.Get Omega
Read in your language

spark-connector

aien-dev/spark-connector

Brought by drakestapleton

branch main Branches Tags History

spark-connector / SECURITY.md

49 lines · 2861 bytes Raw Blame History Rendered
1# Security policy
2
3## Reporting a vulnerability
4
5Report privately by email to drake@aienos.com with the subject `[spark-connector] security report`.
6Include the commit you tested, the component (path), steps to reproduce and what an attacker gains.
7Do not post proof-of-concept payloads publicly. If the report involves a secret, say where it was
8exposed and do not send the secret itself.
9
10This project has one maintainer; targets are best effort: acknowledgement within 3 working days,
11triage within 7 days, a fix or mitigation within 30 days for high and critical issues and 90 days
12otherwise. Fixes land on the default branch `main`.
13
14## Threat model (version 1)
15
16Both directions are hostile.
17
18Toward the volunteer's computer:
19- A published part is untrusted code. It runs only inside `execpure` (Landlock: read and execute of
20 that one program; seccomp: read(0), write(1|2), exit and its own execveat; prlimit: CPU 1 s soft /
21 2 s hard, 1 MiB file size, 8 MiB stack, no core, no processes, 4 descriptors, 128 MiB address
22 space; empty environment), with a 3 s wall clock per stage. The compiler runs in the same cell.
23- The hub is untrusted beyond choosing which published part to rerun: the runner checks that the
24 record's SHA-256 is the revision the job names and refuses any compiler but the pin.
25- The runner opens no listening socket and accepts nothing inbound.
26
27Toward the hub:
28- A runner is untrusted. Messages are fixed-form text of at most 4096 bytes; the hub parses and
29 stores them and never executes, compiles or opens anything a runner sends. File names it builds
30 from a message are lowercase hex of fixed length under its store.
31- Signatures are checked before any rate counter moves. Replays are refused (the replay key is the
32 SHA-256 of the signed bytes, so the other encoding of an ECDSA signature is a replay too); a key
33 counts once per revision; results must answer a job the hub issued to that key within the hour.
34- What volunteers download (the join script, the runner, the compiler) and the deny list are read
35 by the hub from a folder bound read-only at `/community` under the sandbox's read-only root, never
36 from its writable store, so a compromised hub process cannot change them.
37- The runner's folder must be named `.interplane-runner`; `leave` removes only the files it made.
38
39Independent review: a security-reviewer pass on 2026-11-11 found 3 required and 5 advisory issues;
40the fixes and their gate cases are in the history (see the report for the list). One design limit
41stays: keys are free, so many keys can use the hub's hourly quota, and one key can mark a part as
42disagreeing.
43
44Out of scope: a volunteer who changes their own runner (their results are theirs and show as
45disagreements); the Linux kernel's own Landlock and seccomp implementation.
46
47## Supported versions
48
49Only the default branch `main`.