T09 · Insecure Skill Coding Practices
- Location
scripts/imagegen.py:91- Finding
Bearer Credential Disclosure Through an Unvalidated API Base URL
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches an AI-HIVE video/image generation workflow, but it has under-scoped credential and download handling that users should review before installing.
Install only if you trust the AI-HIVE endpoint and can control the runtime environment. Do not set AI_HIVE_BASE_URL or --base-url to untrusted hosts, use a revocable API key with limited funds/quota where possible, and avoid automatic downloads from tasks unless the package is hardened to validate download URLs, filenames, and file sizes.
scripts/imagegen.py:91Bearer Credential Disclosure Through an Unvalidated API Base URL
scripts/imagegen.py:312Untrusted Task Metadata Permits Unsafe File Downloads and Path Construction
A second, more specific description-behavior mismatch indicates the skill may expose broader or different capabilities than declared, including generic model access and image-focused generation rather than the promised short-drama/comic production flow. Undeclared capabilities expand the attack surface and can mislead users into invoking actions or sharing assets they would not have approved if the true behavior were transparent.
A second, more specific description-behavior mismatch indicates the skill may expose broader or different capabilities than declared, including generic model access and image-focused generation rather than the promised short-drama/comic production flow. Undeclared capabilities expand the attack surface and can mislead users into invoking actions or sharing assets they would not have approved if the true behavior were transparent.
The skill advertises executable workflows that use shell commands, environment variables, file access, and networked API interactions, but it does not declare any explicit tool scope or permissions boundary. This increases the chance that an agent runtime grants broader capabilities than users expect, enabling unintended access to local files, secrets, or external services when the skill is invoked.
The manifest sets language: zh-CN, which indicates a fixed language/locale for the skill. The file does not provide any opt-in, alternative locale, or explanation that this is a region-specific tool, so this appears to impose a language choice on users.
This code embeds user-facing natural-language descriptors entirely in Chinese, including the script description and skill name, with no indication that language choice is optional or that the skill is region-specific. Under the policy, forcing a specific language or locale without user opt-in is a natural-language policy violation.
The module docstring states this is a general AI-Hive tool for text chat, image generation, video generation, model queries, media upload, and task polling, while the skill manifest presents a domain-specific comic/drama generation skill and the embedded SKILL_CONFIG presents a GPT Image 2 image skill. The actual file therefore bundles and documents substantially broader capabilities than the declared skill purpose.
This code file contains multiple natural-language descriptions and CLI prompts exclusively in Chinese, starting with the module docstring and continuing throughout the interface. Because the skill does not offer user opt-in for language selection or explain that it is intentionally China/Chinese-only, it violates the language/locale policy requirement.
The manifest describes a focused skill for AI comic/drama image/video generation workflows, and this file’s generated skill metadata narrows further to a GPT Image 2 picture generation/editing skill. However, the wrapper exposes standalone task and upload commands, including generic media upload that is not limited to actual image generation/editing behavior. This expands the behavior beyond the user-facing claim of simply generating or editing images.
The placeholder value 请替换为你的APIKey is Chinese text embedded directly in the configuration example. This imposes a specific language in user-facing material without opt-in or justification, which matches the language/locale policy violation criteria.
The manifest describes content generation and editing workflows, but cmd_init launches a browser to an account page and drives an interactive credential setup flow. Credential bootstrapping may be convenient, but it is not part of the stated end-user creative function and introduces an extra capability outside the declared scope.
This code file includes primary descriptive text, help, and usage guidance in Chinese without indicating that users may select another language. That can violate a language/locale policy when a skill effectively forces one language by default rather than offering opt-in or alternatives.