T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:8- Finding
Excessive Shell and File-Read Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 8
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumVulnerable Code Snippet:
yaml allowed-tools: Bash, ReadTechnical Analysis
The skill is intended to generate a pediatric dental clinic education handout. Its documented workflow involves drafting content and potentially generating images, but it does not describe any legitimate requirement to execute shell commands or read arbitrary local files.
Declaring both
BashandReadtherefore grants capabilities beyond the skill's stated purpose. In a host environment that enforces this declaration by making those tools available,Bashmay permit command execution with the privileges of the agent process, whileReadmay expose files accessible to that process. If the skill's execution is subsequently influenced by malicious prompts, untrusted external content, or unsafe generated instructions, these excessive permissions could become an access and command-execution channel.Attack Path
- A user installs and loads the skill.
- The host grants the declared
BashandReadtools to the skill. - Malicious or otherwise untrusted instructions influence the skill during execution.
- The influenced workflow invokes
Readto access local files orBashto execute shell commands unrelated to handout generation. - Commands and file reads run within the operating-system permissions and sandbox boundaries of the agent process.
No malicious invocation is present in the audited files themselves; exploitation depends on the host granting these declared permissions and on later instruction influence.
Impact Assessment
Potential impact includes unauthorized disclosure of files available to the agent process and execution of commands under that process's account. The precise scope depends on host sandboxing, tool-level policy enforcement ...[truncated 202 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
BashandReadbecause neither is required by the documented handout-generation workflow. - Allow only narrowly scoped content-generation and image-generation capabilities that are necessary for the skill's stated purpose.
- If local templates are essential, replace general file access with a restricted reader limited to a fixed, read-only template directory.
- If command execution later becomes necessary, expose specific validated operations rather than a general shell.
- Enforce runtime sandboxing, deny access to credentials and sensitive filesystem locations, and require explicit user approval for privileged actions.
- Add automated validation that rejects skill manifests requesting tools not justified by their documented workflows.
- Remove
