git-commit
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes Git commands using a bundled Python script
scripts/inspect_repository.py. - The implementation uses
subprocess.Popenwith argument lists rather than shell strings, effectively preventing shell injection. - It sanitizes the process environment by clearing
GIT_*variables (e.g.,GIT_DIR,GIT_CONFIG_PARAMETERS) to prevent environment-based hijacking. - Target paths are resolved to absolute paths before execution to prevent flag injection attacks.
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from Git repositories which could be manipulated by an attacker to influence the agent.
- Ingestion points: The script
scripts/inspect_repository.pyreads data from the repository usingsymbolic-ref,for-each-ref, andstatus --porcelain(found indiscoverfunction). - Boundary markers:
SKILL.mdandreferences/contract.mdprovide clear instructions for the agent to distinguish between repository "facts," project "rules," and its own "suggestions," requiring manual verification for unverified states. - Capability inventory: The skill can execute various
gitsubcommands via therun()function ininspect_repository.py. It specifically warns against automated pushes or destructive actions likereset --hardwithout explicit user authorization. - Sanitization: The Python script sets
GIT_TERMINAL_PROMPT=0andGIT_EDITOR=trueto ensure Git commands remain non-interactive and do not trigger unexpected external processes.
Audit Metadata