codex-agent
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses the Bash tool to execute various commands including codex, mktemp, cat, and git diff. The scripts provided (e.g., codex-wrapper.sh) correctly handle command arguments using shell arrays to prevent shell injection vulnerabilities.
- [EXTERNAL_DOWNLOADS]: The skill documentation recommends the installation of the @openai/codex package via NPM and the Codex CLI through Homebrew. These dependencies originate from well-known services and trusted organizations.
- [INDIRECT_PROMPT_INJECTION]: The skill implements a workflow where the agent analyzes project code using an external tool and then applies suggested fixes. This creates a potential surface where malicious patterns or comments within the project being reviewed could influence the tool's report to include instructions that the agent might inadvertently follow.
- Ingestion points: The agent is instructed to read the contents of report files (e.g., $REPORT) generated by the external Codex CLI in SKILL.md.
- Boundary markers: There are no explicit instructions to use delimiters or ignore embedded instructions when reading and parsing the tool's output.
- Capability inventory: The agent has access to the Edit tool and is specifically instructed to use it to apply code changes based on the feedback from the report.
- Sanitization: The workflow does not describe a step for sanitizing or validating the external tool's output before it is used to perform file modifications.
Audit Metadata