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, utilizes subprocess.run to execute Git commands such as git rev-parse, git ls-files, and git 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 of shell=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 pathspec library for advanced .gitignore pattern matching. It includes a fallback mechanism using standard library fnmatch if the external package is unavailable, ensuring functional reliability without enforcing unverified dependencies.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 22, 2026, 02:45 PM