subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
except ImportError: print("[INFO] Installing beautifulsoup4...") import subprocess subprocess.check_call([sys.executable, "-m", "pip", "install", "beautifulsoup4", "-q"]) from bs4 import BeautifulSoup, Tag try:- Confidence
- 96% confidence
- Finding
- The script automatically invokes pip at runtime to install missing packages. Executing package installation during normal skill operation expands the trust boundary to the network and package index, enabling dependency confusion, supply-chain compromise, or unexpected code execution in environments where the skill should only transform local HTML.
