subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Install requirements into the venv pip_cmd = [_VENV_PYTHON, "-m", "pip", "install", "-q", "-r", _REQUIREMENTS] subprocess.check_call(pip_cmd, stdout=sys.stderr, stderr=sys.stderr) print("Dependencies installed.", file=sys.stderr)- Confidence
- 81% confidence
- Finding
- The script automatically runs pip against a local requirements.txt at runtime, which introduces a supply-chain execution path outside the Discogs skill's stated purpose. If the requirements file or package sources are tampered with, arbitrary code can execute during installation, making this dangerous in an agent skill context where startup should not perform implicit package installation.
