subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import subprocess print(f"[安装依赖] {pkg} ...", file=sys.stderr) try: subprocess.check_call( ["uv", "pip", "install", pkg, "--system", "-q"], stderr=subprocess.DEVNULL, )- Confidence
- 94% confidence
- Finding
- The script performs runtime package installation via an external package manager, which executes code fetched from package repositories during normal skill operation. In an agent environment this expands the trust boundary, enables supply-chain compromise or unintended environment mutation, and is not necessary for safe parsing if dependencies are predeclared.
