T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:40- Finding
Delegated Claude Code Agents Run with Permission Checks Disabled by Default
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coding-agent launcher, but it recommends unattended and permission-bypassing modes that can run commands or change files without enough user review.
Review this skill carefully before installing. It is best used only in disposable worktrees or sandboxed environments with limited credentials, and you should avoid the documented permission-bypass, yolo, and unattended background modes unless you have explicitly accepted the risk for that specific repository.
SKILL.md:40Delegated Claude Code Agents Run with Permission Checks Disabled by Default
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
- GET /todos - 获取所有待办
- POST /todos - 创建待办
- PUT /todos/:id - 更新待办
- DELETE /todos/:id - 删除待办
要求:
1. 使用 Express.js
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
exec workdir:/tmp/issue-78 command:"git push -u origin fix/issue-78 && gh pr create --title 'fix: ...' --body '...'"
exec command:"git worktree remove /tmp/issue-78"
## 📊 进度更新规则
The instruction to run Claude Code with '--permission-mode bypassPermissions' explicitly disables an important safety control that would normally gate sensitive actions. In a general-purpose coding agent, this materially increases the risk of unauthorized file changes, command execution, or access to sensitive workspace contents if the agent is prompted unsafely or behaves unexpectedly.
This command invokes an external model provider and combines that delegation with permission-bypass flags. In a coding-agent context, sending prompts/code to an external tool can expand the trust boundary, and the bypassed permissions mean any resulting actions may occur without normal safety interlocks or user review.
# 一次性执行(推荐)
claude --permission-mode bypassPermissions --print "你的提示词"
# 后台执行
claude --permission-mode bypassPermissions --print "你的提示词" &
This example runs the external coding tool in the background while also bypassing permission checks, reducing visibility and operator control over what the process does after launch. In an agent skill, background execution plus suppressed approvals makes unauthorized or unintended actions harder to detect and stop, especially if sensitive project files or credentials are accessible.
claude --permission-mode bypassPermissions --print "你的提示词"
# 后台执行
claude --permission-mode bypassPermissions --print "你的提示词" &
# 指定工作目录
cd /path/to/project && claude --permission-mode bypassPermissions --print "你的提示词"
Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
# 一次性执行
codex exec "你的提示词"
# 自动批准模式
codex exec --full-auto "你的提示词"
codex exec --full-auto instructs users to delegate actions to an external coding agent with automatic approval, reducing human oversight over code changes, command execution, and potential data access. In a coding-agent skill, this materially increases the chance of harmful actions being executed without review.
codex exec "你的提示词"
# 自动批准模式
codex exec --full-auto "你的提示词"
# 无限制模式(危险)
codex exec --yolo "你的提示词"
codex exec --yolo is explicitly an unrestricted mode and is especially dangerous in a coding-agent context because it can authorize broad autonomous actions with minimal safeguards. Even with a brief danger label, including it in a quick-reference guide can encourage risky use that leads to destructive edits, secret leakage, or unintended system changes.
codex exec --full-auto "你的提示词"
codex exec --yolo "你的提示词"
## 代码审查
Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
codex review --base main
codex exec "审查 commit abc123 的变更"
## 配置
Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
配置文件位置:~/.codex/config.toml
[model]
The skill explicitly recommends claude --permission-mode bypassPermissions --print and codex exec --full-auto without pairing those examples with immediate, prominent warnings about filesystem changes, secret access, network actions, or unintended destructive edits. In a coding-agent skill, these flags materially reduce safeguards and make it easier for an agent to perform impactful actions automatically if given a bad prompt or run in the wrong directory.
The manifest describes a general coding-agent wrapper for tools like Codex, Claude Code, and OpenCode, but this section instructs use of unrelated shell operations such as git worktree management, dependency installation, git push, and GitHub PR creation. Those are broader system/repository automation capabilities rather than direct delegation to coding agents, and they are not explicitly justified by the stated skill scope.
The manifest’s user-facing description and prompt content are entirely in Chinese, which imposes a specific language on users without indicating that language selection is optional. This can violate language or locale policy when the skill is not clearly documented as region-specific or offering user choice.
This manifest describes the skill in very broad terms such as delegating 'coding tasks' and lists common activities like building features, refactoring, bug fixing, and code review. Because it does not define specific trigger phrases, scope limits, or exclusion conditions, the skill could be invoked for a wide range of everyday coding requests unintentionally.
The document explicitly recommends running Claude Code with permission checks bypassed and presents it as the preferred mode, without any warning, scope limitation, or trust boundary guidance. In an agent skill intended for coding tasks, this materially increases the chance that generated or delegated commands can perform filesystem, process, or network actions without user confirmation, making accidental or prompt-influenced misuse more dangerous.
The document explicitly recommends --full-auto and --yolo to bypass interaction, and although --yolo is labeled dangerous, it still normalizes high-risk unattended execution in a coding-agent context. In a skill meant to guide automation and code modification, this can lead users to run destructive or exfiltrating actions without review.
The natural-language instructions throughout the skill are presented entirely in Chinese, but the file does not state that the skill is intended only for Chinese-speaking users or provide any opt-in language selection. Under the policy, forcing a specific language without user choice is a locale/language policy violation.
The file states 'Codex / OpenCode / Pi - 需要 PTY' and separately that 'Claude Code - 不需要 PTY', while the manifest and requires list present Pi as a supported backend but provide no corresponding usage examples or consistent operational guidance elsewhere. This creates intent ambiguity in the documentation about supported wrapped tools and how they are actually meant to be used.
All user-facing instructional text in this file is written in Chinese, and there is no indication that the skill is region-specific or that users can choose another language. Under the stated policy, a fixed language without user opt-in or justification is a natural-language policy concern.
The natural-language content throughout the file forces a specific language presentation, which can be a locale-policy concern when no user opt-in or justification is provided. There is no indication that this skill reference is intentionally region-specific or that alternative language support exists.
The template instructs the agent to run a host command (openclaw system event --text ... --mode now) after completing a task, which is an actual side-effecting shell/system action. Even though it appears intended as a convenience notification, embedding executable commands in a reusable prompt template can normalize automatic command execution without explicit per-use consent, and may trigger environment-specific effects or fail unpredictably.