T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:14- Finding
Excessive Command Execution and Filesystem Write Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 14-17
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeTechnical Analysis
The skill requests arbitrary command execution and filesystem write capabilities even though its documented purpose is limited to Markdown-driven decision analysis. The same file states that the skill does not require command execution, performs no network requests, and does not provide persistent storage.
Granting
execandwritetherefore exceeds the minimum permissions required for the stated functionality. If the hosting agent automatically grants tools declared in skill metadata, malicious or untrusted content processed during a decision analysis could attempt to induce the agent to invoke these unnecessary capabilities.The declaration alone does not demonstrate that commands are automatically executed, and no malicious command payload was found. The risk arises from unnecessary exposure of powerful host capabilities and depends on the enforcement and confirmation model of the Agent platform.
Attack Path
- A user or external source supplies adversarial text as decision-analysis input.
- The skill is loaded with its declared
execandwritecapabilities. - The adversarial text attempts to influence the Agent into treating embedded instructions as part of the workflow.
- If the platform does not independently enforce tool authorization or require user confirmation, the Agent invokes
execorwrite. - Commands may run with the Agent process's operating-system privileges, or files accessible to that process may be created or modified.
Impact Assessment
Successful exploitation could permit command execution and filesystem modification within the privileges of the Agent host process. The practical scope may include alteration o ...[truncated 382 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the unnecessary command execution and write permissions:
yaml tools: [] - If analysis of user-selected local documents is an intended feature, retain only
readand restrict it to explicitly selected files or the project workspace. - Do not grant
execorwriteunless a documented feature requires them and their allowed commands, arguments, paths, and outputs are strictly constrained. - Require explicit user confirmation before any future shell execution or filesystem modification.
- Enforce workspace path allowlists, reject path traversal, and prevent access to credentials, configuration directories, and other sensitive locations.
- Align the metadata with the documented Markdown-only behavior so that the declared permissions accurately reflect runtime requirements.
- Remove the unnecessary command execution and write permissions:
