subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print("正在安装依赖...") # Python 依赖 subprocess.run([sys.executable, "-m", "pip", "install", "faster-whisper", "pillow", "python-docx", "anthropic", "-q"]) # npm 依赖- Confidence
- 72% confidence
- Finding
- The skill can automatically install Python packages at runtime without pinning versions or verifying hashes. This creates a software supply-chain risk: a compromised package, typosquatted dependency, or hostile package index configuration could execute arbitrary code during installation.
