subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print(f" Command: {install_cmd}") try: result = subprocess.run( install_cmd.split(), capture_output=True, text=True,- Confidence
- 92% confidence
- Finding
- This code can execute package installation commands via `pip`, causing the skill to modify the host environment and fetch code from external package sources. Even though the command strings are currently hardcoded, automatic dependency installation exceeds normal OCR functionality and creates supply-chain and environment-integrity risk if triggered in sensitive agent contexts.
