T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:80- Finding
Approval Bypass Recommended for Autonomous Coding Agents
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 80-81 and 98
Vulnerability Type: Unsafe execution guidance that bypasses interactive approval controls
Risk Level: HighVulnerable Code
bash tmux -S "$SOCKET" send-keys -t agent-1 "cd /tmp/project1 && codex --yolo 'Fix bug X'" Enter tmux -S "$SOCKET" send-keys -t agent-2 "cd /tmp/project2 && codex --yolo 'Fix bug Y'" EnterThe associated operational guidance states:
text - Codex needs `--yolo` or `--full-auto` for non-interactive fixesTechnical Analysis
The Skill recommends launching coding agents with
--yoloor--full-auto. These modes bypass or substantially reduce interactive approval checks for commands and file modifications generated by the coding agent.Although tmux orchestration legitimately requires sending commands to interactive panes, disabling the downstream agent's approval boundary is not required for basic tmux control. The recommendation combines autonomous command generation with unattended execution, weakening least-privilege and human-review controls.
The risk becomes exploitable when the coding task, repository contents, retrieved instructions, or other context supplied to the coding agent is malicious or misleading. The coding agent may then execute commands or modify files without an operator reviewing each action.
Attack Path
- An operator follows the documented example and starts Codex with
--yoloor--full-auto. - The coding agent processes attacker-controlled or compromised input, such as a malicious task description or repository instructions.
- That input induces the agent to issue unsafe shell commands or make unauthorized file changes.
- Because approval controls have been disabled, the commands execute without interactive confirmation.
- The attacker-influenced operations affect files, processes, credentials, or other resources accessible to the account ...[truncated 667 chars]
- An operator follows the documented example and starts Codex with
- Remediation
View remediation
Remediation Suggestions
- Remove the recommendation to use
--yoloor--full-auto. - Use an approval-gated execution mode in which shell commands and sensitive file modifications require explicit operator confirmation.
- Run each coding agent in a restricted sandbox or container with only the required project directory mounted.
- Apply operating-system-level least privilege and prevent access to unrelated repositories, user credentials, SSH keys, cloud credentials, and host control sockets.
- Use separate, disposable worktrees and unprivileged accounts for parallel agents.
- Require review of generated changes before merging or deploying them.
- If unattended execution is operationally unavoidable, enforce command allowlists, filesystem boundaries, network restrictions, resource limits, and comprehensive audit logging.
- Remove the recommendation to use
