T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:27- Finding
Excessive Host Tool Permissions Violate Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:27-30
Vulnerability Type: Excessive host permissions
Risk Level: HighVulnerable configuration:
yaml tools: - read - exec - writeTechnical Analysis
The skill requests host file-reading, file-writing, and command-execution capabilities even though its stated purpose is to interact with Discord. The documented Discord operations do not establish a legitimate requirement for unrestricted command execution or general host file modification.
If the agent platform grants these declared tools without additional sandboxing, the skill has substantially more authority than needed. In particular,
execcan provide arbitrary command execution under the agent process account, whilereadandwritecan expose or modify any files accessible to that account.The project contains only
SKILL.md, so no implementation was available to demonstrate runtime restrictions, command allowlisting, path confinement, or user confirmation controls.Attack Path
- A user or automation environment loads the skill and grants its declared tools.
- An attacker supplies malicious content through a prompt, Discord message, or other untrusted input processed by the agent.
- The malicious content induces the agent to invoke
read,write, orexecfor a task presented as part of Discord administration. - The agent reads sensitive files, modifies host data, or executes commands with the privileges of the agent process.
- Retrieved information can subsequently be transmitted through the skill's Discord messaging or upload capabilities.
Impact Assessment
Exploitation could expose credentials, configuration files, source code, and other data readable by the agent account. The
writecapability could modify project or user files, whileexeccould run arbitrary commands, alter application state, or invoke other installed programs. The scope is limited ...[truncated 158 chars]- Remediation
View remediation
Remediation Suggestions
- Remove
execandwriteunless a specific, documented workflow strictly requires them. - Replace generic host tools with a dedicated Discord API tool exposing only approved Discord actions.
- If local attachment reading is necessary, provide a narrowly scoped file-selection capability rather than unrestricted
read. - Restrict readable files to an explicit upload directory and enforce canonical-path validation.
- Run the skill in a sandbox under a dedicated, unprivileged account with no access to credentials or unrelated projects.
- Require explicit user confirmation before destructive Discord actions or any operation involving local files.
- Treat Discord messages and other externally sourced text as untrusted data that must never control host-tool invocation.
- Remove
