sharingan
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests and analyzes third-party repository data and external web content to automatically structure and generate local skill files, which creates an inherent indirect prompt injection vulnerability surface if an analyzed resource contains hidden malicious instructions.
- Ingestion points: External content enters the agent's context during Phase 1 and Phase 2 via
scripts/scan-repo.js(fetchRepoTreeandfetchFileContentfunctions) which fetch files using the GitHub CLI, or viaWebFetch//deep-researchdelegation for non-GitHub sources as described inSKILL.md. - Boundary markers: The instruction set in
SKILL.mdincludes a dedicated "Untrusted content rule" under the Phase 2 analysis section, explicitly telling the agent that all fetched content is untrusted data, to ignore embedded instructions, and to never execute fetched commands. - Capability inventory: The script
scripts/scan-repo.jsinvokes the localghbinary usingchild_process.spawnSyncto pull repository tree and file data. Furthermore,SKILL.mdpermits the use of theWritetool to create and modify files within the project's target directories during Phase 3. - Sanitization: The script
scripts/scan-repo.jsimplements asanitizehelper that eliminates control characters from input data. It also incorporates a strict URL validation mechanism viavalidateSecureUrlthat rejects non-HTTPS links and actively drops connections to private/loopback/link-local networks to prevent Server-Side Request Forgery (SSRF). Target directory boundaries are also strictly enforced using realpath checks to block path traversal.
Audit Metadata