T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:24- Finding
Excessive Local Tool Permissions Violate Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:24-28
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - write - globTechnical Analysis
The Skill declares local file-reading, file-writing, filesystem-enumeration, and command-execution capabilities. Its stated purpose is internet research through web search, webpage retrieval, browser interaction, and source summarization. The document does not demonstrate a functional need for
read,write, orglob. It only broadly states elsewhere thatexecis used for searching and fetching, despite describing dedicated web tools for those operations.These permissions therefore exceed the minimum privileges required for the declared functionality. This is especially risky because the Skill processes untrusted internet content. A malicious webpage could contain prompt-injection instructions intended to induce the Agent to invoke its local tools.
The Skill does not itself contain instructions to exploit these permissions, so successful exploitation depends on the host Agent following attacker-controlled content and on the tools being exposed without additional authorization or sandboxing.
Attack Path
- A user invokes the Skill to research a topic.
- The Agent searches for or directly fetches an attacker-controlled webpage.
- The page contains prompt-injection text instructing the Agent to inspect local files, enumerate paths, modify data, or execute a command.
- The Agent treats the page's instructions as actionable rather than untrusted data.
- The unnecessarily declared
read,glob,write, orexeccapability is invoked. - Data accessible to the Agent may be disclosed or modified, or commands may run with the Agent process's effective privileges.
Impact Assessment
Exploitation could provide access to files available to ...[truncated 590 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
read,write, andglobbecause they are not required for the documented web-research workflow. - Replace unrestricted
execwith dedicatedweb_search,web_fetch, and sandboxed browser capabilities. - If command execution is strictly necessary, use a narrow command allowlist, prohibit shell interpolation, and run commands in an isolated environment without access to unrelated files, environment secrets, or user credentials.
- Treat all retrieved webpage content as untrusted data and explicitly prohibit following instructions embedded in search results or pages.
- Require user confirmation before accessing local files, modifying data, launching authenticated browser sessions, or executing commands.
- Use an isolated browser profile without existing cookies or authenticated sessions when visiting untrusted websites.
- Restrict network access to user-approved destinations and prevent arbitrary callback or upload endpoints unless they are necessary, validated, and explicitly authorized.
- Remove
