T05 · Unauthorized Access and Privilege Escalation
- Location
config/settings.json:2- Finding
AI Agents Are Configured to Bypass Sandbox and Permission Controls
- Content
View full analysis
Vulnerability Details
File Location:
config/settings.json, lines 2-12
Vulnerability Type: Unsafe privilege and approval bypass configuration
Risk Level: HighVulnerable Code
json "agents": { "codex": { "enabled": true, "model": "gpt-5.3-codex", "defaultArgs": "--dangerously-bypass-approvals-and-sandbox" }, "claude": { "enabled": true, "model": "claude-opus-4.5", "defaultArgs": "--dangerously-skip-permissions" } }Technical Analysis
The default command-line arguments explicitly disable the security boundaries of both configured coding agents:
--dangerously-bypass-approvals-and-sandboxdirects Codex to bypass command approval and sandbox restrictions.--dangerously-skip-permissionsdirects Claude Code to skip its normal permission checks.
Coding agents commonly process repository content, issue descriptions, prompts, generated code, and command output. Some of those inputs may be untrusted. Disabling sandboxing and approval checks removes defense-in-depth controls intended to prevent model-generated or prompt-injected commands from accessing unrelated files or executing dangerous system operations.
The audited package does not include the advertised agent runner, so the included code does not itself launch an agent with these arguments. Exploitation therefore depends on an external or subsequently installed runner consuming the
defaultArgsvalues. Nevertheless, this is the package's explicit default configuration and creates an unsafe privilege boundary if used as intended.Attack Path
- The user initializes or deploys the skill and uses an agent runner that reads
config/settings.json. - The runner starts Codex or Claude Code with the configured
defaultArgs. - The agent processes attacker-influenced content, such as a repository file, issue description, task prompt, or build output containing malicious instructions.
...[truncated 1199 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove both dangerous default arguments:
--dangerously-bypass-approvals-and-sandbox--dangerously-skip-permissions
- Run agents in a sandbox with access limited to the assigned worktree.
- Require explicit user approval for shell execution, network access, credential access, and modifications outside the assigned repository.
- Use per-task allowlists for commands and filesystem paths rather than globally bypassing controls.
- Run each agent under a dedicated, low-privilege operating-system account or isolated container.
- Do not expose SSH keys, cloud credentials, package registry tokens, or unrestricted authenticated CLI sessions to agent processes.
- Validate any runner consuming
defaultArgsand reject known permission-bypass flags by default. - Record security-relevant agent actions in tamper-resistant logs and alert on attempts to access paths outside the assigned worktree.
- Remove both dangerous default arguments:
