collaborating-with-codex

Fail

Audited by Gen Agent Trust Hub on Feb 21, 2026

Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION] (HIGH): The documentation for codex_bridge.py reveals a --yolo flag designed to run model-generated commands without any approvals or sandboxing. It also provides a --sandbox danger-full-access mode, which grants the AI unrestricted access to the host environment.
  • [REMOTE_CODE_EXECUTION] (HIGH): The skill's architecture delegates command generation to an external model (Codex). This creates a direct path for remote code execution if the model generates malicious commands, especially when safety flags are disabled.
  • [PROMPT_INJECTION] (LOW): The skill presents a significant surface for indirect prompt injection (Category 8).
  • Ingestion points: The skill reads untrusted data from the directory specified in --cd and takes input via the --PROMPT parameter.
  • Boundary markers: There is no evidence of boundary markers or 'ignore' instructions to prevent the AI from following malicious commands embedded in analyzed code.
  • Capability inventory: The bridge script can execute arbitrary subprocesses and write to the workspace, providing a powerful toolkit for an injected prompt to exploit.
  • Sanitization: No sanitization of the model's output is mentioned before it is executed as a system command.
  • [DATA_EXFILTRATION] (MEDIUM): The skill interacts with sensitive file paths, specifically loading configuration profiles from ~/.codex/config.toml. Accessing user-level configuration files containing credentials, combined with command execution capabilities, poses a data exposure risk.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Feb 21, 2026, 10:39 AM