T09 · Insecure Skill Coding Practices
- Location
SKILL.md:37- Finding
Unvalidated Custom Feature Path Reaches a Bash File Operation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly a coherent manual archiving workflow, but it allows a custom feature path to reach a Bash move operation without clear validation and performs broad file changes without one final consolidated confirmation.
Review this skill before installing if your repository contains sensitive code or important spec files. Use it only on trusted feature directories, avoid the custom path option unless the path is clearly confined to spec/feature_*, and ask the agent to show a complete change plan before it writes files, generates images, deletes/merges domain docs, or moves the feature directory.
SKILL.md:37Unvalidated Custom Feature Path Reaches a Bash File Operation
文件多处要求交互文本必须为中文,例如选择提示使用中文,且规则区明确规定“所有用户-facing 信息用中文”。这属于语言/locale 强制约束,但文档未说明用户可选择其他语言,也未给出需要中文的合规性或地域性理由。
技能会连续执行多步高副作用操作:修改多份全局文档、可能覆盖图片文件,最后移动整个 feature 目录,但缺少一次覆盖所有变更的统一最终确认。用户即使在前面确认了摘要或局部更新,也未必意识到最终将发生的完整写入与移动结果,容易导致误归档、数据丢失、错误知识库更新或不可预期的大范围文件变更。
该技能在归档主流程中引入了 /gen-image 调用,属于与核心文档归档无关的扩展能力。它会产生额外副作用(生成并覆盖图片文件、消耗资源、触发另一技能链),扩大了攻击面;如果提取出的描述中混入敏感内容,还可能被带入图像生成提示,造成不必要的数据外发或资源滥用。
L395 明确写明“所有用户-facing 信息用中文”,这是对交互语言的硬性规定。根据规则,强制特定语言而没有用户 opt-in 或充分的区域化理由,应视为自然语言策略违规。