T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:14- Finding
Excessive and Unrelated Agent Capabilities Violate Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:14-17, with supporting behavior declarations atSKILL.md:198andSKILL.md:257-259
Vulnerability Type: Excessive tool permissions and overbroad activation scope
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeSupporting declarations translated from the original Skill text:
text Trigger condition: automatically activate when the user needs to process Security-related taskstext - File processing: supports reading, parsing, and writing multiple file formats - Command execution: executes system commands in a secure sandbox and collects resultsTechnical Analysis
The Skill's stated purpose is to retrieve workout plans, workout records, and athlete profiles through HTTPS API calls. This functionality does not inherently require arbitrary local file reads, file writes, or operating-system command execution.
Nevertheless, the Skill requests
read,write, andexeccapabilities and advertises generic file-processing and command-execution behavior. It also defines an unrelated activation condition for Security tasks. These declarations unnecessarily expand both the available privilege set and the contexts in which the Skill may become active.The document mentions command allowlisting and sandbox testing as recommended precautions, but it does not define an enforceable command allowlist, permitted argument schema, filesystem boundary, or restricted execution policy. Consequently, the declared permission model does not demonstrate least privilege.
The project contains only
SKILL.md, so no concrete command-construction implementation or active exploit payload was found. Exploitation therefore depends on how the host Agent interprets and grants the declared tools.Attack Path
- A user invokes the Skill for health-data processing, or an unrelated Security-related request activates it under the broad trigger.
- The Skill operates with ac ...[truncated 1353 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
read,write, andexecunless each capability is demonstrably necessary for a documented health-data workflow. - Replace general-purpose tools with a narrowly scoped HTTP capability restricted to:
- HTTPS only.
- The verified health-service origin.
- Explicitly approved API routes.
- Required HTTP methods only.
- Remove the unrelated automatic activation rule for Security tasks. Limit activation to explicit requests for workout plans, workout history, or athlete-profile retrieval.
- If local file access is necessary, enforce:
- A dedicated application-owned directory.
- Canonical-path validation.
- Denial of symbolic-link traversal.
- Read-only access wherever possible.
- If command execution is unavoidable, enforce:
- A fixed executable allowlist.
- Structured argument arrays rather than shell strings.
- Rejection of shell metacharacters and user-controlled executable paths.
- Minimal environment-variable exposure.
- A non-privileged, network-restricted sandbox.
- Ensure the host denies undeclared or out-of-scope tool calls independently of natural-language instructions.
- Add tests confirming that health-task input cannot trigger arbitrary filesystem access or command execution.
- Remove
