branch
Fail
Audited by Gen Agent Trust Hub on Aug 8, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill explicitly instructs the agent to execute a shell script found within the repository being analyzed (
$REPO_ROOT/.claude/worktree-setup.sh). - Evidence: If
.claude/worktree-setup.shexists, the skill executes it usingbashwith the worktree as the current working directory. - Risk: An attacker can include a malicious script in a repository or Pull Request that will execute arbitrary commands on the user's machine when the
/branchcommand is invoked. - [COMMAND_EXECUTION]: The skill executes an external shell script located in the user's home directory.
- Evidence:
COORD_DIR=$(bash ~/.claude/coordination/resolve-coord-dir.sh) - Risk: The skill relies on the existence of a specific script outside its own package, which could be subverted or may not be present.
- [COMMAND_EXECUTION]: The skill generates and executes shell commands using variables derived from the repository environment.
- Evidence: Commands like
git worktree add "$WORKTREE_PATH" -b "$SLUG" "$BASE_BRANCH"and directory creation logic. - Risk: While the
SLUGvariable is validated with a regex, other variables likeWORKTREE_PATH(derived fromREPO_ROOTandREPO_NAME) could potentially be manipulated in complex environments. - [EXTERNAL_DOWNLOADS]: The skill suggests running package managers to install dependencies during the setup phase.
- Evidence: The documentation mentions running
npm installas part of a scaffold or within theworktree-setup.shscript. - Risk: This facilitates the download and execution of third-party code from external registries.
Recommendations
- AI detected serious security threats
Audit Metadata