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 thes2-docs.jsbinary) 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.jsbinary. - Evidence:
allowed-toolsinSKILL.mdpermitsnode ${CLAUDE_SKILL_DIR}/scripts/lookup.js *. The script usesspawnSyncwith 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");inscripts/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