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 a SessionStart hook 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 via apt-get.\n- [PRIVILEGE_ESCALATION]: The skill utilizes chmod +x to assign executable permissions to generated files and recommends using apt-get to install system utilities, which may require elevated privileges.\n- [EXTERNAL_DOWNLOADS]: The skill leverages standard package managers such as npm, pip, and apt-get to download software from well-known public registries.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 14, 2026, 12:30 PM