subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: print("📦 安装 Python 依赖...") result = subprocess.run([ sys.executable, '-m', 'pip', 'install', '-r', requirements_file, '--no-cache-dir', '--upgrade' ], capture_output=True, text=True)- Confidence
- 91% confidence
- Finding
- The script can install arbitrary packages from a caller-supplied requirements file via --requirements, which expands the skill from passive setup into code-fetching and package execution from external indexes. In a skill context, this increases supply-chain risk and can lead to untrusted code execution during installation if a malicious or tampered requirements file is provided.
