branch-cleanup
Pass
Audited by Gen Agent Trust Hub on Sep 3, 2026
Risk Level: SAFEDYNAMIC_CONTEXT_INJECTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The skill uses the
!command`` syntax inSKILL.mdto execute shell commands includinggit fetchandgit branchwhen loaded to populate its context with repository data. While these are standard git operations, they occur automatically upon initialization. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted branch names from the repository environment without sanitization, creating a risk for command injection. Ingestion points: Branch names are retrieved in
SKILL.mdthrough dynamic context commands (git branch,git for-each-ref). Boundary markers: No delimiters or protective instructions are used to wrap the branch data. Capability inventory: The skill requires the agent to execute shell commands includinggit branch -d <branch>andgit rev-parse <branch>using these branch names. Sanitization: The branch names are not escaped or validated, which could allow a malicious branch name containing shell metacharacters to execute arbitrary code. - [COMMAND_EXECUTION]: The skill directs the agent to execute shell commands that modify the local git repository state, specifically deleting local branches based on the analyzed output of previous commands.
Audit Metadata