T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:9- Finding
Overly Broad File-Read and Command-Execution Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 9–11; related privilege and credential guidance appears at lines 150, 163–164, 196, 209–210, and 227–230.
Vulnerability Type: Excessive tool permissions and insufficient least-privilege boundaries
Risk Level: MediumVulnerable Code
yaml tools: - read - execTechnical Analysis
The Skill declares both file-reading and command-execution capabilities despite providing no concrete implementation, approved command list, restricted filesystem paths, external-service allowlist, or permission boundaries. Its documentation also directs users to configure API credentials, requires access to unspecified external services and command-line tools, and recommends elevated execution when troubleshooting permission failures.
This combination violates the principle of least privilege. An agent loading the Skill could potentially use
readto access files outside the intended workspace andexecto invoke arbitrary local commands. If API keys are present in environment variables, unconstrained commands may also access those credentials. Unspecified network destinations further prevent reviewers from determining where processed data or credentials could be transmitted.No malicious command, payload, endpoint, or demonstrated exfiltration mechanism is included in the audited file. The risk therefore arises from excessive and undefined permissions rather than confirmed malicious execution.
Attack Path
- A user installs or loads the Skill for its advertised development-data processing capability.
- The agent receives the declared
readandexectools without documented path or command restrictions. - The user configures an API key or other credential in the environment as instructed.
- During processing or troubleshooting, the agent reads unintended local files or executes an unrestricted command.
- If the user follows the elevated-permiss ...[truncated 929 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
execunless command execution is essential to a clearly documented feature. - Replace unrestricted execution with a strict allowlist of commands, fixed executable paths, validated arguments, timeouts, and resource limits.
- Restrict file access to explicitly documented workspace directories and deny access to credential stores, home-directory secrets, system files, and unrelated repositories.
- Remove the recommendation to run with administrator privileges. Fail safely when required access is unavailable.
- Document every external service and enforce a hostname, protocol, and port allowlist.
- Use narrowly scoped credentials for a named service. Prevent commands and logs from exposing environment variables or API keys.
- Define the exact processing implementation, dependencies, data flows, and output locations so reviewers can verify that each permission is necessary.
- Require explicit user confirmation before any command execution, external transmission, or access outside the project workspace.
- Remove
