codex
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands to invoke the Codex CLI. It uses complex pipelines involving
mkfifo,head, andjqto manage and limit the size of output artifacts, preventing context overflow. The instructions emphasize using quoted heredocs to prevent user-supplied strings from being interpreted by the shell. - [DYNAMIC_EXECUTION]: The included
scripts/run_with_timeout.pyscript usessubprocess.Popento execute the Codex tool. This allows the skill to enforce a hard wall-clock timeout and ensures that the entire process group is terminated if the timeout is exceeded. - [INDIRECT_PROMPT_INJECTION]: The skill creates an attack surface for indirect prompt injection because it is designed to analyze and process the contents of a repository which may contain untrusted data.
- Ingestion points: The
codex execcommand ingests repository files and user-provided prompts (via SKILL.md). - Boundary markers: The skill uses quoted heredocs (
<<'EOF') to delineate prompt content from shell commands. - Capability inventory: The skill has the capability to read/write files and execute shell commands through the Codex CLI tool.
- Sanitization: The skill implements shell-level sanitization using heredocs, but does not provide specific sanitization for model-level instructions contained within the analyzed data.
Audit Metadata