s2-docs
Pass
Audited by Gen Agent Trust Hub on Aug 12, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/lookup.jsscript usesnode:child_process.spawnSyncto execute a local binary file nameds2-docs.js. The arguments provided by the AI agent are passed to this binary. This is standard behavior for a CLI wrapper and uses a safe execution method (array-based arguments) that avoids shell injection vulnerabilities. - [PROMPT_INJECTION]: The skill is designed to ingest and process documentation content from the
s2-docsbinary. This introduces a surface for indirect prompt injection if the source documentation were to contain adversarial instructions. - Ingestion points: Output from the
s2-docs.jsbinary is read into the script (result.stdout). - Boundary markers: The script uses clear delimiters (
=== S2 DOCS: ... ===) to separate tool output when the--cursorflag is used, which helps the agent distinguish between data and instructions. - Capability inventory: The skill has permissions to execute commands via the
allowed-toolsconfiguration inSKILL.md. - Sanitization: The script includes basic sanitization by truncating documentation output to 3000 characters to prevent context exhaustion attacks.
Audit Metadata