Most static findings are false positives from Markdown examples, JSON templates, branch naming text, localhost examples, or configuration reads. The remaining confirmed risks are executable Python helpers that run git commands and write project configuration, which is expected for a branch-management skill but requires user confirmation for repository mutations.
The script executes local git commands through subprocess.run. Arguments are passed as a list, which limits shell injection, but the skill can still mutate repository state through branch, merge, and worktree operations.
The executable script uses ../worktrees as a default worktree location. This is a common Git pattern, but it intentionally operates outside the current repository tree and should be constrained before automated use.
The script executes local git commands through subprocess.run. Arguments are passed as a list, which limits shell injection, but the skill can still mutate repository state through branch, merge, and worktree operations.
The script executes local git commands through subprocess.run. Arguments are passed as a list, which limits shell injection, but the skill can still mutate repository state through branch, merge, and worktree operations.
The script executes local git commands through subprocess.run. Arguments are passed as a list, which limits shell injection, but the skill can still mutate repository state through branch, merge, and worktree operations.
The script executes local git commands through subprocess.run. Arguments are passed as a list, which limits shell injection, but the skill can still mutate repository state through branch, merge, and worktree operations.
The script executes local git commands through subprocess.run. Arguments are passed as a list, which limits shell injection, but the skill can still mutate repository state through branch, merge, and worktree operations.
The executable script uses ../worktrees as a default worktree location. This is a common Git pattern, but it intentionally operates outside the current repository tree and should be constrained before automated use.
The executable script uses ../worktrees as a default worktree location. This is a common Git pattern, but it intentionally operates outside the current repository tree and should be constrained before automated use.
print(f" Base dir: {wt_config.get('baseDir', '../worktrees')}")
The executable script uses ../worktrees as a default worktree location. This is a common Git pattern, but it intentionally operates outside the current repository tree and should be constrained before automated use.
The script writes a branching configuration file under the repository .claude directory. This is expected behavior, but it changes project configuration and should require user intent.
03
风险问题
已确认的安全问题与仍需审核的项目分开展示。
此次已完成的审计未记录已确认的安全发现。
04
补救措施
本次审计记录了建议的修复措施。实施这些措施是维护者的责任。
FIX-001
中
Executable helpers can mutate repository state through git operations.
Require explicit user confirmation before merges, branch deletion, forced worktree removal, or any operation that changes shared branches.
FIX-002
中
Worktree paths default to a sibling directory outside the repository.
Resolve worktree paths against an approved base directory and reject absolute paths or paths that escape that base.
FIX-003
中
Configuration writes update project files under .claude.
Preview configuration changes and write only after the user approves the exact target path and contents.