T09 · Insecure Skill Coding Practices
- Location
cleanup.sh:75- Finding
Arbitrary JavaScript Execution Through an Unescaped Workspace Path
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill has a coherent cleanup purpose, but its script contains real unsafe JSON-generation and archive-overwrite risks that can affect workspace files or execute code in crafted environments.
Install only after the script is fixed to safely serialize JSON data, remove suppressed JSON errors, declare node if JSON output remains supported, and prevent archive filename collisions. Until then, avoid --json and avoid running archive on workspaces containing untrusted or duplicate-named memory files.
cleanup.sh:75Arbitrary JavaScript Execution Through an Unescaped Workspace Path
cleanup.sh:106Arbitrary JavaScript Execution Through Unescaped Memory Filenames
cleanup.sh:167Archive Filename Collisions Can Overwrite Existing Records
The skill body is written in Chinese and does not indicate that users may request another language or that the skill is intended only for a Chinese-speaking or region-specific context. This can violate language/locale policy because it implicitly constrains interaction language without opt-in.
This shell script emits user-facing status messages entirely in Chinese, including the main analysis report headings and labels. The file does not indicate that the skill is region-specific or provide any user opt-in for language selection, which is a natural-language locale policy concern.