T09 · Insecure Skill Coding Practices
- Location
SKILL.md:52- Finding
Arbitrary File Write Through Unvalidated Template Paths
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This code-generation skill is coherent, but it needs Review because its sample generator can write outside the intended project folder and can generate unsafe Python code from unvalidated names.
Review this skill before installing. Use it only with trusted templates and explicit output directories, inspect generated files before running them, and avoid untrusted API handler names or HTTP method values until path containment and identifier/string validation are added.
SKILL.md:52Arbitrary File Write Through Unvalidated Template Paths
SKILL.md:160Python Source Injection in Generated API Handlers
The activation phrase is very broad ('生成代码 / code generate / 项目脚手架'), which can cause the skill to trigger in contexts where the user did not clearly intend file-generating behavior. Because this skill can create directories and write multiple files, ambiguous invocation increases the risk of unintended scaffold generation or workspace modification.
The skill advertises automatic directory creation and file generation but does not clearly warn users that it will write to disk. In this context, the Python implementation calls os.makedirs(...) and writes files via open(..., 'w'), so omission of a warning meaningfully increases the chance of unexpected filesystem changes.
The skill description is written in Chinese and presents the capability in that locale without stating whether users may interact in another language. This can conflict with language-choice policies when no opt-in or locale justification is provided.
No suspicious patterns detected.