codex-handoff
Warn
Audited by Gen Agent Trust Hub on Sep 7, 2026
Risk Level: MEDIUMPRIVILEGE_ESCALATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [PRIVILEGE_ESCALATION]: The orchestration script
run-codex-handoff.shexecutes thecodexCLI with the--dangerously-bypass-approvals-and-sandboxflag for implementation agents. This grants delegated agents broad permissions to read, modify, or delete files accessible to the host account without interactive user approval for each step. - [COMMAND_EXECUTION]: The skill relies on executing the local
codexbinary and shell scripts (run-codex-handoff.sh,watch-codex-wave.sh) for agent lifecycle management. It also utilizesgitfor worktree identification andpython3for monitoring event streams. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted user input and sub-agent results, propagating them through the orchestration pipeline.
- Ingestion points: User-provided task arguments and sub-agent result artifacts (JSON/stderr).
- Boundary markers: Implementation prompts use structured blocks for outcome summaries, briefs, and constraints to isolate instructions.
- Capability inventory: Broad file system access, command execution via
codex, and coordination claim management viaai-coord. - Sanitization: Results are validated against strict JSON schemas (
result.schema.jsonandresearch-result.schema.json). - [DYNAMIC_EXECUTION]: The skill dynamically generates implementation prompts for sub-agents at runtime based on the approved plan. Additionally, the
watch-codex-wave.shutility executes an embedded multi-line Python script to process agent event logs.
Audit Metadata