subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print(f"❌ {pkg_name} 未安装,开始自动安装...") try: # 执行安装命令 subprocess.run( install_cmd, capture_output=True, text=True,- Confidence
- 95% confidence
- Finding
- This code automatically runs package-manager install commands on the host system, causing the skill to modify the environment beyond its stated downloader purpose. In an agent context, silent installation/upgrades can introduce unexpected privileged changes, dependency confusion or supply-chain exposure, and violate least-privilege expectations.
