soia-env-ai-cli-upgrade
Audited by Socket on Aug 8, 2026
1 alert found:
SecurityNo explicit credential theft or data exfiltration behavior is evident in the provided fragment. However, the module contains multiple high-impact execution pathways typical of supply-chain/abuse scenarios: it executes an environment-provided shell command for Cursor upgrades via bash -lc (allowing arbitrary code execution if the environment can be influenced) and it performs remote download-and-execute of an installer script for AGY installation. Additionally, it automates brew and npm global upgrade/install operations, which can execute third-party code during installation. Overall, this warrants security hardening (restrict/validate CURSOR_UPGRADE_CMD, add integrity verification for remote installers, pin/verify package sources, and consider safer install/upgrade constraints).