Docs / SECURITY-CLAUDE-SWARM
Security cross-check — Swarm C1 (Claude Code, claude-opus-5-5)
Source: docs/SECURITY-CLAUDE-SWARM.md
Date: 2026-11-28. Scope: read-only re-check of three committed findings against main at 536879a08b8150d77bed6e16ddfe53f9960bbc41. Source of findings: docs/SECURITY-REVIEW.md (added in 272387f) and redaction commit f98cded. No source edits, no container or Kiri action, no push or merge.
Method: git show 536879a:<path> and git grep over the tree at 536879a. No servers were started and nothing was exploited, so "confirmed" below means confirmed by reading the code, not by a live run.
Verdicts
| Finding | Verdict | Evidence at 536879a |
|---|---|---|
S3 — Origin check trusts the request Host header |
Confirmed (code); exploitability advisory | examples/nes/image/serve.py:19 compares Origin with "http://" + Host, both client-supplied. There is no fixed allowlist and no Sec-Fetch-Site check. Cross-origin browser writes are currently blocked only because the custom X-Game-Composer header (examples/nes/image/player.html:20) forces a CORS preflight, and the handler has no do_OPTIONS (only do_POST :17 and do_GET :36). The DNS-rebinding path is plausible but was not demonstrated. |
| S1 — Checkpoint POST has no authentication | Confirmed (code) | examples/nes/image/serve.py:17-21 gates writes only on the path, the X-Game-Composer: checkpoint header and the Host/Origin match. A non-browser client can set all three. :30-32 then overwrites /gamecomposer/saves/checkpoint.json. The server binds 0.0.0.0:8080 (:52). The reference runtime publishes on 127.0.0.1, so the impact is limited to local processes unless the port is published more widely. Severity Medium stands. S2 (checkpoint content is never validated, :26-31 → player.html:20 fromJSON) compounds it. |
Token redaction in rom-identity.json |
Confirmed fixed in the tree; advisory: still in git history | f98cded replaced the signed effectiveUrl (SAS sig, skoid, jwt) and the local temp path in examples/nes/evidence-real/rom-identity.json (now :15, :27, :28). git grep for sig=, jwt=ey and skoid= at 536879a finds no match, and examples/nes/evidence/rom-identity.json has no match either. The unredacted value was introduced in 250897e. That commit is an ancestor of 536879a and is contained in origin/main, so the token is published in history. The token's own expiry was se=2026-11-28T07:25:38Z, which has passed, and it was a short-lived, read-only GitHub release-asset download link, so the remaining risk is low. A history rewrite is optional, and only the owner can approve it (it needs a force push). The original line also leaked an absolute local path (/Users/mac/orca/workspaces/...), which is minor information disclosure. |
Notes on the source review
docs/SECURITY-REVIEW.mdcitesexamples/snes/image/serve.py:36(bind) and:31(nosniff). At536879a, the SNES bind is at:58and the handlers aredo_HEAD:28 anddo_GET:40. Those line references are stale, but the findings (S80.0.0.0bind; SNES has no checkpoint POST) still hold.- The NES line references for S1 and S3 are accurate at
536879a.examples/nes/image/serve.pywas last changed in321e188.
Summary
- Confirmed: S1 and S3 (by reading the code), and the redaction of the token in the current tree.
- Advisory: the S3 rebinding exploit was not demonstrated. The expired signed URL and the local path are still in pushed history (
250897e). No source fix for S1 or S3 has landed onmainas of536879a.

