T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:10- Finding
Skill Declares Excessive Tool Permissions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a local skill-quality checker with no network, persistence, or hidden destructive behavior, though it asks for broader tool access than its scripts currently need.
Install only if you want a Chinese-language local skill audit helper. Prefer removing or withholding Write permission unless you explicitly ask the agent to edit a skill, and run the scripts only against skill folders you intend to inspect. The missing referenced docs reduce completeness but do not by themselves indicate malicious behavior.
SKILL.md:10Skill Declares Excessive Tool Permissions
scripts/optimize-skill.py:291Untrusted Skill Data Is Printed Without Terminal-Control Sanitization
The declared description suggests a broad 'skill quality' or 'skill evaluation' capability, including checking and optimization contexts. However, the supplied code only validates whether certain file paths mentioned in SKILL.md exist. It does not assess overall skill quality, optimization, correctness, triggers, permissions, or other validation dimensions. While batch checking is supported, it is limited to template/reference/script file existence. Therefore the description materially overstates the primary purpose of the code, making this a mismatch.
Referenced artifact was not completely inspected
- `scripts/optimize-skill.py` - 评估脚本
The trigger description contains broad phrases like checking or optimizing a skill, which can cause the agent to activate in contexts beyond the author's intent. In a skill with Bash/Exec/Write permissions, unintended activation increases the chance of unnecessary filesystem inspection or tool execution on unrelated content, expanding the attack surface and enabling prompt-routing abuse.
The module docstring is written entirely in Chinese and establishes the skill's description and behavior in a single language. Under the policy, forcing a specific language without user opt-in or clear justification is a natural-language policy violation.
This is a code file, so natural-language policy checks apply to its docstrings and printed strings. The file presents its purpose, usage, and later console messages entirely in Chinese without offering a language selection or documenting a justified locale restriction, which matches the language/locale policy violation criteria.
No suspicious patterns detected.