T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:350- Finding
Remote API Response Can Control Download URL and Destination Path
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This looks like a legitimate AI poster generator, but it needs review because API responses can direct uploads, downloads, and output file paths.
Install only if you are comfortable sending prompts and any selected reference images to AI Hive and storing an AI Hive API key locally. Use a virtual environment, avoid sensitive reference images, set a dedicated output directory, and treat this as requiring maintainer review for URL validation, filename sanitization, and dependency pinning before broad deployment.
scripts/imagegen.py:350Remote API Response Can Control Download URL and Destination Path
scripts/imagegen.py:229Reference Images Can Be Uploaded to an Unvalidated Server-Provided Destination
SKILL.md:71Third-Party Dependency Is Installed Without Version or Integrity Pinning
The skill invokes shell commands, performs network access to an external API, and reads/writes files, but it does not declare any explicit tool scope or permissions. This creates an over-privileged and under-specified execution model where a host agent may grant broader capabilities than necessary, increasing the risk of unintended file access, command execution, or data exfiltration if the script or prompts are modified or abused.
This code file contains user-facing natural-language strings and documentation entirely in Chinese, including the module docstring and CLI guidance. Under the policy rule, forcing a specific language without user opt-in is a natural-language policy violation because no alternate locale or language-selection mechanism is offered.
The description is primarily written in Chinese with embedded English terms, and the rest of the document continues in Chinese without stating that other languages are supported. Under the language/locale policy, forcing or implicitly constraining users to a specific language without opt-in can be a policy concern.
The example API key value uses Chinese placeholder text ('请替换为你的APIKey'), which imposes a specific language in user-facing configuration content. There is no indication that the skill is region-specific or that users may choose another language, so this conflicts with the policy against forcing a locale without opt-in.
The manifest describes a Seedream 5 Lite poster-generation skill using text or authorized reference images, which directly justifies generation and reference-image handling. However, the CLI also exposes separate task and upload commands as first-class capabilities, allowing users to query arbitrary generation tasks and upload media independently of an immediate poster-generation flow; these are broader operational capabilities than the stated end-user purpose.