worktree-manager
Warn
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
launch_terminalmethod inscripts/run_worktree-manager.pyis vulnerable to shell command injection. It constructs command strings for terminal execution using unsanitized worktree names. - Evidence: In
scripts/run_worktree-manager.py, the Windows implementation usessubprocess.Popen(cmd, shell=True)with string interpolation (line 248). The Unix-like implementation usesbash -cwith interpolated strings (lines 257-260). An attacker-controlled worktree name containing shell metacharacters (e.g.,;,&,|) could execute arbitrary commands. - [DYNAMIC_EXECUTION]: The skill uses
subprocess.Popento dynamically launch shell environments andsubprocess.runfor Git operations based on user-provided task descriptions and arguments. - Evidence:
scripts/run_worktree-manager.pyusessubprocess.runfor multiple Git operations includingworktree addandmerge. - [INDIRECT_PROMPT_INJECTION]: The skill's architecture creates a surface for indirect prompt injection where malicious instructions in the codebase could influence agent behavior.
- Ingestion points: The skill uses
codex_read_file,codex_codebase_search, andgit logto analyze repository content inSKILL.mdandagents/openai.yaml. - Boundary markers: Absent. There are no instructions to the agent to treat repository content as untrusted or to ignore embedded instructions within data files.
- Capability inventory: The agent has high-privilege capabilities including
bashaccess, filewriteaccess, and Git management tools. - Sanitization: No sanitization or validation logic is present in the Python orchestration script to filter content read from the repository before it is processed or reported.
Audit Metadata