T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:23- Finding
Excessive File and Command-Execution Capabilities
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:23-26
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeTechnical Analysis
The Skill declares unrestricted reading, writing, and command-execution tools even though its documented primary purpose is to provide Google Fonts selection, pairing, loading, subsetting, and self-hosting guidance.
General-purpose
execandwritecapabilities are not necessary for ordinary font recommendations or for generating example CSS and HTML. No path restrictions, command allowlist, sandbox policy, confirmation requirement, or prohibition against modifying unrelated files is defined.Elsewhere, the document advertises generic file processing, API integration, and command execution and recommends elevated execution when permission errors occur. These instructions compound the least-privilege concern. However, the reviewed file contains no concrete malicious command or automatic privilege-escalation payload.
Attack Path
- The Skill is loaded with
read,write, andexecavailable. - An untrusted or overly broad task is supplied through the Skill's generic input interface.
- The agent interprets the request as requiring file processing or shell execution.
- Because the Skill defines no command allowlist or path boundary, the agent may access or modify files outside the legitimate font-processing scope.
- If permission errors occur, the accompanying troubleshooting guidance may encourage elevated execution, increasing the potential impact.
Exploitation depends on the host agent granting the declared tools and acting on an unsafe request; the Markdown file does not independently execute commands.
Impact Assessment
If honored without additional platform controls, these declarations could permit:
- Reading files available to the agent ...[truncated 505 chars]
- The Skill is loaded with
- Remediation
View remediation
Remediation Suggestions
- Remove
execandwritefrom the declared tool list when the Skill is used only as a font guidance knowledge base. - If font subsetting is required, expose a narrowly scoped operation rather than unrestricted shell access.
- Restrict readable and writable paths to an explicit workspace or dedicated font directory.
- Allowlist required executables and arguments, such as a validated invocation of
pyftsubset. - Reject shell metacharacters and avoid passing user-controlled strings through a shell interpreter.
- Require explicit user confirmation before modifying files, installing software, or invoking external commands.
- Remove guidance recommending administrator execution. Document that the Skill should run as an unprivileged user.
- Enforce operating-system sandboxing, resource limits, network restrictions, and auditable command logging at the host-agent level.
- Remove
