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 the timeout command and bash -c to 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.md and references/migration.md suggests 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 SessionStart hook event to modify the session environment. For example, examples/load-context.sh appends environment variable exports to the $CLAUDE_ENV_FILE, which affects subsequent tool executions within the same session.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 9, 2026, 10:13 AM