worktree
Pass
Audited by Gen Agent Trust Hub on Nov 5, 2026
Risk Level: SAFEDATA_EXFILTRATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The skill encourages the use of a
.worktreeincludefile to automatically copy sensitive files like.envinto new worktree directories. While convenient for development, this increases the attack surface for credential exposure by duplicating secrets across multiple filesystem locations. - [COMMAND_EXECUTION]: The instructions explicitly direct the agent to run package management commands such as
npm installandpip install -r ...after entering a worktree. This is a standard vector for executing code defined in potentially maliciouspackage.jsonorrequirements.txtfiles within a repository. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from external sources (git repositories) to determine its behavior.
- Ingestion points: Branch names, pull request descriptions (e.g.,
#123), and file contents (viagit statusor.worktreeinclude). - Boundary markers: None identified; instructions do not specify delimiters or warnings to ignore embedded commands in these inputs.
- Capability inventory: The skill uses
EnterWorktree,ExitWorktree, and spawns subagents via theAgenttool with file-system and tool-execution capabilities. - Sanitization: There is no mention of sanitizing or escaping data extracted from the repository before using it to name worktrees or initialize agent sessions.
Audit Metadata