T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:20- Finding
Excessive Tool Permissions for a Calendar Skill
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 20–23
Vulnerability Type: Violation of least privilege through unnecessary file-system and command-execution capabilities
Risk Level: MediumVulnerable Code Snippet:
yaml tools: - read - exec - writeTechnical Analysis
The skill declares general-purpose file-reading, file-writing, and command-execution tools even though its documented purpose is calendar management. The artifact contains no implementation demonstrating that these capabilities are required, no path restrictions for file operations, no command allowlist, and no enforceable sandbox policy.
Calendar operations should normally be performed through narrowly scoped provider APIs and least-privilege OAuth permissions. Granting generic
read,write, and especiallyexeccapabilities expands the skill's authority beyond its stated function.Exploitability depends on the host agent treating these declarations as authorization and making the tools available when the skill is loaded. If the host independently restricts or ignores them, the practical risk is reduced. The declaration alone does not prove that commands are automatically executed.
Attack Path
- A user or agent loads the calendar skill.
- The host platform grants the declared
read,write, andexeccapabilities. - Untrusted calendar content, user-controlled event text, or later instructions influence the agent's tool selection.
- The agent uses the broadly scoped tools instead of a restricted calendar API.
- Depending on host controls, the agent may read unrelated local files, modify accessible files, or execute arbitrary operating-system commands under the agent process's identity.
Impact Assessment
If the declared permissions are honored without additional controls, the skill could obtain all file-system and command-execution privileges available to the hosting agent process. Potential e ...[truncated 446 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
exec,read, andwritefrom the skill declaration unless each capability is strictly necessary and supported by an implemented workflow. - Replace general-purpose tools with provider-specific Google Calendar, Microsoft Outlook, or Exchange API integrations.
- Use least-privilege OAuth scopes and request separate authorization for read-only and event-modification operations.
- If local file access is required, restrict it to explicit application-owned paths and reject traversal, symbolic-link escapes, and arbitrary absolute paths.
- If command execution is unavoidable, use a fixed executable and argument allowlist, prohibit shell interpretation, run in an isolated sandbox, and require explicit user confirmation.
- Require confirmation before creating, modifying, sharing, or deleting calendar events.
- Treat event titles, descriptions, attachments, and attendee-controlled content as untrusted data and prevent them from being interpreted as tool instructions.
- Document the precise purpose and security boundary of every requested tool permission.
- Remove
