Hook Development
Pass
Audited by Gen Agent Trust Hub on Nov 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes a testing utility,
scripts/test-hook.sh, which executes local shell scripts provided by the user to verify hook behavior. - [INDIRECT_PROMPT_INJECTION]: The skill's primary purpose is to process data from tool operations, which introduces a surface for indirect prompt injection attacks.
- Ingestion points: Data from tool inputs, tool results, and user prompts are processed by hooks as described in
SKILL.mdandreferences/patterns.md. - Boundary markers: The documentation recommends variable quoting in shell scripts and provides structured JSON formats, though it lacks specific instructions for LLM-focused delimiters in prompt templates.
- Capability inventory: The skill demonstrates capabilities including shell command execution (
scripts/test-hook.sh), network requests viacurl, and file system operations as shown inreferences/advanced.md. - Sanitization: Examples such as
examples/validate-bash.shandexamples/validate-write.shprovide logic for identifying and blocking path traversal and dangerous command patterns. - [DATA_EXFILTRATION]: The documentation in
references/advanced.mdprovides examples for integrating hooks with external services like Slack webhooks and databases, which involves sending project data to external endpoints.
Audit Metadata