T08 · Insecure Dependencies
- Location
scripts/generate_doc.py:22- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent document generator, but it can produce official-looking inspection documents with weak validation and unverified technical defaults.
Review generated inspection documents carefully before operational use. Treat outputs as drafts unless all product-specific standards, sampling plans, AQL values, environmental conditions, and required inspection items have been independently confirmed, and install python-docx from a trusted, pinned dependency source.
scripts/generate_doc.py:22Unpinned Third-Party Dependency Installation
scripts/generate_doc.py:530Document Generation Proceeds Despite Missing Required Validation
scripts/generate_doc.py:441Unverified Technical Parameters Are Inserted as Defaults
The skill instructs reading local reference files and using a generation script, but it does not declare any explicit tool scope such as allowed-tools or permissions. That creates an authorization boundary gap: an agent may infer file access is acceptable without a least-privilege declaration, increasing the chance of unintended file reads or broader tool use in a real runtime.
L119 的“支持中文交互”在语境中呈现为默认语言能力说明,但全文未说明是否支持用户选择其他语言或在需要时切换语言。按规则,若技能对语言/locale 施加默认约束而未提供用户选择,属于自然语言策略风险。
The file presents the skill documentation entirely in Chinese and instructs the agent to produce JSON according to that specification, but it does not indicate that Chinese is optional or that the skill is limited to a Chinese-language/regional workflow. Under the policy, forcing a specific language without user opt-in is a natural-language locale violation.
L016 将触发条件写为“用户要求生成检验规程、编制入厂检验规范、制作 IQC 检验文件”,虽然有一定领域限定,但仍缺少更具体的触发短语、上下文限制或不应触发的负例说明。对于相近的质量文档请求,这种描述可能导致技能被过宽激活。
The module docstring states the script generates Word inspection documents and all user-facing messages and content templates are written in Chinese, indicating a fixed language choice. There is no natural-language indication that users can select another language or that the Chinese-only behavior is a justified regional constraint.
No suspicious patterns detected.