T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:4- Finding
Excessive Tool Permissions for Content-Generation Workflow
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 4
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumComplete Code Snippet:
yaml allowed-tools: Bash, ReadTechnical Analysis
The skill declares unrestricted
BashandReadcapabilities even though its documented purpose is to generate a med-spa client education handout. The workflow described inSKILL.mdconsists of clarifying requirements, drafting content, enriching supporting assets, and refining the result. It does not document a legitimate requirement to execute arbitrary shell commands or access local files.Bashcan execute commands with the permissions of the hosting agent process, whileReadcan expose files available to that process. Providing these capabilities unnecessarily expands the security boundary and violates the principle of least privilege. The declaration is not itself proof of malicious execution, but it creates an avoidable exploitation opportunity if adversarial user content, untrusted source material, or future skill instructions induce tool calls.Attack Path
- The agent loads the skill and grants the declared
BashandReadtools. - An attacker supplies adversarial content while requesting generation of a handout.
- The content attempts to persuade or instruct the agent to perform operations unrelated to handout generation.
- Because the skill has unnecessary tool access, the agent may read locally accessible configuration, credentials, or business data.
- The agent may also execute arbitrary shell commands under the privileges of its host process.
- Any resulting disclosure or system modification would depend on the agent runtime's sandbox, confirmation controls, and operating-system permissions.
Impact Assessment
Successful exploitation could provide access to files readable by the agent process and command execution within the ag ...[truncated 426 chars]
- The agent loads the skill and grants the declared
- Remediation
View remediation
Remediation Suggestions
- Remove
BashandReadfromallowed-toolsbecause they are not required by the documented content-generation workflow. - Grant only the narrowly scoped chat and image-generation capabilities needed to produce the handout.
- If local file input is later required, replace unrestricted reading with a sandboxed, user-selected file interface limited to an approved workspace and permitted file types.
- If command execution becomes necessary, avoid general-purpose shell access. Implement a dedicated tool with a fixed operation allowlist, validated arguments, no shell interpretation, restricted working directories, and explicit user confirmation.
- Enforce runtime filesystem isolation, network restrictions, command auditing, and denial of access to credential stores and sensitive host paths.
- Document the purpose of every granted capability and test that the skill cannot invoke tools outside its stated handout-generation function.
- Remove
