git-guardrails-claude-code

Pass

Audited by Gen Agent Trust Hub on Oct 11, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONPRIVILEGE_ESCALATION
Full Analysis
  • [COMMAND_EXECUTION]: The skill includes a shell script (scripts/block-dangerous-git.sh) that is configured to run as a PreToolUse hook within the agent's environment to intercept commands.
  • [INDIRECT_PROMPT_INJECTION]: The safety script processes data from tool_input to identify blocked patterns.
  • Ingestion points: scripts/block-dangerous-git.sh reads command data from standard input.
  • Boundary markers: None present in the script logic.
  • Capability inventory: The script is limited to checking input and exiting with a status code; it contains no file-write or network capabilities.
  • Sanitization: Employs jq for structured data parsing and grep for pattern matching against a fixed blocklist.
  • [PRIVILEGE_ESCALATION]: The installation process requires using chmod +x to make the hook script executable, which is the standard mechanism for enabling tool hooks in the supported platform.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 11, 2026, 02:15 AM