subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
missing.append("openpyxl") if missing: print(f"正在安装缺失依赖: {', '.join(missing)} ...", file=sys.stderr) subprocess.check_call( [sys.executable, "-m", "pip", "install", "--quiet"] + missing, )- Confidence
- 92% confidence
- Finding
- The script invokes pip at runtime via subprocess to install missing packages. Even though the package names are hardcoded, this still causes unreviewed code retrieval and execution from the package index during normal skill execution, expanding the trust boundary and enabling supply-chain or environment-manipulation risks.
