T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:33- Finding
Excessive Filesystem and Command-Execution Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 33–36
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumVulnerable configuration:
yaml tools: - read - exec - writeTechnical Analysis
The Skill declares unrestricted file-reading, file-writing, and command-execution tools even though its stated purpose is to generate Bilibili titles, descriptions, tags, publishing recommendations, and narration scripts. Those content-generation functions can be completed by the Agent's language model without access to the host filesystem or operating-system command execution.
Granting
read,write, and especiallyexecexpands the Skill's authority beyond its legitimate operational requirements. If the hosting Agent authorizes tools according to this declaration, untrusted or adversarial task content could influence the Agent into invoking these capabilities outside the intended content-generation workflow.The document later advertises generic file processing, API integration, and command execution, but the reviewed package contains only
SKILL.md; no implementation was present that constrains these operations through command allowlists, path restrictions, argument validation, or sandbox policies. The audit did not find instructions that directly exploit these permissions, so the issue is excessive exposure rather than evidence of an embedded malicious payload.Attack Path
- The Skill is installed on an Agent platform that grants the tools declared in
SKILL.md. - The platform makes
read,write, andexecavailable while the Skill processes a user request. - An attacker supplies crafted content that attempts to redirect the Agent from content generation toward reading a local file, modifying data, or executing a system command.
- If the Agent follows the adversarial request and the platform lacks independent access controls, the unn ...[truncated 981 chars]
- The Skill is installed on an Agent platform that grants the tools declared in
- Remediation
View remediation
Remediation Suggestions
- Remove
read,write, andexecfrom the declared tools because they are not required for language-model-based content generation. - Prefer a tool-free Skill configuration for title, description, tag, script, and publishing-strategy generation.
- If command-line support is added later, expose a narrowly scoped purpose-built tool instead of general command execution.
- Enforce a fixed command allowlist and invoke programs without a shell. Pass validated arguments as separate values rather than constructing shell command strings.
- Validate operation names, script-length values, input sizes, and character sets before execution.
- Restrict any necessary file access to a dedicated workspace directory using canonical-path checks; deny traversal, symbolic-link escapes, and access to credentials or system paths.
- Run optional processing in a sandbox with minimal filesystem access, no unnecessary network access, resource limits, and a dedicated low-privilege identity.
- Require explicit user confirmation for security-sensitive operations and ensure the host platform independently enforces least privilege rather than trusting Skill text alone.
- Remove or revise unsupported documentation concerning generic file processing, API credentials, and command execution so that the documented capabilities match the actual implementation.
- Remove
