subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import subprocess print(f"Installing {pkg}...", file=sys.stderr) try: subprocess.check_call([ sys.executable, "-m", "pip", "install", "--break-system-packages", "-q", pkg ])- Confidence
- 91% confidence
- Finding
- The script automatically invokes pip at runtime and modifies the local Python environment before doing its normal work. Even though the package names are hardcoded, runtime package installation expands the skill's capabilities, can execute unreviewed setup code from packages, and creates supply-chain and environment-integrity risk that is not necessary for ad deployment.
