T09 · Insecure Skill Coding Practices
- Location
scripts/uuid_generator.py:37- Finding
UUID v1 Generation May Expose a Stable Host Identifier
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a local UUID generator with small privacy and robustness caveats, but no hidden network access, persistence, credential access, or destructive behavior.
Install only if you are comfortable with a Chinese-language local UUID tool. Prefer UUID v4 for public or privacy-sensitive identifiers, avoid UUID v1 unless you need its timestamp semantics, and do not request extremely large batches.
scripts/uuid_generator.py:37UUID v1 Generation May Expose a Stable Host Identifier
scripts/uuid_generator.py:65Unbounded Batch Count Can Cause CPU and Memory Exhaustion
The usage section shows the skill being invoked with natural-language phrases like “千策,生成一个UUID” and “千策,生成10个UUID,” but it does not define whether these are the only accepted triggers, what variants are allowed, or when the skill should not activate. This ambiguity can cause unintended invocation because the trigger scope is implied only by examples rather than explicit constraints or negative examples.
The tool explicitly allows UUID v1 generation, which embeds timestamp information and may expose the host MAC address or another node identifier depending on the runtime implementation. In a general-purpose UUID generator, offering v1 without any warning or safer default guidance can lead users to disclose metadata unintentionally, especially if the generated IDs are exposed externally or used in privacy-sensitive contexts.
All user-facing description and examples are presented in Chinese, and the file does not indicate that the skill is region-specific or that users may choose another language. Under the stated policy, forcing a specific language without opt-in can be a natural-language policy issue.
The file's natural-language strings and documentation are entirely in Chinese, including the module docstring and CLI help text, with no indication that language selection is optional or that the tool is intentionally region-specific. The policy requires avoiding fixed language/locale behavior unless the constraint is justified or the user is given a choice.