shadow-frog-init
Pass
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- Command Execution: The skill's companion script,
shadow-init.py, utilizessubprocess.runto execute Git commands such asgit rev-parse,git ls-files, andgit log. These operations are used to detect the repository root and identify source files. The script correctly passes arguments as a list and avoids the use ofshell=True, which is a recommended practice to prevent command injection vulnerabilities. - File System Operations: The tool performs broad read access to the project directory to discover source files and write access to create the
.shadow/directory and its contents. This behavior is central to its primary purpose of creating a local code index. Access is restricted to the local filesystem and the current repository scope. - Indirect Prompt Injection Surface: As a tool that ingests and processes codebase content, it represents a potential surface for indirect prompt injection. Maliciously crafted symbol names or code comments in the source repository could be mirrored into the generated markdown files. However, within the context of this initialization skill, the risk is minimal as it primarily generates static stubs. Future tools that consume these files should apply appropriate sanitization and boundary markers.
- Dependency Management: The script attempts to use the
pathspeclibrary for advanced.gitignorepattern matching. It includes a fallback mechanism using standard libraryfnmatchif the external package is unavailable, ensuring functional reliability without enforcing unverified dependencies.
Audit Metadata