subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
stderr("ℹ️ pinme CLI not found, installing via npm...") npm_global = os.path.expanduser("~/.npm-global") try: r = subprocess.run( ["npm", "install", "-g", "pinme", "--prefix", npm_global], capture_output=True, text=True, timeout=180, )- Confidence
- 94% confidence
- Finding
- The script automatically performs a global `npm install -g pinme`, which executes untrusted third-party package installation code on the host. In a skill whose stated purpose is file upload/link sharing, silently adding software and running installer scripts materially expands the execution surface and could lead to supply-chain compromise or unexpected code execution.
