compound-engineering-plugin icon indicating copy to clipboard operation
compound-engineering-plugin copied to clipboard

ce-demo-reel: preview step uploads artifacts to a public third-party host (catbox/litterbox) before the user picks a destination — add consent + local-first default

Open bigbrownjeff opened this issue 5 months ago • 1 comments

Hi, and thanks for compound-engineering — the demo-reel evidence-capture flow is genuinely nice to use.

I want to flag a privacy footgun in ce-demo-reel, not a security vulnerability — it's all in plain sight in the source, so I'm filing it openly per SECURITY.md (which scopes private email reporting to undisclosed vulnerabilities). Happy to move it to email if you'd rather.

What happens today

In plugins/compound-engineering/skills/ce-demo-reel/scripts/capture-demo.py, the preview subcommand POSTs the captured artifact to litterbox (a catbox.moe-family public file host) via curl -F fileToUpload=@...:

# lines 34-35
CATBOX_API = "https://catbox.moe/user/api.php"
LITTERBOX_API = "https://litterbox.catbox.moe/resources/internals/api.php"

# lines 602-606
def cmd_preview(args):
    file_path = args.file
    if not Path(file_path).exists():
        die(f"File not found: {file_path}")
    _upload_with_retry(LITTERBOX_API, file_path, "litterbox (1h expiry)", ["time=1h"])

In references/upload-and-approval.md, Step 1 ("Preview Upload") runs this upload first, and only Step 2 ("Destination Choice") then offers the user options including "Save locally" and "Proceed without evidence." So a user who intends to keep the artifact local has already shipped it to a third-party public host by the time they reach that choice. The headless path (lines 5–10 of that reference) goes further and uploads straight to permanent catbox with no preview and no prompt.

The captured artifact can include screen content from the user's app or terminal — tokens, customer data, internal URLs. litterbox links expire (~1h) but catbox links are permanent and public to anyone with the URL.

Why this is easy to miss

The skill and docs (SKILL.md, docs/skills/ce-demo-reel.md) describe the destination only as a generic "public URL" / "public host" — they never name catbox/litterbox, and "preview" reads like a local action rather than "upload to a third party." PRIVACY.md mentions generic "cloud upload workflows" but doesn't name the host or note that preview egresses ahead of the local-only choice.

Suggested hardening (any subset)

  1. Local-first / consent-first: ask for the destination before anything leaves the machine; only run the litterbox preview when the user has chosen a remote path, or behind a one-time "this uploads to a public third-party host (catbox.moe / litterbox), continue?" confirmation. For headless, default to save-local unless CE_DEMO_REEL_ALLOW_PUBLIC_UPLOAD=1 (or R2 creds) is explicitly set.
  2. Name the host + state the egress in a one-line stderr notice before the POST in cmd_preview/cmd_upload, and in SKILL.md / docs/skills/ce-demo-reel.md / PRIVACY.md.
  3. (Optional) a short note prompting the user to review the artifact for secrets before choosing a public host.

I'm happy to open a PR for any of these if it'd help — just let me know which direction you'd prefer (I'd lean toward 1 + 2). Thanks again for the project.

bigbrownjeff avatar Jun 16 '26 14:06 bigbrownjeff

ce-demo-reel was dropped in the latest release as it's outlived it's usefulness. Codex, Cursor and Claude Code are getting so good at capturing things it didn't feel right to keep having a custom skill to do this. It also had lots of gotchas like you had mentioned.

tmchow avatar Jun 24 '26 05:06 tmchow