soia-env-ai-cli-upgrade
Fail
Audited by Gen Agent Trust Hub on Aug 8, 2026
Risk Level: CRITICALREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill explicitly recommends and implements a pattern for executing remote scripts piped directly to a shell. Specifically, the script
scripts/upgrade_ai_clis.pyand theSKILL.mddocumentation suggest the commandcurl -fsSL https://opencode.ai/install | bashfor the OpenCode tool. Executing unverified code from third-party domains via piped shell commands is a critical security risk. - [COMMAND_EXECUTION]: The script
scripts/upgrade_ai_clis.pyexecutes arbitrary shell commands provided in theCURSOR_UPGRADE_CMDenvironment variable usingsubprocess.run(["bash", "-lc", cursor_cmd]). This provides a mechanism for arbitrary command execution if the environment or the skill's configuration file is influenced by an attacker. - [EXTERNAL_DOWNLOADS]: The skill downloads and executes installer scripts from official sources. It fetches the Antigravity installer from
https://antigravity.google/cli/install.shand references the Codex installer athttps://chatgpt.com/codex/install.sh. While these originate from trusted organizations (Google and OpenAI), they contribute to the skill's capability for remote code execution. - [DATA_EXFILTRATION]: The configuration loading logic in
scripts/upgrade_ai_clis.pyutilizesos.expandvarswhen parsing theconfig.ymlfile. This behavior can lead to the unintended expansion and potential exposure of sensitive environment variables if the configuration file content is manipulated. - [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface where untrusted configuration data can influence executable logic. Evidence: 1. Ingestion points:
config.ymlparsed at runtime into shell commands. 2. Boundary markers: Absent. 3. Capability inventory: Shell command execution viasubprocess.run, network access viacurl, and file system access. 4. Sanitization: Absent, as configuration values are directly interpolated into shell commands without validation.
Recommendations
- HIGH: Downloads and executes remote code from: https://chatgpt.com/codex/install.sh, https://opencode.ai/install - DO NOT USE without thorough review
- AI detected serious security threats
Audit Metadata