os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
missing = [pkg for mod, pkg in deps.items() if not _import_ok(mod)] if missing: print(f"Installing: {', '.join(missing)}...") os.system(f"pip install {' '.join(missing)} --break-system-packages -q") def _import_ok(mod): try:- Confidence
- 96% confidence
- Finding
- The script automatically invokes `pip install` through `os.system`, which executes a shell command and modifies the host Python environment without explicit user approval. Even though the package names are currently hardcoded, this still creates an unnecessary command-execution and supply-chain surface: running the skill can install unpinned code from package indexes and uses `--break-system-packages`, increasing the chance of damaging or compromising the environment.
