subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
except ImportError: pass result = subprocess.run( [sys.executable, "-m", "pip", "install", pip_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE,- Confidence
- 94% confidence
- Finding
- The code automatically runs `pip install` at runtime if `requests` is missing, which modifies the host Python environment and executes installation logic from an external package index. Even though the package name is currently hardcoded to `requests`, this creates supply-chain and operational risk that is unnecessary for a voice-reply skill and can be abused if package sources or the environment are compromised.
