T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:17- Finding
Excessive Filesystem and Command-Execution Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 17–20
Vulnerability Type: Violation of least privilege through unnecessary agent-tool permissions
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeTechnical Analysis
The skill declares general-purpose file-reading, file-writing, and command-execution tools. Its documented purpose is to organize travel information, identify missing travel preparations, retrieve weather information, and generate packing recommendations. These activities do not inherently require unrestricted local filesystem modification or system command execution.
No executable implementation, command allowlist, path restriction, argument validation, or enforced sandbox policy is included in the project. Although the documentation states that commands should run in a secure sandbox, it does not provide a technical control that enforces this boundary.
Granting these tools expands the consequences of prompt injection or attacker-controlled travel content. If the hosting agent exposes the declared tools to the skill without additional authorization controls, manipulated input could influence the agent into reading unrelated files, modifying accessible data, or executing commands outside the travel-assistance scope.
Attack Path
- A host loads the skill and grants the declared
read,write, andexectools. - An attacker supplies adversarial content through a travel request, imported itinerary, booking text, or other skill input.
- The content attempts to induce the agent to invoke one of the broadly available tools.
- Because the skill defines no path boundaries, command allowlist, or per-operation authorization policy, the agent may access files or execute commands unrelated to travel planning.
- The operation runs with the filesystem access and operating-system privileges available to the hosting agent.
This path is conditional on ...[truncated 731 chars]
- A host loads the skill and grants the declared
- Remediation
View remediation
Remediation Suggestions
- Remove
execbecause the documented travel-planning workflow does not require arbitrary system command execution. - Remove
writeunless a specific user-requested export feature requires it. - If file access is necessary, replace general
readaccess with a user-mediated file-selection mechanism restricted to explicit itinerary or booking files. - Use dedicated, allowlisted weather and travel-information APIs instead of shell commands or unrestricted network tooling.
- Enforce canonical-path validation and restrict permitted files to a dedicated workspace.
- Require explicit user confirmation before any file modification or external side effect.
- Apply host-level sandboxing, minimal operating-system privileges, command and network allowlists, execution timeouts, and resource limits.
- Treat imported travel documents and user-provided content as untrusted data and prevent their contents from being interpreted as tool-use instructions.
- Document each required tool, its permitted operations, and the controls that technically enforce those limits.
- Remove
