T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:21- Finding
Excessive Tool Permissions for an Identity and Style Configuration Skill
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:21-26
Related Capability Claims:SKILL.md:220-222
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: MediumVulnerable Code:
yaml tools: - read - exec - write - glob - grepTechnical Analysis
The skill is presented as a mechanism for defining an agent's identity, personality, voice, and boundaries. This purpose does not inherently require arbitrary system-command execution, filesystem modification, recursive file discovery, or broad file-reading access.
Nevertheless, the skill requests
exec,write,glob,grep, andread. The document also explicitly claims support for file processing, external API integration, and command execution atSKILL.md:220-222. No command allowlist, filesystem path restriction, network destination allowlist, user-confirmation boundary, or implementation-level input validation is provided.Tool declarations do not independently prove that commands will be executed because enforcement depends on the hosting agent platform. However, if the platform grants these tools based on the manifest, the requested capabilities exceed the least privileges needed for the advertised identity and response-style task.
Attack Path
- A user or attacker supplies crafted content to the skill as an identity, personality, or style request.
- The content includes instructions that induce the agent to inspect files, discover paths, run commands, or modify local content.
- The skill operates with the declared
read,glob,grep,exec, andwritetools. - If the host does not independently constrain tool use, the agent may access or modify resources unrelated to persona generation.
- The resulting command output or file contents could be incorporated into responses, while writable files could be altered within the host process's permission boundary.
Thi ...[truncated 896 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
exec,write, andglobunless a concrete, documented feature requires them. - Retain only narrowly scoped tools required to generate identity and style configuration, ideally without any filesystem or command access.
- If file access is necessary, restrict it to explicit project-relative paths and reject absolute paths, traversal sequences, symbolic-link escapes, and sensitive directories.
- If command execution is unavoidable, replace generic
execaccess with a strict command and argument allowlist. Run commands in an isolated sandbox with no secrets, minimal filesystem access, disabled network access, resource limits, and a nonprivileged account. - Require explicit user confirmation before reading sensitive files, writing files, executing commands, or making network requests.
- Apply network destination allowlists and prevent access to loopback, private networks, cloud metadata endpoints, and unapproved external services.
- Define concrete input-validation rules rather than relying only on general documentation statements about filtering and escaping.
- Add audit logging for tool requests, approved operations, affected paths, command arguments, and failures.
- Ensure the host treats user-provided identity and style content as untrusted data rather than executable tool instructions.
- Remove
