T09 · Insecure Skill Coding Practices
- Location
scripts/videogen.py:91- Finding
Stored API Key Can Be Sent to an Arbitrary API Endpoint
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches its Temu video purpose, but it can send a stored AI Hive API key to any configured API URL, so endpoint settings need careful review.
Install only if you trust the AI Hive service and verify that the configured base URL remains the official endpoint. Do not use --base-url, AI_HIVE_BASE_URL, or config-file base_url values from an untrusted source; rotate the API key if it may have been used with an untrusted endpoint. Use an isolated environment and pinned dependency versions where possible.
scripts/videogen.py:91Stored API Key Can Be Sent to an Arbitrary API Endpoint
SKILL.md:65Unpinned Runtime Dependency Installation
The skill advertises and invokes shell execution, package installation, network access, and file operations, but it does not declare any explicit tool scope or permission boundaries. This increases the chance that an agent will run the skill with broader privileges than necessary, enabling unintended filesystem or network actions if the script or its inputs are abused.
The description explicitly targets Chinese-language use ('Temu商品视频...') and multi-country localization support in a fixed way, rather than offering a user-selectable language/locale preference. Under the policy, language or locale constraints should be optional, user-chosen, or clearly justified as region-specific compliance tooling.
The prompt instructs the skill to 'Create a Japanese-market visual base' as a default example, which is a locale-specific constraint expressed in natural language. Because the file does not present this as a user-selected option or explain a compliance-driven need, it conflicts with the language/locale policy guidance.
The file-level docstring says this script is a '通用 AI 能力调用工具' that wraps text chat, image generation, video generation, model querying, media upload, and task polling. That is materially broader than the manifest's Temu-specific product-video generation/editing purpose, indicating the implementation is a repurposed generic AI Hive client rather than a narrowly scoped Temu video skill.
This Python file contains user-facing natural-language strings and documentation entirely in Chinese, starting from the module docstring and continuing throughout prompts and help text. Because the skill exposes CLI guidance and interactive flows to end users without offering locale selection or opt-in, it imposes a specific language on users, which matches the language/locale policy violation criteria.
The code implements a full text chat endpoint and corresponding CLI flow for arbitrary chat interactions, including optional multimodal image input. A Temu ecommerce video generation/editing skill does not inherently require a standalone general chat capability, and the manifest does not declare conversational AI as part of the skill's scope.
The implementation includes a distinct image generation API operation and command path, allowing users to generate images independently of video workflows. The manifest is specifically about creating and editing Temu product videos and related video variants/localizations; standalone image generation is not justified by that stated purpose.
This markdown file contains user-facing natural language only in Chinese across the substantive changelog entries. Under the policy, forcing a specific language without user opt-in or a documented regional justification is a natural-language policy concern.
The example API key value includes Chinese 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 appears to violate the language/locale policy criterion.
The code provides a user-info endpoint and command explicitly described as querying user information and wallet balance. Billing/account inspection is not an obvious requirement for a Temu ecommerce video generation/editing skill and is not mentioned in the manifest's purpose.
The script can list all available TEXT, IMAGE, and VIDEO models from AI Hive, which is a platform-exploration capability rather than a direct Temu video editing function. While some model lookup is needed internally, exposing generic model enumeration to the user is broader than the manifest's stated business purpose.