worktree-management
Pass
Audited by Gen Agent Trust Hub on May 20, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection via the
pr-fanoutfunctionality. It retrieves branch names from external Pull Requests usinggh pr listand uses them directly in shell commands. - Ingestion points: PR metadata (specifically
headRefName) fetched inSKILL.md. - Boundary markers: None. The skill lacks markers or instructions to treat PR data as untrusted.
- Capability inventory: Shell execution of
git worktree add,git fetch, and filesystem operations viagit. - Sanitization: None. There is no validation or escaping of the branch names before interpolation into the shell script.
- [COMMAND_EXECUTION]: The skill interpolates user-supplied task names and externally-supplied PR branch names into shell commands. While the provided snippets use double quotes, malicious input could exploit the shell environment or cause path traversal.
- Evidence: The variable
BRANCHderived from PR data is used ingit fetch origin "$BRANCH:refs/remotes/origin/$BRANCH"andgit worktree add "$WORKTREE_PATH" "origin/$BRANCH". - Evidence: The
WORKTREE_PATHis constructed as"../${REPO_NAME}-pr-${PR}", where untrusted branch names or identifiers could potentially lead to path traversal if the agent's environment does not enforce strict path limitations.
Audit Metadata