subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# --- Install dev dependencies --- print(" Installing dev dependencies (pytest)...") subprocess.run( [str(pip), "install", "pytest"], capture_output=True, text=True,- Confidence
- 77% confidence
- Finding
- The setup script automatically installs an additional package from package indexes, which expands the attack surface and can execute arbitrary code through dependency installation workflows. In a skill setup context, silently pulling unnecessary external software is riskier because users expect initialization, not network-based dev tooling changes.
