cleanup-merged-branches
Pass
Audited by Gen Agent Trust Hub on Sep 1, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests data from external sources such as branch names, pull request details, and issue comments. This untrusted data is then used to construct shell commands for the agent to execute, creating an attack surface for indirect prompt injection.\n
- Ingestion points:
scripts/plan.shfetches branch names from merged PRs usinggh pr list, andscripts/stale-claims.shextracts branch names from issue comments.\n - Boundary markers: The skill lacks explicit boundary markers or instructions for the agent to sanitize or quote the retrieved data before using it in shell commands.\n
- Capability inventory: The skill instructs the agent to perform actions like
git push origin --delete <branch>andgh issue editusing the ingested data.\n - Sanitization: No sanitization or escaping of the branch names or issue identifiers is implemented before they are interpolated into the shell command templates provided in
SKILL.md.\n- [COMMAND_EXECUTION]: The instruction templategit push origin --delete <branch>inSKILL.mdis susceptible to shell command injection. If a branch name contains shell metacharacters (e.g.,;, backticks, or$()), the agent's shell will execute the injected command when it attempts to delete the branch. Similar risks exist for thegh issue closeandgh issue editinstructions which use identifiers and references fetched from the repository tracker.
Audit Metadata