T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:50- Finding
Excessive Command Execution and File-Write Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 50–54
Vulnerability Type: Violation of least privilege
Risk Level: MediumComplete Code Snippet
yaml tools: - read - exec - writeTechnical Analysis
The Skill declares access to command execution and file-writing tools even though its documented purpose is to provide UX design guidance through natural-language analysis. The same file describes the Skill as a pure Markdown capability that does not require command-line tools.
The
execpermission can allow commands to run with the privileges of the hosting Agent process. Thewritepermission can permit modification or creation of files accessible to that process. Neither capability is necessary for generating UX recommendations, checklists, or structured responses.Merely declaring these tools does not prove that malicious commands will be executed. However, exposing unnecessary privileged tools increases the impact of prompt injection or adversarial content supplied as UX analysis input.
Attack Path
- The Agent loads the Skill with
execandwritetools enabled. - An attacker supplies adversarial content in the UX analysis input, such as text embedded in a design specification or project file.
- The content attempts to persuade the Agent to run a command or write a file as part of the requested analysis.
- Because the Skill has declared these unnecessary tools, an Agent that fails to reject the injected instruction may invoke them.
- Commands or file operations execute with the permissions available to the Agent process.
This exploitation path is conditional on the hosting Agent granting the declared tools and failing to isolate untrusted input from Skill instructions.
Impact Assessment
Successful exploitation could allow command execution or file modification within the security context of the Agent process. The accessible scope could include proje ...[truncated 329 chars]
- The Agent loads the Skill with
- Remediation
View remediation
Remediation Suggestions
- Remove
execandwritefrom the declared tool list. - Retain
readonly if the Skill must inspect user-supplied design documents; otherwise, declare no tools. - Enforce tool permissions at the host level rather than relying only on Skill metadata.
- Require explicit user approval for any future command execution or filesystem modification.
- Treat analyzed specifications, HTML, and project documents as untrusted data rather than executable instructions.
- Add a rule stating that content encountered in analyzed files must never authorize tool calls.
- If future functionality genuinely requires writes, restrict them to a dedicated output directory and prevent overwriting existing files.
- Remove
