codex
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill instructs the agent to route all user messages to a local 'Codex App Server' by default, creating an attack surface where responses from the server could influence the agent's behavior.
- Ingestion points: The
scripts/bridge.py pollcommand, which retrieves events and messages from the local Codex server via an SQLite store. - Boundary markers: The
SKILL.mdfile defines strict rules for the agent, including requiring user confirmation for mode selection, directory trust changes, and service request responses. - Capability inventory: The agent is authorized to execute the
codexCLI (queue, archive), write to$CODEX_HOME/config.tomlto modify trust levels, and manage a background daemon process via the provided Python scripts. - Sanitization: The
scripts/store.pyscript includes anoutput_itemfunction that truncates command output to 200 characters before it is presented to the agent. - [DYNAMIC_EXECUTION]: The skill provides a template in
references/cli-examples.mdthat requires the agent to generate and execute a Python script using a shell heredoc (`python3 - <<'PY'`). This script performs RPC calls to the local Unix socket to initialize sessions.
- [COMMAND_EXECUTION]: The skill's core functionality involves managing a background bridge daemon. The
scripts/client.pyscript usessubprocess.Popento launchscripts/bridge.py serve. Additionally, instructions inSKILL.mdandreferences/cli-examples.mdguide the agent to execute various shell commands involving thecodexCLI andpython3.
Audit Metadata