T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:28- Finding
Excessive and Underspecified Command-Execution Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 28–30 and 393–395
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumVulnerable Code
The skill declares broad file-reading and command-execution capabilities:
yaml tools: - read - execIt later describes unrestricted file and command operations:
markdown - **File processing**: Supports reading, parsing, and writing multiple file formats - **API integration**: Calls external services through standardized interfaces and processes responses - **Command execution**: Executes system commands in a secure sandbox and collects resultsTechnical Analysis
The package contains only
SKILL.md; it provides no scripts or concrete workflow demonstrating a legitimate need for arbitrary system-command execution. Cryptocurrency portfolio calculations and queries to financial APIs do not inherently require shell access.The declaration does not define:
- An allowlist of permitted commands
- Validated argument schemas
- File-access boundaries
- Permitted API domains or operations
- Controls preventing access to credential files
- Authorization requirements for state-changing or trading actions
The assertion that commands execute in a secure sandbox is documentation rather than an enforceable control implemented by this project. Consequently, an agent granting the declared capabilities may treat broad command and file operations as authorized. Attacker-controlled user input or untrusted financial API content could then influence tool use beyond the legitimate portfolio-analysis scope.
Attack Path
- An agent loads the skill and grants its declared
readandexectools. - A user, compromised API, or other untrusted data source supplies content containing instructions framed as necessary portfolio-processing steps.
- The agent relies on the skill's broad file-processing and command-execution declarations as authorization ...[truncated 1340 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
execcapability unless a specific, documented command is essential to the skill's operation. - Prefer dedicated, narrowly scoped financial-data API tools over shell commands.
- Restrict file access to explicit files selected or supplied by the user and deny access to credential stores, environment files, SSH material, wallet secrets, and unrelated workspace paths.
- If command execution is unavoidable, implement a strict allowlist of executable paths and subcommands; reject shell metacharacters, redirections, substitutions, and unvalidated arguments.
- Execute commands without invoking a shell and pass validated arguments as a structured array.
- Define approved API domains, HTTP methods, request fields, and response-size limits.
- Treat user input and external API responses strictly as untrusted data, never as operational instructions.
- Require explicit user confirmation before trading, transfers, portfolio rebalancing, or any other state-changing operation.
- Use read-only, least-privilege API credentials by default and isolate them from command-execution environments.
- Replace documentation-only sandbox assurances with enforceable platform policies covering filesystem, process, network, and environment-variable access.
- Remove the
