subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
missing.append(pkg) if missing: import subprocess subprocess.check_call( [sys.executable, "-m", "pip", "install", "--quiet"] + missing )- Confidence
- 97% confidence
- Finding
- The script automatically installs Python packages at runtime via pip whenever dependencies are missing. In an agent skill context, this creates a supply-chain and arbitrary code execution risk because package installation executes untrusted code from package distributions without an explicit trust boundary or user approval.
