guard
Warn
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill uses
evalto execute the output of a local script (~/.claude/skills/gstack/bin/gstack-paths) to set up its execution environment. Executing the output of an external script at runtime can be risky as it allows the script to inject arbitrary commands into the current shell context. - [COMMAND_EXECUTION]: The skill defines
PreToolUsehooks that automatically execute external bash scripts (check-careful.shandcheck-freeze.sh) before the agent can useBash,Edit, orWritetools. While intended for safety, this establishes a persistent execution pattern where external scripts in sibling directories are run for every command. - [INDIRECT_PROMPT_INJECTION]: The skill is vulnerable to command injection during the setup phase where a user-provided directory path is interpolated into a shell command.
- Ingestion points: User input provided through the
AskUserQuestiontool for the restriction path. - Boundary markers: None; the path is directly interpolated into a
cdcommand. - Capability inventory: Subprocess calls via
Bashtool to resolve paths and write to the state directory. - Sanitization: Absent; the instruction tells the agent to run
cd "<user-provided-path>", which could lead to command substitution if the user provides a path containing backticks or$(). - [DATA_EXFILTRATION]: The skill collects local analytics including skill name, timestamps, and current repository names, appending them to
~/.gstack/analytics/skill-usage.jsonl. While the data is stored locally, it constitutes tracking of the user's workspace and tool usage habits.
Audit Metadata