T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:219- Finding
Unvalidated API-Controlled Upload and Download Destinations
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a disclosed AI image-generation helper that uploads user-selected reference images to AI Hive and saves generated results locally.
Install only if you trust AI Hive with the reference images and prompts you provide. Use a virtual environment, consider setting the API key via environment variable or reviewing ~/.ai-hive/config.json permissions, and be aware that generated files are saved under ~/Downloads/AiHive by default.
scripts/imagegen.py:219Unvalidated API-Controlled Upload and Download Destinations
SKILL.md:76Unpinned Third-Party Dependency Installation
The skill invokes shell commands, installs Python packages, reads local files, writes outputs, and makes network requests, yet it declares no explicit tool or permission boundaries. This creates an avoidable trust gap: an agent may grant broader-than-necessary capabilities or execute the skill without clear user-visible scoping, increasing the risk of unintended file access, command execution, or outbound requests.
The manifest description says to use the skill for a long list of phrases such as '品牌 IP', '吉祥物', '虚拟人', '绘本角色', and '商业角色图片', which are broad topic labels rather than specific invocation conditions. Without explicit scope constraints or negative examples, this could cause the skill to match ordinary image-generation requests beyond the intended character-consistency workflow.
The file's instructions and examples are written as mandatory Chinese-language operating guidance, and there is no statement allowing the user to choose another language or explaining that the skill is intentionally limited to a Chinese locale. This can violate language/locale policy when the skill is used in broader contexts without user opt-in.
该文件的模块说明、错误提示和 CLI 交互文案均为中文,且未见任何语言切换、用户选择或区域限定说明。根据规则,强制特定语言而没有用户 opt-in 属于自然语言层面的组织策略违规。
The example placeholder value uses Chinese text ('请替换为你的APIKey') in a way that assumes a specific language for users reading or copying the config. Because this file does not offer a language choice or document a locale-specific scope, it can violate the policy against forcing a specific language without user opt-in.
Although the skill fixes the model ID, it accepts unrestricted key=value pairs and forwards them directly as params to the image generation API. For a narrowly described character-consistency skill, exposing arbitrary backend parameters enables capabilities and behaviors beyond the documented, constrained workflow.
The manifest describes a character-consistency image generation skill using a fixed Seedream 5 Lite model, but this file additionally provides task and upload subcommands that operate independently of generation. Those capabilities are broader utility operations not reflected in the manifest's user-facing purpose of building consistency bibles and shot-change outputs.