T08 · Insecure Dependencies
- Location
SKILL.md:120- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
Review recommended because the skill can store an AI-HIVE API key and send credentials plus selected media to a configurable, unvalidated API endpoint.
Install only if you are comfortable giving the skill an AI-HIVE API key and uploading selected media to AI-HIVE. Prefer environment variables over the init-created plaintext config file, avoid custom base URLs unless you fully trust the endpoint, and review generated upload/download destinations and costs before use.
SKILL.md:120Unpinned Third-Party Dependency Installation
scripts/videogen.py:641AI-HIVE API Key Persisted in a Plaintext Configuration File
scripts/imagegen.py:641Duplicate Plaintext API-Key Storage in Image Generation Client
scripts/videogen.py:90Unrestricted API Endpoint Configuration Can Redirect Credentials and Selected Media
scripts/imagegen.py:90Duplicate Unrestricted Endpoint Trust in Image Generation Client
The declared description promises a broad AI media-production workflow centered on short-drama BGM/intelligent scoring plus AI-HIVE-based image/video model orchestration. The supplied code does none of that. It only parses CLI inputs and writes a JSON brief to disk. While some labels in the JSON (e.g., search aliases and artifacts) echo the description, the implemented behavior is limited to metadata templating, which is materially narrower and different from the declared primary purpose. Therefore this is a clear description-behavior mismatch.
The description presents a broad AI media-production and soundtrack tool integrated with AI-HIVE services for model routing and task management. The supplied code does none of that. It is a straightforward local CLI wrapper around ffmpeg/ffprobe for basic video transformations and audio adjustments. While some functions loosely relate to editing outputs such as trims or aspect-ratio conversions, the central declared capabilities—AI-driven BGM, model usage, uploading/processing through a platform, and content abstraction/rewrite—are absent. This is a material description-behavior mismatch.
There is a strong mismatch between description and implementation. The description markets a domain-specific short-video postproduction and BGM assistant, emphasizing soundtrack selection, editing workflow support, and content restructuring/rewrite use cases. The code does not implement music generation, soundtrack recommendation, editing automation, material organization, or rewrite logic. Instead, it is primarily an API client for AI-HIVE, with a skill wrapper hardcoded to the GPT Image 2 image-generation model. While the description mentions AI-HIVE as infrastructure for image/video models, that is only a small infrastructural overlap and does not align with the claimed primary purpose. The actual behavior is a generic/open image generation tool rather than a short-drama BGM intelligent scoring assistant.
The description emphasizes 短剧BGM/智能配乐/背景音乐 and a broader workflow for organizing existing materials into rough cuts, fine cuts, vertical adaptations, and rewritten deliverables. The supplied code does not implement music-specific composition, soundtrack retrieval, mood-music selection, editing/assembly, asset organization, or rewriting logic. Instead, it provides a general-purpose AI-HIVE API command-line client, plus a specific wrapper for short-drama video generation. Its primary behavior is calling text/image/video generation endpoints, uploading media, polling tasks, and downloading results. That is materially different from the declared BGM-focused editing/production assistant, so this is a clear description-behavior mismatch.
The file contains broad generic operations—text chat, image generation, video generation, user-info retrieval, model listing, media upload, and task management—that are not justified by a short-drama BGM scoring skill. In context, this creates an overprivileged skill surface that can be abused for unintended remote API actions, data upload, and content generation beyond what users and defenders would expect from the manifest.
The implemented skill behavior does not match the declared short-drama BGM smart-scoring purpose: it exposes a generic AI Hive image-generation interface with upload, task polling, and API initialization. This kind of scope mismatch is dangerous because users and policy layers may grant the skill permissions or trust based on the manifest, while the code actually enables unrelated remote content generation and file transfer capabilities.
The skill advertises executable scripts, environment-variable usage, local file processing, shell-based ffmpeg invocation, and AI-HIVE network access, yet it declares no explicit permissions or allowed-tools boundary. That omission weakens least-privilege controls and can let a host agent expose broader capabilities than users expect, increasing the blast radius if the skill or its companion scripts are modified or misused.
The skill says it should respond when users say phrases like “短剧BGM、智能配乐、背景音乐、情绪音乐,” which are generic search terms that could appear in ordinary media discussions. The document does not provide exclusion conditions, negative examples, or narrower context to distinguish when the skill should activate versus when it should not.
The skill enables implicit invocation without any visible trigger constraints, so the agent may activate this skill in situations broader than the author intended. Because this skill can shape user workflows and generate executable commands for media-production tasks, overbroad auto-selection increases the chance of unintended invocation, prompt-scope confusion, or misuse in unrelated contexts.
The file’s natural-language description and skill-identifying strings are exclusively in Chinese (e.g. the module docstring, argparse description, and skill name), with no indication that users can choose another language or locale. This can violate a language/locale policy when a skill effectively requires a specific language without documented opt-in or justification.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
def run(args: list[str]) -> None:
print(" ".join(args))
subprocess.run(args, check=True)
def main() -> None:
The module docstring advertises broad generic AI capabilities including chat, image, video, model query, upload, and polling, which materially exceeds the advertised BGM-specific use case. This increases the risk of deceptive packaging and capability smuggling, making review, consent, and least-privilege enforcement less effective.
The file’s user-facing description and operational prompts are written entirely in Chinese, including setup and runtime guidance. This creates a language/locale restriction in natural-language behavior without any opt-in, fallback, or statement that the skill is intended only for Chinese-speaking users.
The file presents itself as a specialized short-drama BGM/scoring skill, but the implementation is a broad generic AI client supporting chat, image, video, model enumeration, uploads, and account access. This capability mismatch can mislead users and reviewers, increasing the chance that powerful functions are exposed under a narrower trust label than intended.
The module header and parser describe a generic AI tool, directly contradicting the marketplace identity of a specialized BGM/scoring skill. This inconsistency matters because security review and user consent depend on accurate representation of what the code can actually do.
This code file contains user-facing natural-language descriptions entirely in Chinese, including the module docstring and later CLI help text, with no indication that users may select another language. That creates a locale policy concern because the skill effectively forces a specific language without user opt-in.
Text-chat and image-generation endpoints are unrelated to the stated BGM/scoring use case and expand the operational surface of the skill beyond what users would reasonably expect. In this context, hidden extra capabilities are dangerous because they enable unintended data handling and model interactions under the guise of a narrowly scoped media tool.
The metadata sets the language to zh-CN, and the file does not state that users may choose another language or locale. Per the policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale restriction is clearly documented and justified.
The ability to retrieve user account information and wallet balance is not necessary for short-drama BGM/scoring and introduces avoidable access to sensitive account metadata. While not an exploit by itself, this violates least-privilege expectations and can expose billing or identity details through a skill that users may trust for a much narrower purpose.
The init flow opens a browser URL that includes the skill name as a query parameter for attribution without a clear prior warning or consent prompt about transmitting that metadata. This is a privacy concern because it leaks usage context to the remote service, and it is more concerning here because the skill already overreaches beyond its advertised purpose.