local-codex
Pass
Audited by Gen Agent Trust Hub on Jun 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/codex_wrapper.pyscript uses thesubprocessmodule to invoke the localcodexCLI binary. These calls are used to check authentication status, run code reviews, and execute coding tasks. The script searches for the binary in standard locations such as/Applications/Codex.app,/usr/local/bin, and user-specific npm directories. - [CREDENTIALS_UNSAFE]: The skill manages sensitive authentication data stored in
~/.codex/auth.json. This file contains OAuth tokens for a ChatGPT Pro subscription. While the skill does not exfiltrate these credentials, it provides instructions on their location and management, which is a standard requirement for the tool's functionality. - [PROMPT_INJECTION]: The skill acts as a bridge to a local Codex agent, which creates a surface for indirect prompt injection where instructions in the processed data could influence the agent's behavior.
- Ingestion points: The
promptandworkdirparameters inscripts/codex_wrapper.pyreceive external input that is passed directly to the CLI. - Boundary markers: No specific delimiters or "ignore embedded instructions" warnings are applied to the input before it is passed to the underlying agent.
- Capability inventory: The
codex execcommand can perform file system operations (e.g.,workspace-writesandbox) and, if explicitly configured, full system access (danger-full-access). - Sanitization: The wrapper script does not perform validation or sanitization of the input prompt, relying instead on the underlying CLI's own safety mechanisms.
Audit Metadata