codex-cli
Fail
Audited by Gen Agent Trust Hub on Apr 2, 2026
Risk Level: HIGHEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill instructs the global installation of the package
@openai/codex. This package is not an official OpenAI distribution (the standard package isopenai), which is a known pattern for dependency confusion or supply chain attacks masquerading as legitimate tools. - [COMMAND_EXECUTION]: The
codex_runtool executes shell commands viacodex exec. It accepts and passes user-provided parameters includingprompt,cwd, andmodeldirectly to the system's command-line interface, providing a direct path for arbitrary command execution. - [REMOTE_CODE_EXECUTION]: The skill supports a
full-automode (--full-autoflag), allowing the unverified CLI tool to execute code or modify the workspace autonomously. Combined with the suspicious external package, this constitutes a high risk of remote code execution. - [PROMPT_INJECTION]: The
promptparameter is used to provide instructions to the underlying CLI tool without visible sanitization or boundary markers. This creates a surface for indirect prompt injection where malicious instructions embedded in user data could be executed by the agent with terminal access.
Recommendations
- AI detected serious security threats
Audit Metadata