T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:16- Finding
Overprivileged File-Read and Command-Execution Capabilities
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 16-18; related elevated-execution guidance at lines 214-216 and 237-239
Vulnerability Type: Excessive tool permissions and unsafe privilege guidance
Risk Level: MediumVulnerable Code
yaml tools: - read - execThe troubleshooting guidance also includes:
markdown | 权限不足 | 当前用户无读写权限 | 检查文件权限,以管理员身份运行 |This guidance is duplicated later in the document.
Technical Analysis
The Skill describes itself as a planning and task-breakdown assistant. That purpose can ordinarily be fulfilled through language-model reasoning and does not inherently require unrestricted local file reading or command execution. Declaring both
readandexectherefore violates the principle of least privilege unless the host independently constrains those tools.The document defines no file-scope restrictions, command allowlist, argument validation, execution sandbox, confirmation requirement, or prohibition against processing instructions embedded in untrusted task content. In addition, its troubleshooting guidance recommends running with administrator privileges when access is denied. Elevation is not an appropriate generic response to a permission failure because it can turn an unsafe or incorrectly generated command into a system-wide operation.
This package contains no executable scripts, and the reviewed text does not explicitly direct the agent to run a particular malicious command. The risk arises from the unnecessary capabilities requested by the Skill and the possibility that untrusted planning content could influence their use in a permissive Agent host.
Attack Path
- A user installs or loads the Skill on an Agent platform that grants the tools declared in
SKILL.md. - The platform grants local file-read and command-execution access to the Skill.
- An attacker supplies task content, a specification, or a project file containing i ...[truncated 1518 chars]
- A user installs or loads the Skill on an Agent platform that grants the tools declared in
- Remediation
View remediation
Remediation Suggestions
- Remove
readandexecfrom the tool declaration when the Skill is used only for planning and task decomposition. - If file access is essential, limit reads to paths explicitly selected by the user and confined to the active project workspace. Deny access to home directories, credential stores, SSH material, environment files, and operating-system paths by default.
- If command execution is essential, replace unrestricted execution with narrowly scoped operations or an explicit command allowlist. Validate executable names and arguments independently rather than constructing shell command strings from user-controlled content.
- Run commands in a sandbox with minimal filesystem and network access, a non-privileged account, resource limits, and strict timeouts.
- Require explicit user confirmation that displays the exact command, arguments, working directory, and expected side effects before execution.
- Treat specifications, project files, and task content as untrusted data. Explicitly prohibit following embedded instructions that request unrelated tool use, sensitive-file access, credential disclosure, or privilege changes.
- Remove the recommendation to run as an administrator. Replace it with guidance to diagnose ownership and permissions, grant only the minimum required access, or ask the user to approve a narrowly scoped change.
- Document the legitimate reason for every requested tool and define enforceable boundaries for paths, commands, network access, and execution privileges.
- Remove
