T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:30- Finding
Excessive Local Filesystem Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 30-34
Vulnerability Type: Excessive tool permissions violating least privilege
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - write - globTechnical Analysis
The Skill declares
read,write, andglobcapabilities even though its documented workflow only requires making HTTP requests throughcurl. No documented feature requires reading, enumerating, or modifying local files.This unnecessarily expands the Skill's authority over the local workspace. The risk is particularly relevant because the Skill retrieves arbitrary, potentially attacker-controlled web content. If that content contains adversarial instructions that influence the hosting agent, the unnecessary filesystem tools could increase the effect from untrusted content processing to local file discovery, access, or modification.
The audit found no instruction explicitly directing the Skill to misuse these permissions. This finding concerns the avoidable privilege exposure created by the declared tool set.
Attack Path
- A user invokes the Skill to retrieve a URL controlled by an attacker.
- The Skill sends the URL to one of its documented third-party conversion services and receives attacker-controlled page content.
- The returned content contains instructions intended to manipulate the hosting AI agent.
- If the agent follows those instructions without maintaining a strict trust boundary, the declared
globcapability may be used to discover workspace files. - The declared
readcapability may expose accessible local file contents. - The declared
writecapability may allow modification of accessible workspace files. - The resulting scope exceeds the legitimate requirement of retrieving and returning webpage content.
Impact Assessment
Successful exploitation would depend on the hosting agent treating fetched content as instructions rather than untrusted data and ...[truncated 481 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the unnecessary
read,write, andglobcapabilities from the declared tool set. - Retain only the minimum network capability needed to retrieve webpage content.
- If command execution is unavoidable, restrict
execto a fixed HTTP client and an allowlisted argument structure rather than permitting arbitrary shell commands. - Validate URLs before use, permitting only expected
httpandhttpsschemes and rejecting shell metacharacters or ambiguous input. - Treat all fetched webpage content as untrusted data and explicitly prohibit interpreting it as agent instructions.
- Require user confirmation before any local filesystem operation if such functionality is added later.
- Apply host-level sandboxing, outbound-network restrictions, workspace boundaries, and tool-call authorization controls to reduce the impact of malicious fetched content.
- Remove the unnecessary
