From 031b35a0e9033e254304cf07154b6abae27300ff Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Thu, 3 Dec 2026 23:22:17 +0000 Subject: [PATCH] Security review: status of each finding and the operator's decisions Co-Authored-By: Claude Opus 5.5 --- docs/security-review.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/security-review.md b/docs/security-review.md index d6f218bc..38f74cb6 100644 --- a/docs/security-review.md +++ b/docs/security-review.md @@ -72,6 +72,34 @@ crafted link to a file the attacker has placed in the user's home directory. | M6 | Medium | Chat transcripts and notifications are not redacted | Medium | | L* | Low | Links open without confirmation; OSC 52 clipboard writes; ntfy click-link to any URL; `ws://` peers; TOCTOU in `/files`; debug-keystore APK signing; and more | | +### Status (2026-12-03) + +| ID | Status | Change | +| --- | --- | --- | +| H1 | **Fixed** | `e39a9560`: `/files` and `/artifacts/` send the sandbox CSP and `nosniff`; `/files` serves HTML, XHTML, SVG, XML, XSL, JavaScript and `multipart/x-mixed-replace` (including sniffed extensionless files) as attachments. The web proxy adds the same headers to every proxied `/files` and `/artifacts/` response, and the peer relay shares the helper. | +| H3 | **Partially fixed** (layer 1) | `b24fc317`: `internal/agentenv` drops every `PIPELINES_*` token, secret, password, auth or key variable from agent child environments (harness stages and chats, `!` lines, checks, delivery checks, OpenCode serve processes, MCP children through their harness). The secret files stay readable by the same OS user; no sandbox, by decision. | +| M1 | Removed | ntfy is being removed from Pipelines in a separate change. | +| H2, H4, M2, M3, M4, M5, M6, L* | Accepted | By design for a single-user self-hosted tool; see [Decisions](#decisions). | + +### Decisions + +The operator accepted the remaining findings as by design for a single-user, +self-hosted tool, keeping friction at zero: + +- **Agents intentionally have full host access.** There is no OS sandbox + (bubblewrap, `sandbox-exec`, a separate user or a container) and none is + planned. Agents can read every file the user can, including Pipelines' + own secret files; layer 1 only removes the pointers from their environment. +- **The web password is the shell password.** Mode switches into Claude + `bypassPermissions` or Codex `full` are not gated by elevation, and the + elevation lifetime stays as it is (H2). +- **Stage defaults stay as they are** (H4): no `tools` block still grants + read/glob/grep/edit/shell. +- **`show_html` previews are not tightened** (M4): they may legitimately load + CDN scripts and CSS. +- **No supply-chain pinning, default run budget, concurrency cap or + redaction** (M2, M5, M6). + --- ## 3. Findings in detail @@ -272,6 +300,10 @@ shapes, not a pristine default): `ss -ltnH | awk '{print $4}'` #### H3. Agents are unsandboxed and inherit every secret (High) +**Status: partially fixed in `b24fc317`.** Secret-pointer variables are now +scrubbed from agent environments. Being unsandboxed is accepted by design (see +Decisions). + - **Evidence:** - Every harness runs as the server's UID with `os.Environ()`: - `internal/stage/claude_stage.go:360` @@ -393,6 +425,9 @@ shapes, not a pristine default): `ss -ltnH | awk '{print $4}'` #### H1. `GET /files` serves HTML/SVG inline on the app origin (High) +**Status: fixed in `e39a9560`** (see the status table in section 2). The +evidence below describes the code before the fix. + - **Evidence:** - `internal/server/home_files.go:68-92`: the type comes from the extension, the disposition is `inline` by default, and only `nosniff` is set. There is