T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:41- Finding
Overprivileged Tool Declaration for a Read-Only Query Skill
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 41-44
Vulnerability Type: Excessive local tool permissions
Risk Level: MediumVulnerable Code:
yaml tools: - read - exec - writeTechnical Analysis
The Skill describes a read-only blockchain-data routing and query service, but it declares unrestricted
execandwritecapabilities in addition toread. The documented functionality does not establish a legitimate requirement to modify local files or execute arbitrary operating-system commands.This violates the principle of least privilege. If the hosting Agent automatically grants the declared tools, instructions derived from a malicious user query, compromised remote data, or an Agent interpretation error could cause the Skill to execute commands or write files with the permissions of the Agent process.
The declaration does not itself prove that commands are executed automatically. Exploitation depends on the hosting platform granting these capabilities and on attacker-controlled content influencing a subsequent tool invocation.
Attack Path
- The Agent loads the Skill and grants its declared
read,exec, andwritetools. - An attacker submits a crafted natural-language blockchain query, or a queried external service returns adversarial content.
- The Agent interprets that content as a reason to invoke
execorwrite. - A command is run or a local file is modified outside the legitimate read-only query workflow.
- The resulting access is limited by the operating-system privileges and sandbox boundaries of the Agent process.
Impact Assessment
Successful exploitation could permit command execution and file modification under the Agent process identity. Depending on the runtime sandbox, this may expose local project files, alter user-accessible files, corrupt outputs, or invoke network-capable programs. No evidence in the audited artifact demonstrate ...[truncated 120 chars]
- The Agent loads the Skill and grants its declared
- Remediation
View remediation
Remediation Suggestions
- Remove the
writecapability because the documented workflow does not require local file modification. - Replace unrestricted
execaccess with a narrowly scoped HTTP request tool. - Restrict outbound requests to an explicit allowlist of documented blockchain-data endpoints.
- If command execution is unavoidable, expose only fixed commands with validated arguments rather than a general shell.
- Run the Skill in a sandbox with a read-only project filesystem, restricted network access, no inherited credentials, and a low-privilege operating-system identity.
- Treat user input and remote API responses strictly as data and prohibit them from supplying commands, tool names, file paths, or executable instructions.
- Document the precise purpose of every requested capability and deny execution if the platform cannot enforce those restrictions.
- Remove the
