Skip to content

Security: cheezy/stride-ideation

Security

SECURITY.md

Security Model

This document describes what the stride-ideation Claude Code plugin does at runtime, written for a security reviewer evaluating it for the plugin directory. Every claim here is backed by the plugin's own files — primarily commands/stridify.md, commands/ideate.md, lib/read_auth.py, and lib/draft.sh.

Key difference from the stride plugin: stride-ideation ships no hooks.json and therefore performs no client-side hook execution of your .stride.md commands. There is no hooks/ directory; .claude-plugin/ contains only plugin.json (metadata).

Trust boundary (read this first)

  • What runs on your machine: the agent following this plugin's Markdown skill/commands/subagents (instructions, not executable code), plus the small set of lib/ helper scripts the plugin ships (a few Python/bash utilities for slug/path generation, batch-JSON validation, drift checks, draft autosave, and credential extraction). The slash commands' allowed-tools frontmatter enumerates exactly which Bash invocations are permitted (commands/stridify.md:3, commands/ideate.md:3); neither command is allowed to call curl, and neither grants rm, cat or mktemp. The list names the commands the fragments run at top level (lib/test-command-fragments.sh checks that it covers them). Note that a Bash(<cmd>:*) entry pre-approves every use of that command, not only the fragment's; the older Bash(bash:*), Bash(python3:*) and Bash(. *:*) entries are the broad ones.
  • Which helper scripts run: the commands reach their lib/ scripts through Claude Code's plugin-root substitution, which fills in the installed plugin's own path when the command loads. A fragment that finds no substituted path stops with an error rather than guessing — earlier releases left the path for the model to resolve, which could have sourced a same-named lib/*.sh from the repository being worked in.
  • Untrusted text stays out of shell commands: the decomposer subagent's JSON is written to .stride/stridify-subagent-output.json with the Write tool and validated from that file (/stridify Step 8a); it is never pasted into a Bash call, where a crafted line could end a heredoc early and run as shell. Values carried between steps are pasted as single-quoted literals.
  • What leaves your machine: exactly one network request — a single POST of the decomposed batch JSON to your configured Stride server (stridelikeaboss.com by default) when you run /stridify. Nothing else is transmitted.
  • Where your secret lives: a project-local .stride_auth.md file that you create and that is never committed. The plugin reads it; it never bundles, prints, logs, or persists the token.
  • What the plugin does NOT do: no telemetry/analytics, no background processes, no auto-update, and no arbitrary code execution beyond the lib/ helper scripts it ships.

What the plugin installs

All agent-facing components are Markdown (instructions for the agent, not executable code):

Component Count Files
Slash commands 2 commands/ideate.md, commands/stridify.md
Skill 1 skills/stride-ideation/SKILL.md
Subagents 2 agents/requirements-decomposer.md, agents/requirements-reviewer.md

Plus lib/ helper scripts — the only executable surface the plugin ships: read_auth.py, ship.sh, validate_batch.py, drift_check.py, strip_audit_fields.py, filename.sh, draft.sh, and run_smoke_test.sh (the smoke-test harness, used for development; its only network call is gated behind an explicit --live flag and goes through ship.sh). There is no hooks.json and no hooks/ directory — the plugin registers no lifecycle hooks and executes none of your .stride.md sections.

What runs at runtime

The plugin is purely invocation-driven: its two slash commands execute synchronously in your Claude Code session when you invoke them. There is no event-triggered hook, no daemon, and no background task.

  • /stride-ideation:ideate drives an interactive ideation session and, on completion, writes and commits a requirements Markdown document. It is not permitted to make network calls (its allowed-tools list contains no curl).
  • /stride-ideation:stridify decomposes the requirements doc into a Stride batch JSON (via a read-only subagent), commits it for audit, and — after a human preview-and-approval gate — issues the single POST described below.

The lib/ helpers are plain utilities invoked by these commands: regex credential extraction (read_auth.py), JSON shape validation (validate_batch.py), SHA drift checks (drift_check.py), audit-field stripping (strip_audit_fields.py), pure slug/path/draft bash functions (filename.sh, draft.sh), and ship.sh, the single process that reads auth, strips, POSTs and renders. ship.sh is the only helper that makes an outbound call (the --live smoke test reaches the network only by calling it).

What data leaves the machine, and where

The plugin makes exactly one kind of outbound request — the /stridify batch upload, made by lib/ship.sh, which /stridify Step 9 runs once (commands/stridify.md, Step 9):

POST {your API URL}/api/tasks/batch
Authorization: Bearer {your token}
Content-Type: application/json
  • Destination host is whatever you configured as the **API URL:** in .stride_auth.md — https://www.stridelikeaboss.com by default. The hostname is not hardcoded into the curl call; it is read from your auth file. The plugin contacts no other host.
  • Payload is the decomposed batch JSON (the goals/tasks /stridify produced from your requirements doc), with the three local audit fields (source_spec, source_spec_sha256, decomposition_notes) stripped into a mode-600 temp file and sent with --data-binary @<file>. It contains only the task content you reviewed and approved at the preview gate.
  • Token never on a command line or on disk: ship.sh pipes the Authorization header to curl as a config on its stdin (curl -K -, written by the shell's printf builtin), so the token is on no process's argv (argv is visible to ps) and in no file. Any inherited STRIDE_API_TOKEN is unset at startup and auth is read only after the payload is prepared, so no child process other than curl ever has the token in its environment. curl runs with -q first, so ~/.curlrc cannot switch on verbose output; with -g, so a {} or [] in the URL cannot expand into a repeated POST; and never with -v, so the header is never echoed.
  • Token never printed: the script turns off a caller's xtrace (bash -x, SHELLOPTS=xtrace) and allexport (bash -a) before it reads anything, and every response body or curl message it prints has the token (also in JSON-escaped or percent-encoded form), anything shaped like a Stride token (which catches a truncated echo), and the value of any Bearer <value> replaced with [REDACTED] — a development server's debug error page echoes request headers, including Authorization. The token reaches that scrubber on a pipe, never on argv or in an environment. (Earlier releases passed the header as -H "Authorization: Bearer $STRIDE_API_TOKEN" and described that as not ps-visible; it was visible — fixed by D310.)
  • Temp files: the payload, response body and curl stderr (none of which holds the token) are created mode 600 under the system temp dir and removed on success, failure and interrupt (INT, TERM, HUP). If one cannot be created, the script stops before any request is sent.

The smoke test's opt-in --live stage (lib/run_smoke_test.sh, Stage 7) ships through ship.sh as well; in default/dry-run mode it makes no network call.

Token & credential handling

The bearer token and API URL are resolved at runtime by lib/read_auth.py from the user-local .stride_auth.md path passed as its argument — no other source:

  • Prod-token disambiguation: the token regex uses a (?<!Local ) negative lookbehind (TOKEN_PATTERNS in lib/read_auth.py) so it matches the production **API Token:** line and not the **Local API Token:** line.
  • Token never reaches the error channel: the resolved token is written only to stdout as a STRIDE_API_TOKEN=… line, read by ship.sh in its own process; every error path writes to stderr and the code comments enforce that the token value is never placed in a stderr message (lib/read_auth.py, module docstring and the missing-token branch).
  • Eval-safe output: both values are shell-quoted with shlex.quote, so ship.sh's eval of that output cannot execute anything the auth file contains — a URL holding &, ; or $(...) evaluates to the literal string (regression tests in lib/test-ship.sh).
  • No hardcoded credential, no process-env read: there is no token literal anywhere in the plugin, and read_auth.py does not read environment variables (os.environ / getenv are absent). The token reaches curl only through a pipe on its stdin, and is never echoed, logged or written to disk.
  • .stride_auth.md is user-created and must never be committed (stated in the README's auth section).

A full credential-hygiene sweep of this repository — no tracked secrets, no hardcoded credentials, no real token literal in git history, 11/11 lib test scripts clean — is recorded in SUBMISSION-AUDIT.md.

What is written to disk

Both writes are committed for audit and are ordinary project files — neither contains any credential:

  • /ideate writes a timestamped requirements Markdown document and commits it (commands/ideate.md, Steps 8-9). During the session an intra-session autosave scratch file is written under a self-ignoring .stride/ path and deleted on successful commit; lib/draft.sh documents that it never serializes any secret — it writes only the content it is handed, and the API token is not in scope during ideation at all (lib/draft.sh, header comment).
  • /stridify writes a timestamped <ts>-<slug>-stride-batch.json sibling to the requirements doc and commits it (commands/stridify.md:456-465). On the rare path where all subagent dispatch attempts fail, it writes a <ts>-<slug>-decomposer-prompt.md fallback that explicitly contains no authentication material (commands/stridify.md:365-368).

What it does NOT do

Confirmed by absence across all .md, .sh, .py, and .json files:

  • No telemetry/analytics — no calls to any analytics endpoint or beacon.
  • No background/daemon process — every command runs synchronously in the session; there is no cron, daemon, or process-launching code.
  • No auto-update — the plugin has no self-update mechanism; version changes are manual author releases.
  • No arbitrary code execution — the slash commands' allowed-tools frontmatter enumerates the exact permitted Bash invocations; the one eval (in lib/ship.sh) takes lib/read_auth.py output whose values are shell-quoted, and there is no execution surface beyond the shipped lib/ helpers.

External dependency

The single external dependency is your configured Stride server (https://www.stridelikeaboss.com by default), contacted exactly once per /stridify run for the POST /api/tasks/batch. No third-party services, package registries, or other hosts are contacted at runtime.

Reporting

Security concerns about this plugin can be raised via the issue tracker at https://github.com/cheezy/stride-ideation.

There aren't any published security advisories