T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:31- Finding
Overbroad Tool Access and Unsafe Administrator-Level Execution Guidance
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 31-34 and 356
Vulnerability Type: Least-privilege violation and unsafe privilege guidance
Risk Level: MediumVulnerable Configuration
yaml tools: - read - exec - writeLine 356 additionally advises users whose current account lacks read or write permission to check permissions and run the operation as an administrator.
Technical Analysis
The skill requests general read, write, and command-execution capabilities, even though its legitimate purpose is limited to submitting an image-generation prompt and saving one output image. No executable implementation is included that would justify unrestricted access to these tools.
The troubleshooting guidance compounds this excessive permission model by recommending administrator-level execution when file access fails. Elevating the entire Agent or terminal is not an appropriate general remedy for an output-directory permission problem. It expands the security boundary of every subsequently executed command rather than granting narrowly scoped access to the intended output location.
This does not independently prove malicious behavior, but it creates a dangerous execution environment in which a substituted script, manipulated command, or unsafe output path could operate with privileges beyond those necessary for image generation.
Attack Path
- A user invokes the skill to generate an image.
- The unresolved script command or output operation fails because the selected directory is not writable.
- Following the troubleshooting guidance, the user reruns the Agent or terminal with administrator privileges.
- The skill still requires an external or substituted script because no implementation is packaged.
- If that script or its arguments are malicious or compromised, it executes through the declared
execcapability with administrator privileges. - The process can then read ...[truncated 743 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
readcapability unless image generation demonstrably requires reading a user-selected input file. - Replace unrestricted command execution with a narrowly scoped tool or a fixed, packaged executable.
- Restrict writes to a caller-approved output path or a dedicated application output directory.
- Remove the recommendation to run as an administrator.
- For permission errors, instruct users to select a writable directory or correct ownership and permissions only on the intended output directory.
- Reject output paths that resolve outside the approved directory, including paths containing traversal components or symbolic-link escapes.
- Run image-generation processing in a sandbox with no access to unrelated user or system files.
- Document the minimum permissions required by each operation.
- Remove the
