subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
missing.append(pkg) if missing: print(f"[setup] Installing missing packages: {', '.join(missing)}") subprocess.check_call( [sys.executable, "-m", "pip", "install", "-q"] + missing )- Confidence
- 93% confidence
- Finding
- The script automatically installs missing Python packages at runtime using pip. In an agent/skill context, this creates an unexpected code-execution and supply-chain risk because package download and installation executes untrusted third-party code and can modify the host environment without explicit user approval.
