startup-hook-skill
Pass
Audited by Gen Agent Trust Hub on Nov 14, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONPERSISTENCECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill derives environment setup, linting, and testing commands from untrusted repository content, providing a vector for malicious commands to be executed by the agent.\n
- Ingestion points: Repository dependency manifests (e.g.,
package.json,pyproject.toml,Cargo.toml) and project documentation (README.md).\n - Boundary markers: None. The instructions do not define delimiters or instruct the agent to ignore instructions embedded within these files.\n
- Capability inventory: The agent possesses capabilities to create files, modify file permissions, and execute shell commands.\n
- Sanitization: Commands identified from these untrusted sources are executed during the validation phase (Steps 6 and 7) without prior sanitization or human-in-the-loop review.\n- [DYNAMIC_EXECUTION]: The workflow requires the agent to generate a shell script (
.claude/hooks/session-start.sh) at runtime and execute it immediately to verify project configuration.\n- [PERSISTENCE]: The skill's primary objective is to configure aSessionStarthook within.claude/settings.json, which ensures the persistent execution of defined scripts at the start of every session.\n- [COMMAND_EXECUTION]: The skill instructs the agent to run various shell commands for dependency management and system package installation viaapt-get.\n- [PRIVILEGE_ESCALATION]: The skill utilizeschmod +xto assign executable permissions to generated files and recommends usingapt-getto install system utilities, which may require elevated privileges.\n- [EXTERNAL_DOWNLOADS]: The skill leverages standard package managers such asnpm,pip, andapt-getto download software from well-known public registries.
Audit Metadata