subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
__import__(package) # 检查库是否已安装 except ImportError: # 自动安装缺失的库 subprocess.check_call([sys.executable, "-m", "pip", "install", package]) # 初始化:安装依赖库 install_dependencies()- Confidence
- 94% confidence
- Finding
- This subprocess call invokes pip to install packages during skill execution, which creates an unexpected code execution and supply-chain surface. Even without shell injection, it allows the skill to modify the environment and execute installer code from external packages without user approval.
