subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import requests except ImportError: import subprocess subprocess.check_call([sys.executable, "-m", "pip", "install", "requests", "-q"]) import requests- Confidence
- 95% confidence
- Finding
- The script executes a subprocess to install a Python package at runtime, which expands its capabilities beyond TTS and introduces supply-chain and execution risk. In environments where package indexes, mirrors, or network paths are untrusted, this can result in unintended code execution or modification of the host environment.
