T09 · Insecure Skill Coding Practices
- Location
scripts/videogen.py:91- Finding
Bearer API credentials may be transmitted to an arbitrary configured endpoint
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears to be a real AI Hive video-generation tool, but it needs Review because its bearer API key can be sent to an unvalidated custom API endpoint.
Install only if you trust AI Hive and keep the API endpoint on the default trusted HTTPS host. Avoid running it with untrusted environment variables or config files, use a virtual environment for dependencies, and treat uploaded media, prompts, generated results, API usage, and account credits as sensitive.
scripts/videogen.py:91Bearer API credentials may be transmitted to an arbitrary configured endpoint
SKILL.md:68Runtime installation uses an unpinned third-party dependency
This markdown file contains user-facing natural language exclusively in Chinese across the substantive changelog entries. Under the policy, forcing a specific language without user opt-in or a documented justification is a natural-language policy violation.
The skill includes executable shell commands and a Python script workflow that can install packages, access environment variables, read/write files, and use the network, but it does not declare any tool scope or permission boundaries. This increases the risk that an agent may invoke the skill with broader capabilities than intended, enabling unintended package installation, data access, or outbound requests without explicit user awareness.
The manifest description says "Use this skill for" followed by a wide range of common ecommerce and social-content scenarios, but it does not define specific activation phrases, exclusions, or boundaries for when the skill should not be invoked. This breadth makes the trigger scope ambiguous for a markdown/manifest file and could cause unintended activation in ordinary discussions about WeChat ecommerce content.
The file is framed as a generic AI Hive client with chat, image, video, model enumeration, upload, and account-related operations, while the declared skill is narrowly scoped to WeChat e-commerce video generation/editing. This scope mismatch increases the attack surface and can let downstream agents invoke unintended capabilities that were not disclosed or expected for this skill.
The module docstring explicitly advertises a generic AI capability tool, which conflicts with the claimed identity of a specific WeChat e-commerce video skill. This kind of misrepresentation is dangerous in agent ecosystems because trust and allowlisting decisions are often based on metadata and descriptions; misleading labeling can cause overbroad capabilities to be approved inadvertently.
A text-chat capability is unrelated to the declared video-editing purpose and gives callers a general-purpose LLM interface under the same credentials and trust boundary. In an agent setting, hidden extra capabilities are dangerous because prompts or orchestrators may invoke them unexpectedly, enabling policy bypass, data handling beyond intended scope, or unreviewed spend.
Standalone image generation is broader than the declared video-focused purpose and introduces an additional generation path not disclosed by the skill identity. This expands attack surface, complicates policy review, and may let agents use the skill for unrelated content creation or cost-incurring actions outside expected scope.
The file strongly frames the skill around Chinese-language WeChat commerce use cases and includes Chinese instructional content, but it does not explicitly offer the user a language or locale choice. This can amount to a locale/language policy concern when the skill appears to assume a specific language context without opt-in.
The example API key value includes Chinese-only instructional text ('请替换为你的APIKey'), which imposes a specific language in user-facing natural language content. The file does not offer an alternative language or indicate that this locale choice is optional or region-specific.
The module docstring presents the skill's purpose and usage only in Chinese, which imposes a specific language on users without any opt-in or alternative. The policy for natural-language violations applies to all file types, including code string literals and docstrings.
User-facing messages, prompts, and argparse help throughout the script are written in Chinese only, requiring users to interact in that locale by default. There is no documented language choice or justification for restricting the interface to Chinese.
The presence of user-info and wallet-balance retrieval is outside the stated purpose of video generation/editing and exposes unnecessary account metadata to any caller able to run the skill. While not directly destructive, it broadens accessible sensitive information and violates least privilege for a narrowly scoped media skill.
No suspicious patterns detected.