git-hooks
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEPERSISTENCEPRIVILEGE_ESCALATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [PERSISTENCE]: The skill installs Git hooks such as
commit-msg,pre-commit, andpre-push. These are persistent automated scripts that run on the system whenever specific Git actions occur. - [PRIVILEGE_ESCALATION]: The instructions command the agent to apply
chmod +xto files in the.git/hooks/directory. This elevates the permission level of these files to allow their execution. - [COMMAND_EXECUTION]: The skill executes shell commands and utilizes
uv runto trigger development tools likeblackandruffduring the hook execution process. - [DYNAMIC_EXECUTION]: The skill encourages the execution of an interactive installer script (
install_hooks.sh) and various shell scripts copied into the Git configuration directory. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content, including Git commit messages and file data, which creates a surface for indirect prompt injection.
- Ingestion points: Commit messages processed by the
commit-msghook and staged file content processed by the Python pre-commit hooks. - Boundary markers: The skill does not define specific markers or delimiters to protect against malicious instructions embedded in the processed data.
- Capability inventory: Shell execution, Python tool execution via
uv, and Git metadata access. - Sanitization: There is no evidence of sanitization or filtering of commit message content or file data before it is processed.
Audit Metadata