T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:10- Finding
Unnecessary Unrestricted Shell Capability Violates Least Privilege
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly does what it claims, but it asks for unnecessary shell access and creates active HTML files with under-scoped write behavior.
Review before installing. The skill is not malicious from the inspected artifacts, but it should not need Bash, and users should be cautious about generated HTML files that load remote JavaScript and use names derived from user input. Prefer a version that removes Bash, sanitizes output filenames, confines writes to a report directory, and vendors or integrity-pins Chart.js.
SKILL.md:10Unnecessary Unrestricted Shell Capability Violates Least Privilege
SKILL.md:146Generated Reports Execute Remote JavaScript Without Integrity Verification
SKILL.md:234User-Controlled IP Name Is Used in an Output Filename Without Path Validation
The trigger examples are natural-language phrases a user might say in ordinary conversation, and the README does not define strong activation boundaries. In an agent environment, overly broad triggers can cause unintended invocation of the skill, leading to surprise execution, inappropriate context capture, or interference with user intent routing.
The manifest description lists many natural-language trigger phrases such as “个人品牌”, “打造IP”, “帮我规划个人IP”, and “IP怎么做”, which are broad and could match ordinary discussion rather than a clear intent to invoke this specific skill. The file does not provide exclusion conditions or negative examples to narrow when the skill should or should not activate.
The skill requests Bash even though its documented behavior only needs search, fetch, read, and write. Unnecessary shell access expands the attack surface: if later prompt content, fetched web data, or future edits influence tool selection, the agent may execute commands on the host without a legitimate need.
The instruction “使用纯中文,技术图表保留中英混排” imposes a specific language/locale on the generated report. There is no opt-in, language selection, or justification that this skill is limited to a Chinese-language regional context.
The skill mandates creating a local HTML file in the working directory without warning or obtaining explicit user consent. Silent file creation can surprise users, clutter shared environments, and increase risk when combined with generated active content such as HTML and external CDN scripts.
The natural-language user-facing description and trigger instructions are entirely in Chinese, which implies a fixed language experience without user opt-in. The file does not state that the skill is intentionally limited to Chinese-speaking users or provide an alternative language option.
The interaction flow says the skill should use open_result_view to display the generated report, but the manifest's declared tools list includes only WebSearch, WebFetch, Read, Write, and Bash. This is an intent/code-documentation mismatch because the documented execution steps rely on a capability that is not part of the declared implementation surface.