subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: importlib.import_module("requests") except ImportError: subprocess.check_call([sys.executable, "-m", "pip", "install", "requests"]) def trigger_jimeng_generation(prompt, model="jimeng_t2v_v30"): ensure_dependencies()- Confidence
- 91% confidence
- Finding
- The code automatically invokes pip to install a package at runtime without user consent or integrity controls. This creates a supply-chain risk and allows unreviewed code execution during skill use, especially if package indexes, mirrors, or the environment are tampered with.
