delegate-work
Fail
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes a custom shell script
scripts/codex-exec.shwhich invokes thecodexcommand-line interface. This script is the primary mechanism for delegating implementation tasks to external models and tools. - [PRIVILEGE_ESCALATION]: The skill instructions and the supporting shell script
scripts/codex-exec.shinclude a mechanism to explicitly bypass security boundaries. By setting theCODEX_BYPASSenvironment variable, the agent is instructed to add the--dangerously-bypass-approvals-and-sandboxflag to the tool execution. This allows the delegated process to write files anywhere on the system, bypassing the default workspace-write sandbox restriction. - [INDIRECT_PROMPT_INJECTION]: The skill's architecture for routing and delegating work to sub-agents (Claude and Codex) creates a surface for indirect prompt injection. Untrusted data encountered during tasks like web searching or file reading could be interpolated into prompts passed to downstream executors.
- Ingestion points: The
PROMPTvariable passed to thecodex-exec.shscript, which incorporates plan goals and repository paths. - Boundary markers: The instructions recommend using "scope fences" (e.g., "ONLY Phase N") to delimit tasks within the prompt.
- Capability inventory: Execution of the
codexCLI via shell scripts, use ofgit worktreefor environment management, and execution ofbun installfor dependency management. - Sanitization: The skill mandates a "Verify" phase where the main orchestrator agent is required to review all diffs and judge them like a contributor PR before merging, which acts as a manual sanitization step.
- [DYNAMIC_EXECUTION]: The skill facilitates the dynamic generation and execution of code at runtime. It utilizes the
codextool to implement code slices from specifications and referencesdesplega:script-builderfor generating and executing bulk call sequences.
Recommendations
- AI detected serious security threats
Audit Metadata