shadow-ai-git

Pass

Audited by Gen Agent Trust Hub on Dec 5, 2026

Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes local git commands to retrieve repository metadata and commit history.
  • Evidence in scripts/analyze_git_shadow_ai.py: subprocess.run(["git", "-C", str(repo), "rev-parse", "HEAD"], ...)
  • [CREDENTIALS_UNSAFE]: The skill scans for hardcoded API keys and tokens within repository files to identify shadow AI usage. While it contains logic to redact these values before writing them to its own output logs, the agent is inherently exposed to the raw values during the scanning process.
  • Evidence in scripts/analyze_git_shadow_ai.py: Uses SECRET_VALUE_RE and LONG_TOKEN_RE to detect and redact patterns like OPENAI_API_KEY, ANTHROPIC_API_KEY, and bearer tokens.
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and analyze untrusted data from external repositories, including files explicitly labeled as 'jailbreak' or 'prompt injection' tests.
  • Ingestion points: Reads all text-based files in a target directory (scripts/analyze_git_shadow_ai.py).
  • Boundary markers: None; content is read as raw text for regex matching.
  • Capability inventory: Can execute git commands via subprocess.
  • Sanitization: Redacts suspected secrets from output snippets but processes the raw content via regex.
Audit Metadata
Risk Level
SAFE
Analyzed
Dec 5, 2026, 07:36 AM