T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:21- Finding
Unnecessary Shell Execution and File-Write Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 21–24
Vulnerability Type: Excessive tool permissions
Risk Level: Mediumyaml tools: - read - exec - writeThe inconsistency is confirmed by the Skill's own declaration at line 288:
markdown - **分类**:MD(纯 Markdown 指令,无需 exec 命令行执行能力)This states that the Skill is pure Markdown and does not require command-line execution.
Technical Analysis
The Skill is an offline CSS reference document, but its metadata requests
execandwrite. No reviewed functionality requires shell execution or file modification. Granting these tools therefore violates the principle of least privilege.The document also recommends running
pingfor network troubleshooting at line 310, but this does not justify general shell access for the Skill's core CSS-consultation purpose. No direct malicious command, attacker-controlled command interpolation, or automatic invocation was identified.Attack Path
- A user installs or loads the Skill.
- The Agent platform interprets the
toolsdeclaration and grantsexecandwrite. - The Skill operates with command-execution and filesystem-modification capabilities unrelated to its stated purpose.
- If the Skill instructions are later compromised, modified, or combined with injected content, those unnecessary capabilities could be invoked to execute local commands or modify accessible files.
This is a privilege-enablement path rather than evidence that the current document actively performs malicious execution.
Impact Assessment
On platforms that automatically honor declared tools, the Skill may obtain:
- Shell-command execution within the Agent process's security context.
- Modification of files accessible to that process.
- Potential access to local resources exposed through shell commands.
The precise scope depends on platform sandboxing, operating-system permissions, and ...[truncated 182 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
execandwritefrom the declared tools:yaml tools: - read - If the platform does not require
readfor document loading, remove all tool declarations. - Replace the
pinginstruction at line 310 with optional, user-directed diagnostic guidance that does not cause the Agent to execute commands. - Enforce tool authorization at runtime rather than trusting package metadata alone.
- Sandbox any future command capability and require explicit user approval for each invocation.
- Add a manifest validation rule that rejects permissions inconsistent with the Skill's documented capability classification.
- Remove
