Back to skill

Security audit

AI大模型专家|校园短剧 AI生成与编辑

Security checks for vulnerabilities and agentic risk

Overview

This is a plausible AI-HIVE media-generation skill, but it needs Review because its scripts can send API credentials and media through weakly scoped endpoints.

Review the commands before running them. Use only the official AI-HIVE endpoint unless you intentionally trust another deployment, avoid setting --base-url or AI_HIVE_BASE_URL from untrusted instructions, use a revocable low-limit API key, and upload only media you are comfortable sending to the service. Expect the init command to store the key locally and generated files to be downloaded to the configured output directory.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/videogen.py:60
Finding

API credentials can be redirected to an untrusted or plaintext endpoint

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/videogen.py:266
Finding

Server-provided upload and download URLs are used without destination, method, redirect, or size validation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (18)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The declared description promises a full AI-HIVE production workflow for generating and editing campus short-drama or comic-drama videos from creative inputs and media assets. In contrast, the supplied code only parses command-line arguments and writes a static JSON blueprint to disk. It does not invoke AI models, process images or videos, upload materials, orchestrate jobs, poll task status, or download outputs. While the blueprint content is thematically related to campus short-drama planning, the implemented functionality is materially narrower and does not match the advertised primary capability.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

描述与代码的核心用途存在明显偏差。虽然底层通用库确实包含 AI-HIVE 的图片/视频生成、上传和轮询能力,与“通过 AI-HIVE 统一调用模型”这一部分部分一致,但该文件最终暴露的实际 skill 是由 SKILL_CONFIG 固定为“gpt-image-2 图片生成与编辑”,主命令仅有 generate/task/upload,且 generate 调用的是 cmd_image 而非视频生成流程。描述声称这是面向校园短剧/漫剧的创作专家,能把创意、脚本、人物图或参考视频转成可交付短剧/漫剧视频;代码却没有任何短剧专用编排、脚本解析、分镜/人物板/场景板生成逻辑,也没有将脚本系统化转视频成片的专门能力。相反,它更像一个通用 AI Hive API 客户端,外加一个固定到 GPT Image 2 的图片 skill。因此其主要目的与对外描述不一致,应判定为 mismatch。

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill documents shell commands, environment variable use, file paths, network access to AI-HIVE, and task/result handling, but it does not declare any explicit tool scope or permission boundaries. In an agent environment, this can cause the runtime to grant broader-than-necessary capabilities or leave reviewers unable to verify least-privilege expectations, increasing the risk of unintended file, shell, or network actions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill is framed around broad, common topic phrases such as campus/youth short-drama requests, which can cause accidental activation in ordinary conversations. Over-broad triggering increases the chance that the skill will engage and request or process files, prompts, or remote API operations in contexts where the user did not intend to invoke it.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill enables implicit invocation without any visible trigger scope, narrowing conditions, or exclusions. This can cause the agent to activate the skill in situations the user did not clearly intend, increasing the chance of prompt-scope confusion, unwanted tool use, or accidental disclosure of project context to a specialized workflow.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script description and embedded skill metadata are entirely framed in Chinese, including the title at L02/L09/L18 and search aliases at L25, with no indication that language selection is optional. This can violate a language/locale policy when a skill imposes a specific language or locale without offering user choice or documenting a justified regional constraint.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest describes a focused capability around generating and editing campus short-drama and comic-style video assets from creative inputs. In contrast, the module docstring and implemented commands include generic text chat, user-info, and model listing functions, which broaden the tool into a general AI API client rather than a narrowly scoped drama-production skill.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This code file contains user-facing natural-language descriptions and prompts exclusively in Chinese, starting in the module docstring and continuing throughout the CLI UX. The skill does not offer user opt-in for language/locale selection or explain that it is intentionally limited to a Chinese-speaking context, which can violate language/locale policy requirements.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The embedded SKILL_CONFIG hard-codes this artifact as a 'GPT Image 2 图片生成与编辑' skill with generic commercial/product-image keywords, not a campus short-drama workflow. That creates a clear semantic mismatch between what the overall skill claims to be in the manifest and what this file is actually packaged to do.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file implements a broad AI Hive CLI with chat, image, upload, model listing, and account-related operations, while the skill metadata presents it as a narrowly scoped campus short-drama generator/editor. This scope mismatch is dangerous because it grants operators capabilities beyond the declared purpose, undermining least privilege and increasing the chance of unauthorized data access or misuse through a deceptively specialized skill wrapper.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module self-describes as a general AI capability tool, conflicting with the specialized skill positioning in metadata. This inconsistency is security-relevant because it can conceal materially broader behavior from reviewers and users, enabling overbroad API usage under the guise of a constrained creative skill.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The init flow triggers external browser navigation and persists an API key to a local config file with limited upfront warning about those side effects. In agent or semi-automated contexts, this can surprise users, cause unintended external interaction, and lead to credential persistence on shared systems where users did not expect secrets to be stored locally.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The metadata sets the language to 'zh-CN', which indicates a fixed locale preference. The file does not state that other languages are supported, offer opt-in language selection, or justify the restriction as region-specific, so this may violate language/locale policy expectations.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The display name, short description, and default prompt are all written in Chinese, with no indication that the user can choose another language or locale. This may violate language/locale policy expectations when a skill is presented to a broader audience without explicit opt-in.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
85% confidence
Finding

For a skill whose stated purpose is generating and editing short-drama media, automatically launching a browser to an account page with 'from=cli-skill' and 'skill=' attribution parameters is ancillary onboarding behavior rather than an obvious requirement of the core function. This adds an external interaction channel beyond media processing itself.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

This code file contains user-facing natural-language descriptions in Chinese, including the module docstring and later CLI help text, but it does not indicate that the user can choose another language. Under the policy rule, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill exposes user account and wallet information retrieval even though the advertised purpose is creative short-drama production. While not a direct exploit primitive, this expands access to potentially sensitive billing/account metadata without clear user expectation, which can aid reconnaissance or privacy violations in agent-driven environments.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

For a skill whose stated purpose is generating and editing campus short-drama videos, launching a local browser and appending from=cli-skill and skill name attribution parameters is not a direct requirement of media generation. This is ancillary product onboarding/attribution behavior rather than a justified creative-production capability.

Content

No source excerpt is available for this finding.