T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:4- Finding
Excessive Shell and Filesystem Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 4
Vulnerability Type: Excessive tool permissions violating least privilege
Risk Level: MediumComplete Code Snippet:
yaml allowed-tools: Bash, ReadTechnical Analysis
The skill is intended to generate an estate-planning client education handout. Its documented workflow involves drafting, refining, and optionally enriching content with chat and image-generation capabilities. It does not document a legitimate need to execute arbitrary shell commands or read unrestricted local files.
Granting
BashandReadtherefore exposes capabilities beyond the skill's stated operational requirements. In an environment where skill instructions, user prompts, or referenced content can influence tool use, these permissions could be abused to execute local commands or access files unrelated to the handout-generation task.The reviewed file does not itself contain malicious commands, instructions to read sensitive files, or an exfiltration mechanism. The vulnerability is the unnecessary privilege exposure and resulting attack surface.
Attack Path
- The skill is loaded with the declared
BashandReadpermissions. - An attacker supplies adversarial task content or untrusted material designed to influence the agent's tool selection.
- The agent is induced to invoke
Readagainst files outside the legitimate task scope or to run commands throughBash. - Local information may be exposed to the active session, or shell commands may execute with the privileges of the hosting agent process.
- Further impact depends on host permissions and available integrations; no persistence or external exfiltration path is defined in the reviewed skill.
Impact Assessment
Successful exploitation could provide access to files readable by the agent process and permit command execution under that process's operating-system identity. The affected scope may ...[truncated 383 chars]
- The skill is loaded with the declared
- Remediation
View remediation
Remediation Suggestions
- Remove
BashandReadfromallowed-toolsbecause they are not required by the documented handout-generation workflow. - Allow only narrowly scoped capabilities necessary for the task, such as approved chat and image-generation tools.
- If document input is required, replace unrestricted filesystem access with a constrained reader limited to files explicitly selected or uploaded by the user.
- If command execution later becomes necessary, expose specific allowlisted operations instead of a general-purpose shell.
- Enforce runtime filesystem boundaries, command allowlists, and explicit user confirmation for access to sensitive resources.
- Keep human review mandatory before generated material is delivered to clients or treated as legal advice.
- Remove
