s2-docs

Pass

Audited by Gen Agent Trust Hub on Nov 23, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill fetches Spectrum 2 documentation from an external binary and provides it to the agent to guide design decisions. This content acts as an untrusted input that could theoretically contain malicious instructions.
  • Ingestion points: The output of scripts/lookup.js (retrieved from the s2-docs.js binary) is ingested directly into the agent's context.
  • Boundary markers: The script provides optional markdown delimiters (=== S2 DOCS: ... ===) when used in Cursor mode, but otherwise lacks strict enforcement of boundary markers for the documentation content.
  • Capability inventory: The agent can execute the lookup script with arbitrary subcommands and arguments via the provided tool definition.
  • Sanitization: Documentation content is passed to the agent without sanitization or filtering for embedded instructions.
  • [COMMAND_EXECUTION]: The skill defines a tool that executes a Node.js script via Bash. The script in turn spawns a subprocess to run the s2-docs.js binary.
  • Evidence: allowed-tools in SKILL.md permits node ${CLAUDE_SKILL_DIR}/scripts/lookup.js *. The script uses spawnSync with an array of arguments, which is a secure implementation that prevents shell injection.
  • [DYNAMIC_EXECUTION]: The lookup script dynamically resolves the path to an external executable located relative to the skill directory.
  • Evidence: const localBin = resolve(__dirname, "../../../bin/s2-docs.js"); in scripts/lookup.js. The execution uses a static relative path to a local binary, which is considered a low-risk implementation of dynamic execution.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 23, 2026, 11:09 AM