codex-cli
Warn
Audited by Gen Agent Trust Hub on Jun 20, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCREDENTIALS_UNSAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill documents the
codex plugin marketplace add <source>command inreferences/cli-reference.md, which allows installing plugins from arbitrary GitHub repositories, Git URLs, or local paths. This introduces a supply chain risk through unverified third-party code. - [REMOTE_CODE_EXECUTION]: The
codex mcp addcommand allows the registration of arbitrary shell commands as MCP servers. This enables the execution of persistent background processes based on potentially untrusted model-generated instructions or user inputs. - [CREDENTIALS_UNSAFE]: The skill provides explicit instructions for handling sensitive credentials in
SKILL.md, includingcodex login --with-api-keywhich reads API keys from standard input, andcodex mcp add ... --bearer-token-env-var GITHUB_TOKENfor managing GitHub tokens. - [COMMAND_EXECUTION]: The skill utilizes the
codex executility to run model-generated commands. While it mentions sandboxing, it also documents the--dangerously-bypass-approvals-and-sandbox(alias--yolo) anddanger-full-accessflags inSKILL.mdandreferences/cli-reference.md, which completely disable security constraints. - [DATA_EXFILTRATION]: The skill supports registering remote MCP servers via URLs (e.g.,
codex mcp add <name> --url https://...). This provides a mechanism where local context or files could be sent to an external, untrusted endpoint controlled by a third party. - [PROMPT_INJECTION]: The skill is highly susceptible to indirect prompt injection (Category 8).
- Ingestion points: Processes untrusted data from
stdin,git diffoutputs, and local files (e.g.,src/auth/*.ts) as shown inSKILL.mdexamples. - Boundary markers: No explicit sanitization or markers are used to separate user data from instructions.
- Capability inventory: Possesses powerful capabilities via
codex exec, including file writing (workspace-write) and arbitrary command execution. - Sanitization: Lacks evidence of input validation or escaping before passing data to the model.
Audit Metadata