Hook Development
Pass
Audited by Gen Agent Trust Hub on Nov 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes utility scripts, specifically
scripts/test-hook.sh, which are designed to execute other shell scripts for testing purposes. It uses thetimeoutcommand andbash -cto run these scripts and process their output. - [INDIRECT_PROMPT_INJECTION]: The skill provides guidance on implementing hooks that process untrusted data from tool inputs and user prompts. Documentation in
references/advanced.mdandreferences/migration.mdsuggests using prompt-based hooks to analyze potentially malicious content, which establishes an inherent surface for indirect prompt injection. - [DYNAMIC_EXECUTION]: The skill demonstrates the use of the
SessionStarthook event to modify the session environment. For example,examples/load-context.shappends environment variable exports to the$CLAUDE_ENV_FILE, which affects subsequent tool executions within the same session.
Audit Metadata