z-git-guardrails
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/check-git.pyusessubprocess.runto executegit merge-basecommands. This is used safely by passing a list of arguments rather than a shell string, and the inputcommandis validated to exclude shell-active characters like$,`,<, and>. The shell scriptscripts/block-dangerous-git.shacts as a simple wrapper for the Python execution.\n- [INDIRECT_PROMPT_INJECTION]: The skill acts as a filter for untrusted command strings that may be generated by an agent.\n - Ingestion points: The
main()function inscripts/check-git.pyreads command data fromsys.stdinviajson.load.\n - Boundary markers: None explicitly defined in the input schema; the script is designed to serve as the security boundary itself.\n
- Capability inventory: The script performs read-only Git ancestry checks using
subprocess.runand provides a blocking mechanism via exit codes. The test suitescripts/test_check_git.pyexecutes the hook script to verify the exit status contract.\n - Sanitization: The skill employs
shlexfor POSIX-compliant command parsing and strictly blacklists characters that allow shell expansion or redirection, ensuring it only processes literal command strings.
Audit Metadata