subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: __import__(dep) except ImportError: subprocess.run([sys.executable, '-m', 'pip', 'install', dep, '-q']) ensure_deps()- Confidence
- 95% confidence
- Finding
- The script automatically invokes pip to install packages at runtime without user confirmation. This expands the skill's privileges from paper research into modifying the local Python environment and executing package installation logic from external registries, which is risky in agent contexts and can expose users to supply-chain compromise or unwanted system changes.
