subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
tmp_path = Path(tmpdir) # 克隆仓库 subprocess.run(['git', 'clone', git_repo, tmp_path], capture_output=True, check=True) # 切换到指定分支- Confidence
- 93% confidence
- Finding
- The code performs a network-backed `git clone` using a repository URL taken directly from configuration, enabling outbound connections to arbitrary destinations and interaction with untrusted remote content. In this skill context, that is dangerous because the skill is described as a workflow/task tool, but it silently adds data-transfer capability that can be used to exfiltrate project data or pull attacker-controlled repository content into the execution environment.
