T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:11- Finding
Excessive Tool Permissions Violate the Principle of Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:11-14
Related Locations:SKILL.md:40,SKILL.md:217-219,SKILL.md:268-269
Vulnerability Type: Excessive filesystem, command-execution, and external-integration capabilities
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeTechnical Analysis
The Skill requests unrestricted
read,write, andexectools even though its documented purpose is creative strategy, brand narrative generation, and content review. These activities can ordinarily be completed through language-model processing without arbitrary command execution or filesystem modification.The requested permissions violate the principle of least privilege:
readmay expose local files unrelated to the creative task.writemay allow modification or creation of files outside the intended workflow.execmay allow execution of operating-system commands with the agent process's privileges.
The risk is reinforced by the declarations at
SKILL.md:217-219, which advertise file processing, external API integration, and system-command execution without defining command allowlists, filesystem boundaries, destination restrictions, approval requirements, or sensitive-data handling controls. The optionalcallback_urlparameter at line 40 also introduces a potential attacker-controlled outbound destination, but no validation or callback implementation is provided in the audited artifact.The document is internally inconsistent: lines 268-269 classify it as a pure Markdown Skill, while lines 11-14 request privileged tools. No executable script or directly malicious command was found, so exploitation depends on a tool-enabled agent following attacker-influenced natural-language input.
Attack Path
- The Skill is loaded by an agent that grants the declared
read,write, andexectools. - An attacker supplies crafted content through the ...[truncated 1632 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
exec,read, andwritefrom the tool declaration when the Skill is used only for creative analysis and text generation. - If file access is essential, grant access only for a user-selected workspace and restrict operations to explicitly approved file types and paths.
- Replace general command execution with narrowly scoped, typed operations. If
execcannot be removed, enforce a command and argument allowlist, prohibit shell interpretation, apply strict time and resource limits, and run commands in an isolated sandbox with no secrets or unnecessary network access. - Require explicit user confirmation before reading sensitive files, overwriting files, executing commands, or transmitting data externally.
- Remove
callback_urlif asynchronous callbacks are not implemented. If callbacks are required, accept only HTTPS destinations from a trusted-domain allowlist, reject redirects and private or link-local addresses, and minimize transmitted data. - Define controls against prompt injection from user input and file content. Tool requests should be validated against the declared task rather than followed directly from untrusted natural-language instructions.
- Reconcile the Skill classification with its actual behavior. A pure Markdown creative Skill should not claim unrestricted file, API, or command-execution capabilities.
- Add auditable security policy documentation covering permitted paths, permitted commands, outbound destinations, consent requirements, and handling of sensitive information.
- Remove
