codex-headless
Pass
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill documents a workflow for processing untrusted external input via a
<task>argument or piped standard input (stdin). - Ingestion points: Data enters the agent's context through the command-line task argument and the stdin piping mechanism described in the
Core callsection ofSKILL.md. - Boundary markers: While the skill mentions that stdin content is appended as a
<stdin>block, there are no specific instructions or delimiters provided to ensure the agent ignores potentially malicious instructions embedded within that data. - Capability inventory: The
codex exectool is explicitly designed forcommand_executionand file writing (e.g., via theworkspace-writesandbox), which allows successful injections to have significant local impact. - Sanitization: No sanitization, validation, or filtering of the input prompt is mentioned or required by the instructions.
- [COMMAND_EXECUTION]: The core functionality of the skill is to facilitate the execution of shell commands and scripts through the
codex-cliutility. - Evidence: The skill provides multiple examples of using
codex execto drive an agent to perform tasks, including monitoring background runs wherecommand_executionevents are explicitly tracked and logged.
Audit Metadata