T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:13- Finding
Overprivileged Filesystem and Command-Execution Tool Declaration
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:13-18
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumComplete vulnerable configuration:
yaml tools: - read - exec - write - glob - grepTechnical Analysis
The skill declares arbitrary command execution together with broad filesystem discovery, reading, and writing capabilities. Its stated primary purpose is content creation and external API integration, but the documentation does not establish why unrestricted access to all five tools is necessary.
Although
SKILL.md:247claims that only allowlisted commands should be executed, the project contains no command allowlist, path restrictions, argument validation rules, or executable implementation that enforces this claim. The project consists solely ofSKILL.md.If the hosting agent grants the declared tools without additional sandbox controls, untrusted task content could induce the skill to search for files, read sensitive information, alter workspace resources, or invoke system commands. The severity and reachable scope depend on the permissions and sandboxing supplied by the host platform.
Attack Path
- A host loads the skill and grants the tools declared in
SKILL.md. - An attacker supplies crafted content or instructions during a content-generation workflow.
- The instructions induce the agent to use
globorgrepto discover files andreadto inspect them. - The agent may use
writeto alter accessible files orexecto invoke commands. - Any resulting access occurs with the filesystem and operating-system privileges of the hosting agent process.
This path is conditional on the agent treating untrusted instructions as actionable and not independently enforcing tool, command, and path restrictions.
Impact Assessment
Potential impact includes:
- Reading files accessible to the agent process.
...[truncated 448 chars]
- A host loads the skill and grants the tools declared in
- Remediation
View remediation
Remediation Suggestions
- Remove
exec,write,glob, andgrepunless a documented workflow strictly requires each tool. - Prefer a minimal declaration containing only the tools needed for content creation.
- If file access is required, restrict operations to an explicit workspace directory and deny traversal, absolute paths, symbolic-link escapes, and access to credential locations.
- If command execution is indispensable, replace general shell access with narrowly scoped operations or a fixed executable allowlist.
- Pass command arguments without shell interpretation and reject shell metacharacters, command substitution, redirection, and pipelines.
- Require explicit user confirmation before file modification or command execution.
- Enforce resource limits, timeouts, output-size limits, and sandbox isolation at the host level.
- Document the exact legitimate purpose and boundaries of every requested tool.
- Remove
