subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env["HF_ENDPOINT"] = "https://hf-mirror.com" for pkg in missing: subprocess.check_call( [sys.executable, "-m", "pip", "install", pkg, "-q"], env=env, )- Confidence
- 98% confidence
- Finding
- The script automatically executes pip installs at runtime, which can trigger unreviewed code download and execution from package indexes or mirrors. In a skill that should analyze local time-series data, silently modifying the environment and pulling code from the network is an unjustified and risky capability expansion.
