T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:19- Finding
Excessive Filesystem and Command-Execution Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 19–23
Vulnerability Type: Violation of least privilege through unnecessary filesystem and command-execution capabilities
Risk Level: MediumComplete Code Snippet:
yaml tools: - read - exec - glob - grepTechnical Analysis
The skill describes internet-search query construction, category routing, and multi-step searching. That documented purpose does not justify access to general-purpose local file-reading, filesystem-discovery, content-search, or command-execution tools.
Declaring
read,glob, andgrepmay allow the agent to discover and inspect files accessible to its host process. Declaringexecmay allow local commands to run with the host agent's operating-system privileges. The declaration does not impose enforceable path restrictions, a command allowlist, validated arguments, or a least-privilege sandbox.This is a capability exposure rather than evidence of active malicious execution: the reviewed project contains no instruction that explicitly abuses these tools. Exploitation depends on the hosting platform granting the declared capabilities and on an untrusted or manipulated instruction causing their misuse.
Attack Path
- A host loads the skill and grants the tools declared in its metadata.
- The skill receives attacker-controlled instructions or context, or otherwise processes adversarial content.
- The agent is induced to use
glob,grep, orreadto locate and inspect files unrelated to internet searching. - The agent may disclose accessible local information through its response or downstream tool calls.
- If
execis available without effective host-side restrictions, the agent may be induced to execute commands outside the skill's legitimate search function.
Impact Assessment
The potential scope is bounded by the privileges of the host agent process and any sandbox enforced by ...[truncated 614 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
read,exec,glob, andgrepfrom the tool declaration because they are not required for the documented internet-search function. - Declare only the specific internet-search capability needed by the skill.
- If local execution is genuinely necessary, replace general-purpose
execaccess with a narrowly scoped wrapper exposing fixed operations. - Enforce a strict command allowlist and reject shell metacharacters, command substitution, redirection, and unvalidated user-controlled arguments.
- Restrict filesystem access to explicitly approved directories and deny access to credentials, configuration secrets, user home directories, and system paths.
- Run permitted operations in a sandbox with minimal operating-system privileges, read-only storage where possible, network restrictions, resource limits, and no inherited secrets.
- Require explicit user confirmation before any local file access or command execution and maintain auditable tool-call logs.
- Add tests verifying that search inputs cannot cause local file discovery, file reads, or arbitrary command execution.
- Remove
